home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
- FILE_CHECKER, Version 1.1
-
-
- by Richard Conn, TI Ada Technology Branch
-
-
-
-
-
- FILE_CHECKER is a tool which prints out the number of Ada
- statements, Ada comments, and text lines in a file. When executed,
- FILE_CHECKER prompts for the name of a file. The user enters a file
- name, strikes return, and FILE_CHECKER prompts again. This continues
- until the user has entered the names of all the desired files, at
- which point the user simply strikes return in response to the file
- name prompt. FILE_CHECKER then passes through the files in the order
- specified, generating a table of the file name, number of Ada
- statements, number of Ada comments, and number of text lines.
-
-
-
- 1 FILE_CHECKER INPUTS AND INCLUDE FILES
-
- In response to the file name prompt, FILE_CHECKER recognizes and
- responds to the following types of input:
-
- * A carriage return (RETURN key), which tells FILE_CHECKER to
- terminate input and to print the output table
-
- * A line beginning with a dash (-), which is a comment line
-
- * A file name prefixed by an atsign (@), which indicates an
- include file
-
- * Any other input, which indicates the name of a file to
- include
-
-
- If the user prefixes the name of a component file with an atsign
- character (@), the indicated file is processed as an include file. An
- include file is a file which contains the names of zero or more
- component files, one name per line starting in the first column.
- Other include files may be referenced within an include file by
- prefixing their names with the atsign character. Comments may be
- placed within an include file by placing two dashes in the first two
- columns of a line. The following is an example of an include file:
- Page 2
-
-
-
- Example Comments
- ======= ========
- --
- -- This is an include file for Comment at the beginning
- -- my favorite tool
- --
- Blank lines are allowed
- --
- -- The following include file
- -- contains the names of the Another comment
- -- Ada source files in compilation
- -- order
- --
- @mytool.cmp
- --
- -- The following are the documentation
- -- files
- --
- mytool.ref
- mytool.doc
- mytool.idx
-
-
- The syntax for an include file used by FILE_CHECKER is identical
- to the syntax for an include file used by PAGER, another tool in the
- Ada Repository. Consequently, PAGER include files can be used to
- generate FILE_CHECKER reports.
-
-
-
- 2 SAMPLE SESSION
-
- The following is a sample session which illustrates the use of
- FILE_CHECKER.
-
-
- $ dir
-
- Directory USER4:[CONN.ADA]
-
- CAS3.ADA;1 15 (RWE,RWED,RE,RE)
- CHARACTER_SET.ADA;1
- 21 (RWE,RWED,RE,RE)
- LIB.DIR;1 3 (RE,RWE,RE,RE)
- PAGER.ADA;1 13 (RWE,RWED,RE,RE)
- PAGER.DIS;1 1 (RWE,RWED,RE,RE)
- PAGER.DOC;1 31 (RWE,RWED,RE,RE)
- PAGER.RNO;1 28 (RWE,RWED,RE,RE)
- PAGER.SRC;6 154 (RWE,RWED,RE,RE)
- PAGER_COMPILE.DIS;1
- 1 (RWE,RWED,RE,RE)
- PAGER_DOCUMENTATION.DIS;1
- 1 (RWE,RWED,RE,RE)
- PAGER_SUPPORT.ADA;1
- Page 3
-
-
- 47 (RWE,RWED,RE,RE)
-
- Total of 11 files, 315 blocks.
- $ type pager.dis
- --
- -- Distribution files for PAGER
- -- PAGER_COMPILE.DIS gives the source files in
- -- compilation order
- -- PAGER_DOCUMENTATION.DIS gives the documentation files
- --
- @pager_compile.dis
- @pager_documentation.dis
- $ type pager_compile.dis
- --
- -- Compilation order for all files required to create the
- -- PAGER program
- --
- character_set.ada
- cas3.ada
- pager_support.ada
- pager.ada
- $ fcheck
- FILE CHECKER, Version 1.1
- File Name > pager.ada
- File Name > pager_support.ada
- File Name >
-
- File Name Statements Comments Lines
- pager.ada 74 8 150
- pager_support.ada 324 172 714
- $ fcheck
- FILE CHECKER, Version 1.1
- File Name > @pager_compile.dis
- Processing Include File: pager_compile.dis
- --
- -- Compilation order for all files required to create the
- -- PAGER program
- --
- character_set.ada
- cas3.ada
- pager_support.ada
- pager.ada
- End of Include File: pager_compile.dis
- File Name >
-
- File Name Statements Comments Lines
- character_set.ada 174 30 321
- cas3.ada 56 95 194
- pager_support.ada 324 172 714
- pager.ada 74 8 150
- p