Abstract
Domain Specific Languages (DSLs) often consist of general constructs alongside domain-specific ones. A prominent example is a state machine consisting of states and transitions as well as expressions and statements. Adding general concepts to a DSL is a complex and time-consuming task. We propose an approach to develop such DSLs as extensions of a General Purpose Language (GPL). We believe that this approach significantly reduces development times. This is especially important in the first phases of DSL development when language constructs are evolving and not well conceived. Our development allows trying out different forms of constructs with an editor to be at hand at all times. The paper presents first results of the implementation of our approach on top of Eclipse. The feasibility is shown by applying it to the definition of state machines as an example DSL.
Access provided by Autonomous University of Puebla. Download to read the full chapter text
Chapter PDF
Similar content being viewed by others
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
References
Fowler, M.: Domain-Specific Languages. Addison Wesley (2011)
Zingaro, D.: Modern Extensible Languages. Technical report, McMaster University, Hamilton, Ontario, Canada (2007)
Bachrach, J., Playford, K.: The Java Syntactic Extender (JSE). In: Proceedings of the 16th ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA 2001, pp. 31–42. ACM Press (2001)
de Rauglaudre, D.: Camlp4, http://caml.inria.fr/pub/old_caml_site/camlp4
Henriksen, J.O.: SLX - The X is for Extensibility. In: Proceedings of the 32nd Conference on Winter Simulation, WSC 2000, vol. 1, pp. 183–190. Society for Computer Simulation International (2000)
Xtext: Xtext Documentation, http://www.eclipse.org/Xtext/documentation/
JetBrains: Meta Programming System (MPS), http://www.jetbrains.com/mps/
EMF: Eclipse Modeling Framework (EMF), http://www.eclipse.org/modeling/emf
Scheidgen, M.: Integrating Content Assist into Textual Modelling Editors. In: Modellierung. Lecture Notes in Informatics, vol. 127, pp. 121–131. Gesellschaft fr Informatik E.V. (2008)
Ritzberger, F.: RunCC - Java Runtime Compiler Compiler, http://runcc.sourceforge.net/
Harel, D.: Statechars - A Visual Formalism for Complex Systems. Science of Computer Programming 8(3), 231–274 (1987)
International Telecommunication Union (ITU): Recommendation Z.100, Specification and Description Language - Overview of SDL 2010 (2010), http://www.itu.int/rec/T-REC-Z.100/en
Blunk, A., Fischer, J., Sadilek, D.A.: Modelling a Debugger for an Imperative Voice Control Language. In: Reed, R., Bilgic, A., Gotzhein, R. (eds.) SDL 2009. LNCS, vol. 5719, pp. 149–164. Springer, Heidelberg (2009)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Blunk, A., Fischer, J. (2013). Prototyping Domain Specific Languages as Extensions of a General Purpose Language. In: Haugen, Ø., Reed, R., Gotzhein, R. (eds) System Analysis and Modeling: Theory and Practice. SAM 2012. Lecture Notes in Computer Science, vol 7744. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-36757-1_5
Download citation
DOI: https://doi.org/10.1007/978-3-642-36757-1_5
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-36756-4
Online ISBN: 978-3-642-36757-1
eBook Packages: Computer ScienceComputer Science (R0)