rubyx/lib/vm/tree/operator_expression.rb

11 lines
239 B
Ruby
Raw Normal View History

2017-01-14 19:28:44 +02:00
module Vm
2016-12-09 14:17:01 +02:00
module Tree
class OperatorExpression < Expression
attr_accessor :operator , :left_expression , :right_expression
2016-12-23 21:31:31 +02:00
def to_s
"#{left_expression} #{operator} #{right_expression}"
end
2016-12-09 14:17:01 +02:00
end
end
end