Handbook
Glossary
set-current-vocab ( name -- )
Factor handbook
»
The language
»
Parsing words
»
Reflection support for vocabulary search path
Prev:
current-vocab ( -- vocab )
Next:
begin-private ( -- )
Vocabulary
vocabs
.
parser
Inputs
name
a
string
Outputs
None
Word description
Sets the current vocabulary where new words will be defined, creating the vocabulary first if it does not exist.
Notes
This word is used to implement
IN:
.
Definition
USING:
accessors
kernel
namespaces
sequences
vocabs
;
IN:
vocabs.parser
:
set-current-vocab
( name -- )
create-vocab
[
manifest
get
current-vocab<<
]
[
qualified-vocabs
push
]
bi
;