| NMToken Terminal [message #942245] |
Sat, 13 October 2012 05:53  |
Evangelos Haleplidis Messages: 3 Registered: October 2012 |
Junior Member |
|
|
Greetings,
I'm trying to define an NMToken Terminal for an Xtext 2.3 DSL.
I guess the correct definition is something like this:
terminal NMTOKEN:
('a'..'z' | 'A'..'Z' | '_' | '0'..'9' | '.' | '-' | ':')+;
However that rule has a problem when generating Xtext artifacts:
"The following token definitions can never be matched because prior tokens match the same input: RULE_INT"
And i guess it's true as an NMTOKEN may be an INT as well.
Is there a way to properly define an NMTOKEN terminal or any other way i can incorporate it into my DSL?
Thank you.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01690 seconds