Home | History | Annotate | Download | only in src

Lines Matching refs:rule

52 static void handle_action_dollar (symbol_list *rule, char *cp,
54 static void handle_action_at (symbol_list *rule, char *cp, location at_loc);
73 /* Whether in a rule or symbol action. Specifies the translation
202 handle_action_dollar (self->rule, yytext, *loc);
209 handle_action_at (self->rule, yytext, *loc);
472 _(", cannot be accessed from mid-rule action at $%d");
493 points to LHS ($$) of the current rule or midrule. */
500 parse_ref (char *cp, symbol_list *rule, int rule_length,
558 for (symbol_index = 0, l = rule; !symbol_list_null (l);
582 /* Check visibility from mid-rule actions. */
627 complain_at_indent (rule->location, &indent, format,
634 complain_at_indent (rule->location, &indent, format,
715 handle_action_dollar (symbol_list *rule, char *text, location dollar_loc)
723 if (rule->midrule_parent_rule)
725 effective_rule = rule->midrule_parent_rule;
726 effective_rule_length = rule->midrule_parent_rhs_index - 1;
730 effective_rule = rule;
731 effective_rule_length = symbol_list_length (rule->next);
738 rule->midrule_parent_rhs_index, text, dollar_loc, '$');
751 type_name = symbol_list_n_type_name_get (rule, dollar_loc, 0);
757 if (rule->midrule_parent_rule)
761 rule->midrule_parent_rhs_index,
765 quote (rule->content.sym->tag));
774 rule->action_props.is_value_used = true;
810 handle_action_at (symbol_list *rule, char *text, location at_loc)
817 if (rule->midrule_parent_rule)
819 effective_rule = rule->midrule_parent_rule;
820 effective_rule_length = rule->midrule_parent_rhs_index - 1;
824 effective_rule = rule;
825 effective_rule_length = symbol_list_length (rule->next);
831 rule->midrule_parent_rhs_index, text, at_loc, '@');
896 self->rule = NULL;
908 self->rule = NULL;
914 location code_loc, symbol_list *rule,
921 self->rule = rule;