cosmetics: Having the parser in a better shape regarding operators 1/2

This commit is contained in:
Felipe Zimmerle
2017-01-02 14:33:59 -03:00
committed by Felipe Zimmerle
parent 3a413080f9
commit 9cda4c0be0
12 changed files with 126 additions and 35 deletions

View File

@@ -35,12 +35,25 @@ class Operator {
m_negation(false),
m_op(""),
m_param("") { }
Operator(std::string op, std::string param, bool negation)
Operator(std::string opName, std::string param, bool negation)
: m_match_message(""),
m_negation(negation),
m_op(op),
m_op(opName),
m_param(param) { }
Operator(std::string opName, std::string param)
: m_match_message(""),
m_negation(false),
m_op(opName),
m_param(param) { }
Operator(std::string opName)
: m_match_message(""),
m_negation(false),
m_op(opName),
m_param() { }
virtual ~Operator() { }
static Operator *instantiate(std::string opName);