Sciweavers

COMSIS
2007

Constructing program animations using a pattern-based approach

13 years 11 months ago
Constructing program animations using a pattern-based approach
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 ed) 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 s...
Daniela Carneiro da Cruz, Pedro Rangel Henriques,
Added 12 Dec 2010
Updated 12 Dec 2010
Type Journal
Year 2007
Where COMSIS
Authors Daniela Carneiro da Cruz, Pedro Rangel Henriques, Maria João Varanda Pereira
Comments (0)