5fe0ba06ab
moving on to getting mom to work and can’t have both interpreter and elf broke, about 100 tests went
13 lines
265 B
Ruby
13 lines
265 B
Ruby
module Vm
|
|
module Tree
|
|
class CallSite < Expression
|
|
attr_accessor :name , :receiver , :arguments
|
|
|
|
def to_s
|
|
str = receiver ? "#{receiver}.#{name}" : name.to_s
|
|
str + arguments.collect{|a| a.to_s }.join(",")
|
|
end
|
|
end
|
|
end
|
|
end
|