Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #9859
| From | "Peter Knaggs" <pjk@bcs.org.uk> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: RfD: TRAVERSE-WORDLIST v4 |
| Date | 2012-03-05 13:20 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <op.wao8n2ursu5d0p@david> (permalink) |
| References | <3a561970-391e-4f30-8dc8-049d5942f159@gi10g2000vbb.googlegroups.com> <4f8a7e9c-6afd-4258-9bb4-0ec5da74305f@d17g2000vba.googlegroups.com> |
Alex McDonald wrote: > > 2. Proposal > ----------- > > TRAVERSE-WORDLIST ( wid xt -- x*j ) "traverse-wordlist" TOOLS-EXT > > Remove wid and xt from the stack. Traverse the wordlist wid, > executing xt, a user-specified word with the stack effect > ( nt -- x*i u ) without immediately returning to the caller, > executing xt at most once for every node in the wordlist, and > terminating once all the nodes have been exhausted or until xt > returns the continue flag u with a zero (FALSE) value. > > An invocation of the xt with the stack diagram ( x*i nt -- x*j u ) > must subsequently invoke xt with the stack diagram ( x*j nt ). > TRAVERSE-WORDLIST returns x*j from the last execution, if any, of the > xt. > > nt is a system-specific name token for the node. The xt can use this > token to display, count, modify or perform any other action on the > node that the system providing nt permits. The format of nt is > undefined, but it is guaranteed to be unique for each word in the > wordlist. > > To stop receiving nodes from TRAVERSE-WORDLIST and return to the > caller, xt sets u to zero. A non-zero value for u will continue > to invoke the xt until all the nodes in the wordlist have been > exhausted. The tradition is to refer to "the execution semantics of xt given below." And provide a section: xt execution: ( x*i nt -- x*j u ) nt is an implementation dependent name token ... -- Peter Knaggs
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
RfD: TRAVERSE-WORDLIST v4 Alex McDonald <blog@rivadpm.com> - 2012-02-28 05:14 -0800
Re: RfD: TRAVERSE-WORDLIST v4 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-02-28 17:18 +0000
Re: RfD: TRAVERSE-WORDLIST v4 Alex McDonald <blog@rivadpm.com> - 2012-02-28 13:54 -0800
Re: RfD: TRAVERSE-WORDLIST v4 "Elizabeth D. Rather" <erather@forth.com> - 2012-02-28 12:16 -1000
Re: RfD: TRAVERSE-WORDLIST v4 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-02-29 15:42 +0000
Re: RfD: TRAVERSE-WORDLIST v4 "Elizabeth D. Rather" <erather@forth.com> - 2012-02-29 06:49 -1000
Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-02-29 20:05 +0000
Re: RfD: TRAVERSE-WORDLIST v4 BruceMcF <agila61@netscape.net> - 2012-02-28 14:40 -0800
Re: RfD: TRAVERSE-WORDLIST v4 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-02-29 15:47 +0000
Re: RfD: TRAVERSE-WORDLIST v4 BruceMcF <agila61@netscape.net> - 2012-02-29 08:13 -0800
Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-02-29 20:07 +0000
Re: RfD: TRAVERSE-WORDLIST v4 Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-02-29 11:27 +0000
Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-02-29 20:20 +0000
Re: RfD: TRAVERSE-WORDLIST v4 BruceMcF <agila61@netscape.net> - 2012-02-29 16:44 -0800
Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-03-01 08:45 +0000
Re: RfD: TRAVERSE-WORDLIST v4 BruceMcF <agila61@netscape.net> - 2012-03-01 16:15 -0800
Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-03-02 09:58 +0000
Re: RfD: TRAVERSE-WORDLIST v4 BruceMcF <agila61@netscape.net> - 2012-03-02 22:37 -0800
Re: RfD: TRAVERSE-WORDLIST v4 Alex McDonald <blog@rivadpm.com> - 2012-03-04 14:03 -0800
Re: RfD: TRAVERSE-WORDLIST v4 "Peter Knaggs" <pjk@bcs.org.uk> - 2012-03-05 13:20 +0000
Re: RfD: TRAVERSE-WORDLIST v4 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-03-05 14:18 +0000
Re: RfD: TRAVERSE-WORDLIST v4 Alex McDonald <blog@rivadpm.com> - 2012-03-27 15:23 -0700
csiph-web