Class: Crokus::Assign

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

Direct Known Subclasses

PostFixAccu, PreFixAccu

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ast

#accept, #str

Constructor Details

#initialize(lhs, op, rhs) ⇒ Assign

Returns a new instance of Assign.



239
240
241
# File 'lib/crokus/ast.rb', line 239

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

Instance Attribute Details

#lhsObject

Returns the value of attribute lhs.



238
239
240
# File 'lib/crokus/ast.rb', line 238

def lhs
  @lhs
end

#opObject

Returns the value of attribute op.



238
239
240
# File 'lib/crokus/ast.rb', line 238

def op
  @op
end

#rhsObject

Returns the value of attribute rhs.



238
239
240
# File 'lib/crokus/ast.rb', line 238

def rhs
  @rhs
end