Method: Heist::Scheme::List#eval
- Defined in:
- lib/heist/parser/nodes.rb
#eval ⇒ Object
Evaluating a List produces a Heist Cons object.
43 44 45 46 47 |
# File 'lib/heist/parser/nodes.rb', line 43 def eval list = Runtime::Cons.construct(cells, true) { |c| c.eval } list.tail.cdr = tail.cell.eval if tail.respond_to?(:dot) list end |