CROSSREF Manual

PASCAL
Sample Listing
Table 10-1. Pascal Identifier Classes
CROSSREF Default Pascal
Class Setting Type
_______________________________________________________________
BLOCKS ON Public variables
CONSTANTS ON Named constants
PROCEDURES ON Procedures and functions
PROGLABELS ON GOTO labels
TYPES ON All data types
VARIABLES ON Non-public variables
SAMPLE LISTING
The following example starts CROSSREF, scans the file named
PASCALEX, and generates a listing to $s.#lp:
14> CROSSREF
CROSSREF-CROSS-REFERENCE PROGRAM-T9622C00-(15JUL87)
Copyright Tandem Computers Incorporated 1982, 1983, 1985, 1986
&SET LANGUAGE pascal
&SCAN pascalex
&GENERATE /OUT $s.#lp/
&EXIT
15>
On the following pages, you can see the program and its cross-
reference listing.
Figure 10-1 shows the Pascal program that CROSSREF scanned to
produce the cross-reference listing.
10-2