Sujet : Re: Searching the Forth Dictionary
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 01. Jan 2025, 02:31:46
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <54bed1ad1fe5b35d46f255488ba3f31c557a8eed@i2pn2.org>
References : 1
User-Agent : Mozilla Thunderbird
On 1/01/2025 12:15 pm, Sidney Reilley wrote:
Eternal Forth noob here. Tired & retired but still at it.
I'm currently playing with pforth. I'm following along this video:
https://youtu.be/qZKXZifB39Y which is using swiftforth. He uses the
word `edit' <filename> to create a file.
Is it possible to search a Forth implementation's dictionary to see
if a particular words is built in - like `edit' in this case? TIA ..
' EDIT will report whether the word exists in the current search order.
The Standard has WORDS which displays all words. Many systems augment
that either by expanding WORDS to allow a pattern match, or a separate
word to do that. According to the pforth docs it has:
WORDS.LIKE <name>