How to write a good REPL

Discussion of Common Lisp

How to write a good REPL

Postby 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. ?
porky11
 
Posts: 9
Joined: Fri May 02, 2014 6:46 am

Re: How to write a good REPL

Postby Goheeca » Sat May 10, 2014 1:55 pm

Here is a source of clisp REPL: http://clisp.cvs.sourceforge.net/viewvc/clisp/clisp/src/reploop.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).
User avatar
Goheeca
 
Posts: 205
Joined: Thu May 10, 2012 12:54 pm


Return to Common Lisp

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron