[antlr-interest] Fixing a Tree -> Tree transformation problem

Tommy Nordgren tommy.nordgren at comhem.se
Thu Jul 30 19:16:31 PDT 2009


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?
-----------------------------------
See the amazing new SF reel: Invasion of the man eating cucumbers from  
outer space.
On congratulations for a fantastic parody, the producer replies :  
"What parody?"

Tommy Nordgren
tommy.nordgren at comhem.se





More information about the antlr-interest mailing list