Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!uunet!willett!ForthNet From: ForthNet@willett.UUCP (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: ANS TC Magnet for Vocabularies and : Message-ID: <756.UUL1.3#5129@willett.UUCP> Date: 9 Apr 90 01:28:42 GMT Organization: Latest link in the ForthNet chain. (Pgh, PA) Lines: 62 Category 10, Topic 14 Message 16 Sat Apr 07, 1990 R.BERKEY [Robert] at 19:33 PDT -------------------------------------------------------------------- ANSI X3J14 Forth Technical Proposal Page 1 of 1 -------------------------------------------------------------------- Title: ACQUIRE Related Proposals: Keyword(s): vocabularies, wordlists Proposal (X) Forth Word(s): FORTH WORDLIST Comment ( ) ------------------ Abstract: Add ACQUIRE to the Wordlist wordset. ------------------ Discussion: Without the ability to search individual wordlists, programs effectively can only use wordlists for being compiled. This one element has a broad range of application, from implementing the standard from within the standard, to self-analyzing programs, to avoiding complications involving variables, to object oriented programming. Without this one element, implementing a compiler or an interpreter must be done from scratch. By inference, any system with wordlists can implement this word. The flag input to ACQUIRE has this purpose: the output from FIND or an ACQUIRE can be passed into an ACQUIRE . This avoids complex and relatively inefficient control structures for multiple wordlist searches. References: Berkey, "Four Vocabulary Tools", 1984 Rochester Forth Applications Conference Proceedings. The text below follows that in FIND . ------------------- Proposal: Add to the WORDLIST word set: ACQUIRE ( addr1 flag wl-token -- addr1 0 ) -or- ( addr1 flag wl-token -- w 1 ) -or- ( addr1 flag wl-token -- w -1 ) wl-token is the execution token of a wordlist. If flag is false, return addr1, and 0. Otherwise, find the Forth word named in counted string at addr1. If the word is not found, return addr1, and 0. If the word is found, return the execution token w; if the word is immediate, return 1, otherwise return -1. -------------------------------------------------------------------- Submitted by: Robert Berkey Date: 90-04-07 Address: 47000 Warm Springs Blvd. #253 Ph: (415) 659-1334 Fremont, CA 94539 Msgs: GEnie, R.BERKEY ANSI X3J14 Forth Standards Committee 111 N. Sepulveda Blvd., Suite 300, Manhattan Beach, CA 90266 -------------------------------------------------------------------- ----- This message came from GEnie via willett through a semi-automated process. Report problems to: 'uunet!willett!dwp' or 'willett!dwp@gateway.sei.cmu.edu'