class Crokus::CommaStmt

Attributes

lhs[RW]
rhs[RW]

Public Class Methods

new(lhs,rhs) click to toggle source
# File lib/crokus/ast.rb, line 215
def initialize lhs,rhs
  @lhs,@rhs=lhs,rhs
end

Public Instance Methods

to_list() click to toggle source
# File lib/crokus/ast.rb, line 219
def to_list
  list=[]
  list << to_list_rec(@lhs)
  list << to_list_rec(@rhs)
  list.flatten
end
to_list_rec(e) click to toggle source
# File lib/crokus/ast.rb, line 226
def to_list_rec e
  ret=[]
  if e.is_a? CommaStmt
    ret << e.to_list
  else
    ret << e
  end
  ret
end