maryrosecook / littlelisp

A small Lisp interpreter in JavaScript

Home Page:http://maryrosecook.com/blog/post/little-lisp-interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REPL Won't Start

DDR0 opened this issue · comments

Hello. I downloaded the .zip file of master today, and when I try to run it it won't start.

david@ubuntu:~/Documents/Lisp/littlelisp-master$ nodejs repl.js 

readline.js:121
    var lines = prompt.split(/[\r\n]/);
                       ^
TypeError: Object #<Object> has no method 'split'
    at Interface.setPrompt (readline.js:121:24)
    at new REPLServer (repl.js:128:7)
    at Object.start (repl.js:251:14)
    at Object.<anonymous> (/home/david/Documents/Lisp/littlelisp-master/repl.js:4:6)
    at Module._compile (module.js:446:26)
    at Object..js (module.js:464:10)
    at Module.load (module.js:353:32)
    at Function._load (module.js:311:12)
    at Array.0 (module.js:484:10)
    at EventEmitter._tickCallback (node.js:190:39)
david@ubuntu:~/Documents/Lisp/littlelisp-master$ 

I checked, and repl is being imported. I'm running nodejs v0.6.19.

Thanks.

Why are you running 0.6.19? That is extremely old.

Mercy, so it is. I just had "whatever ubuntu had in the package manager", and figured it was good. I'll go update.

OK, it works great now.