renaming and small fixes
This commit is contained in:
@ -25,9 +25,7 @@ module Ast
|
||||
|
||||
parent_locals = context.locals
|
||||
parent_function = context.function
|
||||
puts "Locals #{locals.keys.join('-')}, #{locals.object_id}"
|
||||
context.locals = locals
|
||||
puts "Locals #{context.locals.keys.join('-')}, #{context.locals.object_id}"
|
||||
context.function = function
|
||||
|
||||
into = function.body
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user