Top Description Fields Constructors Methods
java_cup

public Class parse_reduce_table

extends Object
Class Inheritance
Imports
java.util.Enumeration

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.
Author
Scott Hudson
Version
last updated: 11/25/95
See Also
java_cup.parse_reduce_row

Field Summary

Modifier and TypeField and Description
protected int
_num_states

How many rows/states in the machine/table.

public parse_reduce_row[]
under_state

Actual array of rows, one per state

Constructor Summary

AccessConstructor and Description
public
parse_reduce_table()

Simple constructor.

Method Summary

Modifier and TypeMethod and Description
public int
num_states()

How many rows/states in the machine/table.

public String
toString()

Overrides java.lang.Object.toString.

Convert to a string.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_num_statesback to summary
protected int _num_states

How many rows/states in the machine/table.

under_stateback to summary
public parse_reduce_row[] under_state

Actual array of rows, one per state

Constructor Detail

parse_reduce_tableback to summary
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 Detail

num_statesback to summary
public int num_states()

How many rows/states in the machine/table.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Convert to a string.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.