How to write a good REPL

Discussion of Common Lisp
Post Reply
porky11
Posts: 25
Joined: Fri May 02, 2014 6:46 am

How to write a good REPL

Post by porky11 » Wed May 07, 2014 8:30 am

I want to have a REPL like the one in clisp, that I can call as a function myself.

Where do I get lisp code of such a REPL that I can modify etc. ?

Goheeca
Posts: 271
Joined: Thu May 10, 2012 12:54 pm
Contact:

Re: How to write a good REPL

Post by Goheeca » Sat May 10, 2014 1:55 pm

Here is a source of clisp REPL: http://clisp.cvs.sourceforge.net/viewvc ... ploop.lisp. Usually it's very entangled with low-level implementation-dependent functions of the given CL implementation. I've been playing with ABCL in the same manner to make it run as an applet and it's not easy to create a proper REPL, but when I've found out there exist issues with the java security policy my enthusiasm dropped.
cl-2dsyntax is my attempt to create a Python-like reader. My mirror of CLHS (and the dark themed version). Temporary mirrors of aferomentioned: CLHS and a dark version.

Post Reply