All of the example programs discussed so far have been fairly short and to-the-point. However real ADAM programs have lengthy prologues which describe the program’s function, parameters, arguments, history, deficiencies, authors etc. The main purpose of such prologues is to document the program for prospective users and make the job of maintenance easier.
ADAM prologues are highly standardised. It is worthwhile to follow the standard – not least because utilities exist to automatically produce both LATEX documentation and help libraries from standard prologues. These utilities form part of the Simple Software Tools package (SST) and are briefly described later in this section. The SST package is fully documented in SUN/110.
Rather than typing in a prologue from scratch, a programmer can edit an existing one or use the STARLSE editor described in SUN/105. An example ADAM prologue is reproduced on the opposite page and the prologue of the accompanying interface file is reproduced below. The complete files are contained in ADAM_EXAMPLES:CADD.FOR and CADD.IFL.
The SST utilities used to produce documentation and help modules can be summarised as follow:
.TEX
file (called
PROLAT.TEX
by default). This file can then be processed in the normal way (see SUN/12).
The sequence of commands below illustrate the procedure for processing the file
CADD.FOR
.
.TEX
file, PROHLP produces a
.HLP
text file (called PROHLP.HLP
by default) which can be inserted into a HELP library as shown
below. (See Section 19 for more information on HELP libraries.)