A small Lisp interpreter in JavaScript
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore first Jun 18, 2013
LICENSE add MIT license Jun 23, 2014
README.md Update contact details Jan 9, 2018
littlelisp.js a bit of tidying Mar 24, 2016
littlelisp.spec.js Add test for interpreting empty list Mar 4, 2014
package.json Update contact details Jan 9, 2018
repl.js Fix REPL so it no longer removes read chars from user input Jan 9, 2018

README.md

Little Lisp

A mini Lisp interpreter in JavaScript. Supports lists (obvs), function invocation, lambdas, lets, if statements, numbers, strings and the library functions first, rest and print.

Thank you to Martin Tornwall for the implementations of let and if.

Repl

$ node repl.js

Some runnable programs

1
(first (1 2 3))
((lambda (x) (rest x)) ("a" "b" "c"))