如何在 Forth 中列出当前的单词集
How to list the current set of words in Forth
是否可以获取当前在 Forth 中定义的所有单词的列表(例如在 Gforth 中)?
标准 WORDS
单词仅打印顶部词汇表(单词列表)中的所有单词 - 请参阅 specification .
TRAVERSE-WORDLIST proposal defines API to enumerate words in given wordlist. Some Forth-systems already implemented this proposal ([update] it is already in the draft).
虽然没有标准 API 来枚举所有定义的词表。 GET-ORDER
仅给出上下文词表列表(即范围内的词表)。
一些 Forth 系统有 VOCS
打印所有已定义词汇表的单词。
其他可能的 APIs 特定于特定的 Forth 系统。例如,SP-Forth 有 ENUM-VOCS
个单词来枚举所有已知的单词列表。
是否可以获取当前在 Forth 中定义的所有单词的列表(例如在 Gforth 中)?
标准 WORDS
单词仅打印顶部词汇表(单词列表)中的所有单词 - 请参阅 specification .
TRAVERSE-WORDLIST proposal defines API to enumerate words in given wordlist. Some Forth-systems already implemented this proposal ([update] it is already in the draft).
虽然没有标准 API 来枚举所有定义的词表。 GET-ORDER
仅给出上下文词表列表(即范围内的词表)。
一些 Forth 系统有 VOCS
打印所有已定义词汇表的单词。
其他可能的 APIs 特定于特定的 Forth 系统。例如,SP-Forth 有 ENUM-VOCS
个单词来枚举所有已知的单词列表。