Package java_cup
Class parse_reduce_table
java.lang.Object
java_cup.parse_reduce_table
This class represents the complete "reduce-goto" table of the parser.
It has one row for each state in the parse machines, and a column for
each terminal symbol. Each entry contains a state number to shift to
as the last step of a reduce.
- Version:
- last updated: 11/25/95
- Author:
- Scott Hudson
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
How many rows/states in the machine/table.Actual array of rows, one per state -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
How many rows/states in the machine/table.toString()
Convert to a string.
-
Field Details
-
_num_states
protected int _num_statesHow many rows/states in the machine/table. -
under_state
Actual array of rows, one per state
-
-
Constructor Details
-
parse_reduce_table
public parse_reduce_table()Simple constructor. Note: all terminals, non-terminals, and productions must already have been entered, and the viable prefix recognizer should have been constructed before this is called.
-
-
Method Details