https://github.com/howerj/muxleq
PD: you don't need gforth to compile:
cc -O2 -o muxleq muxleq.c
1 constant opt.multi ( Add in large "pause" primitive ) 1 constant opt.editor ( Add in Text Editor ) 1 constant opt.info ( Add info printing function ) 0 constant opt.generate-c ( Generate C code ) 1 constant opt.better-see ( Replace 'see' with better version ) 1 constant opt.control ( Add in more control structures ) 0 constant opt.allocate ( Add in "allocate"/"free" ) 1 constant opt.float ( Add in floating point code ) 0 constant opt.glossary ( Add in "glossary" word ) 1 constant opt.optimize ( Enable extra optimization ) 1 constant opt.divmod ( Use "opDivMod" primitive ) 0 constant opt.self ( self-interpreter [NOT WORKING] )
Then, create a new ".dec" file (subleq program)
: ./muxleq muxleq.dec < muxleq.fth > new.dec
./muxleq new.dec
: d. tuck dabs <# #s rot sign #> type ; : */ */mod nip ;
https://github.com/howerj/muxleq
PD: you don't need gforth to compile:
Edit muxleq.fth, add some goodies by editing these values: Here are my settings.Then, create a new ".dec" file (subleq program)
Now, to run EForth everytime: add these further in muxleq.fth code to have them: The ideal place would be just below the ': dabs ' defition.