31.12.2013 Views

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

USING <strong>PASCAL</strong> ON <strong>TOPS</strong>-<strong>20</strong><br />

Nonstandard <strong>PASCAL</strong> features are the extensions to the proposed ISO<br />

standard for the <strong>PASCAL</strong> language that are incorporated in <strong>PASCAL</strong>-<strong>20</strong>.<br />

Nonstandard features include VALUE declarations and the exponentiation<br />

operator. Appendix D lists all the extensions.<br />

By default, /FLAG-NON-STANDARD is enabled.<br />

/LISTING<br />

The /LISTING switch produces a source listing file.<br />

It has the form:<br />

/LISTING [:fiJespecE<br />

You can include a file specification for the listing file. The<br />

default file specification designates the name of the first source<br />

file, your default directory, and a file type of LST.<br />

The compiler does not produce a Jisting file in interactive mode<br />

unless you specify the /LISTING switch. In batch mode, the compiler<br />

produces a listing file by default. In either case, the listing file<br />

is not automatically printed.<br />

/MACHINE-CODE<br />

The /MACHINE-CODE switch places in the listing file a<br />

of the object code generated by the compiler.<br />

representation<br />

The compiler ignores this switch if the /LISTING switch is not<br />

enabled.<br />

The default is /NOMACHINE-CODE.<br />

/NATIONAL<br />

The /NATIONAL switch causes the braces to have no speciaJ meaning.<br />

Therefore, if you specify the /NATIONAL switch, you cannot use braces<br />

as comment characters. Instead, you must use (* *).<br />

The default is /NONATIONAL.<br />

jWARNINGS<br />

The /WARNINGS switch directs the compiler to generate diagnostic<br />

messages in response to warning-level errors.<br />

By default, /WARNINGS is enabled. A warning diagnostic message<br />

indicates that the compiler has detected acceptable but unorthodox<br />

syntax, or has performed some corrective action. In either case,<br />

unexpected results may occur. To suppress warning diagnostic<br />

messages, disable this switch. Note that messages generated when the<br />

/STANDARD switch is enabled appear even if /WARNINGS is disabled.<br />

8.4.4 Specifying Switches in the Source Code<br />

You can use switches in the source code to enable and disable special<br />

processing during compilation. When specified in the source code,<br />

switches have the form:<br />

(*$switch + ,switch + , ••• ;comment *)<br />

8-9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!