File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/GrammarProcessing/Ebnf/Nodes Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ public function interpret(GrammarProcessing\Node $node): Generator
1515 yield $ node ->getValue ()[1 ],
1616 ];
1717
18- foreach ($ node ->getValue ()[3 ]->value as $ item ) {
19- $ result [] = yield $ item ->value [2 ];
18+ foreach ($ node ->getValue ()[3 ]->getValue () as $ item ) {
19+ $ result [] = yield $ item ->getValue () [2 ];
2020 }
2121
2222 if (count ($ result ) === 1 ) {
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ public function interpret(GrammarProcessing\Node $node): Generator
1515 yield $ node ->getValue ()[1 ],
1616 ];
1717
18- foreach ($ node ->getValue ()[3 ]->value as $ item ) {
19- $ result [] = yield $ item ->value [2 ];
18+ foreach ($ node ->getValue ()[3 ]->getValue () as $ item ) {
19+ $ result [] = yield $ item ->getValue () [2 ];
2020 }
2121
2222 if (count ($ result ) === 1 ) {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function interpret(GrammarProcessing\Node $node): Generator
3131 $ result = [];
3232
3333 foreach ($ node ->getValue () as $ item ) {
34- [$ identifier , $ production ] = yield $ item ->value [1 ];
34+ [$ identifier , $ production ] = yield $ item ->getValue () [1 ];
3535
3636 $ result [$ identifier ->nonterminal ] = $ production ;
3737 }
You can’t perform that action at this time.
0 commit comments