Dumps an AST tree.
More...
#include <AstNode.hpp>
erpcgen::AstPrinter::AstPrinter |
( |
AstNode * |
root | ) |
|
|
inlineexplicit |
This function is constructor of AstPrinter class.
This function set root node to given node and depth to 0.
- Parameters
-
[in] | root | Pointer to root node. |
void erpcgen::AstPrinter::dispatch |
( |
| ) |
|
|
inline |
This function call for dispatch function.
This function call for dispatch with parameters root node and 0 number.
- See also
- void dispatch(AstNode * node, int childIndex=0)
void AstPrinter::dispatch |
( |
AstNode * |
node, |
|
|
int |
childIndex = 0 |
|
) |
| |
This function call for print AstNode tree information and dispatch children.
- Parameters
-
[in] | node | Node to print. |
[in] | childIndex | Child node index. |
- See also
- void dispatch()
-
void print()
void AstPrinter::print |
( |
AstNode * |
node, |
|
|
int |
childIndex = 0 |
|
) |
| |
This function print AstNode information.
- Parameters
-
[in] | node | Node to print. |
[in] | childIndex | Child node index. |
void AstPrinter::printIndent |
( |
int |
indent | ) |
const |
|
protected |
This function call for print indent.
- Parameters
-
[in] | indent | Number of spaces. |
int erpcgen::AstPrinter::m_depth |
|
protected |
std::stack<int> erpcgen::AstPrinter::m_depthStack |
|
protected |
AstNode* erpcgen::AstPrinter::m_root |
|
protected |
The documentation for this class was generated from the following files: