2015-05-04 13:22:22 +02:00
|
|
|
module Compiler
|
|
|
|
# operator attr_reader :operator, :left, :right
|
2015-05-04 22:03:52 +02:00
|
|
|
def self.compile_operator expression, method , message
|
2015-05-04 13:22:22 +02:00
|
|
|
call = CallSiteExpression.new( operator , [right] , left )
|
|
|
|
call.compile(method,message)
|
|
|
|
end
|
|
|
|
end
|