SCRUPLE: a reengineer's tool for source code search

  • Authors:
  • Santanu Paul

  • Affiliations:
  • University of Michigan, Ann Arbor, MI

  • Venue:
  • CASCON '92 Proceedings of the 1992 conference of the Centre for Advanced Studies on Collaborative research - Volume 1
  • Year:
  • 1992

Quantified Score

Hi-index 0.00

Visualization

Abstract

For software maintainers and reengineers confronted with the task of locating an interesting section of source code, a slow, painstaking scan of the source code using grep like tools is often the only available option. Similar problems arise in code optimization and program understanding. To alleviate the situation, we have in the past proposed a scheme for defining pattern languages using which one can specify interesting code features [13]. This paper addresses the automatic detection of source code sections that fit patterns described using such languages. We have built prototypes of our runtime system for C and PL/AS (an IBM internal programming language). The key to efficient, automatic search lies in the representations of the source code and the pattern being searched. A domain-independent pattern detection algorithm based on these representations is described. A prototype of the system was also built to search for simple patterns in English text, which demonstrates the generality of the pattern language concept as well as the underlying pattern detection mechanism.