Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 94:20:57 |
Calls: | 290 |
Calls today: | 1 |
Files: | 904 |
Messages: | 76,378 |
On Wed, 1 Jan 2025 12:31:46 +1100
dxf <dxforth@gmail.com> wrote:
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>
Many thanks! I installed pforth by cloning its from githup repo. No
docs in there. Where did you find the docs please? TIA ..
--
Duke
** Bottom-posting, text-only is the netiquette way! **
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 ..
Backtrace:ORANGUTAN<<<
ORANGUTAN----------
--
Duke
** Bottom-posting, text-only is the netiquette way! **
On Wed, 1 Jan 2025 13:10:02 +1100
dxf <dxforth@gmail.com> wrote:
On 1/01/2025 12:52 pm, Sidney Reilley wrote:
On Wed, 1 Jan 2025 12:31:46 +1100
dxf <dxforth@gmail.com> wrote:
According to the pforth docs it
has:
WORDS.LIKE <name>
Many thanks! I installed pforth by cloning its from githup
repo. No docs in there. Where did you find the docs please?
TIA ..
https://www.softsynth.com/pforth/pf_ref.php
The source file is here:
https://github.com/philburk/pforth/blob/master/fth/wordslik.fth
Don't know if automatically included or whether you need to do it
yourself.
Got it - thx! I need to get used to "the lay of the land" so to
speak. Anyway, pforth does not have an `edit' word built in. I
like the way swiftforth launches your default editor when calling
`edit <filename>' ! Thx again ...
Duke
** Bottom-posting, text-only is the netiquette way! **