factor/library/help/syntax.factor

12 lines
288 B
Factor
Raw Normal View History

2005-12-23 02:21:01 -05:00
IN: !syntax
USING: arrays help kernel parser sequences syntax words ;
: HELP:
scan-word [ >array "help" set-word-prop ] [ ] ; parsing
: ARTICLE:
[ >array [ first2 2 ] keep tail add-article ] [ ] ; parsing
: GLOSSARY:
[ >array [ first 1 ] keep tail add-term ] [ ] ; parsing