They are not commas; they are itemizes (,:) and they make a 1-row table out of a list.
In the tree representation of a verb, if it is required to represent a noun (e.g. for +&(3 4$i.12)), the linear representation is used. The system uses various methods in such representation. For example: lr=: 3 : '5!:5 <''y''' lr 3 4 5 3 4 5 lr 3 4 5 6 7 8 9 10 11 12 3+i.10 lr o. 3 + i.1e6 9.4247779607693793+3.1415926535897931*i.1000000 lr 'Fourscore';'and';'seven';'years';'ago' <;._1 ' Fourscore and seven years ago' On Sun, Oct 30, 2011 at 12:41 PM, Linda Alvord <[email protected]> wrote: > > a=. 3 : 'y+4' ; 3 : '2+3' > > Where did the comma come from in the tree diagram for 'a' , and what does it > mean? > > a=. 3 : 'y+4' ; 3 : '2+3' > a > 3 : 'y+4' ; 3 : '2+3' > > 5!:4 <'a' > > ┌─ 3 > ┌─ : ─┴─ ,:'y+4' > ├─ ; > ──┤ ┌─ 3 > └─ : ─┴─ ,:'2+3' > > This has some interesting twists: > > aa=. 13 : 'y+4' ; 13 : '2+3' > aa > (4 + ]) ; 5: > > 5!:4 <'aa' > > ┌─ 4 > ┌────┼─ + > │ └─ ] > ──┼─ ; > └─ 5: > > > Linda > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Dan Bron > Sent: Sunday, October 30, 2011 3:04 PM > To: J Programming > Subject: Re: [Jprogramming] Multiple verb arguments > > 0 > Please excuse typos; composed on a handheld device. > > -----Original Message----- > From: Henry Rich <[email protected]> > Sender: [email protected] > Date: Sun, 30 Oct 2011 09:18:46 > To: Programming forum<[email protected]> > Reply-To: Programming forum <[email protected]> > Subject: Re: [Jprogramming] Multiple verb arguments > > Not really a nested definition, but a sequential one. When the > interpreter sees x : 0, it drops what it's doing and reads lines from > the input. When it finds ), it resumes what it was doing. > > (0 : 0) ; (0 : 0) > line 1 > ) > line 2 > line 3 > ) > ┌──────────────┬───────┐ > │line 2 line 3 │line 1 │ > └──────────────┴───────┘ > > Henry Rich > > On 10/30/2011 9:11 AM, Brian Schott wrote: >> Ric, >> >> Thank you for posting these links. In the first link is a verb named >> parameterizedVerb_ddp_ and an adverb name defn_ddp_ created by Dan in >> http://www.jsoftware.com/svn/DanBron/trunk/environment/parameterized_verbs.ijs >> . It looks to me as if Dan has found a way to nest two explicit >> definitions there because at that link under the section "EXAMPLE >> SECTION", the verb parameterizedVerb has two separate line beginning >> with a single paren. >> >> Could someone verify that this is or is not a nested definition and if >> so explain how it is done, please? >> >> On Sun, Oct 30, 2011 at 1:18 AM, Ric Sherlock<[email protected]> wrote: >>> >>> http://www.jsoftware.com/jwiki/Guides/Multiple%20Verb%20Arguments >>> http://www.jsoftware.com/jwiki/Guides/Defining%20Verbs >> > ---------------------------------------------------------------------- > 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
