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(subtree) ⇒ StoreNode

Returns a new instance of StoreNode.



71
72
73
# File 'lib/ast.rb', line 71

def initialize(subtree)
  super(subtree)
end

Instance Method Details

#evaluateObject



74
75
76
# File 'lib/ast.rb', line 74

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