Handbook
Glossary
parse-vocab-manifest-file ( path -- vocab-manifest )
Vocabulary
tools
.
deploy
.
backend
Inputs
path
an
object
Outputs
vocab-manifest
an
object
Definition
USING:
io.encodings.utf8
io.files
kernel
sequences
splitting
;
IN:
tools.deploy.backend
:
parse-vocab-manifest-file
( path -- vocab-manifest )
utf8
file-lines
[
"empty vocab manifest!"
throw
]
[
unclip-slice
"VOCABS:"
=
[
{
"LIBRARIES:"
}
split1
vocab-manifest
boa
]
[
"invalid vocab manifest!"
throw
]
if
]
if-empty
;