class Omnium::Parser::AST::BinaryOperator

Binary operator represents the four binary operations: add, subtract, multiply and divide. @left and @right are the nodes representing operands (i.e. Number). @operator represents the operator as a token.

Attributes

left[R]
operator[R]
right[R]

Public Class Methods

new(left, operator, right) click to toggle source
# File lib/omnium/parser/ast/binary_operator.rb, line 12
def initialize(left, operator, right)
  @left = left
  @operator = operator
  @right = right
end