| @@ 248-250 (lines=3) @@ | ||
| 245 | ||
| 246 | foreach ($p->shifts as $t) { |
|
| 247 | for ($x = $t->items; $x !== null; $x = $x->next) { |
|
| 248 | if ($x->left !== null) { |
|
| 249 | $changed |= $x->look->or($this->follow[$x->left->code]); |
|
| 250 | } |
|
| 251 | } |
|
| 252 | } |
|
| 253 | ||
| @@ 526-528 (lines=3) @@ | ||
| 523 | if (!$t->through->isTerminal) { |
|
| 524 | $p = $this->follow[$t->through->code]; |
|
| 525 | for ($x = $t->items; $x !== null && !$x->isHeadItem(); $x = $x->next) { |
|
| 526 | if ($this->isSeqNullable($x->item) && $x->left != null) { |
|
| 527 | $changed |= $p->or($this->follow[$x->left->code]); |
|
| 528 | } |
|
| 529 | } |
|
| 530 | } |
|
| 531 | } |
|