Skip to content

Commit b20267c

Browse files
committed
Make use of default actions
For the default action $$ = $1, save the closure invocation.
1 parent 748aab3 commit b20267c

File tree

5 files changed

+413
-1062
lines changed

5 files changed

+413
-1062
lines changed

grammar/parser.template

+1-3
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ class #(-p) extends \PhpParser\ParserAbstract
101101
%b
102102
},
103103
#noact
104-
%n => function ($stackPos) {
105-
$this->semValue = $this->semStack[$stackPos];
106-
},
104+
%n => null,
107105
#endreduce
108106
];
109107
}

0 commit comments

Comments
 (0)