Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » TMF (Xtext)(how to ignore string in xtext grammar)
TMF (Xtext) [message #1855507] Wed, 19 October 2022 02:27 Go to next message
vikash singh is currently offline vikash singhFriend
Messages: 6
Registered: September 2019
Junior Member
        name= NAME';' selection=BooleanConstant ';' *;
    enum BooleanValue:
        FALSE='FALSE' | TRUE='TRUE';
    terminal NAME:'^'?('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')* ;

this is my grammar to parse a file where format is


my requirement is to ignore all string after 2nd ';' or end the matcher and start from new row. but with the current code if there is anything after second column start with string getting stored in new name variable

[Updated on: Wed, 19 October 2022 02:30]

Report message to a moderator

Re: TMF (Xtext) [message #1855509 is a reply to message #1855507] Wed, 19 October 2022 06:05 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32937
Registered: July 2009
Senior Member
Best to ask on the Xtext forum:

Ed Merks
Professional Support:
Previous Topic:Can't install Eclipse
Next Topic:High CPU power after creating a C# project.
Goto Forum:

Current Time: Sun Sep 24 15:06:32 GMT 2023

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

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

Back to the top