[antlr-interest] Antlr 3 lexer issue

Gavin Lambert antlr at mirality.co.nz
Mon Mar 31 23:31:33 PDT 2008


At 14:13 1/04/2008, Ymo wrote:
>Hi i am trying to add a rule in the lexer as such :
>
>VOCAB :
>    ('\3'..'\u00aa'|'\u00ac'..'\u00ba'|'\u00bc'..'\ufffe')
>;
[...]
>so my question is where did antlr got all those extra checks from 
>? Also this does not match an input that has '.' in it.Acording 
>to my rule it should match.

Most likely, you have other lexer rules further up that match the 
other characters, so they take precedence.



More information about the antlr-interest mailing list