Font Size: a A A

Automatic Code Generation Base On Template And Verb Properties

Posted on:2011-03-14Degree:MasterType:Thesis
Country:ChinaCandidate:C WangFull Text:PDF
GTID:2178360308958287Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Automatic code generation is using existing program to generate object program automatically. The more detailed Description is that by reading the various engineering design documents and models, and using the domain rules, the program generates standard code which computer can implement.As a promising way to produce the software, automatic code generation has a rapid development currently. Its technology is developed very fast. Although, automatic code generation technology still has many shortcomings currently. However, it can generate more standardized and unified code. With it, software can be developed faster and easier. It is a good direction for the software industry. So it has great significance for the software development.This paper describes the Automatic code generation technology domestic and abroad firstly, and introduces a number of production which using automatic code generation technology nowadays. So, it can be found that at present the automatic code generation mainly uses abstract description of the requirement rather than the natural language which is more commonly used. So, the article puts forward a solution about automatic code generation based on restricted Chinese understanding.In this solution, the composition of restricted Chinese statement was analyzed. Based on the process of semantic analysis, it can be found that the verb is the center of a statement. So, according to the principles that the verb and its associated nominal semantic component can combine into a basic semantic structure, and the semantic of a sentence can be expressed by these semantic structures, it can get verbs` attribute structure by using some existing means of semantic representation. And then, the paper discusses the detail about the classification of the verb property structure and expression. Then it describes the realization about the structure of the verb property in restricted chinese understanding, and applies restricted Chinese language processing model in practice. At last, by analyzing the user requirement which is expressed by restricted chinese, it uses the template to generate the source code.According to the program, this article designed and implemented a program of automatic code generation. It analyses the input content, converses it to the verb property and interim expression, and then generates it to the C language source code. Its core is based on semantic analysis of verb properties and template generation and the integration of the code. Its implementation is based on the verb property processing, intermediate code processing, the template processing and automatic generation technology. And according to different semantic field input, it uses template file to generate and integrate the object code.Finally, this paper Analyses two test cases, which show the running processes of automatic code generation program and the realization of code automatically generated. It also confirms the feasibility of automatic code generation system. And it has hihger efficient than manaul development.
Keywords/Search Tags:Automatic code generation, verb property, semantic analysis, template
PDF Full Text Request
Related items