rubyx/lib/phisol/compiler/field_def.rb

18 lines
331 B
Ruby
Raw Normal View History

2015-10-07 14:22:47 +02:00
module Phisol
2015-09-20 15:30:07 +02:00
Compiler.class_eval do
def on_field_def statement
#puts statement.inspect
type , name , value = *statement
2015-09-27 11:59:26 +02:00
index = @method.ensure_local( name , type )
2015-09-20 15:30:07 +02:00
if value
value = process( value )
end
# field_def is a statement, no return
return nil
2015-09-20 15:30:07 +02:00
end
end
end