An Attribute Grammar Approach to Specifying Halstead's Metrics

Main Article Content

Abdul Azim Ghani

Abstract

Attribute grammars have been used in defining programming languages and constructing compilers. Since these are concerned with the syntax and static semantics of the source code of the language, attribute grammars can be effectively used to define source code metrics on it. Most of the source code metrics are based on measuring models of the source code. However, there is no formal way of specifying the mapping of the source code onto the models. This paper attempts to provide an approach using an attribute grammar to demonstrate how Halstead's metrics may be specified in an unambiguous manner on the source code itself

Downloads

Download data is not yet available.

Article Details

How to Cite
Ghani, A. A. (1996). An Attribute Grammar Approach to Specifying Halstead’s Metrics. Malaysian Journal of Computer Science, 9(1), 56–67. Retrieved from https://ejournal.um.edu.my/index.php/MJCS/article/view/2987
Section
Articles