[antlr-interest] can't override nextToken in c# version

netminka netminka at netscape.net
Thu Oct 9 16:00:22 PDT 2003


hi all,
the generated nextToken() is defined as
   public new Token nextToken()
in the generated lexer class. 

I have used the generated lexer class as a base class to my lexer,
and as I need to override nextToken(), I have to hand edit
the generated lexer file after each run of antlr.Tool.

I think the signature of the generated nextToken() should be:

public virtual Token nextToken()

thanks!!
Megan Adams 





 

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




More information about the antlr-interest mailing list