There is. Please read the documentation otherwise there is little point in me 
writing it ;-)

Jim

> -----Original Message-----
> From: [email protected] [mailto:antlr-interest-
> [email protected]] On Behalf Of Indhu Bharathi
> Sent: Tuesday, October 13, 2009 4:28 PM
> To: Þðóøêèí Ìèõàèë; [email protected]
> Subject: Re: [antlr-interest] caseSensitive = false in C taget ??
> 
> AFAIK, there is no shortcut.
> 
> You will have to write something like
> 
> HELLO :       ( ('H'|'h') ('E'|'e') ('L'|'l') ('L'|'l') ('O'|'o') )
>       ;
> 
> 
> You can make it more readable using fragments.
> 
> HELLO : H E L L O
> 
> fragment H: ('H'|'h')
> 
> fragment E: ('E'|'e')
> 
> fragment L: ('L'|'l')
> 
> fragment O: ('O'|'o')
> 
> 
> If you don't care about case in the complete text, you can consider
> creating
> your own Stream subclassing StringStream or write a wrapper on top of
> it and
> emit all characters in lower case. Then you parser needs to handle only
> lower case.
> 
> Cheers, Indhu
> 
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of ??????? ??????
> Sent: Tuesday, October 13, 2009 4:07 PM
> To: [email protected]
> Subject: [antlr-interest] caseSensitive = false in C taget ??
> 
> this option doesn't work. But i want to use it... what can i do?
> 
> 
> --
> Best regards,
> Michael
> 
> 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




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