Module: Trxl::ArrayLiteral1

Defined in:
lib/trxl/trxl_grammar.rb

Instance Method Summary collapse

Instance Method Details

#eval(env = Environment.new) ⇒ Object



2636
2637
2638
# File 'lib/trxl/trxl_grammar.rb', line 2636

def eval(env = Environment.new)
  expression_list.eval(env)
end

#to_s(env = Environment.new) ⇒ Object



2640
2641
2642
# File 'lib/trxl/trxl_grammar.rb', line 2640

def to_s(env = Environment.new)
  "(#{expression_list.to_s(env)})"
end