Skip to content

ktp-forked-repos/slowloris

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slow Loris

A simple, interpreted LISP, written in Python.

What Slow Loris Is

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)

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:

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.3%
  • Slash 9.2%
  • Shell 1.5%