var repl = require("repl");
var littleLisp = require("./littlelisp").littleLisp;

repl.start({
  prompt: "> ",
  eval: function(cmd, context, filename, callback) {
    if (cmd !== "(\n)") {
      cmd = cmd.slice(1, -2); // rm parens and newline added by repl
      var ret = littleLisp.interpret(littleLisp.parse(cmd));
      callback(null, ret);
    } else {
      callback(null);
    }
  }
});

var repl = require("repl");
var littleLisp = require("./littlelisp").littleLisp;

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

Fix REPL so it no longer removes read chars from user input
Fix REPL so it no longer removes read chars from user input

* Node's REPL no longer sends the prompt and newline.
* Thanks, Chris!