A simplistic lisp interpreter implemented in javascript heavily inspired by miniMAL and buildyourownlisp
Very much a wip
- logical operations
(+ 10 20) //30
(+ 10 (+ 10 20)) //40
(- 20 10) //10
- environment variables
(def a 6) // 6
(+ a 1) // 7
(let (b 10) b) // 10
- closures
(fn (a) a) // function
( (fn (a) (+ a 10)) 10) // 20
( (def adder (fn (a b) (+ a b))) 5 10) //15
More to come...
npm i && node index.js
- miniMAL: https://github.com/kanaka/miniMAL
- buildyourownlisp: http://www.buildyourownlisp.com
bunny.png
is created by Catherine Please from The Noun Project
WTFPL