System scripts are documented in comments in the scripts themselves. The scriptdoc utility can be used to view the documentation. To load enter:
To view script documentation, e.g. for dates, enter:
The following conventions are used to document J system scripts, and are recognized by the scriptdoc utility.
Scripts are documented in comment lines (i.e. lines beginning with
Multi-line comments are consecutive lines beginning with
NB. with no break. The first line of a multi-line comment is used for summary documentation.
The script itself is documented at the beginning. The first line describes the script, i.e
NB. script description...
Definitions produced by the script are documented in comments where the first comment line begins NB.* and has the form:
NB.*name type description
where type is a single letter:
The rest of a multi-line comment for a definition is free form, however, conventionally it may include lines beginning:
describes the usage of the definition, e.g
NB. form: calendar year [,months]
NB.comment lines in the script are ignored for documentation purposes.