Class: StoreNode

Inherits:
UnaryNode show all
Defined in:
lib/ast.rb

Instance Attribute Summary

Attributes inherited from UnaryNode

#subTree

Instance Method Summary collapse

Constructor Details

#initialize(sub) ⇒ StoreNode

Returns a new instance of StoreNode.



61
62
63
# File 'lib/ast.rb', line 61

def initialize(sub)
  super sub
end

Instance Method Details

#evaluateObject



65
66
67
# File 'lib/ast.rb', line 65

def evaluate
  $calc.memory=subTree.evaluate()
end