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