CROSSREF Manual
EXTENDED BASIC
Sample Listing
Table 8-1. EXTENDED BASIC Identifier Classes
CROSSREF Default BASIC
Class Setting Type
_______________________________________________________________
FUNCTIONS ON User-defined functions
KEYWORDS OFF Keywords (reserved words)
LINENOS ON Line numbers
LITERALS OFF Literals
SYSVARS ON System variables
VARIABLES ON Variables
Notice that the default setting for KEYWORDS and LITERALS is
OFF. If you want keywords and literals to appear in the cross-
reference listing, you must set them to ON using the SET command.
See Section 4 for details.
SAMPLE LISTING
The following example starts CROSSREF, scans the file named
BASEX, and generates a listing to $s.#lp:
13> CROSSREF
CROSSREF-CROSS-REFERENCE PROGRAM-T9622C00-(15JUL87)
Copyright Tandem Computers Incorporated 1982, 1983, 1985, 1986
&SET LANGUAGE basic
&SCAN basex
&GENERATE /OUT $s.#lp/
&EXIT
14>
On the following pages, you can see the program and its cross-
reference listing. The listing includes line numbers, variables,
functions, and system variables. It does not include keywords
and literals, however, because only the default settings were
used.
8-2