Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How does the until rule works ?(I can not find it in the documentation any more.)
How does the until rule works ? [message #1743608] Fri, 16 September 2016 22:17 Go to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
I want to use the until rule of Xtext.
I defined a rule like this:
Text:
   '#' -> '#'
;

But it does not work.
After the first '#' I get "mismatched input '...' expecting '#'".
What I am doing wrong ?
Re: How does the until rule works ? [message #1743611 is a reply to message #1743608] Sat, 17 September 2016 06:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13888
Registered: July 2009
Senior Member
Can you please give a little more of context

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How does the until rule works ? [message #1743612 is a reply to message #1743611] Sat, 17 September 2016 06:20 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13888
Registered: July 2009
Senior Member
(Inside a parser rule -> is a syntactic predicate

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How does the until rule works ? [message #1743637 is a reply to message #1743612] Sat, 17 September 2016 13:05 Go to previous message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
Thank you that was the right hint, I need to use a terminal rule instead.
Previous Topic:Accessing java annotations using Xtext/XBase
Next Topic:appendArguments(..) generating comments instead of content
Goto Forum:
  


Current Time: Thu Apr 22 03:47:53 GMT 2021

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

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

Back to the top