Class: RubyRTL::Binary

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

Instance Attribute Summary collapse

Attributes inherited from Expr

#type

Attributes inherited from Ast

#comments

Instance Method Summary collapse

Methods inherited from Ast

#accept

Constructor Details

#initialize(lhs, op, rhs) ⇒ Binary

Returns a new instance of Binary.



189
190
191
# File 'lib/ruby_rtl/ast.rb', line 189

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

Instance Attribute Details

#lhsObject

Returns the value of attribute lhs.



188
189
190
# File 'lib/ruby_rtl/ast.rb', line 188

def lhs
  @lhs
end

#opObject

Returns the value of attribute op.



188
189
190
# File 'lib/ruby_rtl/ast.rb', line 188

def op
  @op
end

#rhsObject

Returns the value of attribute rhs.



188
189
190
# File 'lib/ruby_rtl/ast.rb', line 188

def rhs
  @rhs
end