john-science / slowloris

A DIY-LISP.
5 stars 3 forks source link
language lisp

Slow Loris

A simple, interpreted LISP, written in Python.

What Slow Loris Is

A simple, but fun language. Features include:

Initially, it will not have:

The syntax is in the Lisp family:

(def fact 
    # Factorial function
    (lambda (n) 
        (if (eq n 0) 
            1 # Factorial of 0 is 1
            (* n (fact (- n 1))))))

# When parsing the file, the last statement is returned
(fact 5)

Prerequisites

To use Slow Loris, make sure you have installed Python, Pip, and Nose (pip install nose). Slow Loris is based on Python 2.7, because the ast standard library is wildly inferior in Python 3.

API Documentation

The full documentation to this little language can be found here: