Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » greedy option in xtext
icon5.gif  greedy option in xtext [message #876277] Thu, 24 May 2012 09:41 Go to next message
dav dav is currently offline dav davFriend
Messages: 5
Registered: May 2012
Junior Member
Hi,

I have something like this:

terminal COMMENT: REMARK ({options{greedy=false;}: .)* NEWLINE ;

I get 'greedy cannot be resolved to a rule' error, can someone tell what am I doing wrong ?

Thanks
Re: greedy option in xtext [message #876505 is a reply to message #876277] Thu, 24 May 2012 18:33 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

Xtext does not allow to add such antlr stuff into the grammar.
what is the reason you need that at all:

terminal SL_COMMENT 	: '//' !('\n'|'\r')* ('\r'? '\n')?;


btw it is possible to use an external lexer in xtext (google is your friend)
~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Xtend, rich strings and SEPARATOR option
Next Topic:Expand Outline View on startup
Goto Forum:
  


Current Time: Thu Apr 25 04:42:57 GMT 2024

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

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

Back to the top