[Jprogramming] introducing j plus plus (jpp) - follow-up
Murray Eisenberg
murray at math.umass.edu
Sun Sep 3 15:43:31 UTC 2017
The file jpp_test.ijs does indeed exist. In fact, I opened it in jqt (j806 beta current) and now began to execute it line-by-line.
Its first line is:
MYDIR =: getpath_j_ '\/' rplc~ > (4!:4<'thisfile'){(4!:3) thisfile=:'' NB. boilerplate to set the working directory
and that correctly executed:
MYDIR
/users/murray/j64-806-user/jpp/
Next line, which I executed, is:
require MYDIR, ‘continuations.ijs'
And that gave error:
|file name error: script
| 0!:0 y[4!:55<‘y'
However, the script continuations.ijs is definitely in the directory whose value was reported as the value of MYDIR.
Still mystified.
> On2 Sep 2017 18:20:30 -0400,Raul Miller <rauldmiller at gmail.com <mailto:rauldmiller at gmail.com>> wrote:
>
> I can't tell you what's wrong with your configuration, but the file
> name error suggests that the file
> '/users/murray/j64-806-user/jpp/jpp_test.ijs does not exist. You
> should be able to test that in finder (since that's an osx file naming
> pattern).
>
> Also, the right argument to timespacex needs to be quoted. (And, you
> should not have a : in that particular line.)
>
> I hope this helps,
>
> --
> Raul
>
>
> On Sat, Sep 2, 2017 at 4:55 PM, Murray Eisenberg <murray at math.umass.edu <mailto:murray at math.umass.edu>> wrote:
>> Further, if now in the same jqt session to use menu command Tools > Package Manager, I get error:
>>
>> | runpacman_jpacman_ 0
>> |file name error: script
>> | 0!:0 y[4!:55<'y'
>> |value error: runpacman_jpacman_
>> | runpacman_jpacman_ 0
>>
>> What’s wrong?
>>
>>> On 2 Sep2017, at 4:53 PM, Murray Eisenberg <murray at math.umass.edu <mailto:murray at math.umass.edu>> wrote:
>>>
>>> In j806 (beta 2017-08-28) for macOS, I loaded jpp2.ijs, then tried to run the provided script jpp_test.ijs from an open script window in J.
>>>
>>> If I simply selected option to run all lines of the script, I got error:
>>>
>>> | file name error: scriptd
>>> | 0!:1 y[4!:55<‘y'
>>>
>>> If, instead, I used
>>>
>>> load '/users/murray/j64-806-user/jpp/jpp_test.ijs’
>>>
>>> then I got error:
>>>
>>> |file name error: script
>>> | 0!:0 y[4!:55<‘y'
>>>
>>> Instead, I then tried evaluating directly the sentence
>>>
>>> 4 timespacex: +/ i.1000
>>>
>>>
>>> tried but, contrary to what is said in the original post below, this just generates a spelling error.
>>>
>>> What am I doing wrong? (Or is something wrong with jpp in j806?)
>>>
>>>> On18 Mar 2017 01:25:57 +0000,'Pascal Jasmin' <programming at jsoftware.com <mailto:programming at jsoftware.com> <mailto:programming at jsoftware.com <mailto:programming at jsoftware.com>>> wrote:
>>>>
>>>>
>>>> A preparser for J that autocloses parentheses, and makes embedding quotes easier. Also has user-defined primitives.
>>>>
>>>>
>>>> https://github.com/Pascal-J/jpp <https://github.com/Pascal-J/jpp> <https://github.com/Pascal-J/jpp <https://github.com/Pascal-J/jpp>>
>>>>
>>>> as examples,
>>>>
>>>> 4 timespacex: +/ i.1000
>>>>
>>>> is equivalent to
>>>>
>>>> 4 timespacex '+/ i.1000'
>>>>
>>>> the suggested F11 macro is pretty neat. Runs a section of code in a file. Unlike ctrl-R, you don't need to be at the top level line in order to run the multiline group that encloses the current line.
>
——
Murray Eisenberg murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 240 246-7240 (H)
University of Massachusetts
710 North Pleasant Street
Amherst, MA 01003-9305
More information about the Programming
mailing list