,---------------. | Contributions | `---------------´ ,------------------------------------------ | 2020-09-01 17:41:58 AntonErtl wrote: | proposal - Traverse-wordlist does not find unnamed/unfinished definitions | see: https://forth-standard.org/proposals/traverse-wordlist-does-not-find-unnamed-unfinished-definitions#contribution-153 `------------------------------------------ ## Author: M. Anton Ertl ## Change Log: Initial version ## Problem: [Does TRAVERSE-WORDLIST find unfinished or nameless definitions](https://forth-standard.org/standard/tools/TRAVERSE-WORDLIST#contribution-118)? ## Solution: It does not. ## Proposal: Change > Execute xt once for every word in the wordlist wid, into > Execute xt once for every named and findable word in the wordlist wid, ## Discussion This is a wording change. The use of "findable" is taken from it's use in the definition of ":" an DOES>. Possible problem: A shadowed word is not findable with FIND, FIND-NAME-IN etc, but may be reached with TRAVERSE-WORDLIST. ,------------------------------------------ | 2020-09-01 21:16:26 GeraldWodni wrote: | proposal - XML Forth Standard - migration from LaTeX to DocBook | see: https://forth-standard.org/proposals/xml-forth-standard-migration-from-latex-to-docbook#contribution-154 `------------------------------------------ ## Author: Peter Knaggs ## Problem & Solution: The author, who is also the editor of the Forth Standard is considering migrating from LaTeX to XML. The idea being that XML is easier to parse for machines while maintaining being editable by humans. [Please read the proposed PDF](/files/proposals/xml.pdf). More material including [DTD, TEX, HTML and the XML example below](/files/proposals/xml.zip). ## Tools: > I have > been thinking of using either XML Notepad or XXE (XMLmind XML Editor) > as the editor environment and move the whole standard into DocBook. > That way I get PDF, XHTML and EPUB with very little work. ## Feedback: At this stage the author is asking for feedback: - How do you like the XML definition for words? - Would your system/documentation also output this XML definitions for its own words? - Any other related feedback? ## Example Code: ```xml Interpretation semantics for this word are undefined.
colon-sys_1
colon-sys_2
Append the run-time semantics below to the current definition. Whether or not the current definition is rendered findable in the dictionary by the compilation of is implementation defined. Consume colon-sys_1 and produce colon-sys_2. Append the initiation semantics given below to the current definition.
next-sys_1
Replace the execution semantics of the most recent definition, referred to as name, with the name execution semantics given below. Return control to the calling definition specified by nest-sys_1. An ambiguous condition exists if name was not defined with or a user-defined word that calls .
i*x
i*x a-addr
next-sys_1 Save implementation-dependent information nest-sys_2 about the calling definition. Place name's data field address on the stack. The stack effects i*x represent arguments to name.
i*x
j*x
Execute the portion of the definition that begins with the initiation semantics appended by the which modified name. The stack effects i*x and j*x represent arguments to and results from name, respectively.
Typical use: : X ... DOES> ... ; Following , a Standard Program may not make any assumptions regarding the ability to find either the name of the definition containing the or any previous definition whose name may be concealed by it. effectively ends one definition and begins another as far as local variables and control-flow structures are concerned. The compilation behavior makes it clear that the user is not entitled to place inside any control-flow structures.
: DOES1 DOES> @ 1 + ;
: DOES2 DOES> @ 2 + ;
CREATE CR1
CR1  
HERE
1 ,  
CR1 @
1
DOES1
CR1  
2
DOES2
CR1  
3
: WEIRD: CREATE DOES> 1 + DOES> 2 + ;
WEIRD: W1
' W1 >BODY
HERE
W1       
HERE 1 +
W1       
HERE 2 +
``` ,---------. | Replies | `---------´ ,------------------------------------------ | 2020-09-01 14:18:46 GeraldWodni replies: | proposal - Multi-Tasking Proposal | see: https://forth-standard.org/proposals/multi-tasking-proposal#reply-451 `------------------------------------------ An implementation by Andrew Haley can be found here: https://sourceforge.net/projects/concurrentforth/ ,------------------------------------------ | 2020-09-01 15:31:12 BerndPaysan replies: | proposal - Remove the “rules of FIND” | see: https://forth-standard.org/proposals/remove-the-rules-of-find-#reply-452 `------------------------------------------ Replace the parenthesis text “(according to the rules in the system's FIND)” with “in the current search order”. Since we don't have a term “search order” in the definitions of terms, section 2, only in the search order word set, move that to the definition of terms, and change it: *search order:* A list of word lists specifying the order in which the dictionary will be searched. If the search order wordset is not present, the search order consists of all the word lists that contain definitions. to the definitions of terms. ,------------------------------------------ | 2020-09-01 16:17:01 GeraldWodni replies: | proposal - VOCABULARY | see: https://forth-standard.org/proposals/vocabulary#reply-453 `------------------------------------------ # Vocabulary proposal version uh 2019-09-18 Add the following section to the Forth-200x standard in the optional Search-Order word set to the Search-Order extension word list. --- 16.6.2.3000 **VOCABULARY** ( "name" -- ) Skip leading space delimiters. Parse name delimited by a space. Create a definition for name with the execution semantics defined below. Create a new empty word list *wid* and associate it with name. name is referred to as a "vocabulary". **name Execution**: ( -- ) Replace the first word list in the search order by the word list *wid* that is associated with the vocabulary. An ambiguous condition exists if there are no word lists in the search order. **See**: 16.6.1.2460 WORDLIST 16.6.2.0715 ALSO 16.6.2.2038 PREVIOUS 16.6.1.2195 GET-ORDER 16.6.1.2197 SET-ORDER **Rationale**: VOCABULARY has been used in traditional Forth systems and it is available with consistent behaviour in many standard systems. So it seems worthwhile to standardize it (again, it has been standardized in Forth-83). **Typical use**: VOCABULARY Assembler ONLY FORTH ALSO Assembler DEFINITIONS ( set search order to ... FORTH Assembler Assembler ) **Reference Implementation**: : VOCABULARY ( -- ) WORDLIST CREATE , DOES> ( -- ) @ >R GET-ORDER SWAP DROP R> SWAP SET-ORDER ; # Other additions Add the following ambigous condition to 16.4.1.2: - executing a vocabulary word when the search order is empty (16.6.2.3000) ,------------------------------------------ | 2020-09-01 17:43:40 AntonErtl replies: | comment - Unfindable definitions | see: https://forth-standard.org/standard/tools/TRAVERSE-WORDLIST#reply-454 `------------------------------------------ Addressed in [this proposal](https://forth-standard.org/proposals/traverse-wordlist-does-not-find-unnamed-unfinished-definitions). ,------------------------------------------ | 2020-09-01 19:34:59 BerndPaysan replies: | proposal - Remove the “rules of FIND” | see: https://forth-standard.org/proposals/remove-the-rules-of-find-#reply-455 `------------------------------------------ Replace the text > Return a true flag if *name* is the name of a word that can be found (according to the rules in the system's FIND); otherwise return a false flag. with > Try to find *name.* Return a true flag if *name* can be found; otherwise return a false flag. Add the following redefinition of the term “find” to 16.2: > **find:** > To search the search order for a definition name matching a given string. Cross-reference 2.1 find and 16.2 find.