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

Discussion of Common Lisp
Post Reply
stevemail
Posts: 2
Joined: Tue Nov 23, 2010 12:36 pm

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

Post by stevemail » Tue Nov 23, 2010 12:42 pm

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

ramarren
Posts: 613
Joined: Sun Jun 29, 2008 4:02 am
Location: Warsaw, Poland
Contact:

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

Post by ramarren » Tue Nov 23, 2010 12:45 pm

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?

gugamilare
Posts: 406
Joined: Sat Mar 07, 2009 6:17 pm
Location: Brazil
Contact:

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

Post by gugamilare » Tue Nov 23, 2010 1:17 pm

Clisp is open source, you can grab it's source code and look for the word "REPL" in it.

stevemail
Posts: 2
Joined: Tue Nov 23, 2010 12:36 pm

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

Post by stevemail » Tue Nov 23, 2010 3:11 pm

I got. This is http://paste.lisp.org/display/18280 (provided by a freenoded user)

Post Reply