#include <Formula.h>
Definition at line 88 of file Formula.h.
Public Member Functions | ||||
InterpretedFormula () | ||||
~InterpretedFormula () | ||||
int | parse (Token token) | |||
Parse given token.
| ||||
bool | isValid () | |||
| ||||
bool | eval (ISatItem *data) | |||
| ||||
Classes | ||||
struct | Private |
Definition at line 268 of file Formula.cpp.
References InterpretedFormula::Private::errorDetected, InterpretedFormula::Private::parserStack, ParserStack::push(), and FastSatSolver::T_STACK_BOTTOM.
~InterpretedFormula | ( | ) |
Definition at line 275 of file Formula.cpp.
int parse | ( | Token | token | ) | [virtual] |
Parse given token.
token | Token to parse |
token |
Implements IFormulaBuilder.
Definition at line 282 of file Formula.cpp.
References InterpretedFormula::Private::cmdList, InterpretedFormula::Private::errorDetected, ParserStack::insertLt(), InterpretedFormula::isValid(), Token::m_token, InterpretedFormula::Private::parserStack, ParserStack::pop(), ParserStack::popAndCompare(), ParserStack::push(), FastSatSolver::T_EOF, FastSatSolver::T_ERR_EXPR, FastSatSolver::T_FALSE, FastSatSolver::T_LPAR, FastSatSolver::T_NOT, FastSatSolver::T_PARSER_EQ, FastSatSolver::T_PARSER_EXPR, FastSatSolver::T_PARSER_GT, FastSatSolver::T_PARSER_INV, FastSatSolver::T_PARSER_LT, FastSatSolver::T_RPAR, FastSatSolver::T_TRUE, FastSatSolver::T_VARIABLE, FastSatSolver::tableLookup(), and ParserStack::topTerm().
Referenced by ScannerFormulaHandler::readNext().
bool isValid | ( | ) | [virtual] |
Implements IFormulaBuilder.
Definition at line 418 of file Formula.cpp.
References InterpretedFormula::Private::errorDetected, InterpretedFormula::Private::parserStack, FastSatSolver::T_PARSER_EXPR, FastSatSolver::T_STACK_BOTTOM, ParserStack::top(), and ParserStack::topTerm().
Referenced by InterpretedFormula::parse(), and ScannerFormulaHandler::readNext().
bool eval | ( | ISatItem * | data | ) | [virtual] |
data | Evaluation data to use for evaluation. Consider ISatItem interface for detail. |
data |
Implements IFormulaEvaluator.
Definition at line 437 of file Formula.cpp.
References InterpretedFormula::Private::cmdList, and CmdList::execute().