Dear all,
Sadly enough for Hendursaga's request, FORTH already does this with the
interpreter, and IMO should have done it, for decades, with an open,
clear generic state machine that reacts to incoming characters in case
it is treating an incoming file, so that any user has the ability to
patch and arrange it for its own purpose, in the FOTH spririt.
For obscure reasons this was never done, and kept bundled in the sealed
set of words the interpreter/compiler uses, making the whole stuff the
grey box in a system claiming to be transparent. It makes it
unnecessarily complex to port FORTH to any new target. About the same
burden as missing the half-dozen words in a PC to plot a pixel in some
graphic pixel, the greatest lack in Forth.
To remain compliant with say, ANS, traditional inner loop words would
then be coded as pointers to the generic file parsing, FSM mode...
With hope,
Paul
Le 2022-12-04 21:50, Hendursaga a écrit :
Bernd Paysan <be...@net2o.de> writes:
The Gforth manual on gforth.org is the upcoming Gforth 1.0 manual, so
it contains features that weren't available in Gforth 0.7.3, or only
available as loadable files.
Oh wow, you're about to cut a release? I can't wait! :-)
I'll see if I can get that packaged into GNU Guix then..
~ Hendursaga