Back to search

Kent State University

SUPPORTING SOFTWARE EXPLORATION WITH A SYNTACTIC AWARESOURCE CODE QUERY LANGUAGE

Abstract

dc:description

The dissertation presents a technique for querying source code at an abstract syntax tree (AST)level. The main focus is the development of a language that can be used both for querying source codeand for locating places within a body of source code to apply a transformation. The goals of the querylanguage are to be easy to learn, use pieces of source code as part of the query, be sub-second fast formost queries, not require compilation in order to generate the AST, and it must provide extensions forhandling an abstract syntax tree rather than being a tree querying language used on an AST. To this end,the srcQL (i.e., source code Query Language) is presented. srcQL operates on an XML representation ofsource code, namely srcML, and fully compiles queries using LLVM in order to provide fast queryevaluation.This dissertation explores the differences between current state of the art source code querytechnologies. The srcQL language is compared against the existing source code query languagetechnologies. Each language is compared against a set of queries designed to test capabilities of eachlanguage's matching capabilities and limitations. It is shown that using only the underlying syntax andwithout full compilation it is possible to match or in some cases outperform state of the art querylanguage technologies. Additionally, work on optimizing the srcQL implementation is presented as partof a C++ library called XPathVM. The initial timings using srcQL on a 1 million lines of source codesystem are presented and show that srcQL is capable of quickly querying large scale systems in sub-second time.

Degree

thesis:*
Name thesis:degree_name
PHD
Level thesis:degree_level
doctoral
Discipline thesis:degree_discipline
College of Arts and Sciences / Department of Computer Science
Grantor dc:publisher
Kent State University
Year dc:date
2017

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Bartman, Brian M.
Advisor dc:contributor.advisor
  • Maletic, Jonathan

Subjects

dc:subject × 2

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: some rights reserved. It is licensed for use under a Creative Commons license. Specific terms and permissions are available from this document's record in the OhioLINK ETD Center.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Bartman, Brian M.. SUPPORTING SOFTWARE EXPLORATION WITH A SYNTACTIC AWARESOURCE CODE QUERY LANGUAGE. doctoral thesis, Kent State University, 2017. http://rave.ohiolink.edu/etdc/view?acc_num=kent1500967681232291