[antlr-interest] Re: suggestions for 2.7.2

stdiobe stdiobe at enneya.com
Thu Jan 3 23:50:23 PST 2002


--- In antlr-interest at y..., bob mcwhirter <bob at w...> wrote:
> > * it would be nice if antlr would generate a _nextToken() 
> > function instead of nextToken(). The default implementation 
> > of nextToken() would just call _nextToken(), but I would 
> > have the possibility of redefining the nextToken() function.
> 
> You can subclass the generated lexer and override nextToken()
> yourself, calling super.nextToken() to pass along the love.

Bob, you're right, but having only one lexer definition to
maintain is easier than having to maintain two lexer definitions
(and we have to maintain several parsers and even more lexers, 
so such simple things become an issue. p.s. we're also using
DOM4J to build the AST's!).

Stdiobe



 

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



More information about the antlr-interest mailing list