[antlr-interest] Own Tree Class
Filip Habr
habr.filip at seznam.cz
Mon Feb 14 09:50:47 PST 2011
Hello, can you help me somebody? I wrote ExpressionParser in ANTLR, which parse
math expression to a tree. I was using CommonTree class as a target. Now I need
to create my own tree class, because I have to create additional methods. Is
there any way to create own tree class, which could be used by ANTLR grammar as
a target tree class.
options {
language=CSharp2;
output=AST;
ASTLabelType=MY_OWN_CLASS;
}
Best help for me would be an advice, how to write class like CommonTree, because
the code of CommonTree methods is not visible of course. Every class, i have
written doesn't work. Thanks a lot!!!!
More information about the antlr-interest
mailing list