Handbook
Glossary
scaffold-vocab ( string -- )
Scaffold tool
Prev:
developer-name
Next:
scaffold-core ( string -- )
Vocabulary
tools
.
scaffold
Inputs
string
a
string
Outputs
None
Word description
Searches parent vocabularies for an appropriate root to create a new vocabulary and adds a main .factor file and an authors.txt file.
Definition
USING:
assocs
continuations
kernel
namespaces
sequences
vocabs.loader
;
IN:
tools.scaffold
:
scaffold-vocab
( string -- )
"Choose a vocabulary root:"
vocab-roots
get
[
[
"Use "
prepend
]
keep
]
map>alist
throw-restarts
swap
scaffold-vocab-in
;