factor/library/tools/word-tools.facts

26 lines
1.2 KiB
Plaintext
Raw Normal View History

IN: tools
USING: help words ;
2006-03-25 01:06:52 -05:00
2006-08-16 21:55:53 -04:00
HELP: usage.
{ $values { "word" "a word" } }
{ $description "Prints an outliner listing all callers of a word. This may include the word itself, if it is recursive." }
{ $examples { $code "\\ reverse usage." } }
2006-07-25 02:08:06 -04:00
{ $see-also usage } ;
2006-08-16 21:55:53 -04:00
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." } ;
2006-08-16 21:55:53 -04:00
HELP: annotate
2006-03-25 01:06:52 -05:00
{ $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." }
2006-07-30 22:11:07 -04:00
{ $notes "This word is used to implement " { $link watch } " and " { $link profile } "." } ;
2006-03-25 01:06:52 -05:00
2006-08-16 21:55:53 -04:00
HELP: watch
2006-03-25 01:06:52 -05:00
{ $values { "word" "a word" } }
{ $description "Changes a word definition so that a message together with the stack contents is output before and after the word runs." } ;
2006-08-16 21:55:53 -04:00
HELP: profile
2006-03-25 01:06:52 -05:00
{ $values { "word" "a word" } }
2006-06-04 16:20:40 -04:00
{ $description "Changes a word definition so the variable named by the word in the global namespace is incremented every time the word is executed." } ;