Handbook
Glossary
current-vocab ( -- vocab )
Factor handbook
»
The language
»
Parsing words
»
Reflection support for vocabulary search path
Prev:
add-words-excluding ( vocab words -- )
Next:
set-current-vocab ( name -- )
Vocabulary
vocabs
.
parser
Inputs
None
Outputs
vocab
a
vocab
Word description
Returns the current vocabulary, where new words will be defined.
Errors
Throws an error if the current vocabulary has not been set.
Definition
USING:
accessors
kernel
namespaces
;
IN:
vocabs.parser
:
current-vocab
( -- vocab )
manifest
get
current-vocab>>
[
no-current-vocab
]
unless*
;