Constructing program animations using a pattern-based approach
Computer Science and Information Systems, Tome 4 (2007) no. 2
Cet article a éte moissonné depuis la source Computer Science and Information Systems website
The aim of this paper is to discuss how our pattern-based strategy for the visualization of data and control flow can effectively be used to animate the program and exhibit its behavior. That result allows us to propose its use for Program Comprehension. The animator uses well known compiler techniques to inspect the source code in order to extract the necessary information to visualize it and understand program execution. We convert the source program into an internal decorated (or attributed) abstract syntax tree and then we visualize the structure by traversing it, and applying visualization rules at each node according to a pre-defined rule-base. In order to calculate the next step in the program execution, a set of rewriting rules are applied to the tree. The visualization of this new tree is shown and the program animation is constructed using an iterative process. No changes are made in the source code, and the execution is simulated step by step. Several examples of visualization are shown to illustrate the approach and support our idea of applying it in the context of a Program Comprehension environment.
@article{CSIS_2007_4_2_a6,
author = {Daniela da Cruz and Pedro Rangel Henriques and Maria Joao Varanda Pereira},
title = {Constructing program animations using a pattern-based approach},
journal = {Computer Science and Information Systems},
year = {2007},
volume = {4},
number = {2},
url = {http://geodesic.mathdoc.fr/item/CSIS_2007_4_2_a6/}
}
TY - JOUR AU - Daniela da Cruz AU - Pedro Rangel Henriques AU - Maria Joao Varanda Pereira TI - Constructing program animations using a pattern-based approach JO - Computer Science and Information Systems PY - 2007 VL - 4 IS - 2 UR - http://geodesic.mathdoc.fr/item/CSIS_2007_4_2_a6/ ID - CSIS_2007_4_2_a6 ER -
Daniela da Cruz; Pedro Rangel Henriques; Maria Joao Varanda Pereira. Constructing program animations using a pattern-based approach. Computer Science and Information Systems, Tome 4 (2007) no. 2. http://geodesic.mathdoc.fr/item/CSIS_2007_4_2_a6/