small fixes
This commit is contained in:
parent
b281c24a39
commit
c36a08d52d
@ -32,13 +32,14 @@ module Ast
|
||||
end
|
||||
|
||||
l_val = left.compile(context , into)
|
||||
into = into.scope binding
|
||||
|
||||
case operator
|
||||
when ">"
|
||||
code = l_val.less_or_equal into , r_val
|
||||
when "+"
|
||||
res = context.function.new_local
|
||||
into.add_code res.is l_val + r_val
|
||||
into.res = l_val + r_val
|
||||
# code = res.plus into , l_val , r_val
|
||||
code = res
|
||||
when "-"
|
||||
|
@ -24,7 +24,7 @@ module Vm
|
||||
# part of the dsl, ie serves to make code like value.is a + b work
|
||||
# ie we save the receier as the result into the instruction and pass that back
|
||||
def is instruction
|
||||
instruction.result = self
|
||||
instruction.assign self
|
||||
instruction
|
||||
end
|
||||
def type
|
||||
|
Loading…
Reference in New Issue
Block a user