Package java_cup
Class lalr_transition
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.
- Version:
- last updated: 11/25/95
- Author:
- Scott Hudson
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected lalr_transitionNext transition in linked list of transitions out of a stateprotected symbolThe symbol we make the transition on.protected lalr_stateThe state we transition to. -
Constructor Summary
ConstructorsConstructorDescriptionlalr_transition(symbol on_sym, lalr_state to_st) Constructor with null next.lalr_transition(symbol on_sym, lalr_state to_st, lalr_transition nxt) Full constructor. -
Method Summary
-
Field Details
-
_on_symbol
The symbol we make the transition on. -
_to_state
The state we transition to. -
_next
Next transition in linked list of transitions out of a state
-
-
Constructor Details
-
lalr_transition
Full constructor.- Parameters:
on_sym- symbol we are transitioning on.to_st- state we transition to.nxt- next transition in linked list.- Throws:
internal_error
-
lalr_transition
Constructor with null next.- Parameters:
on_sym- symbol we are transitioning on.to_st- state we transition to.- Throws:
internal_error
-
-
Method Details