C-Breeze
C Compiler Infrastructure

[ Project home page]
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

walker.h File Reference

Go to the source code of this file.

Compounds

class  Walker
 A functional class to traverse an AST, and perform some function at each of its Nodes. More...


Functions

template<class T> void list_walker (list< T > &l, Walker &the_walker)
 Invoke a given walker on every element of a list.


Function Documentation

template<class T>
void list_walker list< T > &    l,
Walker   the_walker
 

Invoke a given walker on every element of a list.

Parameters:
the_walker The walker which should be invoked on every element of the list.
l The list on which to invoke the Walker. This list should contain only Nodes or subclasses of Node.

Definition at line 409 of file walker.h.

Referenced by unitNode::walk(), threeAddrNode::walk(), suespecNode::walk(), subdeclNode::walk(), procNode::walk(), operandNode::walk(), initializerNode::walk(), funcNode::walk(), declNode::walk(), commaNode::walk(), callNode::walk(), blockNode::walk(), and basicblockNode::walk().


Generated on August 27, 2003
Back to the C-Breeze home page