Sujet : Re: VALUE and TO implementation
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.lang.forthDate : 04. Aug 2024, 10:36:51
Autres entêtes
Organisation : Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID : <2024Aug4.113651@mips.complang.tuwien.ac.at>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : xrn 10.11
mhx@iae.nl (mhx) writes:
Am I the only one that thinks parsing words are an incredible nuisance?
No. They are one of the reasons for the STATE-smartness idiocy and
they don't work with ]]...[[. In case of TO Gforth (development)
implements a to-recognizer:
5 value foo
7 ->foo
foo . \ 7
: bar ->foo ;
9 bar
foo . \ 9
: bla ]] ->foo [[ ; immediate
: blub bla ;
3 blub
foo . \ 3
The to-recognizer makes TO unnecessary (both parsing or non-parsing).
And instead of +TO FOO one writes +>FOO:
6 +>foo
foo . 9
- anton
-- M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.htmlcomp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html New standard: https://forth-standard.org/ EuroForth 2024: https://euro.theforth.net