| java.lang.Object java_cup.parse_action_table
parse_action_table | public class parse_action_table (Code) | | This class represents the complete "action" table of the parser.
It has one row for each state in the parse machine, and a column for
each terminal symbol. Each entry in the table represents a shift,
reduce, or an error.
See Also: java_cup.parse_action See Also: java_cup.parse_action_row version: last updated: 11/25/95 author: Scott Hudson |
Method Summary | |
public void | check_reductions() Check the table to ensure that all productions have been reduced. | public int | num_states() How many rows/states are in the machine/table. | public String | toString() |
_num_states | protected int _num_states(Code) | | How many rows/states are in the machine/table.
|
parse_action_table | public parse_action_table()(Code) | | Simple constructor. All terminals, non-terminals, and productions must
already have been entered, and the viable prefix recognizer should
have been constructed before this is called.
|
check_reductions | public void check_reductions() throws internal_error(Code) | | Check the table to ensure that all productions have been reduced.
Issue a warning message (to System.err) for each production that
is never reduced.
|
num_states | public int num_states()(Code) | | How many rows/states are in the machine/table.
|
|
|