[antlr-interest] No case sesitive option in ANTLR 3 ??
    Vaclav Barta 
    vbar at comp.cz
       
    Fri Sep 28 09:22:28 PDT 2007
    
    
  
Kevin J. Cummings wrote:
> 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....
There are solutions in the list archives - basically canonicalizing
case before the lexer sees it, in the token stream...
	Bye
		Vasek
    
    
More information about the antlr-interest
mailing list