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