Illuminated Macros
summary
Proposal defines sequence expressions (a regex-like matcher over Clojure values) plus a parser function parse-forms and a macro wrapper defsyntax that generate complete grammars, machine-readable docs and pinpointed syntax errors; example reproduces full let and defn grammars and a colorized syn-do printer. Grammars support recursion, captures/recaps for arbitrary computation, and composable rule reuse. Prototype emits better error locations and expected tokens; expansion tracing and final output-generation examples remain planned but not yet shipped.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 0:41What is a macro
- 1:55Macros as functions
- 4:07Illuminated macros
- 9:00Macro by example
- 12:13Syntax
- 17:47Project
- 19:43defsyntax
- 21:44seekx
- 26:45data
- 27:37no escaping
- 30:51defin
- 32:17Summary
- 33:23Output








