[antlr-interest] case sensitivity for ANTLR v3 lexers

Terence Parr parrt at cs.usfca.edu
Tue May 16 10:02:21 PDT 2006


Soon we will need case insensitive lexing for v3.  I am hoping to  
leave the input stream stuff alone and just subclass Lexer as  
CaseInsensitiveLexer, which overrides match()
methods.  Then alter code gen for char set matching (because it's  
generated inline).

The tokens would have the unmolested input chars.

Does this sound right?

Ter



More information about the antlr-interest mailing list