31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
IN: tools
|
|
USING: help words ;
|
|
|
|
HELP: usage.
|
|
{ $values { "word" "a word" } }
|
|
{ $description "Prints an list of all callers of a word. This may include the word itself, if it is recursive." }
|
|
{ $examples { $code "\\ reverse usage." } } ;
|
|
|
|
{ usage usage. } related-words
|
|
|
|
HELP: apropos
|
|
{ $values { "str" "a string" } }
|
|
{ $description "Lists all words whose name contains a subsequence equal to " { $snippet "str" } ". Results are ranked using a simple distance algorithm." } ;
|
|
|
|
HELP: annotate
|
|
{ $values { "word" "a word" } { "quot" "a quotation with stack effect " { $snippet "( word def -- def )" } } }
|
|
{ $description "Changes a word definition to the result of applying a quotation to the old definition." }
|
|
{ $notes "This word is used to implement " { $link watch } "." } ;
|
|
|
|
HELP: watch
|
|
{ $values { "word" word } }
|
|
{ $description "Annotates a word definition to print the data stack on entry and exit." } ;
|
|
|
|
HELP: breakpoint
|
|
{ $values { "word" word } }
|
|
{ $description "Annotates a word definition to enter the single stepper when executed." } ;
|
|
|
|
HELP: breakpoint-if
|
|
{ $values { "quot" "a quotation with stack effect" { $snippet "( -- ? )" } } { "word" word } }
|
|
{ $description "Annotates a word definition to enter the single stepper if the quotation yields true." } ;
|