• 首页
  • 期刊简介
  • 编委会
  • 投稿指南
  • 收录情况
  • 杂志订阅
  • 联系我们
引用本文:许秀林,李蕴华.基于图元装接模式由程序流程图自动生成源代码[J].软件工程,2016,19(11):4-10.【点击复制】
【打印本页】   【下载PDF全文】   【查看/发表评论】  【下载PDF阅读器】  
←前一篇|后一篇→ 过刊浏览
分享到: 微信 更多
基于图元装接模式由程序流程图自动生成源代码
许秀林,李蕴华1,2
1.(1.南通职业大学电子信息工程学院,江苏 南通 226007;2.
2.南通大学电子信息学院,江苏 南通 226007)
摘 要: 针对程序流程图到代码自动翻译过程中,通常需要经过代码优化及二次编程,翻译效率不高,提出基于图 元装接模式的流程图到C语言源程序转换的解决方案,实现流程图到源程序的双向转换。由图元同步产生代码元,通过 装接自动生成程序代码。所生成的程序代码无需修改,可直接编译运行。通过词法分析,识别并产生代码元和对应图 元,可逆向生成流程图。其有效性在原型系统中得到了验证。
关键词: C语言;流程图;程序代码;自动翻译
中图分类号: TP311.5    文献标识码: A
基金项目: 江苏现代教育研究立项课题
Automatic Translation from Flowchart to Program CodeBase on Graphics Primitive Assembling
XU Xiulin,LI Yunhua1,2
1.( 1.Department of Electronic Information Engineering, NanTong Vocation University, Nantong 226007, China;2.
2.Department of Electronic Information, NanTong University, Nantong 226007, China)
Abstract: The translation,from flowchart into program code automatically,usually requires code optimization and quadratic programming,and works inefficiency.The solution is proposed for translation from flow chart to source program of C language base on graphics primitive assembling.According the solution,the conversion is in both directions of flowchart and the source program.The code primitive is created with graphics primitive synchronously.Then,the program code is automatically generated while the code primitives are assembled together.It can be compiled and run directly.Instead,with the identification and generate of code primitive through lexical analysis,a flowchart can be produced reverse from the source program.Its effectiveness has been verified in the prototype system.
Keywords: C language;flow charts;program code;automatic translation


版权所有:软件工程杂志社
地址:辽宁省沈阳市浑南区新秀街2号 邮政编码:110179
电话:0411-84767887 传真:0411-84835089 Email:semagazine@neusoft.edu.cn
备案号:辽ICP备17007376号-1
技术支持:北京勤云科技发展有限公司

用微信扫一扫

用微信扫一扫