arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1301.4858cs.PL
收藏

ModelCC中抽象模型到具体模型映射的DSL

A DSL for Mapping Abstract Syntax Models to Concrete Syntax Models in ModelCC

Luis Quesada, Fernando Berzal, Juan-Carlos Cubero

摘要:

ModelCC是一个基于模型的解析器生成器,它将语言设计与语言处理相结合。ModelCC提供了两种不同的机制来指定从抽象语法模型到具体语法模型的映射:在抽象语法模型规范之上定义的元数据注释和用于定义ASM-CSM映射的域特定语言。使用领域特定语言来指定从抽象语法模型到具体语法模型的映射允许为同一抽象语法模型定义多个具体语法模型。在本文中,我们描述了ModelCC域特定语言的抽象语法模型到具体的语法模型映射,我们展示了它的能力,提供了一个元定义的域特定语言。

英文摘要:

ModelCC is a model-based parser generator that decouples language design from language processing. ModelCC provides two different mechanisms to specify the mapping from an abstract syntax model to a concrete syntax model: metadata annotations defined on top of the abstract syntax model specification and a domain-specific language for defining ASM-CSM mappings. Using a domain-specific language to specify the mapping from abstract to concrete syntax models allows the definition of multiple concrete syntax models for the same abstract syntax model. In this paper, we describe the ModelCC domain-specific language for abstract syntax model to concrete syntax model mappings and we showcase its capabilities by providing a meta-definition of that domain-specific language.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑