Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
current-vocab ( -- vocab )
Factor documentation
>
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 and 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*
;