Lines Matching refs:Rule
176 $closeRule = new Rule\Ekzit($rule, 0);
177 $openRule = new Rule\Entry($rule, 0, [$closeRule]);
258 if ($rule instanceof Rule\Ekzit) {
287 protected function _parse(Rule $zeRule, $next)
289 if ($zeRule instanceof Rule\Token) {
302 if ($trace instanceof Rule\Entry) {
310 } elseif ($trace instanceof Rule\Ekzit &&
319 if ($trace instanceof Rule\Token &&
356 } elseif ($zeRule instanceof Rule\Concatenation) {
361 $this->_trace[] = new Rule\Entry(
371 $this->_todo[] = new Rule\Ekzit($nextRule, 0);
372 $this->_todo[] = new Rule\Entry($nextRule, 0);
376 } elseif ($zeRule instanceof Rule\Choice) {
387 $this->_trace[] = new Rule\Entry(
394 $this->_todo[] = new Rule\Ekzit($nextRule, 0);
395 $this->_todo[] = new Rule\Entry($nextRule, 0);
398 } elseif ($zeRule instanceof Rule\Repetition) {
409 $this->_trace[] = new Rule\Entry(
416 $this->_todo[] = new Rule\Ekzit(
423 $this->_todo[] = new Rule\Ekzit($nextRule, 0);
424 $this->_todo[] = new Rule\Entry($nextRule, 0);
435 $this->_todo[] = new Rule\Ekzit(
440 $this->_todo[] = new Rule\Ekzit($nextRule, 0);
441 $this->_todo[] = new Rule\Entry($nextRule, 0);
462 if ($last instanceof Rule\Entry) {
464 $found = $zeRule instanceof Rule\Choice;
465 } elseif ($last instanceof Rule\Ekzit) {
467 $found = $zeRule instanceof Rule\Repetition;
468 } elseif ($last instanceof Rule\Token) {
485 $this->_todo[] = new Rule\Entry($rule, $next);
505 if ($trace instanceof Rule\Entry) {
513 if ($nextTrace instanceof Rule\Ekzit &&
585 } elseif ($trace instanceof Rule\Ekzit) {