Source code generation method

A code generation and source code technology, applied in the field of source code generation, can solve problems such as not conforming to the trend of differentiation, and achieve the effect of improving software development efficiency, reducing software development difficulty, and improving development efficiency

Active Publication Date: 2014-11-26
ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, these methods have the following disadvantages: the "code segment" is pre-written by the engineer, which means that the engineer has to pre-determine which "strings" the user will input. Since a large number of users will have a large number of differentiated needs, so , these methods obviously do not meet the differentiation trend of demand

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be described in detail below in conjunction with the embodiments.

[0035] The present invention, namely a kind of source code generating method, comprises the following steps:

[0036] Step S1, storing character string instances, character string instances corresponding to character string instances, and code segment instances corresponding to character string instances in the database, wherein the character string instances are a subset of character string instances;

[0037] Step S2, search the database for an example of a character string that matches the character string input by the peripheral, if the character string example is retrieved, execute step S3, otherwise return to execute step S1;

[0038] Step S3, retrieve in the database the character string case corresponding to the character string case obtained in step S2, and compare the character string case and the character string case, generate and store the character string case an...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a source code generation method. The source code generation method comprises the steps of: S1, storing a special string sample, a general string sample corresponding to the special string sample, and a generate code segment sample corresponding to the general string sample in a database, wherein the special string sample is the subset of the general string sample; S2, retrieving the special string sample matching a string inputted by peripheral equipment in the database, executing step S3 is the special string sample is retrieved, otherwise, returning to step S1; and S3, retrieving the general string sample corresponding to the special string sample obtained in step S2 in the database, comparing the special string sample with the general string sample, and generating a first mapping relationship between the special string sample and the general string sample. According to the source code generation method provided by the invention, the natural language strings can automatically generate the code segments, thereby reducing the work loads of software development and meeting different use demands of users.

Description

technical field [0001] The invention relates to a source code generation method using natural language as input. Background technique [0002] At present, natural language processing technology is gradually beginning to be practical (for example: programming tools based on natural language, voice control system, etc.), but it is still at a relatively early stage. [0003] Existing natural language processing techniques usually just map a natural language string into a function. For example: map "send SMS" to a function in the mobile phone. Of course, it is also easy to map a natural language string into a sequence of functions, because this is equivalent to wrapping these functions into a new function. [0004] The essence of the above implementation methods is to establish a mapping table between "string" and "code segment", and when the "string" is input, execute the corresponding "code segment". Of course, this mapping can be many-to-many, for example: the same "string...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/44
Inventor 董琦李知伟王岩峰靳文辉付晶
Owner ZHANGJIAGANG KANGDE XIN OPTRONICS MATERIAL
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products