]> gitweb.factorcode.org Git - factor.git/commitdiff
vocabs: adding docs for 'parent-vocab?' and 'parent-vocabs'.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 26 Sep 2011 01:36:20 +0000 (18:36 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 26 Sep 2011 01:36:20 +0000 (18:36 -0700)
core/vocabs/vocabs-docs.factor

index b2cb422178ed41ca42839a5e748429bc86bfad49..021c56e22df6d49d7fda21cbb2f88d232759e9fb 100644 (file)
@@ -28,6 +28,7 @@ $nl
 { $subsections
     vocab
     child-vocabs
+    parent-vocabs
     create-vocab
 }
 "Getting words from a vocabulary:"
@@ -93,7 +94,17 @@ HELP: child-vocabs
 { $examples
     { $unchecked-example
         "\"io.streams\" child-vocabs ."
-        "{\n    \"io.streams.c\"\n    \"io.streams.duplex\"\n    \"io.streams.lines\"\n    \"io.streams.nested\"\n    \"io.streams.plain\"\n    \"io.streams.string\"\n}"
+        "{ \"io.streams.c\" \"io.streams.duplex\" \"io.streams.lines\" \"io.streams.nested\" \"io.streams.plain\" \"io.streams.string\" }"
+    }
+} ;
+
+HELP: parent-vocabs
+{ $values { "vocab" "a vocabulary specifier" } { "seq" "a sequence of strings" } }
+{ $description "Outputs all vocabularies which are conceptually above " { $snippet "vocab" } " in the hierarchy." }
+{ $examples
+    { $unchecked-example
+        "\"io.files.info\" parent-vocabs ."
+        "{ \"io\" \"io.files\" \"io.files.info\" }"
     }
 } ;