rspivak/lsbasi

Let's Build A Simple Interpreter

Python

1,875

35 commits

updated Aug 18, 2025

See the code

README

Let's Build A Simple Interpreter

This repository contains the source code and examples for the blog series Let's Build A Simple Interpreter.
The series takes you step by step through creating a basic interpreter in Python, introducing fundamental ideas behind interpreters such as lexing, parsing, abstract syntax trees, and evaluation.

The goal is to make the concepts approachable and practical, so you can follow along with the blog posts, run the code yourself, and understand how interpreters work under the hood.
Each part builds on the previous one, gradually adding new language features and complexity.

rspivak/lsbasi

Let's Build A Simple Interpreter

Python

1,875

35 commits

updated Aug 18, 2025

See the code

README

Let's Build A Simple Interpreter

This repository contains the source code and examples for the blog series Let's Build A Simple Interpreter.
The series takes you step by step through creating a basic interpreter in Python, introducing fundamental ideas behind interpreters such as lexing, parsing, abstract syntax trees, and evaluation.

The goal is to make the concepts approachable and practical, so you can follow along with the blog posts, run the code yourself, and understand how interpreters work under the hood.
Each part builds on the previous one, gradually adding new language features and complexity.

Significant stargazers

Nazım Can Altınova

148 followers · starred Sep 2015

zhou fan

57 followers · starred Feb 2020

cixuuuuuuuuz

23 followers · starred Mar 2018

Lukasz Strzalkowski

277 followers · starred Jan 2016