From Antoni Gual Via@21:1/5 to All on Wed Nov 15 05:05:05 2023
By browsing sample code in the net, i have stumbled on some words that give and "Unknown word" error when i try the code in Gforth. I can't find them in any Standard. Could you give me some directions? Is there some general repository of nonstandard
words?
The words are:
Le mercredi 15 novembre 2023 à 14:05:07 UTC+1, Antoni Gual Via a écrit :
By browsing sample code in the net, i have stumbled on some words that give and "Unknown word" error when i try the code in Gforth. I can't find them in any Standard. Could you give me some directions? Is there some general repository of nonstandard
words?
The words are:
CELL
?TERMINAL
STRING,
: string,
dup c, mem, ; \ maybe
I guess >cell is about cell input anh ?terminal is testing current terminal but noone but the word writer can answer you about non gforth words used
the source where you got those word should be documented descibing exactly each of them
From David De La Harpe Golden@21:1/5 to All on Wed Nov 15 14:47:41 2023
A ?TERMINAL is certainly in pforth's core / C-kernel, part of the platform-specific part of the implementation.The same name may well be
used in other forths, though whether
it does the same thing as pforth's is another matter.
See e.g.
github.com/philburk/pforth/blob/master/csrc/pfcompil.c#L328 github.com/philburk/pforth/blob/master/csrc/pf_inner.c#L1514 github.com/philburk/pforth/blob/master/csrc/posix/pf_io_posix.c#L74 github.com/philburk/pforth/blob/master/csrc/win32_console/pf_io_win32_console.c#L201
From minforth@21:1/5 to All on Wed Nov 15 16:37:56 2023
Standard Forth offers the word EMIT? in the Facility Wordset
to return a flag for terminal (output) availability.
Similarly KEY? to test for pending terminal input.
pforth gforth or whatever-forth may offer affitional more
comfortable information, but non-portably.
By browsing sample code in the net, i have stumbled on some words that give=
and "Unknown word" error when i try the code in Gforth. I can't find them =
in any Standard. Could you give me some directions? Is there some general r= >epository of nonstandard words?=20
From Antoni Gual Via@21:1/5 to All on Thu Nov 16 00:23:38 2023
Thanks, guys.
@Anton: you did a good remark here, I may find my word somewhere that does 'nt do what the program expects. That's false friends in the translation business...
Antonio