← board

Demo — Lisp / Scheme interpreter

Goal

A small Lisp/Scheme: S-expression reader, evaluator with environments and closures, core special forms (quote, if, lambda, define, let), and a builtin set (arithmetic, cons/car/cdr, comparisons, list). Tail behavior best-effort.

Surface / shape

Coverage

deep recursion (eval) · collections / hashing (symbol table, environments) · managed strings (reader/printer) · variant or class hierarchy · procedural types (builtins) · dynamic arrays. GC/arena pressure is a real-world stressor.

Acceptance / oracle

Constraints

Platonic source; no compiler changes; integer core for the oracle (rationals / floats optional, kept out of the deterministic path). Larger — may land in slices (reader → eval → closures → builtins). No self-host / cross regression.

Log