Issue No. 03 - May/June (2011 vol. 28)
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/MS.2010.62
Görel Hedin , Lund University, Sweden
Johan Åkesson , Lund University, Sweden
Torbjorn Ekman , Semmle
Combining attribute grammars with object-oriented programming supports a new kind of declarative programming, letting developers build compilers in a highly extensible manner. By leveraging a base compiler, extended languages can be supported at a relatively low cost. Recent work shows the applicability of the technique to general-purpose programming languages such as Java. In this article, the authors illustrate the approach using a case study for domain-specific languages. They built an extensible compiler for the physical systems modeling language Modelica and leveraged it to support a new extended language, Optimica.
reusable software, design tools, design techniques, formal definitions, formal theory, processors
J. Åkesson, T. Ekman and G. Hedin, "Extending Languages by Leveraging Compilers: From Modelica to Optimica," in IEEE Software, vol. 28, no. , pp. 68-74, 2010.