Allow nested method/varref calls

databind
vitalif 2014-10-12 11:55:02 +00:00 committed by Vitaliy Filippov
parent 8890d58de9
commit e99b47dd4a
2 changed files with 875 additions and 1193 deletions

View File

@ -338,6 +338,16 @@ varpart: '.' namekw/n {
| '[' exp/e ']' {
$$ = '['.$e[0].']';
}
| '.' name/n '(' ')' {
$$ = '->'.$n.'()';
}
| '.' name/n '(' list/l ')' {
$argv = [];
foreach ($args as $a) {
$argv[] = $a[0];
}
$$ = '->'.$n.'('.implode(', ', $argv).')';
}
.
varpath: {
$$ = '';

File diff suppressed because it is too large Load Diff