I believe that
name,'=: ',5!:5 <name
should give a definition for any valid name which is suitable for use
in a script file.
The deficiencies I am aware of for 5!:5 have to do with using its
result as an argument for (".)
When I looked at your code to see what you were not using 5!:5 for, I
see that you are not using it for nouns. But I believe that all bugs
involving 5!:5's treatment of nouns have long since been fixed.
Am I missing something important?
Thanks,
--
Raul
On Sun, Jan 1, 2012 at 7:33 AM, Ian Clark <[email protected]> wrote:
> 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 <[email protected]> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm