There is a gap between our ability to reuse high-level concepts in software design and our ability to reuse the code implementing them. Language Oriented Programming (LOP) is a software development paradigm that aims to close this gap, through extensive use of Domain Specific Languages (DSLs). With LOP, the high-level reusable concepts become reusable DSL constructs, and their translation into code level concepts is done in the DSL implementation. Particular products are implemented using DSL code, thus reusing only high-level concepts. In this paper we provide a comparison between two implementation approaches for LOP: (a) using external DSLs with a projectional language workbench (MPS); and (b) using internal DSLs with an LOP language (Cedalion). To demonstrate how reuse is achieved in each approach, we present a small case study, where LOP is used to build a Software Product Line (SPL) of calculator software.
[1]
Markus Völter.
Implementing feature variability for models and code with projectional language workbenches
,
2010,
FOSD '10.
[2]
Murray Hill,et al.
Yacc: Yet Another Compiler-Compiler
,
1978
.
[3]
Boaz Rosenan.
Designing language-oriented programming languages
,
2010,
SPLASH/OOPSLA Companion.
[4]
Martin P. Ward.
Language-Oriented Programming
,
1994,
Softw. Concepts Tools.
[5]
James M. Neighbors,et al.
The Draco Approach to Constructing Software from Reusable Components
,
1984,
IEEE Transactions on Software Engineering.
[6]
Paul Hudak,et al.
Building domain-specific embedded languages
,
1996,
CSUR.
[7]
Charles Simonyi,et al.
Intentional software
,
2006,
OOPSLA '06.