• UnGoogleable Forth words

    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:

    CELL
    ?TERMINAL
    STRING,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From goblinrieur@gmail.com@21:1/5 to All on Wed Nov 15 05:38:52 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • 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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • 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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anton Ertl@21:1/5 to Antoni Gual Via on Wed Nov 15 17:15:23 2023
    Antoni Gual Via <antonigualvia@gmail.com> writes:
    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

    The only ones I know of is COMUS: <https://forth.sourceforge.net/mirror/comus/index.html>

    One or both of the following books (from the 1980s) also contains
    lists of words from various Forth systems:

    Glen Haydon, All About Forth (a version seems to be available on archive.org)

    Mahlon G. Kelly, Nicholas Spies: Forth: A text and a reference

    STRING,

    That one is in COMUS. There is also such a word in development
    Gforth, and they seem to do the same thing.

    - anton
    --
    M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
    comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
    New standard: https://forth-standard.org/
    EuroForth 2023: https://euro.theforth.net/2023

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • 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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)