Skip to content

Build a Lisp Interpreter

Build a Scheme/Lisp interpreter in ~200 lines: tokenize, parse to nested lists, evaluate atoms and expressions, support define and if, lambda + closures, recursion, list operations, and macros. The textbook (SICP) classic — every CS curriculum has this.

intermediate13 lessons4 chapters13 graded exercisesPython

No sign-up needed for lesson 1 · certificate on completion · sign up to save progress

What you’ll have built

Chapter by chapter. Every step is a graded exercise.

  • Reader & S-Expressions
  • Evaluator
  • Functions & Closures
  • Advanced Topics
Starts in Python — solve in the language you choose in the editor, same tests either way.

Curriculum

4 chapters, 13 lessons. Each lesson is a short read, one graded exercise, and a quiz.

  1. 1Why Lisp?Read · exercise · quiz
  2. 2Parse to ASTRead · exercise · quiz
Loading reference solution…
Build a Lisp Interpreter