<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Compilation Words in TurboForth Kernal
Calls HEADER to build a dictionary entry and begins compilation of a colon definition (sets STATE to 1).
HEADER
STATE
: TEST 1 2 3 . . . ;
: is used to begin a word, or, to borrow a phrase from other languages, a subroutine. : must be followed by a space, then the name of the word/subroutine. Normal Forth code, and numbers (literal) may then follow. The definition ends with ; (semi-colon).
:
;