Handbook
Glossary
HELP:
Factor handbook
»
Developer tools
»
Help system
»
Writing documentation
Prev:
ARTICLE:
Next:
ABOUT:
Vocabulary
help
.
syntax
Syntax
HELP: word content... ;
Inputs
None
Outputs
None
Word description
Defines documentation for a word.
Examples
USING: help help.markup help.syntax math ; : foo ( m -- n ) 2 + ; HELP: foo { $values { "m" integer } { "n" integer } } { $description "Increments a value by 2." } ; \ foo help
Definition
USING:
help
help.topics
kernel
parser
vocabs.parser
words
;
IN:
help.syntax
SYNTAX:
HELP:
H{
{
"{"
POSTPONE:
HELP{
}
}
[
scan-word
bootstrap-word
[
>link
save-location
]
[
[
parse-array-def
]
dip
set-word-help
]
bi
]
with-words
;