Make Your Own Programming Language!
summary
Shows a concrete pipeline that starts with text and ends as runnable JavaScript, claiming a full compiler from lambda script to JavaScript implemented in F sharp. Covers tokenizer bugs, lexer/token rules, bottom‑up parser building a CST then an AST, type ideas and unit tests, and codegen using escodegen with HJs interop. Demo compiles and runs printing true/false; transcript also mentions preventing six million tons of co2.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:41Why do we care
- 6:13Fsharp
- 7:44Tokenization
- 10:10Other Decisions
- 11:48Parsing
- 14:53Bottomup parsing
- 18:51Generating ASTs
related talks
28mHow to Build a Compiler
27mParsing, Compiling, and Static Metaprogramming
31mJavaScript Compilers For Fun and Profit
44mJavaScript AST programming: Introduction and beyond
13mBrewing JavaScript: Compile your own domain-specific language to JavaScript
24mJavaScript is Literature is JavaScript
50mHow JavaScript Happened: A Short History of Programming Languages
22mHow Linters, Compilers & Other Cool Things Work
