Class: IntDefineInstruction

Inherits:
Instruction show all
Includes:
DefineInstruction
Defined in:
lib/instructions/int/int_define.rb

Overview

pops the top item of the :int stack and the :name stack; if the name string is not a bound variable (as opposed to a local name), it binds the name to the :int ValuePoint

needs: 1 :int, 1 :name

pushes: nothing

Instance Attribute Summary

Attributes included from DefineInstruction

#target_stack

Attributes inherited from Instruction

#context

Instance Method Summary collapse

Methods included from DefineInstruction

#cleanup, #derive, #preconditions?, #setup

Methods inherited from Instruction

all_instructions, #cleanup, #derive, #go, inherited, #needs, #preconditions?, #pushes, #setup, to_nudgecode

Constructor Details

#initialize(context) ⇒ IntDefineInstruction

:nodoc:



12
13
14
# File 'lib/instructions/int/int_define.rb', line 12

def initialize(context) #:nodoc:
  super(context, :int)
end