Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
set-current-vocab ( name -- )
Factor documentation
>
Factor handbook
>
The language
>
Parsing words
>
Reflection support for vocabulary search path
Prev:
current-vocab ( -- vocab )
Next:
begin-private ( -- )
Vocabulary
vocabs.parser
Inputs and outputs
name
a
string
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
vocabs
vocabs.parser.private
;
IN:
vocabs.parser
:
set-current-vocab
( name -- )
create-vocab
[
manifest
get
current-vocab<<
]
[
(add-qualified)
]
bi
;