annotate ( word quot -- ) (original) (raw)
annotate ( word quot -- )
Factor handbook » Developer tools » Word annotations
Prev: | word-timing. ( -- ) |
---|
Vocabulary
tools.annotations
Inputs
word | a word |
---|---|
quot | a quotation with stack effect ( old-def -- new-def ) |
Outputs
None
Word description
Changes a word definition to the result of applying a quotation to the old definition.
Notes
This word is used to implement watch.
Definition
USING: compiler.units tools.annotations.private ;
: annotate ( word quot -- )
[ (annotate) ] with-compilation-unit ;