[antlr-interest] a range as single token?
fikin
nikolai.fiikov at gmail.com
Sat Jan 15 02:43:07 PST 2011
most likely this is obviously stupid question, pardon me in advance please.
what exactly is wrong with this grammar?
lines : line (NEWLINE line)*;
line : '\u0020'..'\u007F'*;
NEWLINE : '\r'? '\n';
...
[12:40:17] warning(200): dd.g:4:9: Decision can match input such as
"EOF" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
...
[12:40:17] Interpreting...
[12:40:17] problem matching token at 1:1
NoViableAltException('1'@[1:1: Tokens : ( T__5 | T__6 | NEWLINE );])
...
More information about the antlr-interest
mailing list