[antlr-interest] is there anyway turn on or off (ignore case|case insensitive) ?
Kevin Chen
bestgembler at hotmail.com
Tue May 19 20:37:27 PDT 2009
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
_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090520/fa6944a2/attachment.html
More information about the antlr-interest
mailing list