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

Prev:MAIN:
Next:runnable-vocab


Vocabulary
vocabs.loader

Inputs
vocaba 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


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