The windows convention for ending stdin from the keyboard seems to be ctrl+z and this works at least in simple tests.

----- Original Message ----- From: "Yuvaraj Athur Raghuvir" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Friday, January 19, 2007 12:53 PM
Subject: Re: [Jprogramming] Interpreter in J/Windows?


I donot understand how to use stdin in the console mode.

After I start the jconsole and type
   stdin ''
the shell expects input.

But, I donot know how to inform the J interpreter that the input sequence is
done. When I do a ^C, I get a error message.

Q: How do I close my input string to the stdin verb? Am I missing something
here?

Does anyone have a snippet of code that uses stdin, stdout & stderr?

Thanks,
Yuva


On 1/17/07, Eric Iverson <[EMAIL PROTECTED]> wrote:

Windows does support stdin, stdout, stderr the same as in Unix. The docs
are a bit out of date.

----- Original Message -----
From: "Yuvaraj Athur Raghuvir" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Wednesday, January 17, 2007 9:24 AM
Subject: [Jprogramming] Interpreter in J/Windows?


> Hello,
>
> Has anyone created an interpreter in J?
>
> I am trying to create a small language based on J. And I want this > to
> run in
> a interpreted environment with a possibility to escape into J > native
> style.
> This design is inspired by the way Stevan Apter has written some
> interesting
> concatenative languages in K (http://www.nsl.com/).
>
> Also, I see that stdin, stdout and stderr are available only for > UNIX
> environment. So, how to write a console application in Windows that
> can be
> launched using jconsole and reads and writes to console?
>
> Let me know.
>
> Thanks,
> Yuva
> ----------------------------------------------------------------------
> For information about J forums see > http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to