Simple lisp implementation. Could be used in browser as global lisp
, node.js
environment or bundled with help of browserify
.
npm i lisp
const lisp = require('lisp');
lisp('(+ 1 2 3 4');
// returns
10
lisp('(+ "hello" " world"');
// returns
'hello world'
lisp ('(+ 5 (* 2 2) (/ 4 2))');
// returns
11
lisp('(head \'(1 2 3 4)');
// returns
1
lisp('(tail \'(1 2 3 4)');
// returns
[2, 3, 4]
MIT