[antlr-interest] lexing: case insensitivity
Kay Roepke
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
character's
case (for pretty printing/error messages etc).
For the C target what Jim has done was to modify the input stream to
always return
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-
January/019008.html>
in the discussion. Take a look :)
cheers,
-k
--
Kay Röpke
http://classdump.org/
More information about the antlr-interest
mailing list