[antlr-interest] lexing: case insensitivity
kroepke at classdump.org
Mon Aug 20 01:31:16 PDT 2007
On Aug 20, 2007, at 10:09 AM, Edwards, Waverly wrote:
> In ANTLR Is it possible to manage the file stream *before* the lexer
> handles it?
That's probably not your best option, since you actually lose the
case (for pretty printing/error messages etc).
For the C target what Jim has done was to modify the input stream to
uppercase characters so that ANTLR is tricked into thinking
everything was uppercase,
even though the actual input wasn't.
He provided <http://www.antlr.org/pipermail/antlr-interest/2007-
in the discussion. Take a look :)
More information about the antlr-interest