Reference : Implementing an Embedded Compiler using Program Transformation Rules
Scientific journals : Article
Engineering, computing & technology : Computer science
http://hdl.handle.net/10993/15355
Implementing an Embedded Compiler using Program Transformation Rules
English
Bissyande, Tegawendé François D Assise mailto [University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT) >]
Réveillère, Laurent [> >]
Lawall, Julia [> >]
Bromberg, David [> >]
Muller, Gilles [> >]
6-Sep-2013
Software : Practice & Experience
1..20
Yes (verified by ORBilu)
International
0038-0644
[en] DSL; compiler construction; internal languages; embedded languages; embedded compilers; program transformation
[en] Domain-specific languages (DSLs) are well-recognized to ease programming and improve robustness for a specific domain, by providing high-level domain-specific notations and verifications of domain-specific properties. The compiler of a DSL, however, is often difficult to develop and maintain, due to the need to define a specific treatment for a large and potentially increasing number of language constructs. To address this issue, we propose an approach for specifying a DSL compiler and verifier using control-flow sensitive concrete-syntax based matching rules. These rules either collect information about the source code to carry out verifications or perform transformations to carry out compilation. Because rules only mention the relevant constructs, using their concrete syntax, and hide the complexity of control-flow graph traversal, it is easy to understand the purpose of each rule. Furthermore, new compilation steps can be added using only a small number of lines of code. We explore this approach in the context of the z2z DSL for network gateway development, and show that the core of its compiler and verifier can be implemented in this manner.
Researchers
http://hdl.handle.net/10993/15355
10.1002/spe.2225
http://hal.archives-ouvertes.fr/hal-00844536

File(s) associated to this reference

Fulltext file(s):

FileCommentaryVersionSizeAccess
Open access
spe2225.pdfPublisher postprint1.59 MBView/Open

Bookmark and Share SFX Query

All documents in ORBilu are protected by a user license.