[antlr-interest] CommonAST derived class problem

Stanimir Stamenkov stanio at myrealbox.com
Wed Jul 26 04:13:20 PDT 2006


/Jose Ventura/:

>         Can't create AST Node parser.ext.NodoA
> 
>         this occurs in the next method of ASTFactory.java
> 
>  protected AST create(Class c) {
>         AST t = null;
>         try {
> *               t = (AST)c.newInstance(); // make a new one     <<====*
>              }
[...]

You obviously need to define a default no-arguments constructor for 
your AST subclass - have you done it already?

-- 
Stanimir


More information about the antlr-interest mailing list