Simple Lisp implementation in JavaScript. Web REPL demo
Note: this is an experimental library for educational purposes only
$ git clone https://github.com/amitayh/lispjs
$ cd lispjs
$ npm install
$ npm test
var lisp = require('./lisp');
// Fibonacci
var fib = [
// Define fib function
['define', 'fib',
['lambda', ['n'],
['if', ['<', 'n', 2],
1,
['+',
['fib', ['-', 'n', 1]],
['fib', ['-', 'n', 2]]]]]],
// Call function
['fib', 5]
];
console.log(lisp.run(fib)); // Prints 8