|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java_cup.lalr_transition
This class represents a transition in an LALR viable prefix recognition machine. Transitions can be under terminals for non-terminals. They are internally linked together into singly linked lists containing all the transitions out of a single state via the _next field.
lalr_state
Field Summary | |
---|---|
protected java_cup.lalr_transition |
_next
Next transition in linked list of transitions out of a state |
protected java_cup.symbol |
_on_symbol
The symbol we make the transition on. |
protected java_cup.lalr_state |
_to_state
The state we transition to. |
Constructor Summary | |
---|---|
lalr_transition(java_cup.symbol on_sym,
java_cup.lalr_state to_st)
Constructor with null next. |
|
lalr_transition(java_cup.symbol on_sym,
java_cup.lalr_state to_st,
java_cup.lalr_transition nxt)
Full constructor. |
Method Summary | |
---|---|
java_cup.lalr_transition |
next()
Next transition in linked list of transitions out of a state |
java_cup.symbol |
on_symbol()
The symbol we make the transition on. |
java_cup.lalr_state |
to_state()
The state we transition to. |
java.lang.String |
toString()
Convert to a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java_cup.symbol _on_symbol
protected java_cup.lalr_state _to_state
protected java_cup.lalr_transition _next
Constructor Detail |
public lalr_transition(java_cup.symbol on_sym, java_cup.lalr_state to_st, java_cup.lalr_transition nxt) throws internal_error
on_sym
- symbol we are transitioning on.to_st
- state we transition to.nxt
- next transition in linked list.public lalr_transition(java_cup.symbol on_sym, java_cup.lalr_state to_st) throws internal_error
on_sym
- symbol we are transitioning on.to_st
- state we transition to.Method Detail |
public java_cup.symbol on_symbol()
public java_cup.lalr_state to_state()
public java_cup.lalr_transition next()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |