A Domain-Specific Language for Abstract Syntax Model to Concrete Syntax Model Mappings

Luis Quesada, Fernando Berzal, Juan-Carlos Cubero

2014

Abstract

Model-based parser generators such as ModelCC effectively decouple language design from language processing. ModelCC allows the specification of the abstract syntax model of a language as a set of language elements and their relationships. ModelCC provides the necessary mechanisms to specify the mapping from the abstract syntax model (ASM) to a concrete syntax model (CSM). This mapping can be specified as a set of metadata annotations on top of the abstract syntax model itself or by means of a domain-specific language (DSL). Using a domain-specific language to specify the mapping from abstract to concrete syntax models allows the definition of different concrete syntax models for the same abstract syntax model. In this paper, we describe the ModelCC domain-specific language for ASM-CSM mappings and we showcase its capabilities by using the ModelCC ASM-CSM DSL to define itself.

References

  1. Aho, A. V., Lam, M. S., Sethi, R., and Ullman, J. D. (2006). Compilers: Principles, Techniques, and Tools. Addison Wesley, 2nd edition.
  2. Using metadata. IEEE Software, Kats, L. C. L., Visser, E., and Wachsmuth, G. (2010). Pure and declarative syntax definition: Paradise lost and regained. In Proceedings of the ACM International Conference on Object-Oriented Programming Systems, Languages, and Applications (OOPSLA'10), pages 918-932.
  3. Kleppe, A. (2007). Towards the generation of a text-based IDE from a language metamodel. volume 4530 of Lecture Notes in Computer Science, pages 114-129.
  4. Quesada, L. (2012). A model-driven parser generator with reference resolution support. In Proceedings of the 27th IEEE/ACM International Conference on Automated Software Engineering, pages 394-397.
  5. Quesada, L., Berzal, F., and Cubero, J.-C. (2011). A language specification tool for model-based parsing. In Proceedings of the 12th International Conference on Intelligent Data Engineering and Automated Learning. Lecture Notes in Computer Science, volume 6936, pages 50-57.
Download


Paper Citation


in Harvard Style

Quesada L., Berzal F. and Cubero J. (2014). A Domain-Specific Language for Abstract Syntax Model to Concrete Syntax Model Mappings . In Proceedings of the 2nd International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD, ISBN 978-989-758-007-9, pages 158-165. DOI: 10.5220/0004671701580165


in Bibtex Style

@conference{modelsward14,
author={Luis Quesada and Fernando Berzal and Juan-Carlos Cubero},
title={A Domain-Specific Language for Abstract Syntax Model to Concrete Syntax Model Mappings},
booktitle={Proceedings of the 2nd International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD,},
year={2014},
pages={158-165},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0004671701580165},
isbn={978-989-758-007-9},
}


in EndNote Style

TY - CONF
JO - Proceedings of the 2nd International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD,
TI - A Domain-Specific Language for Abstract Syntax Model to Concrete Syntax Model Mappings
SN - 978-989-758-007-9
AU - Quesada L.
AU - Berzal F.
AU - Cubero J.
PY - 2014
SP - 158
EP - 165
DO - 10.5220/0004671701580165