Eval
- Added the new Variant::operator_hastag and Variant::operator_notag operators to the expression evaluator. All operators now implemented, at least in stubbed form.
This commit is contained in:
@@ -287,6 +287,8 @@ void Eval::evaluatePostfixStack (
|
|||||||
else if (token->first == "xor") left = left.operator_xor (right);
|
else if (token->first == "xor") left = left.operator_xor (right);
|
||||||
else if (token->first == "~") left = left.operator_match (right);
|
else if (token->first == "~") left = left.operator_match (right);
|
||||||
else if (token->first == "!~") left = left.operator_nomatch (right);
|
else if (token->first == "!~") left = left.operator_nomatch (right);
|
||||||
|
else if (token->first == "_hastag_") left = left.operator_hastag (right);
|
||||||
|
else if (token->first == "_notag_") left = left.operator_notag (right);
|
||||||
else
|
else
|
||||||
std::cout << "# Unrecognized operator '" << token->first << "'\n";
|
std::cout << "# Unrecognized operator '" << token->first << "'\n";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user