Multi-amalgamated triple graph grammars: Formal foundation and application to visual language translation

Q3 Computer Science
Erhan Leblebici , Anthony Anjorin , Andy Schürr , Gabriele Taentzer
{"title":"Multi-amalgamated triple graph grammars: Formal foundation and application to visual language translation","authors":"Erhan Leblebici ,&nbsp;Anthony Anjorin ,&nbsp;Andy Schürr ,&nbsp;Gabriele Taentzer","doi":"10.1016/j.jvlc.2016.03.001","DOIUrl":null,"url":null,"abstract":"<div><p>Visual languages (VLs) facilitate software development by not only supporting communication and abstraction, but also by generating various artifacts such as code and reports from the same high-level specification. VLs are thus often translated to other formalisms, in most cases with bidirectionality as a crucial requirement to, e.g., support re-engineering of software systems. <em>Triple Graph Grammars</em> (<em>TGGs</em>) are a rule-based language to specify consistency relations between two (visual) languages from which bidirectional translators are automatically derived. TGGs are formally founded but are also limited in expressiveness, i.e., not all types of consistency can be specified with TGGs. In particular, 1-to-<em>n</em> correspondence between elements depending on concrete input models cannot be described. In other words, a <em>universal quantifier</em> over certain parts of a TGG rule is missing to generalize consistency to arbitrary size. To overcome this, we transfer the well-known <em>multi-amalgamation</em> concept from algebraic graph transformation to TGGs, allowing us to mark certain parts of rules as repeated depending on the translation context. Our main contribution is to derive TGG-based translators that comply with this extension. Furthermore, we identify bad smells on the usage of multi-amalgamation in TGGs, prove that multi-amalgamation increases the expressiveness of TGGs, and evaluate our tool support.</p></div>","PeriodicalId":54754,"journal":{"name":"Journal of Visual Languages and Computing","volume":"42 ","pages":"Pages 99-121"},"PeriodicalIF":0.0000,"publicationDate":"2017-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/j.jvlc.2016.03.001","citationCount":"9","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Visual Languages and Computing","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1045926X15300604","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"Computer Science","Score":null,"Total":0}
引用次数: 9

Abstract

Visual languages (VLs) facilitate software development by not only supporting communication and abstraction, but also by generating various artifacts such as code and reports from the same high-level specification. VLs are thus often translated to other formalisms, in most cases with bidirectionality as a crucial requirement to, e.g., support re-engineering of software systems. Triple Graph Grammars (TGGs) are a rule-based language to specify consistency relations between two (visual) languages from which bidirectional translators are automatically derived. TGGs are formally founded but are also limited in expressiveness, i.e., not all types of consistency can be specified with TGGs. In particular, 1-to-n correspondence between elements depending on concrete input models cannot be described. In other words, a universal quantifier over certain parts of a TGG rule is missing to generalize consistency to arbitrary size. To overcome this, we transfer the well-known multi-amalgamation concept from algebraic graph transformation to TGGs, allowing us to mark certain parts of rules as repeated depending on the translation context. Our main contribution is to derive TGG-based translators that comply with this extension. Furthermore, we identify bad smells on the usage of multi-amalgamation in TGGs, prove that multi-amalgamation increases the expressiveness of TGGs, and evaluate our tool support.

多重合并三图语法:形式基础及其在视觉语言翻译中的应用
可视化语言(VL)不仅支持通信和抽象,而且通过从同一高级规范生成各种工件(如代码和报告)来促进软件开发。因此,VL通常被转换为其他形式主义,在大多数情况下,双向性是支持软件系统重新设计的关键要求。三重图语法(TGG)是一种基于规则的语言,用于指定两种(视觉)语言之间的一致性关系,双向翻译器从中自动派生。TGG是正式建立的,但在表达性方面也受到限制,即并非所有类型的一致性都可以用TGG指定。特别地,不能描述依赖于具体输入模型的元素之间的1对n对应关系。换句话说,TGG规则的某些部分上缺少一个通用量词来将一致性推广到任意大小。为了克服这一点,我们将众所周知的多重融合概念从代数图变换转移到TGG,使我们能够根据翻译上下文将规则的某些部分标记为重复。我们的主要贡献是派生出符合此扩展的基于TGG的翻译器。此外,我们确定了TGG中使用多重合并的臭味,证明多重合并增加了TGG的表现力,并评估了我们的工具支持。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Visual Languages and Computing
Journal of Visual Languages and Computing 工程技术-计算机:软件工程
CiteScore
1.62
自引率
0.00%
发文量
0
审稿时长
26.8 weeks
期刊介绍: The Journal of Visual Languages and Computing is a forum for researchers, practitioners, and developers to exchange ideas and results for the advancement of visual languages and its implication to the art of computing. The journal publishes research papers, state-of-the-art surveys, and review articles in all aspects of visual languages.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信