run ( vocab -- )
Factor handbook > The language > Vocabulary loader

Prev:MAIN:
Next:runnable-vocab


Vocabulary
vocabs.loader

Inputs and outputs
vocaba vocabulary specifier


Word description
Runs a vocabulary's main entry point. The main entry point is set with the MAIN: parsing word.

Definition


: 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 ;