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