Lines Matching refs:rule
148 * @param string $rule The axiom, i.e. root rule.
153 public function parse($text, $rule = null, $tree = true) argument
172 if (false === array_key_exists($rule, $this->_rules)) {
173 $rule = $this->getRootRule();
176 $closeRule = new Rule\Ekzit($rule, 0);
177 $openRule = new Rule\Entry($rule, 0, [$closeRule]);
256 $rule = array_pop($this->_todo);
258 if ($rule instanceof Rule\Ekzit) {
259 $rule->setDepth($this->_depth);
260 $this->_trace[] = $rule;
262 if (false === $rule->isTransitional()) {
266 $ruleName = $rule->getRule();
267 $next = $rule->getData();
481 $rule = $last->getRule();
485 $this->_todo[] = new Rule\Entry($rule, $next);
507 $rule = $this->_rules[$ruleName];
510 $id = $rule->getNodeId();
527 'options' => $rule->getNodeOptions()
555 $cId = $rule->getDefaultId();
556 $cOptions = $rule->getDefaultOptions();
769 foreach ($this->_rules as $rule => $_) {
770 if (!is_int($rule)) {
775 return $rule;