|
Bond 0.9
C++ Bond Runtime Library API Documentation
|
A printer for Bond parse trees. More...
#include <bond/tools/parsetreeprinter.h>
Public Member Functions | |
| void | Print (const ParseNode *parseNode, OutputStream &stream) |
| Prints a parse tree rooted at a single parse node. | |
| void | PrintList (const ListParseNode *listNode, OutputStream &stream) |
| Prints a parse tree represented as a list of parse nodes. | |
A printer for Bond parse trees.
ParseTreePrinter writes a structural representation of parsed Bond source code to an OutputStream.
| void Bond::ParseTreePrinter::Print | ( | const ParseNode * | parseNode, |
| OutputStream & | stream ) |
Prints a parse tree rooted at a single parse node.
| parseNode | Root parse node to print. |
| stream | Output stream receiving the parse tree text. |
| void Bond::ParseTreePrinter::PrintList | ( | const ListParseNode * | listNode, |
| OutputStream & | stream ) |
Prints a parse tree represented as a list of parse nodes.
| listNode | Head of the parse node list to print. |
| stream | Output stream receiving the parse tree text. |