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.



41
42
43
# File 'lib/ast.rb', line 41

def initialize(subtree)
  super(subTree)
end

Instance Method Details

#evaluateObject



44
45
46
# File 'lib/ast.rb', line 44

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