E9
- Implemented the shell of E9::eval. - Stubbed out operator_xxx helper methods.
This commit is contained in:
23
src/E9.h
23
src/E9.h
@@ -42,6 +42,29 @@ public:
|
||||
bool evalFilter (const Task&);
|
||||
std::string evalExpression (const Task&);
|
||||
|
||||
private:
|
||||
void eval (const Task&, std::vector <Arg>&);
|
||||
|
||||
// Unary.
|
||||
void operator_not (Arg&, Arg&);
|
||||
|
||||
// Binary.
|
||||
void operator_and (Arg&, Arg&, Arg&);
|
||||
void operator_or (Arg&, Arg&, Arg&);
|
||||
void operator_xor (Arg&, Arg&, Arg&);
|
||||
void operator_lt (Arg&, Arg&, Arg&);
|
||||
void operator_lte (Arg&, Arg&, Arg&);
|
||||
void operator_gte (Arg&, Arg&, Arg&);
|
||||
void operator_gt (Arg&, Arg&, Arg&);
|
||||
void operator_inequal (Arg&, Arg&, Arg&);
|
||||
void operator_equal (Arg&, Arg&, Arg&);
|
||||
void operator_match (Arg&, Arg&, Arg&);
|
||||
void operator_nomatch (Arg&, Arg&, Arg&);
|
||||
void operator_multiply (Arg&, Arg&, Arg&);
|
||||
void operator_divide (Arg&, Arg&, Arg&);
|
||||
void operator_add (Arg&, Arg&, Arg&);
|
||||
void operator_subtract (Arg&, Arg&, Arg&);
|
||||
|
||||
private:
|
||||
A3 _args;
|
||||
std::map <std::string, RX> _regexes;
|
||||
|
||||
Reference in New Issue
Block a user