Lines Matching refs:rules
74 for (rhsp = rules[r].rhs; *rhsp >= 0; ++rhsp) in useful_production()
120 bitset_set (Np, rules[r].lhs->number - ntokens); in useless_nonterminals()
178 && bitset_test (V, rules[r].lhs->number)) in inaccessable_symbols()
181 for (rhsp = rules[r].rhs; *rhsp >= 0; rhsp++) in inaccessable_symbols()
222 if (rules[r].precsym != 0) in inaccessable_symbols()
223 bitset_set (V1, rules[r].precsym->number); in inaccessable_symbols()
240 rules[r].useful = bitset_test (P, r); in reduce_grammar_tables()
252 rules_sorted[rules[r].useful ? useful++ : useless++] = rules[r]; in reduce_grammar_tables()
253 free (rules); in reduce_grammar_tables()
254 rules = rules_sorted; in reduce_grammar_tables()
259 item_number *rhsp = rules[r].rhs; in reduce_grammar_tables()
263 rules[r].number = r; in reduce_grammar_tables()
274 length = rule_rhs_length (&rules[r]); in reduce_grammar_tables()
325 for (rhsp = rules[r].rhs; *rhsp >= 0; ++rhsp) in nonterminals_reduce()