Class: Vertigo::VarAssign

Inherits:
AstNode
  • Object
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, rhs = nil) ⇒ VarAssign

Returns a new instance of VarAssign.



218
219
220
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 218

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

Instance Attribute Details

#lhsObject

Returns the value of attribute lhs.



217
218
219
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 217

def lhs
  @lhs
end

#rhsObject

Returns the value of attribute rhs.



217
218
219
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 217

def rhs
  @rhs
end