State Diagram Generation using Reference Attibuted Grammars

Eva Magnusson

Research output: Book/ReportReportResearch

Abstract

This paper describes how attribute grammars can be used to generate state diagrams from a program written in a simple transition language and then drawn using a graph drawing tool. We use an extended form of attribute grammars, RAGs, which permits attributes to be references to nodes in the syntax tree. The directed graph defined by the program is constructed in the AST by linking together nodes via reference attributes. It is described how input code for the graph drawing tool can then be produced as a string attribute by traversing this graph.
Original languageEnglish
PublisherDepartment of Computer Science, Lund University
Number of pages19
Volume85
Publication statusPublished - 2000

Publication series

NameLU-CS-TR:2000-219
Volume85
ISSN (Print)1404-1200

Subject classification (UKÄ)

  • Computer Science

Free keywords

  • Attribute grammars
  • Reference attributes
  • state-transition languages

Fingerprint

Dive into the research topics of 'State Diagram Generation using Reference Attibuted Grammars'. Together they form a unique fingerprint.

Cite this