The Elixir parser under the microscope
summary
Shows how the Elixir parser is repurposed to turn source into AST to SQL fragments, and how a few-hundred-line interpreted “Elixir-ish” language and a bubble/filter DSL were built and deployed in production. Demonstrates the real drawback: parsing user input creates atoms and a non‑reversible AST (one app hit ~1,000,000 atoms), and presents a prototype atom-safe parser that preserves original source (non‑destructive) — work in progress but functional for SQL generation.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 3:22Parser DNA and AST
- 10:00Macros and post-processing
- 16:27Parser relaxation deep dive
- 24:01Lexer and token extraction
- 27:11Comments and whitespace
- 30:28Validation and errors
- 33:10Q&A








