Improving implementation of code generators: A regular-expression approach

María Consuelo Franky, Jaime A. Pavlich-Mariscal
{"title":"Improving implementation of code generators: A regular-expression approach","authors":"María Consuelo Franky, Jaime A. Pavlich-Mariscal","doi":"10.1109/CLEI.2012.6427199","DOIUrl":null,"url":null,"abstract":"Code generators are important tools in software development, to automate repetitive coding tasks, facilitate portability, abstract implementation details, and reduce development costs. However, as the complexity of code generators grow, they tend to be harder to maintain, especially when there is a large amount of templates involved. This paper proposes an approach for code generation based on regular expression substitution. Instead of using templates for code generation, this approach transforms existing source code, using regular expression substitution, to implement the required functionality. We are currently applying this technique to strengthen the code generation framework of Heinsohn Business Technology, as part of the “Lion” project co-financed by Colciencias. Our experience shows that, although this approach has a steeper learning curve, it facilitates capitalization of the experience of software development organizations, selecting successfully modules that are taken as a reference source for code generation in future projects.","PeriodicalId":290390,"journal":{"name":"2012 XXXVIII Conferencia Latinoamericana En Informatica (CLEI)","volume":"6 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2012-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"11","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2012 XXXVIII Conferencia Latinoamericana En Informatica (CLEI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CLEI.2012.6427199","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 11

Abstract

Code generators are important tools in software development, to automate repetitive coding tasks, facilitate portability, abstract implementation details, and reduce development costs. However, as the complexity of code generators grow, they tend to be harder to maintain, especially when there is a large amount of templates involved. This paper proposes an approach for code generation based on regular expression substitution. Instead of using templates for code generation, this approach transforms existing source code, using regular expression substitution, to implement the required functionality. We are currently applying this technique to strengthen the code generation framework of Heinsohn Business Technology, as part of the “Lion” project co-financed by Colciencias. Our experience shows that, although this approach has a steeper learning curve, it facilitates capitalization of the experience of software development organizations, selecting successfully modules that are taken as a reference source for code generation in future projects.
改进代码生成器的实现:正则表达式方法
代码生成器是软件开发中的重要工具,可以自动执行重复的编码任务,促进可移植性,抽象实现细节,并降低开发成本。然而,随着代码生成器复杂性的增长,它们往往更难以维护,特别是当涉及到大量模板时。提出了一种基于正则表达式替换的代码生成方法。这种方法不使用模板来生成代码,而是使用正则表达式替换来转换现有的源代码,以实现所需的功能。作为Colciencias共同资助的“Lion”项目的一部分,我们目前正在应用该技术来加强Heinsohn Business Technology的代码生成框架。我们的经验表明,尽管这种方法有一个陡峭的学习曲线,但它促进了软件开发组织经验的资本化,成功地选择了模块,这些模块被作为未来项目中代码生成的参考源。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
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学术文献互助群
群 号:604180095
Book学术官方微信
小红书