rubyx/lib/compiler/operator_expressions.rb

8 lines
268 B
Ruby
Raw Normal View History

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)
end
end