IN: vocabs.files
: vocab-tests-path ( vocab -- path )
- vocab-name* dup "-tests.factor" append-vocab-dir vocab-append-path ;
+ dup "-tests.factor" append-vocab-dir vocab-append-path ;
: vocab-tests-file ( vocab -- path/f )
vocab-tests-path dup
\r
: (child-vocabs) ( root prefix -- vocabs )\r
check-vocab-name\r
- [ vocab-dir append-path dup exists? [ vocab-subdirs ] [ drop { } ] if ]\r
+ [\r
+ dup ".private" tail? [ 2drop { } ] [\r
+ vocab-dir append-path dup exists?\r
+ [ vocab-subdirs ] [ drop { } ] if\r
+ ] if\r
+ ]\r
[ nip [ "." append '[ _ prepend ] map! ] unless-empty ]\r
[ drop '[ _ over vocab-dir? [ >vocab-link ] [ <vocab-prefix> ] if ] map! ]\r
2tri ;\r
vocab-name* H{ { CHAR: . CHAR: / } } substitute ;
: append-vocab-dir ( vocab str/f -- path )
- [ vocab-name "." split ] dip
+ [ vocab-name* "." split ] dip
[ [ dup last ] dip append suffix ] when*
"/" join ;
swap find-vocab-root dup [ prepend-path ] [ 2drop f ] if ;
: vocab-source-path ( vocab -- path/f )
- vocab-name* dup ".factor" append-vocab-dir vocab-append-path ;
+ dup ".factor" append-vocab-dir vocab-append-path ;
: vocab-docs-path ( vocab -- path/f )
- vocab-name* dup "-docs.factor" append-vocab-dir vocab-append-path ;
+ dup "-docs.factor" append-vocab-dir vocab-append-path ;
SYMBOL: load-help?