Article View: comp.lang.forth
Article #64Re: The curse of parsing words
From: dxf
Date: Mon, 12 Oct 2026 11:17
Date: Mon, 12 Oct 2026 11:17
30 lines
1826 bytes
1826 bytes
On 12/10/2026 6:56 pm, albert@spenarnc.xs4all.nl wrote: > 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 I've got this as a loadable definition: : +TO ( n "name" -- ) [compile] addr state @ if compile then +! ; immediate Not sure I've used it. The obvious <value> + TO <value> may be ugly but it works and I don't have to load anything. It's the deeper issue that bugs me. If I find myself doing +! on a VALUE, I begin to question my choice. Perhaps I should be using VARIABLE instead.
Technical Details
Message-ID:
<6accc1cc$1@news.ausics.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.ausics.net!not-for-mailReferences:
<nnd$1f5237c6$175c34ce@0d71f53c3bdb5abf>Show Full Headers
Complete Article Headers
Date: Mon, 12 Oct 2026 22:17:31 +1100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: The curse of parsing words Newsgroups: comp.lang.forth References: <nnd$1f5237c6$175c34ce@0d71f53c3bdb5abf> Content-Language: en-GB From: dxf <dxforth@gmail.com> In-Reply-To: <nnd$1f5237c6$175c34ce@0d71f53c3bdb5abf> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit NNTP-Posting-Host: news.ausics.net Message-ID: <6accc1cc$1@news.ausics.net> Organization: Ausics - https://newsgroups.ausics.net Lines: 30 X-Complaints: abuse@ausics.net Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.ausics.net!not-for-mail