Pascal, this is neat. Some trivial examples seem to work fine (as in the documentation)
(6!:2): 1 + 1 <f12> smoutput: hello <f12> smoutput: hello 'bob' smoutput 'hello ''bob''' hello 'bob' It looks like I can run a string too: DoWithMacro jpp 'smoutput: hello' smoutput 'hello' hello Is it possible to run a code block in a multi-line string? I couldn't figure that out from the README.md code =: 0 : 0 smoutput: hello 1 smoutput: hello 2 ) DoWithMacro jpp code smoutput 'hello 1 |open quote | smoutput 'hello 1 | ^ |[-0] jpp code smoutput 'hello 1 smoutput: ( hello 2 )' Thanks On Fri, Mar 17, 2017 at 9:25 PM, 'Pascal Jasmin' via Programming < [email protected]> wrote: > A preparser for J that autocloses parentheses, and makes embedding quotes > easier. Also has user-defined primitives. > > > 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. > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
