factor/library/help/syntax.factor

19 lines
474 B
Factor

! Copyright (C) 2005 2006 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
IN: !syntax
USING: arrays help kernel parser sequences syntax words ;
: !HELP:
scan-word bootstrap-word
dup dup location "help-loc" set-word-prop
[
>array unclip swap >r "stack-effect" set-word-prop r>
set-word-help
] f ; parsing
: !ARTICLE:
[
>array [ first2 ] keep 2 tail location <article>
add-article
] f ; parsing