Build your own programming language

Create “Pixel”, a real language with variables, loops, functions and closures.

Python, Ruby and JavaScript all started as interpreters built from these exact pieces. The design follows Robert Nystrom’s “Crafting Interpreters”.

About 360 minutes across 7 stages. Skills: Scanning, Recursive descent, ASTs, Environments & scope, Closures.

The guides are part of licode Club.

Stages

  1. Turn source code into tokens.
  2. Parse and evaluate arithmetic.
  3. Comparisons, booleans, strings and type errors.
  4. Statements, print, let and assignment.
  5. Blocks and nested scope.
  6. if, while, and, or.
  7. Functions, return, recursion and closures.