home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
CPM
/
TURBOPAS
/
CROSSREF.ARK
/
CROSSREF.INF
< prev
next >
Wrap
Text File
|
1987-04-18
|
2KB
|
56 lines
Author : Milton Hom
Date : 1/31/87
Program : Cross Reference
System : CP/M 80
Files : CROSSREF.PAS
CR-M01 .INC
CR-M02 .INC
CR-M03 .INC
CR-M04 .INC
Description:
This is a Pascal language cross reference program for identifiers.
Identifiers are all constants, types, variables, and standard functions and
procedures. If control characters such as ^G,^I,etc are used, they will be
considered identifiers.
The Pascal reserved words recognized by this program are:
ABSOLUTE AND ARRAY BEGIN CASE CONST DIV
DO DOWNTO ELSE END EXTERNAL FILE FOR
FORWARD FUNCTION GOTO IF IN INLINE LABEL
MOD NIL NOT OF OR PACKED PROCEDURE
PROGRAM RECORD REPEAT SET STRING THEN TO
TYPE UNTIL VAR WHILE WITH
The analysis of the Pascal program will consist of:
1. Total lines of source code.
2. Total continuous lines of comments.
3. Total blank lines.
4. Actual lines of code.
5. Total reserved words.
6. Reserved words/line of code.
7. Total identifiers.
8. Identifiers/line of code.
9. Total comments.
10. Comments/line of code.
11. Different identifiers.
12. Average length of identifiers.
13. Most used identifier.
14. Least used identifier.
15. Total user defined functions.
16. Total user defined procedures.
Input:
A Pascal program in ASCII form. Include file(s) are ignored by this
program. Therefore, each file must be cross referenced separately.
Output:
A table of sorted identifiers and a simple analysis of the Pascal program
will be send to a disk file that is specified by the user.
Compiling Instructions:
1. Set compiler options to compiled to disk.
2. C)ompile or R)un.