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.

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to