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.



84
85
86
# File 'lib/ast.rb', line 84

def initialize(sub)
  super (sub)
end

Instance Method Details

#evaluateObject



88
89
90
# File 'lib/ast.rb', line 88

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