[antlr-interest] Problem with wrapper program

Amrinder Singh asingh05 at vt.edu
Fri Jul 7 07:19:26 PDT 2006


Hello,

I was trying to develop a parser based on the Mantra design. I wrote a wrapper 
program similar to Tool.java to run the parser. When I try to run a sample 
input on it, it gives a ClassCastException when a tree is constructed on the 
line root_0 = (MyAST) adaptor.nil();
However, Mantra does not encounter this error even though it has the same line 
in its code. Any idea what could be causing it? If required I could send my 
grammar file.

Amrinder




More information about the antlr-interest mailing list