Up: COD Command Summary
Begin a new colon definition.
In COD, colon definitions define new dictionary words
(i.e., new functions).
The token following the
is taken to be the name of the function.
All words typed after the
are compiled (stored) into memory.
; terminates the colon definition
and returns the state from compile to execute mode.
The name of the function must not match any existing COD keyword.
The interactive COD program does not print the stack
when the internal state is compiling
(i.e., during a colon definition).
COD> : X2 DUP * ;
Web Page Maintained by: Dr. Lawrence E. Brown email@example.com