Class: Racc::Shift

Inherits:
Object show all
Defined in:
lib/racc/state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(goto) ⇒ Shift

Returns a new instance of Shift.



885
886
887
# File 'lib/racc/state.rb', line 885

def initialize(goto)
  @goto_state = goto
end

Instance Attribute Details

#goto_stateObject (readonly)

Returns the value of attribute goto_state.



889
890
891
# File 'lib/racc/state.rb', line 889

def goto_state
  @goto_state
end

Instance Method Details

#goto_idObject



891
892
893
# File 'lib/racc/state.rb', line 891

def goto_id
  @goto_state.ident
end

#inspectObject



895
896
897
# File 'lib/racc/state.rb', line 895

def inspect
  "<shift #{@goto_state.ident}>"
end