Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A toy Lisp interpreter and simple eval function
Python
Branch: master
Pull request Compare This branch is 7 commits ahead, 5 commits behind mnielsen:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
eval.tl
sqrt.tl
tiddlazy.py
tiddlylisp.py
tiddlyparser.py
tiddlyvau.py

README.md

tiddlylisp

Tiddlylisp is a toy Lisp interpreter, written in Python, and intended to accompany the essay Lisp as the Maxwell's equations of software.

The repository contains the following files:

tiddlylisp.py: A simple interpreter for a subset of Lisp. Tiddlylisp is adapted from and closely based on Peter Norvig's lispy interpreter.

tiddlyvau.py: A modification of the interpreter that uses vau expressions to move all built-in functions and syntactic forms out of the eval function. lispy interpreter.

tiddlyparser.py: A shared module for parsing s-expressions.

sqrt.tl: An example tiddlylisp program, for computing square roots. Adapted from an example in the book The Structure and Interpretation of Computer Programs, by Harold Abelson and Gerald Jay Sussman with Julie Sussmann.

eval.tl: A tiddylisp program defining a function eval which can evaluate any Lisp expression, albeit, for an even smaller subset of Lisp than tiddlylisp. Based on the LISP 1.5 Programmer's Manual and the essay The Roots of Lisp (postscript) by Paul Graham.

See the essay for more details.

Something went wrong with that request. Please try again.