Class: Vertigo::Binary

Inherits:
AstNode show all
Defined in:
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(lhs = nil, op = nil, rhs = nil) ⇒ Binary

Returns a new instance of Binary.



484
485
486
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 484

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

Instance Attribute Details

#lhsObject

Returns the value of attribute lhs.



483
484
485
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 483

def lhs
  @lhs
end

#opObject

Returns the value of attribute op.



483
484
485
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 483

def op
  @op
end

#rhsObject

Returns the value of attribute rhs.



483
484
485
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 483

def rhs
  @rhs
end