#include <TreeParser.hpp>
◆ TreeParser() [1/3]
TreeParser::TreeParser |
( |
| ) |
|
|
inline |
◆ TreeParser() [2/3]
◆ ~TreeParser()
virtual TreeParser::~TreeParser |
( |
| ) |
|
|
inlinevirtual |
◆ TreeParser() [3/3]
◆ getAST()
Get the AST return value squirreled away in the parser.
◆ getASTFactory()
◆ getNumTokens()
Return the number of tokens defined.
◆ getTokenName()
Get the name for token 'num'.
◆ getTokenNames()
◆ match() [1/2]
Make sure current lookahead symbol matches the given set Throw an exception upon mismatch, which is caught by either the error handler or by a syntactic predicate.
◆ match() [2/2]
◆ matchNot()
◆ operator=()
◆ reportError() [1/2]
Parser error-reporting function can be overridden in subclass.
Parser error-reporting function can be overridden in subclass
◆ reportError() [2/2]
Parser error-reporting function can be overridden in subclass.
Parser error-reporting function can be overridden in subclass
◆ reportWarning()
Parser warning-reporting function can be overridden in subclass.
Parser warning-reporting function can be overridden in subclass
◆ setASTFactory()
Specify the AST factory to be used during tree building. (Compulsory) Setting the factory is compulsory (if you intend to modify the tree in the treeparser). The AST Factory is shared between parser (who builds the initial AST) and treeparser.
- See also
- Parser::getASTFactory()
◆ traceIn()
◆ traceIndent()
void TreeParser::traceIndent |
( |
| ) |
|
|
virtual |
These are used during when traceTreeParser commandline option is passed.
Procedure to write out an indent for traceIn and traceOut
◆ traceOut()
◆ astFactory
AST support code; parser and treeparser delegate to this object
◆ ASTNULL
The AST Null object; the parsing cursor is set to this when it is found to be null. This way, we can test the token type of a node without having to have tests for 0 everywhere.
The AST Null object; the parsing cursor is set to this when it is found to be null. This way, we can test the token type of a node without having to have tests for null everywhere.
◆ inputState
The input state of this tree parser.
◆ traceDepth
int TreeParser::traceDepth |
|
protected |
Used to keep track of indent depth with -traceTreeParser
The documentation for this class was generated from the following files: