[antlr-interest] Why does ASTFactory.create(Token tok) creates
new token instead of using token passed as a parameter
Martin Probst
mail at martin-probst.com
Mon Mar 20 11:07:48 PST 2006
> In method create(Token tok) it creates a new token and then just copies
> (via initialize() method) values from the token that is passes as a
> parameter.
Are you sure? I don't have the code here right now, but I think
create(Token) returns an AST node, not a Token, and then initialises it
using the token.
Martin
More information about the antlr-interest
mailing list