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:
MA Jiang, LIU Pei-Lin. General Configurable Code Generation Method Based on Structures of Programming Languages[J]. Computer Engineering, 2010, 36(18): 54-56.
马强, 刘佩林. 基于编程语言结构的通用配置代码生成方法[J]. 计算机工程, 2010, 36(18): 54-56.