[ \ undocumented-word (help.) ] with-string-writer
] unit-test
+{
+"HELP: iota-tuple
+{ $class-description \"\" } ;
+" }
+[
+ [ \ iota-tuple (help.) ] with-string-writer
+] unit-test
+
{ sequence t } [ "seq" lookup-type ] unit-test
{ sequence t } [ "seq'" lookup-type ] unit-test
{ sequence t } [ "newseq" lookup-type ] unit-test
] if
] when* ;
+: class-description. ( word -- )
+ drop
+ "{ $class-description \"\" } ;" print ;
+
: symbol-description. ( word -- )
drop
"{ $var-description \"\" } ;" print ;
"{ $description \"\" } ;" print ;
: docs-body. ( word/symbol -- )
- dup symbol? [
- symbol-description.
- ] [
- [ $values. ] [ $description. ] bi
- ] if ;
+ {
+ { [ dup class? ] [ class-description. ] }
+ { [ dup symbol? ] [ symbol-description. ] }
+ [ [ $values. ] [ $description. ] bi ]
+ } cond ;
: docs-header. ( word -- )
"HELP: " write name>> print ;