Class: Crokus::Binary

Inherits:
Expr show all
Defined in:
lib/crokus/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ast

#accept, #str

Constructor Details

#initialize(lhs, op, rhs) ⇒ Binary

Returns a new instance of Binary.



358
359
360
# File 'lib/crokus/ast.rb', line 358

def initialize lhs,op,rhs
  @lhs,@op,@rhs = lhs,op,rhs
end

Instance Attribute Details

#lhsObject

Returns the value of attribute lhs.



357
358
359
# File 'lib/crokus/ast.rb', line 357

def lhs
  @lhs
end

#opObject

Returns the value of attribute op.



357
358
359
# File 'lib/crokus/ast.rb', line 357

def op
  @op
end

#rhsObject

Returns the value of attribute rhs.



357
358
359
# File 'lib/crokus/ast.rb', line 357

def rhs
  @rhs
end