|
BoolStuff 0.1
|
Parser for a language of boolean expressions. More...
#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. | |
Parser for a language of boolean expressions.
The parse() method dynamically allocates a binary tree of nodes that represents the syntactic structure of a textual boolean expression.
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.7.3