Development of a Modelica Compiler Using JastAdd

  • Authors:
  • Johan Åkesson;Torbjörn Ekman;Görel Hedin

  • Affiliations:
  • Department of Automatic Control, Lund University, Lund, Sweden;Computing Laboratory, Oxford University, Oxford, United Kingdom;Department of Computer Science, Lund University, Lund, Sweden

  • Venue:
  • Electronic Notes in Theoretical Computer Science (ENTCS)
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper describes experiences from implementing key parts of a compiler for Modelica, an object-oriented language supporting declarative modeling and simulation of complex physical systems. Our implementation uses the attribute-grammar based tool JastAdd. In particular, we discuss the implementation of Modelica name analysis which is highly context-dependent, type analysis which is based on structural subtyping, and flattening which is a fundamental part of the Modelica compilation process.of so called modifications, Modelica.