Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext YAML Grammar(Need help to write YAML grammar using xText)
Xtext YAML Grammar [message #1823283] Tue, 24 March 2020 10:47 Go to next message
Ashok A is currently offline Ashok AFriend
Messages: 2
Registered: March 2020
Junior Member
Hi,

I was trying to build YAML grammar by using XText and there are no such documents to refer and develop the grammar.

Sample Yaml:

organization:
name: YAML
script: 4 = 4
rules:
name: rule001
fields: name=Test;phone=12345;email=abc@email.com;

I need some help to develop Xtext grammar based on above YAML structure.

Any advice is appreciated, Thanks !
Re: Xtext YAML Grammar [message #1823456 is a reply to message #1823283] Thu, 26 March 2020 20:58 Go to previous messageGo to next message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 157
Registered: February 2016
Senior Member
As a first step you can get some inspiration from the Xtext Domainmodel tutorial or feom the Xtext exmaples shipped with the Xtext framework.

Hope that helps:
Tamás
Re: Xtext YAML Grammar [message #1823464 is a reply to message #1823456] Thu, 26 March 2020 22:14 Go to previous message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
To add, here are some links that might help you gain some experience before you embark on your project.

Xtext documentation - https://www.eclipse.org/Xtext/documentation/
Seven languages - https://www.eclipse.org/Xtext/documentation/201_sevenlang_introduction.html
Xtext book - https://www.amazon.in/Implementing-Domain-Specific-Languages-Xtext-Xtend-ebook/dp/B00EPCSD1M


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Previous Topic:Xtext-maven-plugin with sources
Next Topic:Terminal with specific size
Goto Forum:
  


Current Time: Thu Apr 25 08:08:46 GMT 2024

Powered by FUDForum. Page generated in 0.03081 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top