[antlr-interest] Possible bug in generated C# code
iooab23
sarandos.steve at pbgc.gov
Tue Dec 14 12:24:20 PST 2004
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:
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;
}
Is anyone familiar with these issues? Are there fixes available for
them?
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