#include <BoolExprParser.h>
Classes | |
| class | Error |
| Error descriptor. More... | |
Public Member Functions | |
| BoolExprParser () | |
| Initializes the parser. | |
| ~BoolExprParser () | |
| Destroys the parser and frees the associated resources. | |
| BoolExpr< std::string > * | parse (const std::string &expr) throw (Error) |
| Parses a textual boolean expression and creates a binary syntax tree. | |
The parse() method dynamically allocates a binary tree of nodes that represents the syntactic structure of a textual boolean expression.
| boolstuff::BoolExprParser::BoolExprParser | ( | ) |
Initializes the parser.
| boolstuff::BoolExprParser::~BoolExprParser | ( | ) |
Destroys the parser and frees the associated resources.
Parses a textual boolean expression and creates a binary syntax tree.
Dynamically allocates a tree of nodes that represents the syntactic structure of 'expr'. The returned tree must eventually be destroyed with operator delete.
| expr | text of the boolean expression to parse |
| Error | describes a parsing error |
1.5.9