TOPS-20 PASCAL Language Manual - Bitsavers
TOPS-20 PASCAL Language Manual - Bitsavers
TOPS-20 PASCAL Language Manual - Bitsavers
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 />
After planning the progr~m, you use an editor to create a file that<br />
contains the source statements. You use a text editor to create a<br />
source file. You can use EDIT, TV, or any other text editor to create<br />
the source file.<br />
For example, to create a <strong>PASCAL</strong> program that has the file name EXAMPL<br />
and a file type of PAS, you can issue the EDIT command as follows:<br />
(~EDIT EXAMF'L... PAS ~~<br />
Input: EXAMPL.PAS<br />
O():lOO<br />
If this is a new file, an additional message is displayed indicating<br />
that a new file is being created. Because the EDIT command does not<br />
assume a file type, you must include the file type as part of the file<br />
name. The EDIT command runs the <strong>TOPS</strong>-<strong>20</strong> default editor EDIT. The<br />
line number (00100) prompt indicates that EDIT is ready to accept<br />
input. For information on how to use EDIT, see the <strong>TOPS</strong>-<strong>20</strong> EDIT<br />
User's Guide.<br />
You can also use any other editor to which you have access, for<br />
exampJe, the TV editor. To use TV, you can either type TV to <strong>TOPS</strong>-<strong>20</strong>,<br />
or you can define the logical name EDITOR: to be SYS:TV.EXE. For<br />
more information about the use of TV, refer to the TOP§-<strong>20</strong> TV Edit.or<br />
<strong>Manual</strong>.<br />
After the program is created and edited, it is ready to be compiled.<br />
8.4 COMPILING A PROGRAM<br />
After creating a <strong>PASCAL</strong> source program, you compile it. At compile<br />
time, you specify the source filers) and indicate any qualifiers you<br />
wish to use.<br />
Optionally, the compiler produces one or more object files, which are<br />
input to LINK, and one or more listing files. The listing files<br />
contain source-code listings, information about compilation errors,<br />
and optional items such as cross-reference listings.<br />
8.4.1 The <strong>PASCAL</strong> Command<br />
To compile a source program, specify the <strong>PASCAL</strong> command and press the<br />
RETURN key. <strong>TOPS</strong>-<strong>20</strong> then returns the <strong>PASCAL</strong> prompt, at which point<br />
you specify the file name and any switches.<br />
@<strong>PASCAL</strong>G0<br />
<strong>PASCAL</strong>)source-filename U/switch(es)TI ~)<br />
8-4