Skip to content

Commit 5c35904

Browse files
committed
f
1 parent f8bec7e commit 5c35904

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/GrammarProcessing/Ebnf/Nodes/Alternation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

src/GrammarProcessing/Ebnf/Nodes/Concatenation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

src/GrammarProcessing/Ebnf/Nodes/Grammar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)