[antlr-interest] case sensitivity for ANTLR v3 lexers
Andy Tripp
antlr at jazillian.com
Fri Aug 3 08:55:13 PDT 2007
So there was this thread back in May about supporting case sensitivity
in antlrV3.
Is there any support yet?
If not, has anyone managed to write a CaseInsensitiveLexer?
And barring that, is it actually just as simple as changing this one
line in BaseRecognizer from this:
if ( input.LA(1)==ttype ) {
...to this...
if (Character.toUpperCase(input.LA(1)) ==
Character.toUpperCase(ttype)) {
Andy
More information about the antlr-interest
mailing list