https://github.com/nitive/lisp-interpreter
https://github.com/nitive/lisp-interpreter
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/nitive/lisp-interpreter
- Owner: Nitive
- Created: 2016-07-17T09:06:11.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-28T18:58:55.000Z (over 9 years ago)
- Last Synced: 2025-03-25T20:39:30.920Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Lisp interpreter
===
Simple lisp interpreter written in JS
```clojure
(+ (- 4 2) 2)
```
```js
const lisp = require('lisp-interpeter')
const ast = lisp.parse('(+ 1 2)')
cost ast = { ... }
lisp.evalAst(ast)
lisp.eval('(+ 1 2)')
```