Hi I'm working on a mini scheme implementation and I would like to add a REPL and I wonder how I can super easily get a read line. Stef
On 27. Nov 2017, at 05:38, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi
Hey!
I'm working on a mini scheme implementation and I would like to add a REPL and I wonder how I can super easily get a read line.
The easiest might just be to use "rlwrap your-interpreter"? But I think you want to allow multi-line input. So either link libreadline (GPL) or libedit? holger
Or https://github.com/guillep/Scale but linux. Phil On Nov 27, 2017 03:56, "Holger Freyther" <holger@freyther.de> wrote:
On 27. Nov 2017, at 05:38, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi
Hey!
I'm working on a mini scheme implementation and I would like to add a REPL and I wonder how I can super easily get a read line.
The easiest might just be to use "rlwrap your-interpreter"? But I think you want to allow multi-line input. So either link libreadline (GPL) or libedit?
holger
Sorry I wanted to have it in pharo :) On Mon, Nov 27, 2017 at 3:56 AM, Holger Freyther <holger@freyther.de> wrote:
On 27. Nov 2017, at 05:38, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi
Hey!
I'm working on a mini scheme implementation and I would like to add a REPL and I wonder how I can super easily get a read line.
The easiest might just be to use "rlwrap your-interpreter"? But I think you want to allow multi-line input. So either link libreadline (GPL) or libedit?
holger
On 28 November 2017 at 08:18, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Sorry I wanted to have it in pharo :)
Are you talking about having a terminal inside Pharo? OSProcess included something like this, i.e. open the window and have a prompt where you can enter expressions to be evaluated. It would also run external processes and capture the output. Cheers, Alistair
On Mon, Nov 27, 2017 at 3:56 AM, Holger Freyther <holger@freyther.de> wrote:
On 27. Nov 2017, at 05:38, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi
Hey!
I'm working on a mini scheme implementation and I would like to add a REPL and I wonder how I can super easily get a read line.
The easiest might just be to use "rlwrap your-interpreter"? But I think you want to allow multi-line input. So either link libreadline (GPL) or libedit?
holger
On Tue, Nov 28, 2017 at 9:35 AM, Alistair Grant <akgrant0710@gmail.com> wrote:
On 28 November 2017 at 08:18, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Sorry I wanted to have it in pharo :)
Are you talking about having a terminal inside Pharo?
Yes I'm having fun with a small scheme interpreter and I would like to have repl
OSProcess included something like this, i.e. open the window and have a prompt where you can enter expressions to be evaluated. It would also run external processes and capture the output.
Cheers, Alistair
On Mon, Nov 27, 2017 at 3:56 AM, Holger Freyther <holger@freyther.de> wrote:
On 27. Nov 2017, at 05:38, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi
Hey!
I'm working on a mini scheme implementation and I would like to add a REPL and I wonder how I can super easily get a read line.
The easiest might just be to use "rlwrap your-interpreter"? But I think you want to allow multi-line input. So either link libreadline (GPL) or libedit?
holger
On 29 November 2017 at 21:14, Stephane Ducasse <stepharo.self@gmail.com> wrote:
On Tue, Nov 28, 2017 at 9:35 AM, Alistair Grant <akgrant0710@gmail.com> wrote:
On 28 November 2017 at 08:18, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Sorry I wanted to have it in pharo :)
Are you talking about having a terminal inside Pharo?
Yes I'm having fun with a small scheme interpreter and I would like to have repl
OK. The terminal part is actually CommandShell: http://www.squeaksource.com/CommandShell.html At the moment it is tied to OSProcess - which I haven't been able to get working in Pharo for a while, so it may need to be decoupled. Also, don't forget that OSProcess and OSSubprocess can't be loaded at the same time. Cheers, Alistair
OSProcess included something like this, i.e. open the window and have a prompt where you can enter expressions to be evaluated. It would also run external processes and capture the output.
Cheers, Alistair
On Mon, Nov 27, 2017 at 3:56 AM, Holger Freyther <holger@freyther.de> wrote:
On 27. Nov 2017, at 05:38, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi
Hey!
I'm working on a mini scheme implementation and I would like to add a REPL and I wonder how I can super easily get a read line.
The easiest might just be to use "rlwrap your-interpreter"? But I think you want to allow multi-line input. So either link libreadline (GPL) or libedit?
holger
Ian Piumarta wrote an XTerm in Squeak a long time ago. No idea if it is still viable.
On Nov 30, 2017, at 10:41 AM, Alistair Grant <akgrant0710@gmail.com> wrote:
On 29 November 2017 at 21:14, Stephane Ducasse <stepharo.self@gmail.com> wrote:
On Tue, Nov 28, 2017 at 9:35 AM, Alistair Grant <akgrant0710@gmail.com> wrote:
On 28 November 2017 at 08:18, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Sorry I wanted to have it in pharo :)
Are you talking about having a terminal inside Pharo?
Yes I'm having fun with a small scheme interpreter and I would like to have repl
OK. The terminal part is actually CommandShell:
http://www.squeaksource.com/CommandShell.html
At the moment it is tied to OSProcess - which I haven't been able to get working in Pharo for a while, so it may need to be decoupled. Also, don't forget that OSProcess and OSSubprocess can't be loaded at the same time.
Cheers, Alistair
OSProcess included something like this, i.e. open the window and have a prompt where you can enter expressions to be evaluated. It would also run external processes and capture the output.
Cheers, Alistair
On Mon, Nov 27, 2017 at 3:56 AM, Holger Freyther <holger@freyther.de> wrote:
On 27. Nov 2017, at 05:38, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi
Hey!
I'm working on a mini scheme implementation and I would like to add a REPL and I wonder how I can super easily get a read line.
The easiest might just be to use "rlwrap your-interpreter"? But I think you want to allow multi-line input. So either link libreadline (GPL) or libedit?
holger
There is a REPL Image we use for VM debugging. It's a REPL in the command line and in the VM Simulator. File-in in attachement to load and start the REPL. On Tue, Nov 28, 2017 at 8:18 AM, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Sorry I wanted to have it in pharo :)
On Mon, Nov 27, 2017 at 3:56 AM, Holger Freyther <holger@freyther.de> wrote:
On 27. Nov 2017, at 05:38, Stephane Ducasse <stepharo.self@gmail.com>
wrote:
Hi
Hey!
I'm working on a mini scheme implementation and I would like to add a REPL and I wonder how I can super easily get a read line.
The easiest might just be to use "rlwrap your-interpreter"? But I think you want to allow multi-line input. So either link libreadline (GPL) or libedit?
holger
-- Clément Béra Pharo consortium engineer https://clementbera.wordpress.com/ Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq
Do you want it in the command line or in the Morphic UI? -- Pavel 2017-11-26 22:38 GMT+01:00 Stephane Ducasse <stepharo.self@gmail.com>:
Hi
I'm working on a mini scheme implementation and I would like to add a REPL and I wonder how I can super easily get a read line.
Stef
participants (7)
-
Alistair Grant -
Clément Bera -
Holger Freyther -
Pavel Krivanek -
phil@highoctane.be -
Stephane Ducasse -
Todd Blanchard