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