On Jul 31, 2009, at 4:16 AM, Tommy Nordgren wrote:

> Hi all. I have the following rule in my tree to tree rewrite grammar.
> method_decl : ^(ATTRIBUTE type_decl ID .) -> ^(ATTRIBUTE type_decl  
> ID )
>       |       ^(METHOD returntype ID formal_parameter_list .) -> ^(METHOD
> returntype ID formal_parameter_list )
>       ;
>
> For some reason, the part of the input tree matched by '.'   remains
> in the output tree. How do I fix this?


        When experimenting some further, I found that the problem could be  
fixed by addin
rewrite = true                 to the options section.
-------------------------------------------
Engineers supporting greenpeace: Comparable to Afroamericans who wants  
to join the Ku Klux Klan
----------------------------------------
Tommy Nordgren
[email protected]




List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to