[COFF] [TUHS] Re: forth on early unix
Alexis via COFF
coff at tuhs.org
Wed Sep 24 09:46:26 AEST 2025
Bakul Shah via COFF <coff at tuhs.org> writes:
> I wonder if there is a meta-circular evaluator for forth
> (i.e. forth in forth)
The 'MetaCircularEvaluator' page on the c2 wiki:
https://wiki.c2.com/?MetaCircularEvaluator
includes this:
here is a simple metacircular interpreter in arbitrary dialect
Forth:
: myInterpreter
begin 32 word find dup if execute else number then again ;
And here would be a compiler:
: my-]
begin 32 word find dup if dup immediate? if execute else
compile then else compile-number then again ;
Alexis.
More information about the COFF
mailing list