I've started following along with the Make a Lisp guide. I've decided to implement the Lisp in javascript to give myself a refresher. Currently, I am on step 1, which involves designing the lexer and parser for the REPL. More specifically, I am working on the lexer. The Make a Lisp guide has particular instructions regarding how to implement this step...I just have to finish up the reader functions so that I can test them. Right now, I have a prompt that accepts user input then just spits it back out, in place of any parsing.
user> hello
hello
user> helloooooo!!!
helloooooo!!!
user> is anybody there?????
is anybody there?????
user> stop taunting me!
stop taunting me!
user> ^D
hypatia@Yours-MacBook-Air:mal/javascript$ 
reading and echoing a line in node is a PITA. See attached. (Their javascript example has entire library files for read & print ...)
![[paper clip]](/cours/static/images/paper_clip_tilt.png) 
| last modified | size | ||
|  | jim_step0_repl.js | Fri Oct 31 2025 05:51 am | 1.1K | 
|  | reader.js | Fri Oct 31 2025 05:51 am | 1.1K | 
|  | step1_read_print.js | Fri Oct 31 2025 05:51 am | 683B |