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

micheal_jor open.zone at virgin.net
Tue Dec 14 18:02:26 PST 2004



--- In antlr-interest at yahoogroups.com, "iooab23" <sarandos.steve at p...>
wrote:

OK, some update from Kunle on the second issue reported.

> Issue #2:  The constructor for the ActionParser is being generated 
> incorrectly.  ANTLR generates:
> 
> public ActionParser(TokenStream lexer, StringTemplate self) {
>     this(lexer, 2);
>     this.self = self;
> }
> 
> should be:
> 
> public ActionParser(TokenStream lexer, StringTemplate self) : this
> (lexer, 2) {    
>     this.self = self;
> }

This isn't a bug (or indeed an issue) with C# code generation. The
code above was manually embedded in StringTemplate's action.g grammar
file. Embedded code blocks are simply copied to the output with no
further processing.

Cheers,

Micheal
ANTLR/C#






 
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