Brewing JavaScript: Compile your own domain-specific language to JavaScript
summary
A Lispy DSL is parsed with a recursive descent parser, mapped to the JavaScript AST format ESTree, and transpiled with escodegen into runnable JS; code examples show how variable and function expressions become real JavaScript functions, how Lisp‑style macros expand into inline code, and how the pipeline (parse → AST → generate) produces working output rather than just pseudocode.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:50DSL to JavaScript workflow
- 3:17Understanding Lisp and abstract syntax trees
- 4:41Compiling Lispy Script
- 6:07Parsers and generators
- 8:14Why use a DSL
- 8:54Lisp macros benefits
- 11:24Lispy Script future
related talks
28mHow to Build a Compiler
26mMake Your Own Programming Language!
44mJavaScript AST programming: Introduction and beyond
22mHow Linters, Compilers & Other Cool Things Work
38mCreating a DSL
31mJavaScript Compilers For Fun and Profit
27mParsing, Compiling, and Static Metaprogramming
28mFantastic ASTs and where to find them
