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



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

def initialize(goto)
  @goto_state = goto
end

Instance Attribute Details

#goto_state ⇒ Object (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_id ⇒ Object



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

def goto_id
  @goto_state.ident
end

#inspect ⇒ Object



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

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