VocabularysyntaxSyntaxSYNTAX: foo ... ;
Word descriptionDefines a parsing word.
ExamplesIn the below example, the
world word is never called, however its body references a parsing word which executes immediately:
USE: io
IN: scratchpad
<< SYNTAX: HELLO "Hello parser!" print ; >>
: world ( -- ) HELLO ;
Hello parser!
Definition