|NMToken Terminal [message #942245]
||Sat, 13 October 2012 05:53
| Evangelos Haleplidis
Registered: October 2012
I'm trying to define an NMToken Terminal for an Xtext 2.3 DSL.
I guess the correct definition is something like this:
('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?
Powered by FUDForum
. Page generated in 0.07041 seconds