home *** CD-ROM | disk | FTP | other *** search
/ Programmer's ROM - The Computer Language Library / programmersrom.iso / ada / metric / compmeas.abs < prev    next >
Encoding:
Text File  |  1988-05-03  |  2.3 KB  |  52 lines

  1. Package COMPLEXITY_ANALYZER is  -- A tool for analyzing Ada source code
  2.  
  3. -- Analyzes Ada program units for complexity as measured by Halstead
  4. -- and McCabe.  The output program unit and its
  5. -- complexity on the default output file.
  6.  
  7. procedure Halstead(SOURCE_FILE        : in Ada_Source_File_Type;
  8.                    MAXIMUM_COMPLEXITY : in integer);
  9. -- Compute the Halstead complexity measure for each program unit in
  10. -- source_file, including nested program units.  If the measured
  11. -- complexity exceeds maximum_complexity, the program unit is
  12. -- flagged on the output listing.
  13.  
  14. procedure Halstead(SOURCE_FILE  : in Diana_Node_Type);
  15. -- Overload for use when Diana is available in the program library.
  16.  
  17. procedure McCabe(SOURCE_FILE        : in Ada_Source_File_Type)
  18.                  MAXIMUM_COMPLEXITY : in integer);
  19. -- Compute the McCabe complexity measure for each program unit in
  20. -- source_file, including nested program units.  If the measured
  21. -- complexity exceeds maximum_complexity, the program unit is
  22. -- flagged on the output listing.
  23.  
  24. procedure McCabe(SOURCE_FILE    : in Diana_Node_Type);
  25. -- Overload for use when Diana is available in the program library.
  26.  
  27. Package TITLE_PAGE is new TITLE_PAGE_PACKAGE
  28.     (Developing_organization    => "Intermetrics, Inc",
  29.      Author                     => "Michael Gordon"
  30.      Contact                    => "Bill Toscano",
  31.      Address                    => ("733 Concord Ave.",
  32.                                     "Cambridge", "MA", "02138"),
  33.      Phone                      => (617,661,1840)
  34.      Date_Submitted             => (15, Nov, 1984));
  35.  
  36.  
  37. Package Technical_Parameters is new  Technical_Parameters_Package
  38.    (Lines_of_Source_Code        => TBD,
  39.     Development_Compiler        => (IBM3083, AIE_UTS),
  40.     Planned_compilers_supported => ((DECVAX, DECADA)
  41.                                     (DECVAX, TSIADA)),
  42.     Auxilliary_files_size       => (TBD));
  43.  
  44. Package  DEVELOPMENT_SCHEDULE_AND_STATUS is new SCHEDULE_PACKAGE
  45.    (Completed_events            => ((PDR, (15, Oct, 1984)));
  46.                                     
  47.    (Scheduled_events            => ((CDR, (19, Dec, 1984)),
  48.                                     (first_build, (14, Jan, 1985))),
  49.                                     (Delivery, (18, Mar, 1985)));
  50.  
  51. end COMPLEXITY_ANALYZER;
  52.