2014-06-25 01:47:59 +02:00
|
|
|
module Ast
|
|
|
|
class OperatorExpression < Expression
|
|
|
|
# attr_reader :operator, :left, :right
|
2014-07-14 15:19:47 +02:00
|
|
|
def compile frame , method
|
2014-07-15 09:35:29 +02:00
|
|
|
call = CallSiteExpression.new( operator , [right] , left )
|
2014-07-14 23:00:00 +02:00
|
|
|
call.compile(frame , method)
|
2014-07-14 15:19:47 +02:00
|
|
|
end
|
2014-06-25 01:47:59 +02:00
|
|
|
end
|
|
|
|
end
|