Skip to main content
Log in

Abstract syntax driven approach for language composition

  • Research Article
  • Published:
Central European Journal of Computer Science

Abstract

Popularity of domain-specific languages brings the problem of language components reuse. It should be possible to use parts of different languages in development of new one to lower costs and also allow incremental development. This problem could be solved using the composition of languages. In this paper we discuss the view of language composition from the perspective of concepts composition, where the role of concrete syntax is lowered. We present examples of language composition based on the principles of object composition implemented using YAJCo parser generator, that allows to specify the language based on its abstract syntax.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. M. Mernik, J. Heering, A.M. Sloane, When and how to develop domain-specific languages, ACM Comput. Surv. 37(4), 316–344, 2005

    Article  Google Scholar 

  2. T. Kosar, N. Oliveira, M. Mernik, M.J.V. Pereira, M. Crepinšek, D. da Cruz, P.R. Henriques, Comparing General-Purpose and Domain-Specific Languages: An Empirical Study, Comput. Sci. Inform. Syst. 7(2), 247–264, 2010

    Article  Google Scholar 

  3. M. Mernik, V. Žumer, Incremental programming language development, Comput. Languages Syst. Struct. 31(1), 1–16, 2005

    Article  MATH  Google Scholar 

  4. H. Krahn, B. Rumpe, S. Völkel, Monticore: Modular development of textual domain specific languages, In: Objects, Components, Models and Patterns, R.F. Paige, B. Meyer, W. Aalst, J. Mylopoulos, M. Rosemann, M.J. Shaw, C. Szyperski (Eds.), vol. 11 of Lecture Notes in Business Information Processing (Springer, Berlin, Heidelberg, 2008) 297–315

    Chapter  Google Scholar 

  5. M. Voelter, E. Visser, Language extension and composition with language workbenches, In: Proceedings of the ACM international conference companion on Object oriented programming systems languages and applications companion (ACM, New York, NY, USA, 2010) 301–304

    Google Scholar 

  6. S. Erdweg, P.G. Giarrusso, T. Rendel, Language composition untangled, In: Proceedings of the Twelfth Workshop on Language Descriptions, Tools, and Applications (ACM, New York, NY, USA, 2012) 1–8

    Chapter  Google Scholar 

  7. M. Mernik, An object-oriented approach to language compositions for software language engineering, J. Syst. Software 86(9), 2451–2464, 2013

    Article  Google Scholar 

  8. J. Greenfield, K. Short, S. Cook, S. Kent, Software Factories: Assembling Applications with Patterns, Models, Frameworks, and Tools (Wiley, Indianapolis, IN, USA, 2004)

    Google Scholar 

  9. S. Chodarev, J. Kollár, Extensible host language for domain-specific languages, Computing and Informatics (in press)

  10. J. Porubän, M. Forgác, M. Sabo, M. Behálek, Annotation based parser generator, Comput. Sci. Inform. Syst. 7(2), 291–307, 2010

    Article  Google Scholar 

  11. J. Porubän, M. Sabo, J. Kollár, M. Mernik, Abstract syntax driven language development: defining language semantics through aspects, In: Proceedings of the International Workshop on Formalization of Modeling Languages (ACM, New York, NY, USA, 2010) 1–5

    Chapter  Google Scholar 

  12. D. Lakatoš, J. Porubän, Patterns for composition of domain-specific languages, J. Comput. Sci. Control Systems 6(1), 62–66, 2013

    Google Scholar 

  13. S. Dmitriev, Language oriented programming: The next programming paradigm, November 2004, http://www.jetbrains.com/mps/docs/Language_Oriented_Programming.pdf

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sergej Chodarev.

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Chodarev, S., Lakatoš, D., Porubän, J. et al. Abstract syntax driven approach for language composition. centr.eur.j.comp.sci. 4, 107–117 (2014). https://doi.org/10.2478/s13537-014-0211-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.2478/s13537-014-0211-8

Keywords

Navigation