home *** CD-ROM | disk | FTP | other *** search
- To build the standards checker tool:
-
- 1. Compile all the abstractions into a program library (see READ.ME in
- abstractions directory for details).
-
- 2. Compile everything named in the STANDARDS.CO file into the program
- library containing the abstractions or a sublibrary whose parent
- library contains all the abstractions. STANDARDS.CO lists file names
- in the correct compilation order.
-
- 3. Link stndcheck with the program library where everything was
- compiled. To do this using the DEC Ada compiler type:
- $ acs link stndcheck
-
- To run the tool on VMS:
-
- 1. Define a logical symbol for the executable of stndcheck
- For example,
-
- check :== $$DRB1:[NOSC.TOOLS.STANDARDS]STNDCHECK.EXE
-
- NOTE: The full path name of the executable is required in the
- definition of the symbol. The pathname given here is just an
- example and will be different on your system.
-
- 2. Enter the command with appropriate parameters.
-
- check ( Source=>"filename" [, Output=>"output_file"]
- [,Print=>print_type] [, Report=>report_type] );
-
- Entering the command compile_order with no parameters gives a brief
- description of how to use the tool.
-
- For example,
-
- check ( Source=> "testfile.ada", Print=>SOURCE);
-
- -- In this example the input file to be checked is testfile.ada and
- -- the output will go to the default output. The report will be
- -- the source combined with the violation warnings, and all violations
-
- check ( Source=> "foo.ada", Output=>"report.out", Report=>FIRST);
-
- -- This example shows a source file of foo.ada with the report being
- -- put in the file report.out. The report will show only the violations
- -- without the source code and only the first of each type of
- -- violation will be reported
-
- Files contained in this directory:
-
- STANDARDS.CO -- Compilation order for standards checker sources
- STANDARDS.EXE -- VMS 4.0 standards checker executable
-
- The [.SOURCE] subdirectory contains most of the sources that make up the
- standards checker tool. Other sources are contained in the abstractions
- directory.
-
- Files in [.SOURCE]:
-
- The source files that make up the standards checker tool are as follows:
-
- STNDCHECK.ADA -- the driver which deals with the command line, and
- -- main procedure
- SCUTILS.SPC -- the procedures which control the actions done by the parser
- SCUTILS.BDY
- SCDECLS.DAT -- the package which contains all the structures to
- -- customize the checker
-
- The tool runs using the parser. Most of the sources needed for the parser
- are in the parser abstraction. The five units that are unique to this tool
- are below:
-
- APPLYACT.SUB -- A subunit of the parser which calls the action routines.
- GETNEXT.SUB -- A subunit of the lexer which gets each token and only
- -- returns non comment tokens to the lexer.
- PTBLS.BDY -- The parse tables body.
- GRMCONST.BDY -- Grammar constants for the parse tables.
- WRITELINE.SUB -- Writes a line of source code out as it's read in when
- -- print=>source
-
- The [.TEST] subdirectory contains the tests used in testing standards checker
-
- Files in [.TEST]:
-
- Test this tool using the acvc a tests.
- The only construct not tested by the acvcs is a code statement and
- for that there is the file code.tst.
-
- The [.DOC] subdirectory contains the documentation for standards checker.
-
- Files in [.DOC]:
-
- USERMAN.MEM -- Standards checker user's manual
- USERMAN.RNO -- Runoff input for user's manual
- RELEASE.NTS -- Release notes
- STDCKGRM.LIS -- Listing of standards checker grammar. The rule numbers
- in this file may be used to make changes to the case
- statement in the Apply_Actions subunit.
- STANDARDS.CNT-- Statement counts and line counts of standards checker
- source files.
-
-