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

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

Sample Yaml:

name: YAML
script: 4 = 4
name: rule001
fields: name=Test;phone=12345;;

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: 128
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:
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: 164
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 -
Seven languages -
Xtext book -

Twitter : @NeerajBhusare
Blog :
Best regards, Neeraj
Previous Topic:Xtext-maven-plugin with sources
Next Topic:Terminal with specific size
Goto Forum:

Current Time: Thu Jan 28 00:04:49 GMT 2021

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

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

Back to the top