vocabs: adding docs for 'parent-vocab?' and 'parent-vocabs'.

db4
John Benediktsson 2011-09-25 18:36:20 -07:00
parent 46df742317
commit 605c2b265e
1 changed files with 12 additions and 1 deletions

View 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\" }"
}
} ;