Lines Matching defs:tree
1 /* Abstract syntax tree manipulation functions
41 /* ensure that tree manipulation variables are current after a rule
88 ASTBase *tree = this;
90 while ( tree!= NULL )
92 if ( tree->_down != NULL ) {
93 tree->preorder_before_action(pData); // MR1
95 tree->preorder_action(pData);
96 if ( tree->_down!=NULL )
98 tree->_down->preorder(pData);
99 tree->preorder_after_action(pData); // MR1
101 tree = tree->_right;
105 /* free all AST nodes in tree; apply func to each before freeing */
109 ASTBase* tree = this;
110 while (tree) {
111 if (tree->_down) tree->_down->destroy();
113 ASTBase* cur = tree;
114 tree = tree->_right;
119 /* build a tree (root child1 child2 ... NULL)
125 * in the tree ( NULL A B C D ).
159 /* tree duplicate */
184 /* tree duplicate */