terminal ID is not accepting only upper case letters [message #1470591] |
Wed, 12 November 2014 08:15  |
Eclipse User |
|
|
|
In org.eclipse.xtext.xbase.Xtype.xtext the terminal ID is defined by
terminal ID:
'^'? ('a'..'z'|'A'..'Z'|'$'|'_') ('a'..'z'|'A'..'Z'|'$'|'_'|'0'..'9')*;
According to the Xtext Documentation:
Quote:It says that a token ID starts with an optional '^' character (caret), followed by a letter ('a'..'z'|'A'..'Z') or underscore '_' followed by any number of letters, underscores and numbers ('0'..'9').
So far, so good.
But if I want to use "ATX" as ID I got the error "mismatched input 'ATX' expecting RULE_ID". With 'B2' the same. But 'Atx' is fine.
My corresponding rule is:
Entity:
'entity' name=ID '{'...'}'
Can anybody please explain me what I'm doing wrong?
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04005 seconds