|
Generic Interpreter 1.0 Private API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--gi.LR0_Grammar.State
This class implements a in an LR parser.State
| Field Summary | |
(package private) LR0_Grammar.Context[] |
contexts
The Contexts in this State. |
(package private) int |
size
The number of Contexts in this State. |
| Constructor Summary | |
(package private) |
LR0_Grammar.State()
|
| Method Summary | |
private int |
add(Grammar.Production production,
int position,
Lexicon.Set follow)
Adds a Context to this State. |
private int |
append(Grammar.Production production,
int position,
Lexicon.Set follow)
Appends a Context to this State. |
String |
toString()
Returns a string representation of this State. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
LR0_Grammar.Context[] contexts
The Contexts in this State.
int size
The number of Contexts in this State.
| Constructor Detail |
LR0_Grammar.State()
| Method Detail |
private int add(Grammar.Production production,
int position,
Lexicon.Set follow)
Adds a Context to this State.
production - the Production to be added.follow - the follow Set to be added.
State at which the Context occurs if this State changed; otherwise the size of this State.
private int append(Grammar.Production production,
int position,
Lexicon.Set follow)
Appends a Context to this State.
production - the Production to be appended.follow - the follow Set to be appended.
State at which the Context occurs.public String toString()
Returns a string representation of this State.
toString in class ObjectState.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||