Lines Matching refs:rules
37 rule *rules = NULL; variable
164 int length = rule_rhs_length (&rules[r]); in ritem_longest_rhs()
183 if (filter && !filter (&rules[r])) in grammar_rules_partial_print()
187 else if (previous_lhs && previous_lhs != rules[r].lhs) in grammar_rules_partial_print()
190 rule_lhs_print (&rules[r], previous_lhs, out); in grammar_rules_partial_print()
191 rule_rhs_print (&rules[r], out); in grammar_rules_partial_print()
192 previous_lhs = rules[r].lhs; in grammar_rules_partial_print()
217 if (rule_useless_in_grammar_p (&rules[r])) in grammar_rules_print_xml()
219 else if (rule_useless_in_parser_p (&rules[r])) in grammar_rules_print_xml()
225 rules[r].number, usefulness); in grammar_rules_print_xml()
226 if (rules[r].precsym) in grammar_rules_print_xml()
228 xml_escape (rules[r].precsym->tag)); in grammar_rules_print_xml()
231 rule_lhs_print_xml (&rules[r], out, level + 3); in grammar_rules_print_xml()
232 rule_rhs_print_xml (&rules[r], out, level + 3); in grammar_rules_print_xml()
269 rule *rule_i = &rules[i]; in grammar_dump()
298 rule_print (&rules[r], out); in grammar_dump()
309 if (!rules[r].useful) in grammar_rules_useless_report()
312 warn_at (rules[r].location, "%s", message); in grammar_rules_useless_report()
315 warn_at (rules[r].location, "%s: ", message); in grammar_rules_useless_report()
318 rule_print (&rules[r], stderr); in grammar_rules_useless_report()
330 free (rules); in grammar_free()