a lot of work to get one more test to pass

This commit is contained in:
Torsten Ruger
2014-07-12 21:59:17 +03:00
parent 842c4e3044
commit dc6cb2bb52
16 changed files with 89 additions and 153 deletions

View File

@@ -12,10 +12,12 @@ module Virtual
def Method.main
Method.new(:main)
end
def initialize name , args = []
def initialize name , args = [] , receiver = Virtual::Reference , return_type = Virtual::Reference
@name = name
@args = args
@locals = []
@receiver = receiver
@return_type = return_type
@start = MethodEnter.new
@current = @start
end