Class: Lrama::State::Action::Goto
- Inherits:
-
Object
- Object
- Lrama::State::Action::Goto
- Defined in:
- lib/lrama/state/action/goto.rb
Instance Attribute Summary collapse
-
#from_state ⇒ Object
readonly
TODO: rbs-inline 0.11.0 doesn't support instance variables.
-
#next_sym ⇒ Object
readonly
: Grammar::Symbol.
-
#to_items ⇒ Object
readonly
: Array.
-
#to_state ⇒ Object
readonly
: State.
Instance Method Summary collapse
-
#initialize(from_state, next_sym, to_items, to_state) ⇒ Goto
constructor
A new instance of Goto.
Constructor Details
#initialize(from_state, next_sym, to_items, to_state) ⇒ Goto
Returns a new instance of Goto.
24 25 26 27 28 29 |
# File 'lib/lrama/state/action/goto.rb', line 24 def initialize(from_state, next_sym, to_items, to_state) @from_state = from_state @next_sym = next_sym @to_items = to_items @to_state = to_state end |
Instance Attribute Details
#from_state ⇒ Object (readonly)
TODO: rbs-inline 0.11.0 doesn't support instance variables. Move these type declarations above instance variable definitions, once it's supported. see: https://github.com/soutaro/rbs-inline/pull/149
@rbs! @from_state: State @next_sym: Grammar::Symbol @to_items: Array @to_state: State
18 19 20 |
# File 'lib/lrama/state/action/goto.rb', line 18 def from_state @from_state end |
#next_sym ⇒ Object (readonly)
: Grammar::Symbol
19 20 21 |
# File 'lib/lrama/state/action/goto.rb', line 19 def next_sym @next_sym end |
#to_items ⇒ Object (readonly)
: Array
20 21 22 |
# File 'lib/lrama/state/action/goto.rb', line 20 def to_items @to_items end |
#to_state ⇒ Object (readonly)
: State
21 22 23 |
# File 'lib/lrama/state/action/goto.rb', line 21 def to_state @to_state end |