A Program to Count Operators and Operands for ANSI—FORTRAN Modules

This paper describes a program which scans an arbitrary number of ANSI-FORTRAN modules, counting the basic software science parameters [Halstead 1972] for each module. There is no syntax checking code in the analyzer since conformance to the ANSI standard is easily verified by existing compilers. It is essential, therefore, that all input follow the standard for accurate results. Most of the analyzer itself is written in ANSI-FORTRAN, allowing not only porta-bility, but also the ability to run the program on itself as a test procedure.