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

Jimi - Temporal Wave jimi at temporal-wave.com
Fri Sep 28 09:55:14 PDT 2007


Please use the wiki - you will find code posted there that does just what
you want.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Kevin J. Cummings
> Sent: Friday, September 28, 2007 9:11 AM
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] No case sesitive option in ANTLR 3 ??
> 
> 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)
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.488 / Virus Database: 269.13.33/1034 - Release Date:
> 9/27/2007 5:00 PM
> 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.13.33/1034 - Release Date: 9/27/2007
5:00 PM
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070928/96361fed/attachment.html 


More information about the antlr-interest mailing list