[antlr-interest] Re: antlr 2.7.3 released!

micheal_jor open.zone at virgin.net
Tue Mar 23 10:14:18 PST 2004


--- In antlr-interest at yahoogroups.com, "Jim Irwin" <jimirwin at h...> wrote:
> --- Terence Parr <parrt at c...> wrote:
> > 2.7.3 final version just went live!  [...] Let me 
> > know if there is any trouble with the distribution...
> 
> There was a C# bug previously reported that doesn't appear to have 
> been fixed in this release.  The C# runtime ignores the 
> caseSensitiveLiterals option.

How are you testing this?. A repro-grammar would be appreciated.

> The earlier report suggested one fix.  Here is another simple fix 
> that works:
> 
> antlr\CharScanner.cs:
> public virtual int testLiteralsTable(int ttype)
> {
>    try
>    {
>       int literalsIndex;
>       if (caseSensitiveLiterals)
>          literalsIndex = (int) literals[text.ToString()];
>       else
>          literalsIndex = (int) literals[text.ToString().ToLower()];
>       ttype = literalsIndex;
>       return ttype;
>    }
>    catch
>    {
>       return ttype;
>    }  		
> }

The library already has a fix built-in. I'd be very helpful to have a
grammar that triggers the incorrect behaviour that you are reporting.

Cheers,

Micheal




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list