Handbook
Glossary
add-vocab-root ( root -- )
Factor handbook
»
The language
»
Vocabulary loader
»
Vocabulary roots
»
Working with code outside of the Factor source tree
Prev:
Additional vocabulary roots file
Vocabulary
vocabs
.
loader
Inputs
root
a pathname string
Outputs
None
Word description
Adds a directory pathname to the list of vocabulary roots.
See also
Additional vocabulary roots file
,
add-vocab-root-hook
Definition
USING:
combinators
io.pathnames
kernel
namespaces
sets
;
IN:
vocabs.loader
:
add-vocab-root
( root -- )
absolute-path
trim-tail-separators
dup
vocab-roots
get
?adjoin
[
add-vocab-root-hook
get-global
( root -- )
call-effect
]
[
drop
]
if
;