SYNTAX:
Factor handbook » The language » Parsing words

Next:staging-violation ( word -- * )


Vocabulary
syntax

Syntax
SYNTAX: foo ... ;


Word description
Defines a parsing word.

Examples
In 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