Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kraks/lisp.js
A tiny lisp interpreter in JavaScript.
https://github.com/kraks/lisp.js
javascript lisp lisp-interpreter tiny
Last synced: about 1 month ago
JSON representation
A tiny lisp interpreter in JavaScript.
- Host: GitHub
- URL: https://github.com/kraks/lisp.js
- Owner: Kraks
- Created: 2014-05-21T13:06:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-12T02:37:03.000Z (almost 10 years ago)
- Last Synced: 2024-09-17T02:33:30.865Z (2 months ago)
- Topics: javascript, lisp, lisp-interpreter, tiny
- Language: JavaScript
- Homepage:
- Size: 238 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lisp.js
Inspired by Peter Norvig's [Lisp.py](http://norvig.com/lispy.html), I take two days and wrote a tiny but powerful lisp interpreter in JavaScript.
I improved arithmetic operator to support multiple parameter calculations, such as `(add 1 2 3 4)`, and added some syntax sugars like `let`, `let*`, `cond`, `else`, `and` and `or`.
Now it could interpret a Y combinator!
How to use
---
install:`# npm install lisp.js`
start:
`$ lispjs`
read code from files:
`$ lispjs file1 file2 ...`
Have fun!
Licenses
---
MITGithub: [Lisp.js](http://github.com/Kraks/lisp.js)