Skip to main content

Lund University Publications

LUND UNIVERSITY LIBRARIES

Program Visualization using Reference Attributed Grammars

Magnusson, Eva LU and Hedin, Görel LU orcid (2000) In Nordic Journal of Computing 7. p.67-86
Abstract
This paper describes how attribute grammars can be used to integrate

program visualization in language-based environments and how program visualizations can be specified and generated from grammars. It is discussed how a general solution for a simple grammar can be reused in grammars for other specific languages. As an example we show how diagram generation for a very simple state transition language can be integrated in a more complex specific state transition language. We use an extended form of attribute grammars, RAGs, which permits attributes to be references to nodes in the syntax tree. An external graph drawing

tool is used to visualize the diagrams. The solution is modularized to support reuse for different... (More)
This paper describes how attribute grammars can be used to integrate

program visualization in language-based environments and how program visualizations can be specified and generated from grammars. It is discussed how a general solution for a simple grammar can be reused in grammars for other specific languages. As an example we show how diagram generation for a very simple state transition language can be integrated in a more complex specific state transition language. We use an extended form of attribute grammars, RAGs, which permits attributes to be references to nodes in the syntax tree. An external graph drawing

tool is used to visualize the diagrams. The solution is modularized to support reuse for different languages and exchange of the external drawing tool for different types

of visualization. (Less)
Please use this url to cite or link to this publication:
author
and
organization
publishing date
type
Contribution to journal
publication status
published
subject
keywords
reference attributes, program visualization, Attribute grammars
in
Nordic Journal of Computing
volume
7
pages
67 - 86
publisher
Publishing Association Nordic Journal of Computing
ISSN
1236-6064
language
English
LU publication?
yes
id
6bb10cb6-40a9-42e6-8dee-758451655a9a (old id 634054)
date added to LUP
2016-04-01 16:15:18
date last changed
2021-05-06 15:55:09
@article{6bb10cb6-40a9-42e6-8dee-758451655a9a,
  abstract     = {{This paper describes how attribute grammars can be used to integrate<br/><br>
program visualization in language-based environments and how program visualizations can be specified and generated from grammars. It is discussed how a general solution for a simple grammar can be reused in grammars for other specific languages. As an example we show how diagram generation for a very simple state transition language can be integrated in a more complex specific state transition language. We use an extended form of attribute grammars, RAGs, which permits attributes to be references to nodes in the syntax tree. An external graph drawing<br/><br>
tool is used to visualize the diagrams. The solution is modularized to support reuse for different languages and exchange of the external drawing tool for different types<br/><br>
of visualization.}},
  author       = {{Magnusson, Eva and Hedin, Görel}},
  issn         = {{1236-6064}},
  keywords     = {{reference attributes; program visualization; Attribute grammars}},
  language     = {{eng}},
  pages        = {{67--86}},
  publisher    = {{Publishing Association Nordic Journal of Computing}},
  series       = {{Nordic Journal of Computing}},
  title        = {{Program Visualization using Reference Attributed Grammars}},
  url          = {{https://lup.lub.lu.se/search/files/4617110/634278.pdf}},
  volume       = {{7}},
  year         = {{2000}},
}