boolstuff::BoolExprParser Class Reference

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

#include <BoolExprParser.h>

List of all members.

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.

Classes

class  Error
 Error descriptor. More...


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.


Constructor & Destructor Documentation

boolstuff::BoolExprParser::BoolExprParser (  ) 

Initializes the parser.

boolstuff::BoolExprParser::~BoolExprParser (  ) 

Destroys the parser and frees the associated resources.


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:
expr text of the boolean expression to parse
Returns:
the root of the created tree
Exceptions:
Error describes a parsing error


The documentation for this class was generated from the following file:
Generated on Wed May 9 20:16:56 2007 for BoolStuff by  doxygen 1.5.2