next up previous
Next: The Basics Up: Phases Previous: A Small Example

Access to C-Breeze Structures

During a phase, you will want to have access to the ASTs of the translation units. These are available through the CBZ class. This class has several public and static members you can refer to directly. The one we are most interested in is CBZ::Program. This is an STL list of the C-Breeze representation for the translation units. Typically, you traverse this list, applying your analyses or transformations to each unit.



Calvin Lin
2002-01-31