Page 1 of 1

more than this (loop (print (eval (read))))

Posted: Tue Nov 23, 2010 12:42 pm
by stevemail
I need to evaluate my functions interactively.
I would to get an skeleton for a more sofisticated REPL loop than the usual (loop (print (eval (read)))), this is, customizing the prompt, evaluating exit...
Using CLISP on Ubuntu.

thank you

Re: more than this (loop (print (eval (read))))

Posted: Tue Nov 23, 2010 12:45 pm
by ramarren
I am not sure what you mean. Slime already exists, as do some plugins for Vim and commercial IDEs. Or do you want something else?

Re: more than this (loop (print (eval (read))))

Posted: Tue Nov 23, 2010 1:17 pm
by gugamilare
Clisp is open source, you can grab it's source code and look for the word "REPL" in it.

Re: more than this (loop (print (eval (read))))

Posted: Tue Nov 23, 2010 3:11 pm
by stevemail
I got. This is http://paste.lisp.org/display/18280 (provided by a freenoded user)