[antlr-interest] CommonAST derived class problem

Jose Ventura jose.ventura.roda at gmail.com
Wed Jul 26 04:25:45 PDT 2006


Ok, Stanimir. I thought I was tested it, but not. Run ok.

Thank's.
José Ventura.


On 7/26/06, Stanimir Stamenkov <stanio at myrealbox.com> wrote:
>
> /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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060726/097392ab/attachment.html


More information about the antlr-interest mailing list