Back to search

Kent State University

SRCQL: A SYNTAX-AWARE QUERY LANGUAGE FOR EXPLORING SOURCE CODE

Abstract

dc:description

A domain specific language for querying source code is presented and demonstrated. The language, srcQL, allows the querying of source code using the syntax of the language to identify patterns within source code documents. srcQL leverages srcML, an XML representation of source code, to identify the syntactic contexts being queried. srcML inserts XML tags into the source code that describe the abstract syntactic information. The query language srcQL allows XPath, regular expressions, and syntactic patterns to be mixed for pattern identification. The syntactic patterns can contain logical variables that are unified during the query process. This allows for very complicated patterns to be easily queried and identified. srcQL is roughly modeled on SQL but is specific for source code. It also supports querying for unordered and partially ordered statements of a specific syntactic context. srcQL supports C, C++ and Java and scales well to large code bases. srcQL is demonstrated and compared with other languages of similar intent along with limitations.

Degree

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

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: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
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.. SRCQL: A SYNTAX-AWARE QUERY LANGUAGE FOR EXPLORING SOURCE CODE. masters thesis, Kent State University, 2013. http://rave.ohiolink.edu/etdc/view?acc_num=kent1385022244