I think this would work. Look at jsrc/io.c . This receives calls from
a front-end and executes them.
You need to init the JE, then you can call it repeatedly. Look at
dllsrc/jdll.c and jsrc/jconsole.c .
Henry Rich
On 8/16/2021 12:41 PM, Zach Smith wrote:
Hi all,
I'm interested in writing some bindings to the J interpreter. I'd like
to be able to instantiate a copy of the interpreter when my host
program, a Lisp interpreter, runs, and evaluate arbitrary user-sourced
snippets of J code. In order to be useful, the J code should be able to
interact with objects in the Lisp, so I suppose I'll have to convert
them into J data types, too.
Is this possible? Someone vaguely familiar with the J source said it
seemed that the J source was designed for this usecase, but I couldn't
find any documentation or examples in my own searching. Has this been
done before? I'd love any pointers or supplementary information (or
dissuasion) that anyone could offer.
Zach Smith
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
This email has been checked for viruses by AVG.
https://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm