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 an...
详细信息
ISBN:
(纸本)9789897580659
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 syntaxmodel (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 syntaxmodels allows the definition of different concrete syntaxmodels 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.
暂无评论