1 ! Copyright (C) 2007, 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors definitions help help.topics help.syntax
4 prettyprint.backend prettyprint.custom prettyprint words kernel
8 ! Definition protocol implementation
10 M: link definer drop \ ARTICLE: \ ; ;
12 M: link where name>> article loc>> ;
14 M: link set-where name>> article (>>loc) ;
16 M: link forget* name>> remove-article ;
18 M: link definition article-content ;
23 article-title pprint* ;
25 M: word-link definer drop \ HELP: \ ; ;
27 M: word-link where name>> "help-loc" word-prop ;
29 M: word-link set-where name>> swap "help-loc" set-word-prop ;
31 M: word-link definition name>> "help" word-prop ;
33 M: word-link synopsis*
35 name>> dup pprint-word
38 M: word-link forget* name>> remove-word-help ;