about summary refs log blame commit diff stats
path: root/js/blotbotboot/repl.js
blob: 6ea6929335208e385c52c1a451a57423381c1e02 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                         
// lifted from https://github.com/maryrosecook/littlelisp
var repl = require("repl");
var lisp = require("./lisp").lisp;

repl.start({
  prompt: "* ",
  eval: function (cmd, context, filename, callback) {
    var ret = lisp.interpret(lisp.parse(cmd));
    callback(null, ret);
  },
});