Skip to content

Instantly share code, notes, and snippets.

@cametan001
cametan001 / Lisp.py
Created November 23, 2010 09:34 — forked from wasabili/Lisp.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, traceback
nil = type('Nil', (), {'__str__': lambda self: '()'})()
undef = type('Undef', (), {'__str__': lambda self: '#<undef>'})()
f = type('F', (), {'__str__': lambda self: '#f'})()
t = type('T', (), {'__str__': lambda self: '#t'})()