Recursive Tree Transformation
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Andy_Wiens
Posted On:   Wednesday, November 5, 2003 11:27 AM

In my tree parser, I have the following:


! statement:

: #(NEG s:statement)

{ if(s.getType() == CON){

AST t = s.getFirstChild();

AST left = #([NEG],t);

			AST right = #([NEG],t.getNextSibling());
			

#statement = #([DIS],left,right);
}

;

: #(CON l:statement r:statement)

{ ....... }

;


Is there a way that I can make these alterations to the tree before the subtree is acted on by the recursive tree parser?

About | Sitemap | Contact