[COFF] [TUHS] Re: forth on early unix
Bakul Shah via COFF
coff at tuhs.org
Wed Sep 24 10:35:34 AEST 2025
On Sep 23, 2025, at 4:46 PM, Alexis via COFF <coff at tuhs.org> wrote:
>
> 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 ;
Thanks but... Not quite what I had in mind. See
https://ocw.mit.edu/courses/6-001-structure-and-interpretation-of-computer-programs-spring-2005/01c6ba0c5d426b5459d66340e60eb00f_lecture20evalco.pdf
For a Scheme meta-circular-evluator. It doesn't rely on
an eval function (not part of R4RS Scheme).
Though one can argue that "execute" built in so this is
indeed a MCE!
More information about the COFF
mailing list