[antlr-interest] New Guy Question...

Douglas Godfrey douglasgodfrey at gmail.com
Mon Jun 6 12:40:32 PDT 2011


When you implement case insensitive keywords, you may still want case
sensitive identifiers.
If the input stream does case folding, you can't use case sensitive
identifiers.

On Sun, Jun 5, 2011 at 5:58 PM, Marco Hunsicker <devel at hunsicker.de> wrote:

> > You have to handle case insensitivity the hard way:
> >
> > fragment A
> >      :    'A' | 'a';
> >
> >[...]
>
> I don't think it's a necessity to do it this way. Actually, I think it
> would be better using a specialized input stream that does any necessary
> transformation. Your mileage may vary ;)
>
> Cheers,
>
> Marco
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>


More information about the antlr-interest mailing list