[antlr-interest] ANTLR3 C# InvariantCultureIgnoreCase

Fabio Maulo fabiomaulo at gmail.com
Wed May 9 21:25:43 PDT 2007


Dr. Hartmut Kocher escribió:
> Here is a solution for C#
The CaseInsensitiveStringStream work even if I need *caseSensitive* Idents ?

Ident: Letter (Letter|'0'..'9')*;

I mean...
I need that a token like ORDER='order' must match with :
Order, oRder, oRdER ... and so on
But the a word like AnIdentifier must be different than anIdentifier.

In my lenguage keyWords are CaseInsensitive but identifiers are 
CaseSensitive.

Fabio.



More information about the antlr-interest mailing list