Constructing program animations using a pattern-based approach

Bibliographic Details
Main Author: Cruz, Daniela
Publication Date: 2007
Other Authors: Henriques, Pedro Rangel, Pereira, Maria João
Format: Article
Language: eng
Source: Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
Download full: http://hdl.handle.net/10198/591
Summary: 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.
id RCAP_f6d2437294fc072995d9db24ac77f924
oai_identifier_str oai:bibliotecadigital.ipb.pt:10198/591
network_acronym_str RCAP
network_name_str Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
repository_id_str https://opendoar.ac.uk/repository/7160
spelling Constructing program animations using a pattern-based approachProgram animationPatter-based visualizationThe 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.FCTComSIS ConsortiumBiblioteca Digital do IPBCruz, DanielaHenriques, Pedro RangelPereira, Maria João2008-04-03T13:51:23Z20072007-01-01T00:00:00Zinfo:eu-repo/semantics/publishedVersioninfo:eu-repo/semantics/articleapplication/pdfhttp://hdl.handle.net/10198/591engengCruz, Daniela; Henriques, Pedro; Pereira, Maria João (2007). Constructing program animations using a pattern-based approach. Computer Science and Information Systems. ISSN 1820-0214. 4:2 p.99-1161820-0214Computer Science and Information Systemsinfo:eu-repo/semantics/openAccessreponame:Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)instname:FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologiainstacron:RCAAP2025-02-25T11:54:14Zoai:bibliotecadigital.ipb.pt:10198/591Portal AgregadorONGhttps://www.rcaap.pt/oai/openaireinfo@rcaap.ptopendoar:https://opendoar.ac.uk/repository/71602025-05-28T11:15:26.545180Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) - FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologiafalse
dc.title.none.fl_str_mv Constructing program animations using a pattern-based approach
title Constructing program animations using a pattern-based approach
spellingShingle Constructing program animations using a pattern-based approach
Cruz, Daniela
Program animation
Patter-based visualization
title_short Constructing program animations using a pattern-based approach
title_full Constructing program animations using a pattern-based approach
title_fullStr Constructing program animations using a pattern-based approach
title_full_unstemmed Constructing program animations using a pattern-based approach
title_sort Constructing program animations using a pattern-based approach
author Cruz, Daniela
author_facet Cruz, Daniela
Henriques, Pedro Rangel
Pereira, Maria João
author_role author
author2 Henriques, Pedro Rangel
Pereira, Maria João
author2_role author
author
dc.contributor.none.fl_str_mv Biblioteca Digital do IPB
dc.contributor.author.fl_str_mv Cruz, Daniela
Henriques, Pedro Rangel
Pereira, Maria João
dc.subject.por.fl_str_mv Program animation
Patter-based visualization
topic Program animation
Patter-based visualization
description 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.
publishDate 2007
dc.date.none.fl_str_mv 2007
2007-01-01T00:00:00Z
2008-04-03T13:51:23Z
dc.type.status.fl_str_mv info:eu-repo/semantics/publishedVersion
dc.type.driver.fl_str_mv info:eu-repo/semantics/article
format article
status_str publishedVersion
dc.identifier.uri.fl_str_mv http://hdl.handle.net/10198/591
url http://hdl.handle.net/10198/591
dc.language.iso.fl_str_mv eng
eng
language eng
dc.relation.none.fl_str_mv Cruz, Daniela; Henriques, Pedro; Pereira, Maria João (2007). Constructing program animations using a pattern-based approach. Computer Science and Information Systems. ISSN 1820-0214. 4:2 p.99-116
1820-0214
Computer Science and Information Systems
dc.rights.driver.fl_str_mv info:eu-repo/semantics/openAccess
eu_rights_str_mv openAccess
dc.format.none.fl_str_mv application/pdf
dc.publisher.none.fl_str_mv ComSIS Consortium
publisher.none.fl_str_mv ComSIS Consortium
dc.source.none.fl_str_mv reponame:Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
instname:FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia
instacron:RCAAP
instname_str FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia
instacron_str RCAAP
institution RCAAP
reponame_str Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
collection Repositórios Científicos de Acesso Aberto de Portugal (RCAAP)
repository.name.fl_str_mv Repositórios Científicos de Acesso Aberto de Portugal (RCAAP) - FCCN, serviços digitais da FCT – Fundação para a Ciência e a Tecnologia
repository.mail.fl_str_mv info@rcaap.pt
_version_ 1833591734437675008