]> gitweb.factorcode.org Git - factor.git/blob - basis/help/syntax/syntax.factor
Remove stack effects from HELP: declarations.
[factor.git] / basis / help / syntax / syntax.factor
1 ! Copyright (C) 2005, 2009 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors arrays compiler.units definitions effects
4 effects.parser help help.topics kernel namespaces parser
5 sequences vocabs vocabs.parser words ;
6 IN: help.syntax
7
8 SYNTAX: HELP:
9     scan-word bootstrap-word
10     [ >link save-location ]
11     [ [ \ ; parse-until >array ] dip set-word-help ]
12     bi ;
13
14 SYNTAX: ARTICLE:
15     location [
16         \ ; parse-until >array [ first2 ] [ 2 tail ] bi <article>
17         over add-article >link
18     ] dip remember-definition ;
19
20 SYNTAX: ABOUT:
21     current-vocab scan-object >>help changed-definition ;