Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 1.04 KB

README.md

File metadata and controls

44 lines (37 loc) · 1.04 KB

Bunny

A simplistic lisp interpreter implemented in javascript heavily inspired by miniMAL and buildyourownlisp

Very much a wip

examples

  • 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...

Try it out

npm i && node index.js

Credits:

Attributions:

bunny.png is created by Catherine Please from The Noun Project

license

WTFPL