Handbook
Glossary
run ( vocab -- )
Factor handbook
»
The language
»
Vocabulary loader
Prev:
MAIN:
Next:
runnable-vocab
Vocabulary
vocabs
.
loader
Inputs
vocab
a vocabulary specifier
Outputs
None
Word description
Runs a vocabulary's main entry point. The main entry point is set with the
MAIN:
parsing word.
Definition
USING:
combinators
io
kernel
vocabs
;
IN:
vocabs.loader
:
run
( vocab -- )
load-vocab
[
vocab-main
]
[
( -- )
execute-effect
]
[
"The "
write
vocab-name
write
" vocabulary does not define an entry point."
print
"To define one, refer to \\ MAIN: help"
print
]
?if
;