Handbook
Glossary
create-word-in ( str -- word )
Factor handbook
»
The language
»
Words
»
Word introspection
»
Looking up and creating words
Prev:
create-word ( name vocab -- word )
Next:
lookup-word ( name vocab -- word )
Vocabulary
parser
Inputs
str
a word name
Outputs
word
a new word
Word description
Creates a word in the current vocabulary. Until re-defined, the word throws an error when invoked.
Notes
This word should only be called from parsing words.
Definition
USING:
kernel
vocabs.parser
words
;
IN:
parser
:
create-word-in
( str -- word )
current-vocab
create-word
dup
set-last-word
dup
save-location
;