Towards automatical migration of transformation rules after grammar extension

Wolfgang Lohmann, G. Riedewald
{"title":"Towards automatical migration of transformation rules after grammar extension","authors":"Wolfgang Lohmann, G. Riedewald","doi":"10.1109/CSMR.2003.1192408","DOIUrl":null,"url":null,"abstract":"The paper addresses two problems in software maintenance. Firstly, some maintenance tasks require modifications of the grammar. A change in a grammar can make abstract syntax and transformation rules outdated, which then themselves become subject to a maintenance process. Secondly, it is essential that after a repair programs look as much as possible as they looked before. Especially comments and principle readability by humans are indispensable for further maintenance. We argue that necessary changes of both abstract syntax and transformation rules due to grammar extension can be made automatically. Thus, most of the original rules can be reused. The approach can be used to define and use simplified views on complex patterns to be analysed with transformation rules. To give an example we apply the described technique to rule-based program transformations extended with partial layout preservation. The migration relation is given. The programmer uses common rewriting techniques for program transformation without taking care of layout, which then is automatically included.","PeriodicalId":236632,"journal":{"name":"Seventh European Conference onSoftware Maintenance and Reengineering, 2003. Proceedings.","volume":"12 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2003-03-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"20","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Seventh European Conference onSoftware Maintenance and Reengineering, 2003. Proceedings.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CSMR.2003.1192408","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 20

Abstract

The paper addresses two problems in software maintenance. Firstly, some maintenance tasks require modifications of the grammar. A change in a grammar can make abstract syntax and transformation rules outdated, which then themselves become subject to a maintenance process. Secondly, it is essential that after a repair programs look as much as possible as they looked before. Especially comments and principle readability by humans are indispensable for further maintenance. We argue that necessary changes of both abstract syntax and transformation rules due to grammar extension can be made automatically. Thus, most of the original rules can be reused. The approach can be used to define and use simplified views on complex patterns to be analysed with transformation rules. To give an example we apply the described technique to rule-based program transformations extended with partial layout preservation. The migration relation is given. The programmer uses common rewriting techniques for program transformation without taking care of layout, which then is automatically included.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
实现语法扩展后转换规则的自动迁移
本文讨论了软件维护中的两个问题。首先,一些维护任务需要修改语法。语法中的更改可能会使抽象语法和转换规则过时,然后它们本身就会受到维护过程的影响。其次,重要的是,维修后的程序看起来尽可能多,因为他们看起来之前。特别是注释和人类的可读性原则对于进一步的维护是必不可少的。我们认为,由于语法扩展,抽象语法和转换规则都可以自动发生必要的变化。因此,可以重用大多数原始规则。该方法可用于定义和使用要用转换规则分析的复杂模式的简化视图。为了给出一个例子,我们将所描述的技术应用于扩展了部分布局保存的基于规则的程序转换。给出了迁移关系。程序员使用常见的重写技术进行程序转换,而不考虑布局,然后自动包含布局。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Fast symbolic evaluation of C/C++ preprocessing using conditional values Fast flow analysis to compute fuzzy estimates of risk levels Software services and software maintenance Enabling legacy system accessibility by Web heterogeneous clients Towards a benchmark for Web site extractors: a call for community participation
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1