8 lines
234 B
Ruby
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
|