[antlr-interest] Antlr 3 lexer issue

Ymo ymo.mail at gmail.com
Mon Mar 31 18:13:22 PDT 2008


Hi i am trying to add a rule in the lexer as such :

VOCAB :
   ('\3'..'\u00aa'|'\u00ac'..'\u00ba'|'\u00bc'..'\ufffe')
;


this is getting translated to :

   (LA13_0>=':' && LA13_0<='@')||
   (LA13_0>='[' && LA13_0<=']')||
   LA13_0=='`'||
   (LA13_0>='{' && LA13_0<='\u00AA')||
   (LA13_0>='\u00AC' && LA13_0<='\u00BA')||
   (LA13_0>='\u00BC' && LA13_0<='\u00BF')||
   LA13_0=='\u00D7'||
   LA13_0=='\u00F7'||
   (LA13_0>='\u2000' && LA13_0<='\u303F')||
   (LA13_0>='\u3190' && LA13_0<='\u32FF')||
   (LA13_0>='\u3380' && LA13_0<='\u33FF')||
   (LA13_0>='\u3D2E' && LA13_0<='\u4DFF')||
   (LA13_0>='\uA000' && LA13_0<='\uF8FF')||
   (LA13_0>='\uFB00' && LA13_0<='\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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080331/c8cebd8a/attachment.html 


More information about the antlr-interest mailing list