本文已被:浏览 1902次 下载 3564次
Received:May 19, 2010 Revised:July 15, 2010
Received:May 19, 2010 Revised:July 15, 2010
中文摘要: 代码转换是代码自动生成过程中的重要环节。提出一种基于模板、可适用于任意文法描述代码之间转换的“属性匹配-替换”算法。利用该算法,成功实现了OSEK 规范中OIL 语法描述代码到C 语言代码的转换。
Abstract:Code conversion technology plays an important role in fields of code generation. This paper presents a template-based “attributes match–n, replace” algorithm for code conversion between programming languages. Using this method, we successfully convert OIL, which is one of important parts of OSEK specifications, to C.
keywords: code conversion code generation template OSEK OIL
文章编号: 中图分类号: 文献标志码:
基金项目:电子信息产业发展基金(财建[2008]329,工信部运[2008]97)
引用文本:
刘毅,陈香兰,李曦.基于模板的代码转换工具.计算机系统应用,2011,20(2):35-39
LIU Yi,CHEN Xiang-Lan,LI Xi.Template Tool for Code Conversion.COMPUTER SYSTEMS APPLICATIONS,2011,20(2):35-39
刘毅,陈香兰,李曦.基于模板的代码转换工具.计算机系统应用,2011,20(2):35-39
LIU Yi,CHEN Xiang-Lan,LI Xi.Template Tool for Code Conversion.COMPUTER SYSTEMS APPLICATIONS,2011,20(2):35-39