! Copyright (C) 2006 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. IN: definitions USING: arrays generic hashtables io kernel math namespaces parser prettyprint sequences styles words ; : ?resource-path ( path -- path ) "resource:/" ?head [ resource-path ] when ; : reload ( defspec -- ) where first [ ?resource-path run-file ] when* ; GENERIC: (synopsis) ( spec -- ) : write-vocab ( vocab -- ) dup presented associate styled-text ; : in. ( word -- ) word-vocabulary [ H{ }