get conditions to work for while

This commit is contained in:
Torsten Ruger
2014-05-22 21:38:57 +03:00
parent c196817568
commit 4f0b769e82
6 changed files with 32 additions and 8 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.class}"
puts "compiled in function #{compiled.inspect}"
raise "alarm #{compiled} \n #{b}" unless compiled.is_a? Vm::Word
end
context.locals = parent_locals