guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a small example of a REPL server


From: Mike Gran
Subject: Re: a small example of a REPL server
Date: Wed, 28 Nov 2018 07:13:45 -0800
User-agent: Mutt/1.10.1 (2018-07-13)

On Wed, Nov 28, 2018 at 11:53:20AM +0100, 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

I guess I don't know if you mean a Scheme REPL or a generic custom REPL.

A trivial example of a repl where you would have to write your own
command parser could be like the attached.

Attachment: tinyrepl.scm
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]