[antlr-interest] antlr3 lexer: recognize single character token
    Verny Quartara 
    webny23 at gmail.com
       
    Wed Jun  6 07:14:06 PDT 2012
    
    
  
Hi everybody,
can someone explain why if I define a lexer rule like this:
A : 'A';
The lexer recognize "A" as valid, but also "A" followed by any character,
for example "Azzz" or "AK" are considered valid tokens??
This is driving me crazy, I red the documentation but at the moment I just
can't understand.
Thanks
-- 
Verny Quartara
    
    
More information about the antlr-interest
mailing list