Building program understanding tools using visitor combinators
Program understanding tools manipulate program representations, such as abstract syntax trees, control-flow graphs, or data-flow graphs. This paper deals with the use of <em>visitor combinators</em> to conduct such manipulations. Visitor combinators are an extension of the well-known visitor design pattern. They are small, reusable classes that carry out specific visiting steps. They can be composed in different constellations to build more complex visitors. We evaluate the expressiveness, reusability, ease of development, and applicability of visitor combinators to the construction of program understanding tools. To that end, we conduct a case study in the use of visitor combinators for control-flow analysis and visualization as used in a commercial Cobol program understanding tool.
|Management (acm D.2.9), Design Tools and Techniques (acm D.2.2), Testing and Debugging (acm D.2.5), Distribution, Maintenance, and Enhancement (acm D.2.7)|
|Software (theme 1)|
|Software Engineering [SEN]|
|Organisation||Software Analysis and Transformation|
van Deursen, A, & Visser, J.M.W. (2002). Building program understanding tools using visitor combinators. Software Engineering [SEN]. CWI.