Home | History | Annotate | Download | only in java_cup

Lines Matching defs:production

7 /** This class represents a production in the grammar.  It contains
9 * transformations are done on the RHS of the production, it may shrink.
15 * computing the nullability of the production (i.e., can it derive the empty
18 * string derived from the production, see check_first_set()).
27 public class production {
36 * manipulations in the process of creating a production object.
42 * Finally it assigns a unique index to the production.<p>
45 * non terminals. For example if the production was originally: <pre>
56 public production(
77 "Attempt to construct a production with a null LHS");
114 /* rewrite production to remove any embedded actions */
123 /* put us in the production list of the lhs non terminal */
130 public production(
181 "Index out of range for right hand side of production");
195 * reduce with this production.
200 * reduce with this production.
206 /** Index number of the production. */
209 /** Index number of the production. */
214 /** Count of number of reductions using this production. */
217 /** Count of number of reductions using this production. */
225 /** Is the nullability of the production known or unknown? */
228 /** Is the nullability of the production known or unknown? */
233 /** Nullability of the production (can it derive the empty string). */
236 /** Nullability of the production (can it derive the empty string). */
241 /** First set of the production. This is the set of terminals that
242 * could appear at the front of some string derived from this production.
246 /** First set of the production. This is the set of terminals that
247 * could appear at the front of some string derived from this production.
323 "\" appears in action before it appears in production");
326 // later need to print the production this is in
347 * production.
434 * @param final_action the final action string of the production.
570 /** Remove all embedded actions from a production by factoring them
571 * out into individual action production using new non terminals.
572 * if the original production was: <pre>
585 production new_prod;
587 /* walk over the production and process each action */
591 /* create a new non terminal for the action production */
594 /* create a new production with just the action */
605 /** Check to see if the production (now) appears to be nullable.
606 * A production is nullable if its RHS could derive the empty string.
705 public boolean equals(production other)
716 if (!(other instanceof production))
719 return equals((production)other);
740 result = "production [" + index() + "]: ";