[antlr-interest] ClassCastException in Custom CommonTree
AZIZ NANTHAAMORNPHONG
aziz.nantha at gmail.com
Thu Apr 22 23:06:19 PDT 2010
Hi,
I have created tree grammar and I have following
ASTLabelType=MyAst;
I created a Class MyAst extends CommonTree.
And I also uses this following in the main method:
*final* TreeAdaptor adaptor = *new* CommonTreeAdaptor(){
*public* Object create(Token payload){
*return* *new* MyAst(payload);
}
However, I found the ClassCastException when encountered to the *UP node*.
How solve this problem?
Thank,
Z.
More information about the antlr-interest
mailing list