USING:
Factor documentation > Factor handbook > The language > Syntax > Parse-time word lookup > Syntax to control word lookup
Prev:USE:
Next:QUALIFIED:


Vocabulary
syntax

Syntax
USING: vocabularies... ;


Inputs and outputs
vocabulariesa list of vocabulary names


Word description
Adds a list of vocabularies to the search path.

Notes
If adding the vocabularies introduces ambiguity, referencing the ambiguous names will throw a ambiguous-use-error.

Errors
Throws an error if one of the vocabularies does not exist.

Definition
USING: lexer vocabs.parser ;

IN: syntax

SYNTAX: USING: ";" [ use-vocab ] each-token ;