lisp

simplest lisp implementation

Usage no npm install needed!

<script type="module">
  import lisp from 'https://cdn.skypack.dev/lisp';
</script>

README

Lisp License NPM version Dependency Status Build Status

Simple lisp implementation. Could be used in browser as global lisp, node.js environment or bundled with help of browserify.

Install

npm i lisp

How to use?

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]

License

MIT