mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
parent
1275847d5a
commit
54ab4dd924
@ -222,7 +222,7 @@ static void MakeRBinaryOp(Expression** result, Expression *left, Expression *rig
|
|||||||
%right '!' '~'
|
%right '!' '~'
|
||||||
%left '.' '(' '['
|
%left '.' '(' '['
|
||||||
%right ';' ','
|
%right ';' ','
|
||||||
%right T_NEWLINE
|
%right T_NEWLINE T_FOLLOWS
|
||||||
%{
|
%{
|
||||||
|
|
||||||
int yylex(YYSTYPE *lvalp, YYLTYPE *llocp, void *scanner);
|
int yylex(YYSTYPE *lvalp, YYLTYPE *llocp, void *scanner);
|
||||||
@ -869,6 +869,27 @@ rterm_without_indexer: T_STRING
|
|||||||
$$ = new FunctionExpression("", *$3, $5, aexpr, DebugInfoRange(@1, @5));
|
$$ = new FunctionExpression("", *$3, $5, aexpr, DebugInfoRange(@1, @5));
|
||||||
delete $3;
|
delete $3;
|
||||||
}
|
}
|
||||||
|
| identifier T_FOLLOWS rterm
|
||||||
|
{
|
||||||
|
DictExpression *aexpr = dynamic_cast<DictExpression *>($3);
|
||||||
|
if (aexpr)
|
||||||
|
aexpr->MakeInline();
|
||||||
|
|
||||||
|
std::vector<String> args;
|
||||||
|
args.push_back($1);
|
||||||
|
free($1);
|
||||||
|
|
||||||
|
$$ = new FunctionExpression("", args, new std::map<String, Expression *>(), $3, DebugInfoRange(@1, @3));
|
||||||
|
}
|
||||||
|
| T_BINARY_OR identifier_items T_BINARY_OR T_FOLLOWS rterm
|
||||||
|
{
|
||||||
|
DictExpression *aexpr = dynamic_cast<DictExpression *>($5);
|
||||||
|
if (aexpr)
|
||||||
|
aexpr->MakeInline();
|
||||||
|
|
||||||
|
$$ = new FunctionExpression("", *$2, new std::map<String, Expression *>(), $5, DebugInfoRange(@1, @5));
|
||||||
|
delete $2;
|
||||||
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
target_type_specifier: /* empty */
|
target_type_specifier: /* empty */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user