.c 72;Help file for PRETTY (2 Pages) .c 72;Version No. 8.2, Feb. 1982 .sk.rm 72 PRETTY is a utility program which accepts a BLISS (-16, -32, or -36) source file and produces a reformatted source file (and optionally a specially formatted listing file), using generally accepted guidelines for formatting rules. The output file will have all whitespace (except in strings, macro definitions, and comments) removed and replaced. Control expressions are indented according to hierarchical structure. .sk1 To invoke PRETTY, type RUN BLI:PRETTY. It will prompt with '*' for a file specification line of the form .sk;.center;[outspec [, listspec] =] inputspec [/(NO)LOG] .sk;where 'inputspec' is the source file specification (default type = 'BLI') and 'listspec' is the listing file specification (default type = 'LST', name = the input file name). /NOLOG (the default) will display no syntax errors, module names, or timing. If errors are detected during parsing with /NOLOG, an informational message will be output to the terminal. /LOG will display all of the above. The output filespec designates the new, reformatted source file. If it is omitted, the input file is renamed with an extension of 'BLF' and the output is given the filespec of the input. (Note: Production of the listing file approximately doubles PRETTY run time.) .sk Formatting options are supplied to PRETTY by means of directives inserted as full-line comments into the source text. The comments have the general form .br;.nf ! example: ! .br;.f;where "directive" may be one of the following (either lower or upper case may be used): .sk .lm 8 .i -8;REQUIRE'file-spec' .br Accesses the specified file for further options of the following types. The specified file must not contain another REQUIRE directive. .i -8;PAGE .br Produces a page break (formfeed) after the comment line. .i -8;WIDTH:n (D= 110) .br Causes the output file line width to be set to "n" columns, where 71_ .br;permits the sequence .br;####IF expr THEN expr ELIF expr THEN expr; .br;to be formatted without error messages. (The name, ELIF, is output, but it is parsed and indented as though ELSE IF had been found there.)