A

The listing includes the time each unit was compiled and the name of each unit compiled.

hostname% pc -xl

list.p

 

Tue

Feb

28

15:48

1995

list.p:

 

6 %list;

 

 

Tue

Feb

28

15:50

1995

./types.h:

1type

2lowints = 0..100;

3primary_colors = set of (red, yellow, blue);

4possibilities = set of boolean;

5capital_letters = set of 'A'..'Z';

6digits = set of lowints;

8var

9pri: primary_colors;

10pos: possibilities;

11cap: capital_letters;

12dig: digits;

Tue Feb 28 15:52 1995 list.p:

7 %include 'types.h';

hostname% a.out

 

 

There are

3

primary colors

There are

2

possibilities

There are

26 capital letters

There are

101 digits

The %nolist Directive

The %nolist directive disables the program listing.

Syntax

%nolist;

Comments

%nolist is the default.

Example

See the example under “The %list Directive.”

262

Pascal 4.0 User’s Guide