Abstract
We show our approach for the definition of Domain Specific Languages integrating both graphical and textual views. The approach is based on the meta-modelling concepts provided by the AToM3 tool. In this way, the language designer starts building the meta-model of the complete language. Then, he can select (possibly overlapping) submodels of the meta-model to define the different diagram types (i.e. language viewpoints). By default, the viewpoint is assigned a graphical concrete syntax, although a textual one can also be given. This is performed by selecting (or creating) triple graph grammar rules to translate from the viewpoint meta-model to a DSL called Textual that contains the most common elements of textual languages (such as expressions or operators). From a Textual model, a parser is automatically generated, where the semantic actions of the EBNF grammar are graph grammar rules, derived from the viewpoint meta-model. In this way, the parsing results in a model conformant to the viewpoint meta-model, which can be seamlessly integrated with other graphical and textual views.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Alanen, M., Porres, I.: A Relation Between Context-Free Grammars and Meta Object Facility Metamodels. Tech. Rep. 606, TUCS, Turku, Finland (2004)
Bézivin, J., Devedzic, V., Djuric, D., Favreau, J.M., Gasevic, D., Jouault, F.: An M3-Neutral infrastructure for bridging model engineering and ontology engineering. In: Proc. INTEROP-ESA, pp. 159–171 (2005)
Bottoni, P., Parisi-Presicce, F., Pulcini, S., Taentzer, G.: Maintaining Coherence between Models with Distributed Rules: from Theory to Eclipse. In: Proc. GT-VMT 2006 (2006)
de Lara, J., Vangheluwe, H.: AToM3: A Tool for Multi-Formalism Modelling and Meta-Modelling. In: Kutsche, R.-D., Weber, H. (eds.) FASE 2002. LNCS, vol. 2306, pp. 174–188. Springer, Heidelberg (2002)
de Lara, J., Guerra, E.: Towards the Uniform Manipulation of Visual and Textual Languages in AToM3. In: Proc. PROLE 2003, pp. 45–58 (2003)
Ehrig, H., Ehrig, K., Prange, U., Taentzer, G.: Fundamentals of Algebraic Graph Transformation. Springer, Heidelberg (2006)
Fishwick, P.: Simulation Model Design and Execution: Building Digital Worlds. Prentice-Hall, Englewood Cliffs (1995)
Guerra, E., de Lara, J.: Model View Management with Triple Graph Transformation Systems. In: Corradini, A., Ehrig, H., Montanari, U., Ribeiro, L., Rozenberg, G. (eds.) ICGT 2006. LNCS, vol. 4178, pp. 351–366. Springer, Heidelberg (2006)
Guerra, E., de Lara, J.: Event-Driven Grammars: Relating Abstract and Concrete Levels of Visual Languages. Journal on Software and Systems Modelling 6(3), 317–347 (2007)
Guerra, E., de Lara, J.: Meta-Modelling and Graph Transformation for the Definition of Multi-View Visual Languages. In: Visual Languages for Interactive Computing: Definitions and Formalization. Idea Group Publishers (2007)
HUTN spec., http://www.omg.org/cgi-bin/doc?formal/2004-08-01
Jouault, F., Bézivin, J., Kurtev, I.: TCS: A DSL for the Specification of Textual Concrete Syntaxes in Model Engineering. In: Proc. GPCE 2006, pp. 249–254 (2006)
Klein, P., Schürr, A.: Constructing SDEs with the IPSEN Meta Environment. In: Proc. 8th IEEE Conf. on Software Engineering Environments, pp. 2–10 (1997)
Kleppe, A.: Towards the Generation of a Text-Based IDE from a Language Metamodel. In: Akehurst, D.H., Vogel, R., Paige, R.F. (eds.) ECMDA-FA. LNCS, vol. 4530, pp. 114–129. Springer, Heidelberg (2007)
Königs, A., Schürr, A.: Tool Integration with Triple Graph Grammars - A Survey. ENTCS 148, 113–150 (2006)
Krahm, H., Rumpe, B., Völkel, S.: Integrated Definition of Abstract and Concrete Syntax for Textual Languages. In: Engels, G., Opdyke, B., Schmidt, D.C., Weil, F. (eds.) MODELS 2007. LNCS, vol. 4735, pp. 286–300. Springer, Heidelberg (2007)
Mellor, S., Scott, K., Uhl, A., Weise, D.: MDA Distilled: Principles of Model-Driven Architecture. Addison Wesley, Reading (2004)
Muller, P.-A., Hassenforder, M.: HUTN as a Bridge between Modelware and Grammarware – An Experience Report. In: Proc. WiSME 2005 at MoDELS 2005 (2005)
Web page of PLY Lex-yacc, http://www.dabeaz.com/ply/
Pratt, T.W.: Pair grammars, graph languages, and string-to-graph translations. Journal of Computer and System Sciences 5, 560–595 (1971)
QVT specification, http://www.omg.org/docs/ptc/05-11-01.pdf
Schürr, A.: Specification of Graph Translators with Triple Graph Grammars. In: Mayr, E.W., Schmidt, G., Tinhofer, G. (eds.) WG 1994. LNCS, vol. 903, pp. 151–163. Springer, Heidelberg (1995)
UML spec., http://www.omg.org/technology/documents/formal/uml.htm
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2008 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Pérez Andrés, F., de Lara, J., Guerra, E. (2008). Domain Specific Languages with Graphical and Textual Views. In: Schürr, A., Nagl, M., Zündorf, A. (eds) Applications of Graph Transformations with Industrial Relevance. AGTIVE 2007. Lecture Notes in Computer Science, vol 5088. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-89020-1_7
Download citation
DOI: https://doi.org/10.1007/978-3-540-89020-1_7
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-89019-5
Online ISBN: 978-3-540-89020-1
eBook Packages: Computer ScienceComputer Science (R0)