Issue No.03 - May/June (2011 vol.28)
Görel Hedin , Lund University, Sweden
Johan Åkesson , Lund University, Sweden
Torbjorn Ekman , Semmle
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/MS.2010.62
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
Görel Hedin, Johan Åkesson, Torbjorn Ekman, "Extending Languages by Leveraging Compilers: From Modelica to Optimica", IEEE Software, vol.28, no. 3, pp. 68-74, May/June 2011, doi:10.1109/MS.2010.62