rubyx/lib/virtual/compiler/operator_expressions.rb
Torsten Ruger de8fe46fe0 move compiler into virtual
and associated changes in code, requires tests etc
2015-05-08 15:10:30 +03:00

10 lines
291 B
Ruby

module Virtual
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
end