[antlr-interest] DoubleLinkedTree

Terence Parr parrt at cs.usfca.edu
Tue Feb 20 11:52:17 PST 2007


Where does it get the exception?  Is it for the UP and DOWN nodes?
Ter
On Feb 20, 2007, at 2:50 AM, Alexander Gängel wrote:

> Can Somebody give me a hint how to use DoubleLinkTrees.
>
> I tried it this way:
>
> I have
> ASTLabelType=MyAst; in my V3 Grammar
>
> I created a Class MyAst extends DoubleLinkTree
>
> I Implemented the Abstract functions from BaseTree like in CommonTree
>
> but when I try to use the Grammar I get Exception in thread "main"
> java.lang.ClassCastException: org.antlr.runtime.tree.CommonTree
>
> Alexander
>



More information about the antlr-interest mailing list