###
DOI:
计算机系统应用英文版:2012,21(2):51-55
本文二维码信息
码上扫一扫!
基于产生式的多语言程序理解的算法
(1.浙江工业大学 计算机科学与技术学院,杭州 310032;2.杭州市科技信息研究院,杭州 310001)
Production Rule-Based Multi-Language Program Comprehension of Algorithm
(1.College of Computer Science and Technology, Zhejiang University of Technology, Hangzhou 310032, China;2.Hangzhou Science and Technology Information Research Institute, Hangzhou 310001, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1646次   下载 2974
Received:May 24, 2011    Revised:June 20, 2011
中文摘要: 提出一种程序理解实现方案,通过将程序设计语言的词法规则和语法规则以产生式表示,设计基于产生式多语言程序处理算法,将产生式自动转化为对应的词法和语法规则函数,使得不同的程序设计语言规则可以采用统一的方式描述,从而可用一套程序理解系统实现对多种程序设计语言的程序理解,以后增加某种程序设计语言的程序理解,只要定义对应程序设计语言的词法和语法规则产生式即可实现,有效地解决了程序理解系统的共享性难题。
中文关键词: 程序理解  产生式  处理算法  规则函数
Abstract:This paper presents a program comprehension scheme, it expresses the programming language lexical rule and grammar rule by the produce type, and designed the production rule-based multi-language program transform algorithm automatic convert it to lexical and grammar rule function. So the different programming languages can description by the same way, and then can use the same program comprehension system to achieve multi-language program comprehension.Add some programming language program comprehension,as long as defined correspondence programming language lexical and grammar rules produce type can be realized,effectively solve the problem of sharing program comprehension system.
文章编号:     中图分类号:    文献标志码:
基金项目:
引用文本:
古辉,姚灵灵,童李文.基于产生式的多语言程序理解的算法.计算机系统应用,2012,21(2):51-55
GU Hui,YAO Ling-Ling,TONG Li-Wei.Production Rule-Based Multi-Language Program Comprehension of Algorithm.COMPUTER SYSTEMS APPLICATIONS,2012,21(2):51-55