![]() |
PUMA Library Reference Manual
|
#include <Puma/CPrintVisitor.h>
Inheritance diagram for Puma::CPrintVisitor:Tree visitor for printing the C/C++ syntax tree.
Prints the indented tree structure supplemented with type information, calculated constant values, implicit casts, and resolved function calls.
Public Member Functions | |
| CPrintVisitor () | |
| Constructor. | |
| ~CPrintVisitor () | |
| Destructor. | |
| void | configure (Config &config) |
| Configure the visitor. | |
| void | print (CTree *tree, std::ostream &os) |
| Start printing the given tree on the given output stream. | |
| void | setPrintLoc (bool enable, int len=20) |
| Set printing the token location. | |
| Puma::CPrintVisitor::CPrintVisitor | ( | ) |
Constructor.
| Puma::CPrintVisitor::~CPrintVisitor | ( | ) |
Destructor.
| void Puma::CPrintVisitor::configure | ( | Config & | config | ) |
Configure the visitor.
| config | The configuration options. |
| void Puma::CPrintVisitor::print | ( | CTree * | tree, |
| std::ostream & | os ) |
Start printing the given tree on the given output stream.
| tree | The syntax tree to print. |
| os | The output stream. |
| void Puma::CPrintVisitor::setPrintLoc | ( | bool | enable, |
| int | len = 20 ) |
Set printing the token location.
| enable | Enable/disable printing the location. |
| len | The length of the location prefix. |