The %nolist directive – HP SunSoft Pascal 4.0 User Manual

Page 286

Advertising
background image

262

Pascal 4.0 User’s Guide

A

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.”

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:

1 type

2

lowints = 0..100;

3

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

4

possibilities = set of boolean;

5

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

6

digits = set of lowints;

8 var

9

pri: primary_colors;

10

pos: possibilities;

11

cap: capital_letters;

12

dig: 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

Advertising