Flexmi: a generic and modular textual syntax for domain-specific modelling

Flexmi: a generic and modular textual syntax for domain-specific modelling
复制标题

Flexmi:用于特定领域建模的通用模块化文本语法

DOI:
10.1007/s10270-022-01064-3
复制
发表时间:
2022
影响因子:
2
通讯作者:
Alfonso de la Vega
Alfonso de la Vega
中科院分区:
计算机科学3区
文献类型:
--
作者:
Dimitris Kolovos;Alfonso de la Vega

文献摘要

被引文献

相似文献

领域特定语言允许工程师和领域专家使用以领域为中心的词汇表和抽象,通过图形或文本语法来表达问题和设计解决方案。在文本语法的情况下,语言工程师可以选择通过定义和维护BNF风格的语法来创建特定于语言的语法,或者使用现有的通用反射语法,如XML元数据交换(XMI)或人类可用文本表示法(HUTN),这些语法不需要任何开发和维护工作,但更详细,无法自定义。我们提出了F lexmi:一个新的通用文本语法定义模型,符合Eclipse建模框架的基于生态的元模型。F lexmi提供了XML和YAML/JSON语法风格,它可以被模糊地解析以减少冗长,并且它包括一个模板系统以促进可重用的复合模型元素结构的封装,从而实现更简洁的模型规范。我们已经评估了F lexmi的冗长性和模型加载性能对XMI,HUTN,和一个定制的(即自定义)文本语法Ecore(Emfatic)。我们的研究结果表明,模糊解析和模板的使用允许F lexmi实现显着减少的冗长的模型相比,XMI/HUTN,可以成为几乎一样简洁的定制的文本语法,与适度的性能惩罚。
Domain-specific languages allow engineers and domain experts to express problems and design solutions using domain-focused vocabularies and abstractions, by means of graphical or textual syntaxes. In the case of textual syntaxes, language engineers can opt for creating a language-specific syntax by defining and maintaining a BNF-style grammar, or use an existing general-purpose reflective syntax such as the XML Metadata Interchange (XMI) or the Human Usable Textual Notation (HUTN), which do not require any development and maintenance effort, but which are more verbose and cannot be customised. We present F lexmi : a new general-purpose textual syntax for defining models that conform to Eclipse Modelling Framework’s Ecore-based metamodels. F lexmi offers XML and YAML/JSON syntax flavours, it can be fuzzily parsed to reduce verbosity, and it includes a templating system to facilitate encapsulation of reusable composite model element structures, thus enabling more concise model specifications. We have evaluated F lexmi for verbosity and model loading performance against XMI, HUTN, and a bespoke (i.e. custom) textual syntax for Ecore (Emfatic). Our results indicate that the use of fuzzy parsing and templates allow F lexmi to achieve a significant reduction in the verbosity of models compared to XMI/HUTN and can become almost as concise as a bespoke textual syntax, with a moderate performance penalty.