BoolStuff 0.1

boolstuff::BoolExprParser Class Reference

Parser for a language of boolean expressions. More...

#include <BoolExprParser.h>

List of all members.

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.

Detailed Description

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.


Member Function Documentation

BoolExpr<std::string>* boolstuff::BoolExprParser::parse ( const std::string &  expr) throw (Error)

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.

Parameters:
exprtext of the boolean expression to parse
Returns:
the root of the created tree
Exceptions:
Errordescribes a parsing error

The documentation for this class was generated from the following file:

Generated for BoolStuff by doxygen 1.7.3