[antlr-interest] Tree translation
Serafettin Senturk
serafettin_sentuerk at intergral.com
Fri May 13 07:56:29 PDT 2005
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