🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.forth
Article #61

The curse of parsing words

#61
From: albert
Date: Mon, 12 Oct 2026 07:56
21 lines
1612 bytes
I was to modify the metacompiler of noforth to make it more
portable, using i.a. ciforth.
https://github.com/WillemOuwerkerk/noForth-T-for-the-RP2040

Enters +TO. If you add VALUE to a Forth and you don't have
+TO, how would you define it?  ( Fortunately ciforth has it,
besides the implementation of TO is in source and hints to
the implementation of +TO ).

Untested:
: +TO    >IN @ >R BL WORD COUNT EVALUATE + R> >IN ! ['] TO EVALUATE ;

Compares this to a missing +! .
Untested:
: +!   SWAP OVER @ + SWAP ! ;

Groetjes Albert
-- 
The Chinese government is satisfied with its military superiority over USA.
The next 5 year plan has as primary goal to advance life expectancy
over 80 years, like Western Europe.
Technical Details
Message-ID: <nnd$1f5237c6$175c34ce@0d71f53c3bdb5abf>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!peer04.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!abo003.abavia.com!feed.abavia.com!abr003.abavia.com!abp003.abavia.com!reseller!not-for-mail

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.forth
From: albert@spenarnc.xs4all.nl
Subject: The curse of parsing words
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$1f5237c6$175c34ce@0d71f53c3bdb5abf>
Organization: www.abavia.com
Date: Mon, 12 Oct 2026 09:56:31 +0200
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!peer04.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!abo003.abavia.com!feed.abavia.com!abr003.abavia.com!abp003.abavia.com!reseller!not-for-mail
Lines: 22
Injection-Date: Mon, 12 Oct 2026 09:56:31 +0200
Injection-Info: reseller; mail-complaints-to="abuse@abavia.com"
X-Received-Bytes: 1410