I don't have time right now to look at this in detail but think that
back many messages there was a suggestion that might help you do what
you want. That is, use the prompt verb that is part of the standard
library. Please try:
load'misc' NB. define prompt
a=. prompt'<'
Then incorporate this into your application.
----- Original Message -----
From: "Yuvaraj Athur Raghuvir" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Sunday, January 28, 2007 6:24 AM
Subject: Re: [Jprogramming] Continuation of interpreter in J/Windows...
Line got truncated....
This is what I meant:
(At all points, the user must be informed in which context the
execution
occurs - in the overlay language or in native J. That is
the reason for adding a prompt symbol).
~Yuva
On 1/28/07, Yuvaraj Athur Raghuvir <[EMAIL PROTECTED]> wrote:
Hello Eric,
Thanks!
Looks like I would need more help ...
This what I tried :
overlay=: 3 : 0
'>' (1!:2) 2 NB. write the prompt
k=.(1!:1) 1 NB. wait for input
k
)
Now, I load the script and can call overlay thus:
overlay ''
>
some input
some input
Almost there but not quite....
1) Why is there an additional CRLF added to the output? Can I
override
that behavior?
2) Just to see if the input works right, I added a backspace before
the
input, Then I have this...
overlay ''
>some input (NB. erased the CRLF through use of backspace in the
>session
window)
>some input (NB. this is the read input)
which is exactly what I want. Then using }. I can get the statement I
want
to parse...
(At all points, the user must be informed
Any pointers?
Regards,
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