Code Reuse with Language Oriented Programming

  • David H. Lorenz
  • Boaz Rosenan
Conference paper

DOI: 10.1007/978-3-642-21347-2_13

Part of the Lecture Notes in Computer Science book series (LNCS, volume 6727)
Cite this paper as:
Lorenz D.H., Rosenan B. (2011) Code Reuse with Language Oriented Programming. In: Schmid K. (eds) Top Productivity through Software Reuse. ICSR 2011. Lecture Notes in Computer Science, vol 6727. Springer, Berlin, Heidelberg

Abstract

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.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2011

Authors and Affiliations

  • David H. Lorenz
    • 1
  • Boaz Rosenan
    • 1
  1. 1.Open University of IsraelRaananaIsrael

Personalised recommendations