A framework for source code search using program patterns
S. Paul, Atul Prakash · IEEE Transactions on Software Engineering · 1994
For maintainers involved in understanding and reengineering large software, locating source code fragments that match certain patterns is a critical task. Existing solutions to the problem are few, and they either involve manual, painstaking scans of the source code using tools based on regular expressions, or the use of large, integrated software engineering environments that include simple pattern-based query processors in their toolkits. We present a framework in which pattern languages are used to specify interesting code features. The pattern languages are derived by extending the source programming language with pattern-matching symbols. We describe SCRUPLE, a finite state machine-based source code search tool, that efficiently implements this framework. We also present experimental performance results obtained from a SCRUPLE prototype, and the user interface of a source code browser built on top of SCRUPLE.>
Cited by 180 works. doi:10.1109/32.295894
Authors
References
- Introduction to automata theory, languages and computation
- Introduction to automata theory, languages, and computation
- Fast Pattern Matching in Strings
- A Complexity Measure
- A fast string searching algorithm
- Elements of software science
- The AWK Programming Language
- Elements of software science (Operating and programming systems series)
- Efficient randomized pattern-matching algorithms
- Algorithms in C