Puma Reference Manual | Puma::CSemVisitor Class Reference |
#include <CSemVisitor.h>
Public Member Functions | |
CSemVisitor (ErrorSink &, CStructure *=(CStructure *) 0) | |
void | run (CTree *, CStructure *=(CStructure *) 0) |
void | configure (Config &) |
CTypeInfo * | resolveExpr (CTree *, CTree *) const |
void | resolveInit (CObjectInfo *info, CTree *, CTree *) const |
Protected Attributes | |
CStructure * | current_scope |
ErrorSink & | err |
Additional Inherited Members | |
![]() | |
CVisitor () | |
Constructor. More... | |
virtual | ~CVisitor () |
Destructor. More... | |
void | abort (bool v=true) |
Set the aborted state. More... | |
void | prune (bool v=true) |
Set the pruned state (don't visit the sub-tree). More... | |
bool | aborted () const |
Check if the node visiting is aborted. More... | |
bool | pruned () const |
Check if the visiting the sub-tree is aborted. More... | |
void | visit (CTree *node) |
Visit the given syntax tree node. More... | |
Puma::CSemVisitor::CSemVisitor | ( | ErrorSink & | , |
CStructure * | = (CStructure *) 0 |
||
) |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Apply actions after the given node is visited.
To be implemented by derived visitors.
node | The node to visit. |
Reimplemented from Puma::CVisitor.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Apply actions before the given node is visited.
To be implemented by derived visitors.
node | The node to visit. |
Reimplemented from Puma::CVisitor.
void Puma::CSemVisitor::resolveInit | ( | CObjectInfo * | info, |
CTree * | , | ||
CTree * | |||
) | const |
void Puma::CSemVisitor::run | ( | CTree * | , |
CStructure * | = (CStructure *) 0 |
||
) |
|
protected |
|
protected |