This is the source code from my screencast: How to write an interpreter in Python.
It uses:
- parsimonious library for parsing using Parsing Expression Grammar (PEG) (See also the original PEG paper).
- py.test testing framework. (See also the book Test-Driven Development: By Example).