[antlr-interest] Tree translation

Alexey Demakov demakov at ispras.ru
Fri May 13 08:03:27 PDT 2005


Clean & rebuild all your code,

Regards,
Alexey

-----
Alexey Demakov
TreeDL: Tree Description Language: http://treedl.sourceforge.net
RedVerst Group: http://www.unitesk.com


----- Original Message ----- 
From: "Serafettin Senturk" <serafettin_sentuerk at intergral.com>
To: <antlr-interest at antlr.org>
Sent: Friday, May 13, 2005 6:56 PM
Subject: [antlr-interest] Tree translation


> 
>  Hello,
> 
>  In my tree parser, i simply want to change the "function" keywords in my
> source AST to the "method" keyword in my target AST.
> 
>  For that, I have written the following code in my tree parser :
> 
>  func_def!
> : #("function" id:IDENT id2:((elist)?) id3:stat) { #func_def = #("method",
> id, id2, id3); }
> 
> ;
> 
>  But it does not work, it complains like that :
> 
>  java.lang.Error: Unresolved compilation problem:
> The method add(AST) in the type ASTArray is not applicable for the
> arguments (String)
> 
>  I don't know how to resolve this problem. Is there anyone who can know the
> answer to this problem?
> 
>  Regards,
>  Serafettin
> 
> 
> 
> 



More information about the antlr-interest mailing list