Handbook
Glossary
vocab-directory-entries ( root prefix -- vocab-path vocab-name entries )
Vocabulary
vocabs
.
hierarchy
.
private
Inputs
root
an
object
prefix
an
object
Outputs
vocab-path
an
object
vocab-name
an
object
entries
an
object
Definition
USING:
io.directories
io.files
io.pathnames
kernel
vocabs.loader
;
IN:
vocabs.hierarchy.private
:
vocab-directory-entries
( root prefix -- vocab-path vocab-name entries )
ensure-vocab-root/prefix
[
vocab-dir
append-path
]
keep
over
dup
file-exists?
[
directory-entries
]
[
drop
{
}
]
if
;