I saw a cute oneliner recently that I didn't note down, the gist of it
was as follows
(let loop ((lp (interaction-environment)))
(display (eval (read) lp))
(newline)
(loop lp))
Note the second line is very nearly read-eval-print-loop ;-)
On 28/11/18 6:53 pm, Catonano wrote:
Could anyone write a small example of a REPL server for me ?
The manual indicates some functions but then the code for the REPL is
overwhelming
A really small example, like the one for reading strings from the current
input port that I offered in another thread, would help
From that, I could start for learning how to make it concurrent and maybe
let it talk a different protocol
Thanks