Skip to content

coderaiser/lisp

Repository files navigation

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

About

simple lisp implementation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published