|
Generic Interpreter 0.9 Private API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | 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 Context s in this State . |
(package private) int |
size
The number of Context s 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, registerNatives, wait, wait, wait |
Field Detail |
LR0_Grammar.Context[] contexts
The Context
s in this State
.
int size
The number of Context
s 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.int
- the progress position 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.int
- the progress position 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 Object
State
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |