首页 | 本学科首页   官方微博 | 高级检索  
     检索      

流程图与类C语言实时转换方法
引用本文:钟志超,张志胜,戴敏,曹杰,史金飞.流程图与类C语言实时转换方法[J].东南大学学报(自然科学版),2009,39(3).
作者姓名:钟志超  张志胜  戴敏  曹杰  史金飞
作者单位:东南大学机械工程学院,南京,211189
摘    要:为了融合图形化和文本语言2种编程方式的优点,提高教育机器人编程平台的直观性和通用性,结合编程平台要求,设计出流程图与类C语言双向实时转换方法.在进行流程图到类C语言转换时,实时根据各个模块间的父子关系遍历模块树,并根据功能模块封装的库函数和语句完成转换,在转换过程中实时进行类c语言规则检查.在进行类c语言到流程图转换时,首先通过词法分析、语法分析和语义分析生成XML代码,再进行统一解析生成流程图.在转换过程中实时进行错误检查,出现错误所在行会高亮显示以提示用户,并给出错误原因以便于用户修改程序.最后,通过典型结构转换实例和应用,验证了所提出方法的有效性和正确性.

关 键 词:流程图  类C语言  实时转换

Real-time conversion method for flowchart and similar C language
Zhong Zhichao,Zhang Zhisheng,Dai Min,Cao Jie,Shi Jinfei.Real-time conversion method for flowchart and similar C language[J].Journal of Southeast University(Natural Science Edition),2009,39(3).
Authors:Zhong Zhichao  Zhang Zhisheng  Dai Min  Cao Jie  Shi Jinfei
Institution:Zhong Zhichao Zhang Zhisheng Dai Min Cao Jie Shi Jinfei(School of Mechanical Engineering,Southeast University,Nanjing 211189,China)
Abstract:A new real-time conversion method for a flowchart and a similar C language is proposed to realize the versatility of a programming platform of educational robots by the integration of graphics and text programming.During the process of converting the flowchart to a similar C language,the module tree is scanned according to the relationships between modules;moreover,the converting results are achieved and checked by the library function and the rule of the similar C language.During the process of converting ...
Keywords:XML
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号