]> gitweb.factorcode.org Git - factor.git/commitdiff
add scaffold-undocumented
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 4 Sep 2008 05:43:18 +0000 (00:43 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 4 Sep 2008 05:43:18 +0000 (00:43 -0500)
basis/tools/scaffold/scaffold.factor

index c7781629c0caea38a44df69551c41ad2f2a72285..571266d0ef75f10fa0a87613f75e592a32750801 100644 (file)
@@ -178,12 +178,22 @@ ERROR: vocab-name-contains-dot path ;
 : prepare-scaffold ( vocab-root string -- string path )
     check-scaffold [ vocab>scaffold-path ] keep ;
 
+: with-scaffold ( quot -- )
+    [ H{ } clone using ] dip with-variable ; inline
+
 : scaffold-help ( vocab-root string -- )
-    H{ } clone using [
+    [
         prepare-scaffold
         [ "-docs.factor" scaffold-path ] dip
         swap [ set-scaffold-help-file ] [ 2drop ] if
-    ] with-variable ;
+    ] with-scaffold ;
+
+: scaffold-undocumented ( string -- )
+    [
+        words
+        [ "help" word-prop not ] filter
+        natural-sort [ help. nl ] each
+    ] with-scaffold ;
 
 : scaffold-vocab ( vocab-root string -- )
     prepare-scaffold