[antlr-interest] Re: Possible bug in generated C# code

Sarandos Steve sarandos.steve at pbgc.gov
Wed Dec 15 04:50:37 PST 2004


Attached is the ported code including the grammars that have the
"_saveIndex" problem.  I fixed the code by hand so you'll need to
regenerate to see the problem.  The lexers produced by group.g,
angle.bracket.template.g, template.g and action.g all show the problem.

-----Original Message-----
From: micheal_jor [mailto:open.zone at virgin.net] 
Sent: Tuesday, December 14, 2004 7:01 PM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Re: Possible bug in generated C# code




--- In antlr-interest at yahoogroups.com, "iooab23" <sarandos.steve at p...>
wrote:
> 
> 
> I was attempting to port StringTemplate 2.0 to C# and I am running
> into some problems with the C# code generated by ANTLR 2.7.4.
> 
> Issue #1:  The _saveIndex variable created in the lexers is being
> declared multiple times in a single function.  The C# compiler 
> complains that the variable already exists.
> 
> Issue #2:  The constructor for the ActionParser is being generated
> incorrectly.  ANTLR generates:

<SNIP>

> Is anyone familiar with these issues?  Are there fixes available for
> them?

Hi Steve,

Thanks for the report. Can you send a grammar that triggers/demonstrates
these issues please?. It would help if we hope to resolve this issue
before a 2.7.5 release. 

We're working on StringTemplate but waiting for the 2.1 code from Ter.

Cheers,

Micheal
ANTLR/C#






 
Yahoo! Groups Links



 













 
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/
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StringTemplate.zip
Type: application/x-zip-compressed
Size: 184194 bytes
Desc: StringTemplate.zip
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20041215/90bdd405/StringTemplate.bin


More information about the antlr-interest mailing list