Development of a Modelica Compiler using JastAdd

Publication type: 
Journal article
Author: 
Ã…kesson, J., Hedin, G., Ekman, T.
Publication: 
Electronic Notes in Theoretical Computer Science (ENTCS)
Year: 
2008
Abstract: 
<p>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, a new approach to flattening which is a fundamental part of the Modelica compilation process.</p>