TOPS-20 PASCAL Language Manual - Bitsavers
TOPS-20 PASCAL Language Manual - Bitsavers
TOPS-20 PASCAL Language Manual - Bitsavers
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
INTRODUCTION<br />
Also, you can start a comment<br />
character pair, ano end it<br />
character pair, as follows:<br />
(* This is also a comment *)<br />
with<br />
wi th<br />
the<br />
the<br />
left-parenthesis/asterisk<br />
asterisk/right-parenthesis<br />
You can also mix the type of comment characters you use. For example,<br />
you can use a left brace with an asterisk/right-parenthesis character<br />
pair:<br />
{ This is another comment *)<br />
You can place a comment anywhere a space is legal.<br />
comments are not delimiteo by semicolons.<br />
Unlike statements,<br />
A comment can contain any ASCII character because <strong>PASCAL</strong> ignores the<br />
text of the comment.<br />
NOTE<br />
To turn off braces as recognized<br />
comment characters, use the /NATIONAL<br />
switch. See Section 8.4.3 for more<br />
information on thjs switch.<br />
1.5 THE %INCLUDE DIRECTIVE<br />
The %INCLUDE directive allows you to ~ccess statements from a <strong>PASCAL</strong><br />
file, calJed the included file, during compilation of the current<br />
file. The contents of the included file are inserted in the place<br />
where the <strong>PASCAL</strong> compiler finds the directive. This directive can<br />
appear anywhere in the <strong>PASCAL</strong> program.<br />
Format<br />
where:<br />
%INCLUDE 'file specification<br />
[{<br />
/L IST }ll'<br />
/NOLIST n<br />
'file specification'<br />
/LIST<br />
/NOLIST<br />
is the name of the file to be<br />
The apostrophes are required.<br />
included.<br />
indicates that the included file is<br />
be printed in the listing. This is<br />
default.<br />
to<br />
the<br />
indicates the included file is not to be<br />
printed in the listing.<br />
When the compiler finds the %INCLUDE directive, it stops reading from<br />
the current file and begins reading from the included file. When the<br />
compiler reaches the end of the included file, it resumes compilation<br />
immediately following the %INCLUDE directive.<br />
This directive can appear wherever a comment can appear. An included<br />
file can contain any <strong>PASCAL</strong> declarations or statements. However, the<br />
declarations in an included file, when combined with the other<br />
declarations in the compilation, must follow the required order for<br />
declarations.<br />
1-10