[antlr-interest] No case sesitive option in ANTLR 3 ??

Kevin J. Cummings cummings at kjchome.homeip.net
Fri Sep 28 09:10:48 PDT 2007


aljer ammar wrote:
> Hi everybody,
> I wrote my grammar in ANTLR. I was supprised to find that there is no
> SensitiveCase Options as in version 2.7 . I tried to creat 2 alternative
> for each token in the lexer like this :
> 
> ATOKEN : ATOKEN
>                  |  atoken
>                  ;
> 
> this gave me an error of memory size.
> 
> hve u any soluation?

Sorry, no solution, but true case insensitivity is going to take many
more than just 2 cases per token (directly depends on the length of each
token), and is truly immense when you have identifiers that need to be
case insensitive....

-- 
Kevin J. Cummings
kjchome at rcn.com
cummings at kjchome.homeip.net
cummings at kjc386.framingham.ma.us
Registered Linux User #1232 (http://counter.li.org)


More information about the antlr-interest mailing list