Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
run ( vocab -- )
Factor handbook
>
The language
>
Vocabulary loader
Prev:
MAIN:
Next:
runnable-vocab
Vocabulary
vocabs.loader
Inputs and outputs
vocab
a vocabulary specifier
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 -- )
dup
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
;