Compiler Construction : With Software Measurement Capability

Bok av Rafa E Al-Qutaish
In the area of software engineering, software measurement is not new; it was around 40 years since Halstead originally proposed a family of software measures, collectively known as software science. The magnitude of costs involved in software development and maintenance magnifies the need of a scientific foundation to support programming standards and management decisions by measurement. This book aims at developing a compiler for a subset of Pascal language in which an evaluation for a number of software metrics has been incorporated. Lex and Yacc have been used to generate the lexical analyser and syntax analyser for the proposed compiler. Whereas, the other components of the compiler and the metrics evaluation routines have been written in C language. The proposed compiler was implemented under Linux operating system. Three metrics have been incorporated to the proposed compiler, that is, Halstead's metrics, McCabe's metric, and Call-Graph metric. Moreover, The software metrics will be produced in the common metrics format, which is used in SCOPE project.