yortuc / lispip

Minimalistic Lisp clone in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lisp Clone in Python

Install

> pipenv install
> pipenv shell

Run

> python runner.py example1.lispip

Run tests

> pytest

Basic syntax

; define a recursive function
(defun factorial (params x)
    (if (< x 2)
        1
        (mul x (factorial (- x 1)))
    )
)

; print factorial 5
(print (factorial 5))

TODO

  • Remove params keyword in function definition
  • Package management
  • Simple http server example

About

Minimalistic Lisp clone in python


Languages

Language:Python 100.0%