https://github.com/obipawan/bunny
A simplistic lisp interpreter implemented in javascript
https://github.com/obipawan/bunny
lisp list mal
Last synced: about 1 year ago
JSON representation
A simplistic lisp interpreter implemented in javascript
- Host: GitHub
- URL: https://github.com/obipawan/bunny
- Owner: obipawan
- Created: 2017-07-03T05:56:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-03T05:56:46.000Z (almost 9 years ago)
- Last Synced: 2025-02-05T08:51:40.057Z (over 1 year ago)
- Topics: lisp, list, mal
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

Bunny
A simplistic lisp interpreter implemented in javascript heavily inspired by miniMAL and buildyourownlisp
Very much a wip
#### examples
- logical operations
```sh
(+ 10 20) //30
(+ 10 (+ 10 20)) //40
(- 20 10) //10
```
- environment variables
```sh
(def a 6) // 6
(+ a 1) // 7
(let (b 10) b) // 10
```
- closures
```sh
(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
```sh
npm i && node index.js
```
#### Credits:
- miniMAL: https://github.com/kanaka/miniMAL
- buildyourownlisp: http://www.buildyourownlisp.com
#### Attributions:
`bunny.png` is created by [Catherine Please](https://thenounproject.com/CatherinePlease/) from [The Noun Project](https://thenounproject.com/)
##### license
WTFPL