Implementing semantic feedback in a diagram editor

  • Authors:
  • Niklas Fors;Görel Hedin

  • Affiliations:
  • Lund University, Lund, Sweden;Lund University, Lund, Sweden

  • Venue:
  • Proceedings of the Second Workshop on Graphical Modeling Language Development
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

In editors for visual languages it is often useful to provide interactive feedback that depends on the static semantics of the edited program. In this paper we demonstrate how such feedback can be implemented using reference attribute grammars. Because the implementation is declarative, it is easy to modularize compiler and editor computations, reusing the compiler's program model in the editor. Furthermore, the declarative approach makes it easy to keep the program model and view consistent during editing. The approach is illustrated using a function block diagram language, with visual feedback on, for example, type checking and cyclic data flow.