about summary refs log tree commit diff stats
path: root/lisp/js/repl.js
blob: 61f67c3c29b7e74415a5fb367cbb4b2f8b4cdeda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
var repl = require("repl");
var lisp = require("./lisp").lisp;

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