fix register issues, some typos

This commit is contained in:
Torsten Ruger
2014-05-14 22:04:03 +03:00
parent e10f4863ee
commit 3912e0cd31
8 changed files with 26 additions and 25 deletions

View File

@@ -16,11 +16,13 @@ module Ast
def compile context , into
cond_val = condition.compile(context , into)
#set up branches for bodies
# jump to end if done
last = nil
body.each do |part|
last = part.compile(context , into )
puts "compiled in while #{last.inspect}"
end
#jump back to test
return last
end
end