[antlr-interest] Lexer matching non-matching rule
Michael
micha-1 at fantasymail.de
Fri May 15 06:09:24 PDT 2009
Am Friday 15 May 2009 14:03:16 schrieb Jesper Larsson:
>
> URL: ('a'..'z') ('a'..'z' | '0'..'9' | '+' | '-' | '.')* ':'
> ~('\f' | '\n' | '\r' | '\t' | ' ')*;
if you leave out the dot in the URL rule it works as it should.
If the dot is there the IDENT rule is not called but the URL rule is called
which raises an exception since the colon is missing.
No idea why .
cheers
Michael
More information about the antlr-interest
mailing list