Make a programming language run: lexer, parser and evaluator.
Build Chiya, a small programming language, from nothing. Turn text into tokens, tokens into a syntax tree with Pratt parsing, and run the tree with a tree-walking interpreter — variables, functions, closures, built-ins and arrays — then add loops yourself. Every step is plain JavaScript you write and test in the browser.
Advanced · 10 lessons · about 9 hours · free
Start Build an interpreter free: run real code in your browserright here
Continue with GoogleTurn source text into tokens, then into a syntax tree.
Walk the tree to run programs: values, names, functions and built-ins.
These courses make Build an interpreter easier:
Built with ❤️ by dibe.sh