rubyx/lib/compiler/operator_expressions.rb
Torsten Ruger ff22c17784 move ast to compiler
new compile module does just that: compile
Dispatch with visitor pattern
no more patching into ast
2015-05-04 14:22:22 +03:00

8 lines
234 B
Ruby

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