factor/basis/help/syntax/syntax.factor

23 lines
608 B
Factor
Raw Normal View History

2008-04-05 08:00:09 -04:00
! Copyright (C) 2005, 2008 Slava Pestov.
2007-09-20 18:09:08 -04:00
! See http://factorcode.org/license.txt for BSD license.
USING: arrays kernel parser sequences words help help.topics
namespaces vocabs definitions compiler.units ;
2007-09-20 18:09:08 -04:00
IN: help.syntax
: HELP:
scan-word bootstrap-word
dup set-word
dup >link save-location
\ ; parse-until >array swap set-word-help ; parsing
: ARTICLE:
location >r
\ ; parse-until >array [ first2 ] keep 2 tail <article>
2007-12-24 17:18:26 -05:00
over add-article >link r> remember-definition ; parsing
2007-09-20 18:09:08 -04:00
: ABOUT:
2008-04-05 08:00:09 -04:00
scan-object
in get vocab
2008-08-31 02:34:00 -04:00
dup changed-definition
2008-04-05 08:00:09 -04:00
set-vocab-help ; parsing