|Re: first and last character truncated in STRING terminals [message #960514 is a reply to message #959384]
||Sat, 27 October 2012 14:50
| Sebastian Zarnekow
Registered: July 2009
Please refer to the section on terminal rules in the documentation. Your |
STRING rule will basicly consume everything like ID and INTs since it is
defined with a higher priority (because the others are inherited).
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 26.10.12 19:24, schrieb Kokongi Nei:
> I am attempting to do the same thing--have a grammar that supports
> unquoted STRINGs. As the first step, I am overriding the terminal
> STRING as you did:
> terminal STRING : ('.'|'+'|'('|')'|'a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
> But, when I run the MWE2 Workflow, I get this error:
> The following token definitions can never be matched because prior
> tokens match the same input: RULE_INT
> I assume you had the same problem, and if so, what did you do?
Powered by FUDForum
. Page generated in 0.02098 seconds