Get the latest tech news

Little Lisp Interpreter (2014)


Little Lisp is an interpreter that supports function invocation, lambdas, lets, ifs, numbers, strings, a few library functions, and lists. I wrote it for a l...

I wrote it for a lightning talk at the Recurse Center to show how easy it is to write an interpreter. tokenize() takes a string of Lisp code, puts spaces around every parenthesis and splits on whitespace. interpretList() continues mapping over the input array by calling interpret() on the second element of the list: the"Lisp" string.

Get the Android app

Or read this on Hacker News