Back to search

Clemson University

Construction of a Generic Program Representation for Automated Metric Computation

Abstract

dc:description.abstract

Software code metrics provide a quantitative and qualitative measurement of a software component's ability to perform under a specific set of objectives. Different metrics have been developed for analyzing various aspects of the source code to gain insight into the overall quality of the code under study. There are a variety of open source tools available for computing metrics for applications coded in most of the popular programming languages. However, there is no single tool that computes software metrics for the popular programming languages in use today. To address this problem, we describe an approach to software metric computation that can be applied to the popular programming languages currently in use, including both compiled and interpreted languages. The approach entails leveraging existing parser tools to produce a generalized abstract syntax tree that captures the important syntactic categories required for metric computation. To demonstrate the utility of our approach, we exploit front-end parser tools for the Python and C++ programming languages to produce a generalized abstract syntax tree and then compute software metrics as a form of tree traversal. We describe our results for applying two commonly used metrics to three open source software projects and various code samples written in both Python and C++. The context of this process is then extended to computer programming education, with the specific goal of helping students and programmers improve the quality of their code.

Degree

thesis:*
Name thesis:degree_name
Master of Science (MS)
Level thesis:degree_level
Thesis
Discipline thesis:degree_discipline
Computer Science

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • McNellis, Zachary
Contributors dc:contributor
  • Dr. Brian Malloy, Committee Chair
  • Dr. Joshua Levine
  • Dr. Sekou Remy

Identifiers

dc:identifier.*
Repository record dc:identifier
https://open.clemson.edu/all_theses/2341

Chain of custody

source
Harvested from
Clemson University
Base URL
open.clemson.edu/do/oai/
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

McNellis, Zachary. Construction of a Generic Program Representation for Automated Metric Computation. Thesis thesis, https://open.clemson.edu/all_theses/2341