[antlr-interest] Bug in C# codegen: initializeASTFactory

Daniel Gackle gackle at shaw.ca
Mon Jan 13 23:51:18 PST 2003


The initializeASTFactory in my generated parser appears to have a bug.
Simplified, the method looks like this:

protected internal void initializeASTFactory( ASTFactory factory )
{
	factory.setMaxNodeType(219);
	astFactory.registerFactory(MYTYPE, "MyTypeOfNode");
	// ... followed by a bunch of other calls to registerFactory
}

The method signature, and the first line, clearly suggest that it is the
parameter "factory" that is to be initialized.  But the bulk of the method
initializes the member variable "astFactory" instead.

Regards,
Daniel





 

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



More information about the antlr-interest mailing list