create-word ( name vocab -- word )
Factor handbook » The language » Words » Word introspection » Looking up and creating words

Next:create-word-in ( str -- word )


Vocabulary
words

Inputs
namea string
vocaba string


Outputs
worda word


Word description
Creates a new word. If the vocabulary already contains a word with the requested name, outputs the existing word. The vocabulary must exist already; if it does not, you must call create-vocab first.

Notes
This word must be called from inside with-compilation-unit. Parsing words should call create-word-in instead of this word.

Definition