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 <[email protected]> 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
>

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to