18 lines
298 B
Ruby
18 lines
298 B
Ruby
module Bosl
|
|
Compiler.class_eval do
|
|
|
|
def on_field_def expression
|
|
# puts expression.inspect
|
|
type , name , value = *expression
|
|
|
|
index = method.ensure_local( name )
|
|
|
|
if value
|
|
value = process( value )
|
|
end
|
|
|
|
Virtual::Return.new( value )
|
|
end
|
|
end
|
|
end
|