A simple, interpreted LISP, written in Python.
A simple, but fun language. Features include:
- A handful of data types (integers, floats, booleans, strings, and symbols)
- Variables
- First class functions with lexical scoping
- Basic error handling
- A nice, homemade-quality feeling
Initially, it will not have:
- A proper type system
- Good performance
- keyword function arguments
- And much, much more
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)
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.
The full documentation to this little language can be found here: