#include <BALL/KERNEL/expressionParser.h>
Classes | |
struct | State |
class | SyntaxTree |
Public Member Functions | |
Constructors and Destructors | |
ExpressionParser () | |
ExpressionParser (const ExpressionParser &parser) | |
~ExpressionParser () | |
Parsing | |
void | parse (const String &s) throw (Exception::ParseError) |
const SyntaxTree & | getSyntaxTree () const throw (Exception::NullPointer) |
Static Public Attributes | |
static State | state |
Protected Attributes | |
SyntaxTree * | syntax_tree_ |
Static Protected Attributes | |
static ExpressionParser * | current_parser_ |
Expression Parser. A simple parser for BALL kernel expressions. It reads a string and constructs a syntax tree from the boolean expressions contained therein.
BALL::ExpressionParser::ExpressionParser | ( | ) |
BALL::ExpressionParser::ExpressionParser | ( | const ExpressionParser & | parser | ) |
BALL::ExpressionParser::~ExpressionParser | ( | ) |
const SyntaxTree& BALL::ExpressionParser::getSyntaxTree | ( | ) | const throw (Exception::NullPointer) |
Return the parsed system
void BALL::ExpressionParser::parse | ( | const String & | s | ) | throw (Exception::ParseError) |
Parse an expression.
ExpressionParser* BALL::ExpressionParser::current_parser_ [static, protected] |
State BALL::ExpressionParser::state [static] |
SyntaxTree* BALL::ExpressionParser::syntax_tree_ [protected] |