renaming and small fixes

This commit is contained in:
Torsten Ruger
2014-06-08 00:56:40 +03:00
parent e7bb774da0
commit fbcfa844de
6 changed files with 42 additions and 36 deletions

View File

@@ -5,7 +5,6 @@ module Ast
while_block = into.new_block "#{into.name}_while"
ret = while_block.new_block "#{into.name}_return"
puts "compiling while condition #{condition}"
puts "Locals #{context.locals.keys.join('-')}, #{context.locals.object_id}"
cond_val = condition.compile(context , while_block)
while_block.b ret , condition_code: cond_val.not_operator
last = nil