Lines Matching full:productions
25 nonterminals, and productions. David S. Bakin. */
95 set of all productions which have a RHS all in N. */
110 productions. A set is kept of all productions for which all the
111 nonterminals in the RHS are in useful. Only productions not in
113 saved to be used when finding useful productions: only
114 productions in this set will appear in the final grammar. */
142 /* Find out which productions are reachable and which symbols are
143 used. Starting with an empty set of productions and a set of
145 productions until the set of productions remains unchanged for an
148 productions, and add all of the nonterminals in the RHS of the
152 nonterminals in N and productions in P.
154 The result is the set P of productions in the reduced grammar,
232 | Put the useless productions at the end of RULES, and adjust NRULES |
239 /* Report and flag useless productions. */
456 , and %d productions.\n",