first method test

This commit is contained in:
Torsten Ruger
2014-07-14 11:29:38 +03:00
parent c1f475070b
commit d531a24930
5 changed files with 143 additions and 9 deletions

View File

@ -1,7 +1,10 @@
module Ast
class FunctionExpression < Expression
# attr_reader :name, :params, :body , :receiver
def compile context
def compile frame , method
method = Virtual::Method.new(name , params )
end
def scratch
args = []
locals = {}
params.each_with_index do |param , index|