Method and device for generating formatted source code for data exchange

A data exchange and source code technology, applied in the field of code generation, can solve the problems of software quality reduction, cost increase, and only focus on code writing speed, etc., to achieve good compatibility and light use

Active Publication Date: 2020-03-10
NO 54 INST OF CHINA ELECTRONICS SCI & TECH GRP
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the process of software development, changing user needs and increasing the scale of software development lead to longer software development cycle, higher cost and lower software quality.
Large-scale software is completed within a certain period of time, so many people only pay attention to the speed of code writing, ignoring robustness and maintainability. In addition, large-scale software development is usually participated by many people, and the coding styles and levels are very different. , which can easily lead to serious discrepancies
Especially in the process of data exchange, that is, the writing of protocols and parameter boundary checking, problems are prone to occur

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
  • Method and device for generating formatted source code for data exchange
  • Method and device for generating formatted source code for data exchange

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make it easier for those skilled in the art to understand the technical solution of this patent, and at the same time, in order to make the technical purpose, technical solution and beneficial effect of this patent clearer, and to fully support the protection scope of the claims, the following is a specific case in the form of this patent. The technical solution of the patent makes further and more detailed descriptions.

[0031] A data exchange formatting source code generation device, which includes the following modules:

[0032] (1) The protocol analysis module is used to read the protocol prototype definition file according to the preset mode, generate and expand nested protocol rules;

[0033] (2) a protocol detection module, used to verify whether the parameters are legal, determine the priority of the protocol sequence, and generate verification codes for detecting the code quality generated by the code generation module;

[0034] (3) Template engin...

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 discloses a data exchange formatting source code generation method and tool, and belongs to the technical field of code generation. A protocol analysis module reads a protocol prototypedefinition file and generates a protocol rule; a protocol detection module performs a test; after the test is passed, C language-based data exchange formatting codes are generated according to an engine rule template and an operation system abstraction layer. The formatting codes can be automatically generated, so that unification and exchange of code styles are facilitated.

Description

technical field [0001] The invention relates to the technical field of code generation, in particular to a method and device for generating formatted source codes for data exchange. Background technique [0002] During the software development process, the changeable user demands and the increase of the software development scale make the software development cycle longer, the cost increase, and the software quality decrease. Large-scale software is completed within a certain period of time, so many people only pay attention to the speed of code writing, ignoring robustness and maintainability. In addition, large-scale software development is usually participated by many people, and the coding styles and levels are very different. , it is easy to cause serious differences. Especially in the process of data exchange, that is, protocol writing and parameter boundary checking, problems are prone to occur. Contents of the invention [0003] In view of this, the present inven...

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/30
CPCG06F8/31
Inventor 戚艳兵戈静赵贤明
Owner NO 54 INST OF CHINA ELECTRONICS SCI & TECH GRP
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