[antlr-interest] (no subject)
Micheal J
open.zone at virgin.net
Thu Nov 16 09:23:16 PST 2006
Hi,
> I created my own AST node type, which extends the default
> CommonAST node type.
[...]
> When i check the generated code of the parser after compiling
> my grammar, i
> can't find where the parser sets the ASTFactory to make nodes
> of the type i
> created.
[...]
You should create your own custom ASTFactory that created nodes of your
custom AST node type.
Then, in your code, when you create the parser, configure it to use your
ASTFactory. You will need to do the same with any TreeParsers too.
Micheal
More information about the antlr-interest
mailing list