Sujet : Re: VALUE and TO implementation
De : albert (at) *nospam* spenarnc.xs4all.nl
Groupes : comp.lang.forthDate : 06. Aug 2024, 09:58:54
Autres entêtes
Organisation : KPN B.V.
Message-ID : <nnd$0f9fcb24$67170829@e7dc1bc7fcbe583a>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
2024Aug5.171800@mips.complang.tuwien.ac.at>,
Anton Ertl <
anton@mips.complang.tuwien.ac.at> wrote:
mhx@iae.nl (mhx) writes:
On Mon, 5 Aug 2024 12:26:26 +0000, dxf wrote:
Don't know but to this day Mitch Bradley (ANS, Open Firmware) still uses
parsing words to interpret hex, double, float numbers.
>
"de gustibus non disputandum est."
>
He also uses state-smart words.
>
Show me a Forther *without* strong opinions *and* unfathomable
inconsistencies.
>
In this case it's actually consistent: Mitch Bradley finds the
pitfalls of STATE-smart words acceptable, so he uses such words to
deal with various literals.
>
I, OTOH, don't consider them to be acceptable, so I prefer
recognizers, like the standard already has for words, single and
double integer numbers, and FP numbers.
Actually there is not much difference between
DX ABCD
and
0x ABCD
and
0xABCD
or
$ABCD
As long as you make 0x/$ a PREFIX and recognize that
it is inevitable that numbers are state-smart.
Making the expression into a single word solves much.
The whole recognizer thing becomes superfluous at the expense
of 5 words in INTERPRET.
- anton
Groetjes Albert
-- Don't praise the day before the evening. One swallow doesn't make spring.You must not say "hey" before you have crossed the bridge. Don't sell thehide of the bear until you shot it. Better one bird in the hand than ten inthe air. First gain is a cat purring. - the Wise from Antrim -