Class: Crokus::Indexed

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(l, r) ⇒ Indexed

Returns a new instance of Indexed.



383
384
385
# File 'lib/crokus/ast.rb', line 383

def initialize l,r
  @lhs,@rhs=l,r
end

Instance Attribute Details

#lhsObject

Returns the value of attribute lhs.



382
383
384
# File 'lib/crokus/ast.rb', line 382

def lhs
  @lhs
end

#rhsObject

Returns the value of attribute rhs.



382
383
384
# File 'lib/crokus/ast.rb', line 382

def rhs
  @rhs
end