Building Program Understanding Tools Using Visitor Combinators

  • Authors:
  • Arie van Deursen;Joost Visser

  • Affiliations:
  • -;-

  • Venue:
  • IWPC '02 Proceedings of the 10th International Workshop on Program Comprehension
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

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 visitorcombinators to conduct such manipulations. Visitor combinators are an extension of the well-known visitor design pattern. They are small, reusable classes that carry out specificvisiting 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.