Unlock instant, AI-driven research and patent intelligence for your innovation.

A code generation method and device

A code generation and code technology, applied in the field of data processing, can solve problems such as low development efficiency, high technical requirements for developers, and difficult code development process

Active Publication Date: 2021-02-12
HUNDSUN TECH
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, if the business logic language used to describe the business logic needs to be converted into the source code corresponding to the computer programming language, the user needs to have a good understanding of the C language or C++ language, so that the corresponding source code can be manually written according to the business logic language. Code, which has high technical requirements for developers, makes the code development process difficult and low in development efficiency

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A code generation method and device
  • A code generation method and device
  • A code generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053]The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0054] First, a code generation method of the present application is introduced.

[0055] see figure 1 , which shows a schematic diagram of the composition and structure of another embodiment of a code generation method of the present application. The method of this embodiment can be applied to computer equipment, such as an independent computer, or a server node in a distributed system, etc.

[0056] The method of this embodiment may include:

[0057] S101. Obtain an object file t...

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 present application discloses a code generation method and device. In the scheme of the present application, after obtaining the target file to be converted into code, the target file includes each segment of business logic language to be parsed to mark out the components that make up the business logic language. A plurality of language units, the language unit is a comment, an initial source code segment, or a business branch language; if the language unit is a business branch language, the business branch language is converted into a target source code segment described in a computer programming language, and the target source The code segment includes one or both of the target code segment and the annotation; combine the parsed annotation, the initial source code segment and the target source code segment to obtain a source code set corresponding to the business logic language; put at least one segment of the business logic At least one source code set obtained from the language conversion is combined and stored in a file, and the target file is obtained to be converted into a source file. This solution realizes efficient and convenient code generation based on business logic language.

Description

technical field [0001] The present application relates to the technical field of data processing, and more specifically, to a code generation method and device. Background technique [0002] According to the needs of the business process, users can write some business logic languages ​​that describe business logic (eg, business execution process or business control process). Such business logic languages ​​are generally written by users using interpretive languages. In order to convert the file resource containing the business logic language into a computer-executable executable file, it is first necessary to convert the business logic language into a source code corresponding to a computer programming language, such as code in C language or C++ language. [0003] At present, if the business logic language used to describe the business logic needs to be converted into the source code corresponding to the computer programming language, the user needs to have a good understand...

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): G06F8/51G06F8/30G06F8/73
CPCG06F8/315G06F8/51G06F8/73
Inventor 秦元吴利波傅凡蔡金开王小恒孙道林竹一峰
Owner HUNDSUN TECH