[antlr-interest] Generating AST other than CommonTree
Terence Parr
parrt at cs.usfca.edu
Tue Jul 31 16:42:18 PDT 2007
On Jul 31, 2007, at 4:20 PM, Joel Shellman wrote:
> I saw some hint that ANTLR can generate a tree of custom objects
> instead of CommonTree by creating a custom TreeAdapter. I have done
> that, but I see that in the generated parser code, it includes
> CommonTree, so I get ClassCastExceptions. Is there some way around
> this?
Generated code will be using Object as a type. That CommoTree must
be coming from an action or something. ANTLR only assumes Object.
Ter
More information about the antlr-interest
mailing list