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 P~SCAL<br />

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

/TAKE<br />

The /TAKE command takes commands from the specified command file. The<br />

/TAKE command recognizes the default file type CMD.<br />

Example 1<br />

(~PAf:)CAL..<br />

<strong>PASCAL</strong>)/TAKE: PLAN<br />

P{~SCAL)<br />

Assume that the command file PLAN.CMD contains the following:<br />

PLAN. PAS IN()FI...AG-··NON··-~JTANDAr~[I IL I ~JT I NG ~<br />

The /TAKE: command causes the contents of PLAN.CMD to be executed.<br />

In this example, the source fiJe PLAN.PAS is compiled; display of<br />

warning messages for nonstandard features is suppressed; and a<br />

listing file is generated. Make sure the command file ends with a<br />

carriage-return/line-feed. After execution of the command file, you<br />

can give another command to the compiler.<br />

Example 2<br />

<strong>PASCAL</strong>)SORTER.PAS<br />

<strong>PASCAL</strong>)/RUN: LINK<br />

*<br />

The compiler compiles the source file SORTER. PAS, and the /RUN:<br />

command is then used to run the LINK program. The /RUN: command<br />

exits you from the compiler and causes the LINK program to begin<br />

executing. The asterisk (*) is the prompt displayed by LINK.<br />

Example 3<br />

@<strong>PASCAL</strong><br />

<strong>PASCAL</strong>:>AVER.F'AS<br />

F'ASCAL:>/EX I T<br />

@<br />

The EXIT command exits you from the compiler and puts you<br />

command level.<br />

at <strong>TOPS</strong>-<strong>20</strong><br />

8.4.3 <strong>PASCAL</strong> Compiler Switches<br />

Table 8-3 lists the switches you can use with the <strong>PASCAL</strong> compiler.<br />

You can specify the switches following the file name or in source code<br />

comments. This section describes the effect of each switch on a<br />

<strong>PASCAL</strong> program.<br />

8-6

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

Saved successfully!

Ooh no, something went wrong!