Handbook
Glossary
create-vocab ( name -- vocab )
Factor handbook
»
The implementation
»
Vocabularies
Prev:
loaded-child-vocab-names ( vocab-spec -- seq )
Next:
vocab-words-assoc ( vocab-spec -- assoc/f )
Vocabulary
vocabs
Inputs
name
a
string
Outputs
vocab
a
vocab
Word description
Creates a new vocabulary if one does not exist with the given name, otherwise outputs an existing vocabulary.
Definition
USING:
assocs
kernel
namespaces
;
IN:
vocabs
:
create-vocab
( name -- vocab )
check-vocab-name
dictionary
get
[
<vocab>
]
cache
dup
notify-vocab-observers
;