|
|||||||||
| Home >> All >> [ java_cup overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java_cup
Class parse_action_table

java.lang.Objectjava_cup.parse_action_table
- public class parse_action_table
- extends java.lang.Object
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.
- Version:
- last updated: 11/25/95
| Field Summary | |
protected int |
_num_states
How many rows/states are in the machine/table. |
parse_action_row[] |
under_state
Actual array of rows, one per state. |
| Constructor Summary | |
parse_action_table()
Simple constructor. |
|
| Method Summary | |
void |
check_reductions()
Check the table to ensure that all productions have been reduced. |
int |
num_states()
How many rows/states are in the machine/table. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
_num_states
protected int _num_states
- How many rows/states are in the machine/table.
under_state
public parse_action_row[] under_state
- Actual array of rows, one per state.
| Constructor Detail |
parse_action_table
public parse_action_table()
- 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.
| Method Detail |
num_states
public int num_states()
- How many rows/states are in the machine/table.
check_reductions
public void check_reductions()
throws internal_error
- 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.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> [ java_cup overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
java_cup.parse_action_table