Class: Lrama::State::Shift

Inherits:
Object
  • Object
show all
Defined in:
lib/lrama/state/shift.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(next_sym, next_items) ⇒ Shift



7
8
9
10
# File 'lib/lrama/state/shift.rb', line 7

def initialize(next_sym, next_items)
  @next_sym = next_sym
  @next_items = next_items
end

Instance Attribute Details

#next_itemsObject (readonly)

Returns the value of attribute next_items.



4
5
6
# File 'lib/lrama/state/shift.rb', line 4

def next_items
  @next_items
end

#next_symObject (readonly)

Returns the value of attribute next_sym.



4
5
6
# File 'lib/lrama/state/shift.rb', line 4

def next_sym
  @next_sym
end

#not_selectedObject

Returns the value of attribute not_selected.



5
6
7
# File 'lib/lrama/state/shift.rb', line 5

def not_selected
  @not_selected
end