maryrosecook / littlelisp

A small Lisp interpreter in JavaScript

Home Page:http://maryrosecook.com/blog/post/little-lisp-interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"))

About

A small Lisp interpreter in JavaScript

http://maryrosecook.com/blog/post/little-lisp-interpreter

License:MIT License


Languages

Language:JavaScript 100.0%