factor/library/help/syntax.factor

17 lines
465 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 [
>array unclip swap >r "stack-effect" set-word-prop r>
"help" set-word-prop
] f ; parsing
: ARTICLE:
[ >array [ first2 2 ] keep tail add-article ] f ; parsing
: GLOSSARY:
[ >array [ first 1 ] keep tail add-term ] f ; parsing