home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
turbopas
/
t_ref.arc
/
T-REFHDR.DOC
< prev
Wrap
Text File
|
1987-01-15
|
10KB
|
265 lines
TTTTTTTTTTT RRRRRRRRRRRR EEEEEEEEEEEE FFFFFFFFFFFF
TTT RRR RRR EEE E FFF F
TTT RRR RRR EEE FFF
TTT RRR RRR EEE FFF
TTT ******* RRRRRRRRRRR EEEEEEE FFFFFFF
TTT RRR RRR EEE FFF
TTT RRR RRR EEE FFF
TTT RRR RRR EEE E FFF
TTTTT RRRRR RRRR EEEEEEEEEEEE FFFFF (TM)
VERSION 1.0 - PUBLIC DOMAIN RELEASE
A SOURCE LISTING AND CROSS REFERENCING PROGRAM
FOR TURBO PASCAL
COPYRIGHT (C) 1986 BY SYNERGY SOFTWARE OF NEBRASKA
ALL PORTIONS OF T-REF, IN WHOLE OR IN PART, ARE THE
SOLE OWNERSHIP OF SYNERGY SOFTWARE OF NEBRASKA.
THIS PROGRAM AND DOCUMENTATION EDITION MAY BE FREELY
COPIED AND DISTRIBUTED WITHOUT FURTHER AUTHORIZATION
OR REQUEST FROM SYNERGY SOFTWARE OF NEBRASKA AS LONG
AS COPYRIGHT NOTICE AND DISCLAIMERS ARE REPRODUCED IN
FULL. IF SOLD, THIS PRODUCT MAY NOT EXCEED $10 IN
COST TO THE PURCHASEE. SYNERGY SOFTWARE OF NEBRASKA
RESERVES *ALL* OTHER RIGHTS OF THIS PROGRAM PACKAGE.
Disclaimer
T-Ref is supplied as is and the author disclaims all warranties, expressed or
implied, including, without limitation, the warranties of merchantability and
the warranties of fitness for any purpose.
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . i
System Requirements . . . . . . . . . . . . . . . . . . . . ii
Assumptions . . . . . . . . . . . . . . . . . . . . . . . . ii
Limitations . . . . . . . . . . . . . . . . . . . . . . . . ii
Chapter I - About T-Ref
What T-Ref can do . . . . . . . . . . . . . . . . . . . . . 1
The Main Screen . . . . . . . . . . . . . . . . . . . . . . 2
The Pop-Up Help Windows . . . . . . . . . . . . . . . . . . 4
Chapter II - The Source Listing
Reserve Words . . . . . . . . . . . . . . . . . . . . . . . 6
Identifiers . . . . . . . . . . . . . . . . . . . . . . . . 6
Line Numbering. . . . . . . . . . . . . . . . . . . . . . . 6
Lexical Level Numbering . . . . . . . . . . . . . . . . . . 7
Block Numbering . . . . . . . . . . . . . . . . . . . . . . 8
Displaying the Active Procedures/Functions. . . . . . . . . 8
Header. . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Page Numbering. . . . . . . . . . . . . . . . . . . . . . . 9
Include Files . . . . . . . . . . . . . . . . . . . . . . . 10
Chapter III - The Cross Reference Listing
System Identifiers. . . . . . . . . . . . . . . . . . . . . 11
Data Types. . . . . . . . . . . . . . . . . . . . . . . . . 11
Basic Types . . . . . . . . . . . . . . . . . . . . . . . . 11
Cross Reference Lister. . . . . . . . . . . . . . . . . . . 12
Header. . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Page Numbering. . . . . . . . . . . . . . . . . . . . . . . 12
Include Files . . . . . . . . . . . . . . . . . . . . . . . 13
Interpreting the Listing. . . . . . . . . . . . . . . . . . 14
Chapter IV - Other Features of T-Ref
Page Headers for the Listings . . . . . . . . . . . . . . . 17
Page Numbering. . . . . . . . . . . . . . . . . . . . . . . 17
Setting the Source Width. . . . . . . . . . . . . . . . . . 17
Setting the Page Length . . . . . . . . . . . . . . . . . . 18
Saving the Updated Parameters . . . . . . . . . . . . . . . 18
Chapter V - Using T-Ref
Program Data Trimming. . . . . . . . . . . . . . . . . . . 19
Software Versions . . . . . . . . . . . . . . . . . . . . . 19
Portability Considerations. . . . . . . . . . . . . . . . . 19
Chapter VI - T-Ref Tutor
A Step by Step Tutorial . . . . . . . . . . . . . . . . . . 21
Appendix A - T-Ref System Defined Identifiers . . . . . . . . . 25
Appendix B - T-Ref Parser Error Messages. . . . . . . . . . . . 28
Appendix C - Backus-Naur Form of T-Ref's Parser . . . . . . . . 31
Preface
We at Synergy Software of Nebraska have been involved with the develop-
ment of specialized Turbo Pascal programs for some time. These programs may
be as short as several hundred lines of source code, or as long as 15000 lines
and more, requiring several man-years to complete. Furthermore, we update
these programs on a regular basis, producing as many as three and four ver-
sions in a single year. Such maintenance requires extensive documentation of
the source code.
However, we have discovered that even the most extensively documented
code neglects the primal flow of data and overall structure of the programs.
It became evident to us that cross reference listings were imperative to
complete the crucial link between finalizing development and pursuing main-
tenance of a program.
T-Ref was borne out of more than just a need for a detailed cross
referencing program. It had to be one that would provide an almost
"intelligent" flexibility and selectivity.
In addition, T-Ref had to have its own source lister program to work in
tandom with the referencing program. Only a few keystrokes will get you a
quality source listing document (with page headers, line numbering, page
numbering, and more) or an updated, usable source listing.
The enclosed program is NOT a demo disk. It is a fully operatable pack-
age. We believe the quality of the program (both user interface and output)
exceeds any program of its kind: ESPECIALLY those found for as much as $100.
We are marketing T-REF through the user supported software concept because we
believe a program's capabilities should speak for itself. Of course, there
is a savings for the user since we have little overhead; you pay primarily for
the software and NOT for advertisements.
Make no mistake, we are committed to continuing its development and to
insuring a bug-free program. The file "T-REF.UPD" is a text file containing
all proposed modifications to T-REF over the next year. The list may change
slightly as items are added and problems corrected, but we expect to have the
program expanded to a four-language cross referencing package in 1988, hope-
fully with the support we need from the users to continue this project.
Unfortunately, we only have the resources to dedicate our efforts for those
who support OUR time and efforts.
As we are always looking for improvements, write us and let us know what
you think of our product. Constructive criticism is always welcome.
- Thank you for your support.
Synergy Software of Nebraska
i
System Requirements
The following equipment is required to successfully run T-Ref:
IBM-PC/XT/AT or compatible
A minimum of 256K of memory (512K - 640K is recommended)
A color (CGA) or monochrome monitor
MS-DOS Ver 2.11 (or greater) or PC-DOS Ver 2.0 (or greater)
Assumptions made on the part of this document
This document assumes the user has at least a basic understanding of the
operating system (MS-DOS or PC-DOS) under which this program runs, the
language of Pascal, and the extensions and limitations of Turbo Pascal over
Standard Pascal. Synergy Software of Nebraska makes no guarantee that T-Ref
will successfully list and cross reference Pascal programs not specifically
written for or under consideration of Borland's Turbo Pascal syntax descrip-
tion.
Limitations set by this version of T-Ref are:
a. The maximum length of an identifier is 20 characters. If an
identifier is longer than 20 characters, only the first 20 are saved.
b. The maximum number of columns on the input file is 132 characters.
c. The maximum number of columns on the output file is 200 characters.
d. The maximum length of a string is 130 characters.
e. The maximum lexical level depth is 20.
f. Page headers are limited to 5 lines by 75 columns each.
g. The input file's size is limited only by the memory available to
store referenced identifiers and the disk space available to store
the output file. We have found that 320K of memory is sufficient to
handle as much as 1000 identifiers, having 20 to 40 references each.
h. A cross reference listing of identifiers will include both identi-
fiers specifically DECLARED within the scanning process of the pro-
gram as well as those NOT declared. However, for undeclared
identifiers, T-Ref makes no attempt to determine the basic type or
data type associated with the identifier (see Chapter III). Unde-
fined typed identifiers will always be printed in the cross reference
listing, since its type is unknown.
There is no limitation on the number of times an identifier can be referenced.
Turbo Pascal is a trademark of Borland International, Inc;
IBM PC/XT/AT and PC-DOS are trademarks of International Business Machines
Corp;
MS-DOS is a trademark of Microsoft Corp.
ii