Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2010, Vol. 36 ›› Issue (18): 54-56. doi: 10.3969/j.issn.1000-3428.2010.18.020

• Networks and Communications • Previous Articles     Next Articles

General Configurable Code Generation Method Based on Structures of Programming Languages

MA Qiang, LIU Pei-lin   

  1. (Department of Electronic and Engineering, Shanghai Jiaotong University, Shanghai 200240, China)
  • Online:2010-09-20 Published:2010-09-30

基于编程语言结构的通用配置代码生成方法

马 强,刘佩林   

  1. (上海交通大学电子工程系,上海 200240)
  • 作者简介:马 强(1984-),男,硕士研究生,主研方向:编译软件,图像处理;刘佩林,教授

Abstract: This paper designs a general configurable code generator to generate configurable codes in a variety of programming languages, and proposes a users’ description rule based on structures of programming languages. By using a programming grammar according to the rule described, users can write a simple module to generate the configurable code file with corresponding data structures in a variety of programming languages. The generator can be easily transplanted to many programming languages environment of different software and hardware systems to reduce development workload and time.

Key words: structure of programming language, configurable code generation, standardized configurable file

摘要: 设计一种可以生成不同编程语言配置代码的通用生成装置。提出一种基于编程语言结构的用户描述规范,用户使用简单的语法编写一个按照该规范描述目标代码数据结构的模块即可生成相应的可配置代码,并能生成多种编程语言的可配置代码文件。该装置可以方便地移植到各种开发语言环境的软件或硬件系统中,减少软件或硬件代码配置工作的开发工作量和开发时间。

关键词: 编程语言结构, 配置代码生成, 规范化的配置文件

CLC Number: