A Lisp compiler targeting Python
Python Common Lisp
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc Hello pylisp Jun 27, 2013
examples returning the list instead of printing the result May 24, 2014
pycon5-it added links slide May 25, 2014
src initial support for objects Jan 28, 2015
.gitignore Hello pylisp Jun 27, 2013
README.txt Update README.txt Jul 27, 2013

README.txt

A Lisp dialect compiler targeting Python bytecode

- A compile-only implementation
- Works with Python 2.x / 3.x and PyPy
- Macros
- Lisp-2
- NOT aiming at becoming a Common Lisp implementation

Example session:

    ~/checkout/pylisp/src$ python pylisp.py 
    PyLisp 0.002
    > (defun square (x) (* x x))
    --> <function lambda at 0x8f7abc4>
    > (map #'square (range 10))
    --> (0 1 4 9 16 25 36 49 64 81)
    > (defun adder (x) (lambda (y) (setq x (+ x y))))
    --> <function lambda at 0x8f7ac6c>
    > (let ((a (adder 10)))
        (dotimes (i 5)
          (print (funcall a 3))))
    13
    16
    19
    22
    25
    --> None
    >