first oo program to compile. But no worries, there is still work left to be done

This commit is contained in:
Torsten Ruger
2014-06-05 18:17:00 +03:00
parent f523d0946d
commit c59f22f11f
13 changed files with 68 additions and 27 deletions

View File

@@ -4,13 +4,14 @@ module Vm
class CallSite < Value
def initialize(name , args , function )
def initialize(name , value , args , function )
@name = name
@value = value
@args = args
@function = function
end
attr_reader :function , :args , :name
attr_reader :function , :args , :name , :value
def load_args into
args.each_with_index do |arg , index|
if arg.is_a?(IntegerConstant) or arg.is_a?(StringConstant)