Skip to content
This repository was archived by the owner on Sep 9, 2019. It is now read-only.

Commit ec8cf7a

Browse files
committed
Merge changes from master
2 parents 9c351be + e0f63f3 commit ec8cf7a

File tree

3 files changed

+1070
-1074
lines changed

3 files changed

+1070
-1074
lines changed

src/main/jay/grammars/php.jay

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ lambda_input_parameters:
686686
;
687687

688688
lambda_input_parameter:
689-
T_VARIABLE { $$= new VariableNode($1); }
689+
T_VARIABLE initialization_opt { $$= array('name' => $1); $2 && $$['default']= $2; }
690690
;
691691

692692
lambda_uses_opt:
@@ -826,6 +826,9 @@ chain:
826826
| T_OBJECT_OPERATOR T_WORD '(' { $1= $yyLex->create(new MethodCallNode(NULL, $2)); } expressionlist_opt ')' {
827827
$1->arguments= $5;
828828
}
829+
| '(' { $1= $yyLex->create(new InstanceCallNode(NULL, NULL, FALSE)); } expressionlist_opt ')' {
830+
$1->arguments= $3;
831+
}
829832
;
830833
// }}}
831834

0 commit comments

Comments
 (0)