[antlr-interest] AST generation: EXPRESSION TREE example.
Monty Zukowski
monty at codetransform.com
Wed Jun 2 14:02:18 PDT 2004
On Jun 2, 2004, at 1:56 PM, Bharath Sundararaman wrote:
> I am aware that I'm dealing with heterogeneous ASTs. I have the
> required
> classes from the documentation (CalcAST, BinaryOperatorAST, INTNode,
> PLUSNode and MULTNode) and I tried
> "parser.setASTNodeClass(myPkg.CalcAST);"
> since setASTNodeType("myClassName") gave me a deprecation warning.
> CalcAST
> class extends antlr.baseAST and not antlr.CommonAST -- What's the
> difference? I tried both classes and the error remains.
>
Do you have "package myPkg;" in your CalcAST classes? Your error is
about java not being able to load the class properly because it can't
find it.
Monty Zukowski
ANTLR & Java Consultant -- http://www.codetransform.com
ANSI C/GCC transformation toolkit --
http://www.codetransform.com/gcc.html
Embrace the Decay -- http://www.codetransform.com/EmbraceDecay.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list