Lines Matching refs:rule
136 foreach ($parser->getRules() as $rule) {
140 $arguments['name'] = $escapeRuleName($rule->getName());
142 if ($rule instanceof Rule\Token) {
144 $arguments['tokenName'] = '\'' . $rule->getTokenName() . '\'';
146 if ($rule instanceof Rule\Repetition) {
148 $arguments['min'] = $rule->getMin();
151 $arguments['max'] = $rule->getMax();
155 $ruleChildren = $rule->getChildren();
170 $nodeId = $rule->getNodeId();
178 if ($rule instanceof Rule\Token) {
180 $arguments['unification'] = $rule->getUnificationIndex();
183 $arguments['kept'] = $rule->isKept() ? 'true' : 'false';
187 if (null !== $defaultNodeId = $rule->getDefaultId()) {
188 $defaultNodeOptions = $rule->getDefaultOptions();
202 if (null !== $ppRepresentation = $rule->getPPRepresentation()) {
212 ' ' . $arguments['name'] . ' => new \\' . get_class($rule) . '(' .
348 $rule = null;
362 $rule .= ' ' . trim($lines[$i++]);
369 $rules[$ruleName] = $rule;