This commit is contained in:
Torsten Ruger
2014-05-19 21:28:18 +03:00
parent e07682b6a3
commit f34fddd383
4 changed files with 9 additions and 7 deletions

View File

@ -38,7 +38,7 @@ module Ast
body.each do |b|
compiled = b.compile(context , into)
function.return_type = compiled
puts "compiled in function #{compiled.inspect}"
puts "compiled in function #{compiled.class}"
raise "alarm #{compiled} \n #{b}" unless compiled.is_a? Vm::Word
end
context.locals = parent_locals