Extending Languages by Leveraging Compilers: From Modelica to Optimica

Autor: Johan Åkesson, Torbjörn Ekman, Görel Hedin
Rok vydání: 2011
Předmět:
Zdroj: IEEE Software. 28:68-74
ISSN: 0740-7459
DOI: 10.1109/ms.2010.62
Popis: Constructing compilers using ordinary object-oriented programming takes advantage of parser generators to construct abstract syntax trees (ASTs) and uses the Visitor design pattern to program traversals that resolve names and types and to generate code. Although this plain approach allows some reuse and modularization, it's possible to go much further by combining object orientation with recent advances in at tribute grammars to build highly extensible compilers.
Databáze: OpenAIRE