none) (albert
2022-12-12 16:25:23 UTC
I invented prefixes e.g. $ as a loadable extension in order to
run Marcel Hendrix programs. mhx pioneered the use of prefixes.
I didn't want $ in the kernel, because it wasn't even standard
at the time (2000).
In ciforth all numbers and strings are handled by prefixes:
0 1 .. 9 " '
ONLY is a wordlist (OK it is a name of a wordlist) and
contains this stuff. So I can add $ # % as prefixes in
a regular fashion if I make ONLY the wordlist where
definitions are added.
'ONLY >WID CURRENT !
: $ BASE @ >R HEX (NUMBER) R> BASE ! POSTPONE SDLITERAL ;
PREFIX IMMEDIATE 1]
(NUMBER) handles a number from the input stream.
SDLITERAL compiles/interprets a single/double number.
So far so good.
Can I claim compatibility with the 2012 standard (in this
respect) if I supply $ # % as loadable extensions?
Groetjes Albert
1]
PREFIX is a trivial extension. A prefix is found as
it matches the first part of a word.
run Marcel Hendrix programs. mhx pioneered the use of prefixes.
I didn't want $ in the kernel, because it wasn't even standard
at the time (2000).
In ciforth all numbers and strings are handled by prefixes:
0 1 .. 9 " '
ONLY is a wordlist (OK it is a name of a wordlist) and
contains this stuff. So I can add $ # % as prefixes in
a regular fashion if I make ONLY the wordlist where
definitions are added.
'ONLY >WID CURRENT !
: $ BASE @ >R HEX (NUMBER) R> BASE ! POSTPONE SDLITERAL ;
PREFIX IMMEDIATE 1]
(NUMBER) handles a number from the input stream.
SDLITERAL compiles/interprets a single/double number.
So far so good.
Can I claim compatibility with the 2012 standard (in this
respect) if I supply $ # % as loadable extensions?
Groetjes Albert
1]
PREFIX is a trivial extension. A prefix is found as
it matches the first part of a word.
--
"in our communism country Viet Nam, people are forced to be
alive and in the western country like US, people are free to
die from Covid 19 lol" duc ha
***@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst
"in our communism country Viet Nam, people are forced to be
alive and in the western country like US, people are free to
die from Covid 19 lol" duc ha
***@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst