minor
This commit is contained in:
@ -3,7 +3,7 @@ module Phisol
|
||||
|
||||
def on_assignment statement
|
||||
reset_regs # statements reset registers, ie have all at their disposal
|
||||
puts statement.inspect
|
||||
#puts statement.inspect
|
||||
name , value = *statement
|
||||
name = name.to_a.first
|
||||
v = process(value)
|
||||
|
@ -4,7 +4,7 @@ module Phisol
|
||||
|
||||
def on_field_def statement
|
||||
reset_regs # field_def is a statement, no return and all regs
|
||||
puts statement.inspect
|
||||
#puts statement.inspect
|
||||
type , name , value = *statement
|
||||
@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)
|
||||
|
Reference in New Issue
Block a user