Lisp in 99 lines of C and how to write one yourself. Includes 21 Lisp primitives, garbage collection and REPL. Includes tail-call optimized versions for speed and reduced memory use. - Robert-van-E...
Honestly, it probably doesn’t include the parser or some other large portion of the language. There’s a book about writing your own lisp from scratch in so many lines of C, and it famously pawns off big chunks of the process to ready made stuff. Like, I get libraries, but you didn’t actually make your own lisp in 1,000 lines or whatever the book promised. “From scratch” means without unnecessary libraries. Actually making lisp from scratch still takes like 100k lines.
Granted, the title of this link didn’t say from scratch, I’m just pointing out the similarities between it and that book.
I wonder if this says more about Lisp or C.
Honestly, it probably doesn’t include the parser or some other large portion of the language. There’s a book about writing your own lisp from scratch in so many lines of C, and it famously pawns off big chunks of the process to ready made stuff. Like, I get libraries, but you didn’t actually make your own lisp in 1,000 lines or whatever the book promised. “From scratch” means without unnecessary libraries. Actually making lisp from scratch still takes like 100k lines.
Granted, the title of this link didn’t say from scratch, I’m just pointing out the similarities between it and that book.