If you're writing your own IDE for J, then see sample code at:
  http://www.jsoftware.com/jwiki/IanClark/LoBrow

LoBrow makes a legible char array from not just an explicit verb but
any J word. To do that it handles each case separately. See the verb:
repn (which mainly uses 5!:5), called by: item2panel.

But the reverse operation, broadly comparable to []FX, is done using
0!:111 -which works for everything. Provided you handle your
"character matrix" as a LF-separated string.

Or 0!:110 if you don't want it to display in the session window.

On Sat, Dec 31, 2011 at 3:50 PM, Blake McBride <bl...@mcbride.name> wrote:
> Greetings,
>
> More than 25 years ago I wrote an IDE for APL.  At the core what I did
> (which I don't remember how now) is that I executed something to turn
> an APL function into a character matrix.  I would then edit it with me
> IDE editing facility.  When I saved the edited function it would turn
> the edited character matrix back into a function (was that quad FX?).
>
> I also used this ability (to turn an APL function to and from a
> character matrix) to write programs that generated other functions.
> This was very nice.
>
> This leads me to my question - how can I turn a J verb into a
> character matrix, and how can I turn a character matrix back into a
> verb?
>
> Thanks!
>
> Blake McBride
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to