Lines Matching refs:rule
201 $rule = $this->_rules[$ruleName];
202 $out = $this->boundedExhaustive($rule, $next);
220 protected function boundedExhaustive(Compiler\Llk\Rule $rule, $next) argument
222 $children = $rule->getChildren();
224 if ($rule instanceof Compiler\Llk\Rule\Repetition) {
227 $rule->getName(),
228 $rule->getMin()
233 $rule->getName(),
234 $rule->getMin(),
238 for ($i = 0, $min = $rule->getMin(); $i < $min; ++$i) {
257 $max = $rule->getMax();
264 $rule->getName(),
273 } elseif ($rule instanceof Compiler\Llk\Rule\Choice) {
279 $rule->getName(),
288 } elseif ($rule instanceof Compiler\Llk\Rule\Concatenation) {
290 $rule->getName(),
301 } elseif ($rule instanceof Compiler\Llk\Rule\Token) {
314 $this->_trace[] = $rule;
336 $rule = $this->_rules[$last->getRule()];
337 $found = $rule instanceof Compiler\Llk\Rule\Choice;
339 $rule = $this->_rules[$last->getRule()];
340 $found = $rule instanceof Compiler\Llk\Rule\Repetition;
348 $rule = $last->getRule();
352 $rule,