VolksForth/8086/msdos/src/mk-meta.fth
Philip Zembrod 64ed332b12 First build of v4th.com with compile log file written and
checked at the end of the Makefile recipe.
Also introduces a prebuilt metacompiler metafile.com with integrated fth file include
2022-03-01 14:02:46 +01:00

25 lines
491 B
Forth

include log2file.fth
logopen output.log
Onlyforth \ \needs Assembler 2 loadfrom asm.fb
: c+! ( 8b addr -- ) dup c@ rot + swap c! ;
' find $22 + @ Alias found
: search ( string 'vocab -- acf n / string ff )
dup @ [ ' Forth @ ] Literal - Abort" no vocabulary"
>body (find IF found exit THEN false ;
use meta.fb
3 &27 thru Onlyforth
logclose
savesystem metafile.com
logreopen
cr .( Metacompiler saved as metafile.com) cr
logclose