Building a Language by Leandro Ostera (Eng) | JSConfAM19
summary
A tiny color language gets built from grammar to runnable machine with concrete choices: grammar written in Backus-Naur Form, a parser that produces an AST, and semantics given as operational semantics that define sequencing, name binding, and evaluation order. Color creation and addition are implemented (RGB components add and cap at 255), the interpreter applies rules bottom‑up to expand names then add colors, and the demo shows the language working end to end.
AI-written summary · about
chapters (11)
- 0:00Start
- 4:05Rgb Space
- 9:12Parser
- 9:40Abstract Syntax Tree
- 10:11Binding
- 11:04Semantics
- 11:15Operational Semantics
- 13:52Binding of Names
- 22:36Additive Mixing
- 25:30Next Steps
- 27:11Tips and Tricks
related talks
26mDesign a new language in JS: from zero to autocomplete
27mParsing, Compiling, and Static Metaprogramming
04mLightning talk from Cole Voss
38mThe magical land of AST's with babel, eslint and codemods
30mAesthetics of code.
14mExample-Based Live Programming for Everyone: Building Language-Agnostic Tools for Live Programming w
29mMy Little Parser: Tooling is Magic
15mExample-Driven Software Language Engineering
