minimal
Minimal Forth Workbench provides an educational subset of Standard Forth, feel free to experiment.
- raw README.md
- raw arithmetic.fs
- raw compiling-words.fs
- raw control-structures.fs
- raw defining-words.fs
- raw double.fs
- raw error-handling.fs
- raw file-access.fs
- raw memory.fs
- raw minimal.fs
- raw mit-license
- raw numeric-output.fs
- raw package.4th
- raw prelude.fs
- raw primitives.fs
- raw secondaries.fs
- raw stack.fs
- raw strings.fs
- raw testbench.fs
\ Minimal Forth Workbench: defining words uh 2015-10-15 : VALUE ( -- ) CREATE , DOES> @ ; \ TO is a state smart compiling word : DEFER ( "<Spaces>Name" -- ) CREATE 0 , DOES> @ EXECUTE ; primitive ALLOT primitive HERE \ : Array ( n -- ) CREATE CELLS ALLOT DOES> ( i -- x ) CELLS + ; \ : Field ( u1 u2 -- u3 ) CREATE OVER , + DOES> ( addr -- ) @ + ;