rubyx/lib/compiler/operator_expressions.rb
2015-05-06 15:14:47 +03:00

8 lines
268 B
Ruby

module Compiler
# operator attr_reader :operator, :left, :right
def self.compile_operator expression, method
call = Ast::CallSiteExpression.new(expression.operator , [expression.right] , expression.left )
Compiler.compile(call, method)
end
end