Reusing Semantics in Visual Editors: A Case for Reference Attribute Grammars

Niklas Fors, Görel Hedin

Abstract


The semantic formalism reference attribute grammars (RAGs) allows graphs to be superimposed on abstract syntax trees. This paper investigates how RAGs can be used to model visual languages, with a case study of a control language that also has a textual syntax. The language contains blocks on which a total execution order is defined based on connections and layout information. One strength of RAGs is reusability, and we demonstrate this by reusing the definition of the execution order in the visual editor to provide semantic feedback to the user.


Full Text:

PDF


DOI: http://dx.doi.org/10.14279/tuj.eceasst.58.845

DOI (PDF): http://dx.doi.org/10.14279/tuj.eceasst.58.845.840

Hosted By Universitätsbibliothek TU Berlin.