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.



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

def initialize(sub)
  super(sub)
end

Instance Method Details

#evaluateObject



75
76
77
78
79
# File 'lib/ast.rb', line 75

def evaluate()
  #puts "#{@sub.evaluate}"
  $calc.memory = @subTree.evaluate
  #puts "#{$calc.memory}"
end