[Jprogramming] introducing j plus plus (jpp)
'Pascal Jasmin' via Programming
programming at jsoftware.com
Sun Sep 3 00:35:41 UTC 2017
there's no support for run all lines...
there are f12 and F11 macros
f12 will run one line
f11 will run a multiline definition and can be invoked anywhere within that definition
jpp_test requires load of jpp2.ijs first
the line,
4 timespacex: +/ i.1000
has to be invoked with the f12 macro
also it is equivalent to (with F12)
4 T. +/ i.1000
________________________________
From: Murray Eisenberg <murray at math.umass.edu>
To: programming at jsoftware.com
Sent: Saturday, September 2, 2017 4:54 PM
Subject: Re: [Jprogramming] introducing j plus plus (jpp)
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>> 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>
>
> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list