mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
parent
a3367938d7
commit
536562cddd
@ -145,11 +145,6 @@ void AExpression::Dump(std::ostream& stream, int indent) const
|
||||
DumpOperand(stream, m_Operand2, indent + 1);
|
||||
}
|
||||
|
||||
void AExpression::Dump(void) const
|
||||
{
|
||||
Dump(std::cerr);
|
||||
}
|
||||
|
||||
Value AExpression::EvaluateOperand1(const Dictionary::Ptr& locals) const
|
||||
{
|
||||
return static_cast<AExpression::Ptr>(m_Operand1)->Evaluate(locals);
|
||||
|
@ -48,8 +48,7 @@ public:
|
||||
void MakeInline(void);
|
||||
|
||||
void Dump(std::ostream& stream, int indent = 0) const;
|
||||
void Dump(void) const;
|
||||
|
||||
|
||||
static Value OpLiteral(const AExpression *expr, const Dictionary::Ptr& locals);
|
||||
static Value OpVariable(const AExpression *expr, const Dictionary::Ptr& locals);
|
||||
static Value OpNegate(const AExpression *expr, const Dictionary::Ptr& locals);
|
||||
|
@ -250,7 +250,7 @@ in { yylval->op = &AExpression::OpIn; return T_IN; }
|
||||
\+ { yylval->op = &AExpression::OpAdd; return T_PLUS; }
|
||||
\- { yylval->op = &AExpression::OpSubtract; return T_MINUS; }
|
||||
\* { yylval->op = &AExpression::OpMultiply; return T_MULTIPLY; }
|
||||
\/ { yylval->op = &AExpression::OpMultiply; return T_DIVIDE; }
|
||||
\/ { yylval->op = &AExpression::OpMultiply; return T_DIVIDE_OP; }
|
||||
\& { yylval->op = &AExpression::OpBinaryAnd; return T_BINARY_AND; }
|
||||
\| { yylval->op = &AExpression::OpBinaryOr; return T_BINARY_OR; }
|
||||
\< { yylval->op = &AExpression::OpLessThan; return T_LESS_THAN; }
|
||||
|
@ -115,7 +115,7 @@ using namespace icinga;
|
||||
%token <op> T_PLUS "+ (T_PLUS)"
|
||||
%token <op> T_MINUS "- (T_MINUS)"
|
||||
%token <op> T_MULTIPLY "* (T_MULTIPLY)"
|
||||
%token <op> T_DIVIDE "/ (T_DIVIDE)"
|
||||
%token <op> T_DIVIDE_OP "/ (T_DIVIDE_OP)"
|
||||
%token <op> T_BINARY_AND "& (T_BINARY_AND)"
|
||||
%token <op> T_BINARY_OR "| (T_BINARY_OR)"
|
||||
%token <op> T_LESS_THAN "< (T_LESS_THAN)"
|
||||
@ -578,7 +578,7 @@ lterm: identifier lbinary_op rterm
|
||||
rbinary_op: T_PLUS
|
||||
| T_MINUS
|
||||
| T_MULTIPLY
|
||||
| T_DIVIDE
|
||||
| T_DIVIDE_OP
|
||||
| T_BINARY_AND
|
||||
| T_BINARY_OR
|
||||
| T_LESS_THAN
|
||||
|
Loading…
x
Reference in New Issue
Block a user