摘要
讨论了一个基于Orad Render Engine的RE控制程序源代码自动生成程序的设计思想与实现技术,通过编写一个文档分析程序,以控制命令的说明文档作为输入,按照预定的正则表达式规则,分析出命令的结构化数据,并动态创建XML格式的代码模板。最终系统根据动态生成的模板自动生成出控制程序的源代码。
This paper analyzes the design and realization technology of auto source code generator based on Orad render engine controller. It uses a document analysis process,which takes a documentation of control commands as input and conformed to predetermined regular expression rules,to analyze the structured data of commands,and to dynamically generate XML-based code templates. Finally,this system automatically generates the source code of controller in accordance with the generated templates.
出处
《计算机系统应用》
2010年第4期69-72,共4页
Computer Systems & Applications
关键词
渲染引擎
源代码自动生成
正则表达式
结构化数据
XML模板
render engine
auto source code generation
regular expressions
structured data
XML-based templates