SYMBOLS:
Factor documentation > Factor handbook > The language > Words > Symbols
Prev:SYMBOL:
Next:define-symbol ( word -- )


Vocabulary
syntax

Syntax
SYMBOLS: words... ;


Inputs and outputs
wordsa sequence of new words to define


Word description
Creates a new symbol for every token until the ;.

Examples
USING: prettyprint ; IN: scratchpad SYMBOLS: foo bar baz ; foo . bar . baz .
foo bar baz


See also
define-symbol, SYMBOL:

Definition
USING: kernel lexer parser words words.symbol ;

IN: syntax

SYNTAX: SYMBOLS:
";"
[ create-in [ reset-generic ] [ define-symbol ] bi ]
each-token ;