[antlr-interest] is there anyway turn on or off (ignore case|case insensitive) ?

Kevin Chen bestgembler at hotmail.com
Tue May 19 20:51:24 PDT 2009


I mean just tokens.

>>>But,if it's a token,how?
>>>
>>>for example:
>>>
>>>tokens {
>>>    TOK_SELECT = 'select';
>>>    TOK_FROM = 'from';
>>>    ...
>>>    ...
>>>}
>>>
>>>
>>>





  


>>Kevin Chen wrote:

  >>is there anyway turn on or off (ignore case|case insensitive)
in whole grammar?

>>or just in tokens { ... }?

>>or just in rules ?


>See:

>

>http://www.antlr.org/wiki/pages/viewpage.action?pageId=1782

>

>You specify your keywords in UPPER case only, then they will match case
insensitively with the enhanced file stream >listed at that page. The
case of the tokens is preserved in the input.

>

>Jim

check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox.
 More than messages
_________________________________________________________________
Windows Live™: Keep your life in sync. Check it out!
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090520/23545651/attachment.html 


More information about the antlr-interest mailing list