unuse-vocab ( vocab -- )
Factor documentation > Factor handbook > The language > Parsing words > Reflection support for vocabulary search path
Prev:use-vocab ( vocab -- )
Next:add-qualified ( vocab prefix -- )


Vocabulary
vocabs.parser

Inputs and outputs
vocaba vocabulary specifier


Word description
Removes a vocabulary from the current manifest.

Notes
This word is used to implement UNUSE:.

Definition
USING: accessors kernel namespaces sequences sets vocabs ;

IN: vocabs.parser

: unuse-vocab ( vocab -- )
dup using-vocab? [
manifest get
[ [ load-vocab ] dip search-vocabs>> remove-eq! drop ]
[ [ vocab-name ] dip search-vocab-names>> delete ] 2bi
] [ drop ] if ;