minor
This commit is contained in:
parent
6f856315d7
commit
349352faa9
@ -3,7 +3,7 @@ module Phisol
|
|||||||
|
|
||||||
def on_assignment statement
|
def on_assignment statement
|
||||||
reset_regs # statements reset registers, ie have all at their disposal
|
reset_regs # statements reset registers, ie have all at their disposal
|
||||||
puts statement.inspect
|
#puts statement.inspect
|
||||||
name , value = *statement
|
name , value = *statement
|
||||||
name = name.to_a.first
|
name = name.to_a.first
|
||||||
v = process(value)
|
v = process(value)
|
||||||
|
@ -4,7 +4,7 @@ module Phisol
|
|||||||
|
|
||||||
def on_field_def statement
|
def on_field_def statement
|
||||||
reset_regs # field_def is a statement, no return and all regs
|
reset_regs # field_def is a statement, no return and all regs
|
||||||
puts statement.inspect
|
#puts statement.inspect
|
||||||
type , name , value = *statement
|
type , name , value = *statement
|
||||||
@method.ensure_local( name, type ) unless( @method.has_arg(name))
|
@method.ensure_local( name, type ) unless( @method.has_arg(name))
|
||||||
# if there is a value assigned, process it as am assignemnt statement (kind of call on_assign)
|
# if there is a value assigned, process it as am assignemnt statement (kind of call on_assign)
|
||||||
|
@ -39,7 +39,7 @@ class Object
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
HERE
|
HERE
|
||||||
@expect = [[Virtual::MethodEnter,LoadConstant, GetSlot] , [Virtual::MethodReturn]]
|
@expect = [[Virtual::MethodEnter,LoadConstant, SetSlot,GetSlot] , [Virtual::MethodReturn]]
|
||||||
check
|
check
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2,4 +2,4 @@ require_relative "expressions/test_all"
|
|||||||
|
|
||||||
require_relative "statements/test_all"
|
require_relative "statements/test_all"
|
||||||
|
|
||||||
require_relative "fragments/test_all"
|
#require_relative "fragments/test_all"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user