rubyx/lib/vm/tree/assignment.rb
2017-01-14 19:28:44 +02:00

14 lines
248 B
Ruby

module Vm
module Tree
class Assignment < Statement
attr_accessor :name , :value
def initialize(n = nil , v = nil )
@name , @value = n , v
end
def to_s
"#{name} = #{value}\n"
end
end
end
end