Home | History | Annotate | Download | only in src

Lines Matching refs:rule

109 | type as TYPE as required by the lhs of the rule whose %merge declaration |
167 | rule is represented by a sequence of symbols: the left hand side |
169 | null pointer instead of a symbol to terminate the rule. The next |
170 | symbol is the lhs of the following rule. |
172 | All actions are copied out, labelled by the rule number they apply |
192 /* A null SYM stands for an end of rule; it is not an actual
217 /* The rule currently being defined, and the previous rule.
218 CURRENT_RULE points to the first LHS of the current rule, while
219 PREVIOUS_RULE_END points to the *end* of the previous rule (NULL). */
225 | Create a new rule for LHS in to the GRAMMAR. |
234 /* Start a new rule and record its lhs. */
244 /* Mark the rule's lhs as a nonterminal if not already so. */
252 complain_at (loc, _("rule given for %s, which is a token"), lhs->tag);
259 | 2. The symbol is a mid-rule symbol (i.e., the generated LHS |
260 | replacing a mid-rule action) that was assigned to or used, as in |
282 | Check that the rule R is properly defined. For instance, there |
313 _("empty rule for typed nonterminal, and no action"));
350 | End the currently being grown rule. |
356 /* Put an empty link in the list to mark the end of this rule */
363 | The previous action turns out the be a mid-rule action. Attach it |
364 | to the current rule, i.e., create a dummy symbol, attach it this |
365 | mid-rule action, and append this dummy nonterminal to the current |
366 | rule. |
372 /* Since the action was written out with this rule's number, we must
373 give the new rule this number by inserting the new rule before
385 /* Make a new rule, whose body is empty, before the current one, so
402 /* End the dummy's rule. */
409 the current rule. Bind it to its dedicated rule. */
417 /* Set the precedence symbol of the current rule to PRECSYM. */
423 appear on the LHS of a grammar rule and is not defined by %token
434 complain_at (loc, _("only one %s allowed per rule"), "%prec");
438 /* Attach dynamic precedence DPREC to the current rule. */
448 complain_at (loc, _("only one %s allowed per rule"), "%dprec");
453 rule. */
461 complain_at (loc, _("only one %s allowed per rule"), "%merge");
466 /* Attach SYM to the current rule. If needed, move the previous
467 action as a mid-rule action. */
481 /* Attach an ACTION to the current rule. */
545 /* Don't check the generated rule 0. It has no action, so some rhs
558 fatal_at (rules[ruleno].location, _("rule is too long"));
561 But the former needs to contain more: negative rule numbers. */
564 /* A rule gets by default the precedence and associativity
570 /* If this rule has a %prec,
577 /* An item ends by the rule number (negated). */
710 /* Insert the initial rule, whose line is that of the first rule
732 /* Scan rule actions after invoking symbol_check_alias_consistency (in
733 symbols_pack above) so that token types are set correctly before the rule
736 Before invoking grammar_rule_check (in packgram below) on any rule, make
740 rule. For the same reason, all the `used' flags must be set before