Post by Sidney ReilleyEternal Forth noob here. Tired & retired but still at it.
http://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 ..
The politically correct way is to use WORD and FIND.
Find returns a flag whether the word is found.
You also can type the word. If the Forth crashes, it is found.
(Probably you have not used it correctly.)
------------
~/PROJECT/ciforths/optim/ciforth: lina
80386 ciforth beta 2020Nov09
!
Segmentation fault (core dumped)
--------------
If the Forth stays alive without error, it is found.
It is system dependant, to find out if there is an error.
Some systems have the word "error" or "err" in the response.
A question sign is also in indication.
If you are lucky there is an identification of the error,
such as a number, that you can look up in the documentation.
Examples:
----------
ORANGUTAN
ORANGUTAN ? ciforth ERROR # 12 : NOT RECOGNIZED
----------
ORANGUTAN
ORANGUTAN ? - unrecognized word!
----------
123ORANG
123ORANG ? ciforth ERROR # 10 : NOT A WORD, NOR A NUMBER OR OTHER DENOTATION
----------
ORANGUTAN
:1: Undefined word
Backtrace:
$7FAF70A5CA68 throw
$7FAF70A72DD0 no.extensions
----------
ORANGUTAN ORANGUTAN ?
----------
ORANGUTAN
Err# -13 ERR: Undefined word.
-> ORANGUTAN
----------
Hopes this help. Experiment more.
Post by Sidney Reilley--
Duke
** Bottom-posting, text-only is the netiquette way! **
Groetjes Albert
--
Temu exploits Christians: (Disclaimer, only 10 apostles)
Last Supper Acrylic Suncatcher - 15Cm Round Stained Glass- Style Wall
Art For Home, Office And Garden Decor - Perfect For Windows, Bars,
And Gifts For Friends Family And Colleagues.