An attribute grammar approach to specifying Halstead's metrics
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 m...
| Main Authors: | , |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
Faculty of Computer Science and Information Technology, University of Malaya
1996
|
| Online Access: | http://psasir.upm.edu.my/id/eprint/40490/ http://psasir.upm.edu.my/id/eprint/40490/1/An%20attribute%20grammar%20approach%20to%20specifying%20Halstead%27s%20metrics.pdf |
| _version_ | 1848849441345241088 |
|---|---|
| author | Abd Ghani, Abdul Azim Hunter, Robin |
| author_facet | Abd Ghani, Abdul Azim Hunter, Robin |
| author_sort | Abd Ghani, Abdul Azim |
| building | UPM Institutional Repository |
| collection | Online Access |
| description | 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. |
| first_indexed | 2025-11-15T09:50:27Z |
| format | Article |
| id | upm-40490 |
| institution | Universiti Putra Malaysia |
| institution_category | Local University |
| language | English |
| last_indexed | 2025-11-15T09:50:27Z |
| publishDate | 1996 |
| publisher | Faculty of Computer Science and Information Technology, University of Malaya |
| recordtype | eprints |
| repository_type | Digital Repository |
| spelling | upm-404902016-04-13T07:26:21Z http://psasir.upm.edu.my/id/eprint/40490/ An attribute grammar approach to specifying Halstead's metrics Abd Ghani, Abdul Azim Hunter, Robin 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. Faculty of Computer Science and Information Technology, University of Malaya 1996-06 Article PeerReviewed application/pdf en http://psasir.upm.edu.my/id/eprint/40490/1/An%20attribute%20grammar%20approach%20to%20specifying%20Halstead%27s%20metrics.pdf Abd Ghani, Abdul Azim and Hunter, Robin (1996) An attribute grammar approach to specifying Halstead's metrics. Malaysian Journal of Computer Science, 9 (1). pp. 56-67. ISSN 0127-9084 http://e-journal.um.edu.my/publish/MJCS/130-144 |
| spellingShingle | Abd Ghani, Abdul Azim Hunter, Robin An attribute grammar approach to specifying Halstead's metrics |
| title | An attribute grammar approach to specifying Halstead's metrics |
| title_full | An attribute grammar approach to specifying Halstead's metrics |
| title_fullStr | An attribute grammar approach to specifying Halstead's metrics |
| title_full_unstemmed | An attribute grammar approach to specifying Halstead's metrics |
| title_short | An attribute grammar approach to specifying Halstead's metrics |
| title_sort | attribute grammar approach to specifying halstead's metrics |
| url | http://psasir.upm.edu.my/id/eprint/40490/ http://psasir.upm.edu.my/id/eprint/40490/ http://psasir.upm.edu.my/id/eprint/40490/1/An%20attribute%20grammar%20approach%20to%20specifying%20Halstead%27s%20metrics.pdf |