Re: [Jprogramming] Turning verbs to and from strings

2012-01-04 Thread Jose Mario Quintana
, January 04, 2012 12:23 PM To: Programming forum Subject: Re: [Jprogramming] Turning verbs to and from strings There is a workaround, namely applying the atomic representation (5!:1) and then applying the string representation (5!:5) to *that.* (The inverse is execute, and then applying 5!:0 to *that

Re: [Jprogramming] Turning verbs to and from strings

2012-01-04 Thread Roger Hui
ust/033231.html > > > From: programming-boun...@jsoftware.com [programming-boun...@jsoftware.com] > On Behalf Of Ian Clark [earthspo...@gmail.com] > Sent: Tuesday, January 03, 2012 10:18 PM > To: Programming forum > Subject: Re: [Jprogramming] Turning verbs to

Re: [Jprogramming] Turning verbs to and from strings

2012-01-04 Thread Jose Mario Quintana
...@jsoftware.com] On Behalf Of Ian Clark [earthspo...@gmail.com] Sent: Tuesday, January 03, 2012 10:18 PM To: Programming forum Subject: Re: [Jprogramming] Turning verbs to and from strings Yes, that's my understanding about 5!:5 too. > Am I missing something important? Yes you are missing s

Re: [Jprogramming] Turning verbs to and from strings

2012-01-03 Thread Ian Clark
Yes, that's my understanding about 5!:5 too. > Am I missing something important? Yes you are missing something important ...to me. I guess you're puzzled by repnoun in: repn=: 3 : 0 NB. Re-inputtable represn of item (y) if. 'NB.' -: 3{. y do. y return. end. NB. output a comment as-is

Re: [Jprogramming] Turning verbs to and from strings

2012-01-02 Thread Raul Miller
I believe that name,'=: ',5!:5 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 ve

Re: [Jprogramming] Turning verbs to and from strings

2012-01-01 Thread Ian Clark
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: item2

Re: [Jprogramming] Turning verbs to and from strings

2011-12-31 Thread Björn Helgason
f1=: verb define 'line 1' 'line 2' 'line 3' 'line 4' 'line 5' ) m=: 0 : 0 'lina 1' 'lina 2' 'lina 3' 'lina 4' 'lina 5' ) f1 3 : 0 'line 1' 'line 2' 'line 3' 'line 4' 'line 5' ) m 'lina 1' 'lina 2' 'lina 3' 'lina 4' 'lina 5' a=.5!:5 <'f1' a 3 : 0 'line 1' 'line 2' 'line 3' 'line

Re: [Jprogramming] Turning verbs to and from strings

2011-12-31 Thread Don Guinn
Linear representation (5!5) of a name is probably closest to []CR and there are several ways to convert the text back to a definition, the most obvious is Explicit (:). On Sat, Dec 31, 2011 at 8:50 AM, Blake McBride wrote: > Greetings, > > More than 25 years ago I wrote an IDE for APL. At the c

Re: [Jprogramming] Turning verbs to and from strings

2011-12-31 Thread bob therriault
Hi Blake, I think that the use of gerunds might be the solution. Henry Rich gives a really good description of how Tie, Agenda and gerunds work together. http://www.jsoftware.com/help/jforc/loopless_code_iv_irregular_o.htm#_Toc191734391 If you haven't looked at Henry's book before, look through i

[Jprogramming] Turning verbs to and from strings

2011-12-31 Thread Blake McBride
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 e