BALL
1.4.2
|
#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) |
const SyntaxTree & | getSyntaxTree () const |
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.
Definition at line 22 of file expressionParser.h.
BALL::ExpressionParser::ExpressionParser | ( | ) |
BALL::ExpressionParser::ExpressionParser | ( | const ExpressionParser & | parser | ) |
BALL::ExpressionParser::~ExpressionParser | ( | ) |
const SyntaxTree& BALL::ExpressionParser::getSyntaxTree | ( | ) | const |
Return the parsed system
Exception::NullPointer | if the syntax tree is NULL |
void BALL::ExpressionParser::parse | ( | const String & | s | ) |
Parse an expression.
Exception::ParseError | if a syntax error was encountered |
|
staticprotected |
Definition at line 184 of file expressionParser.h.
|
static |
Definition at line 180 of file expressionParser.h.
|
protected |
Definition at line 183 of file expressionParser.h.