|
From: | Christopher Lam |
Subject: | Re: a small example of a REPL server |
Date: | Thu, 29 Nov 2018 09:21:17 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
(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
[Prev in Thread] | Current Thread | [Next in Thread] |