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

Method of detecting program code syntax errors

A syntax error, program code technology, applied in error detection/correction, software testing/debugging, instruments, etc., can solve the problem of unable to judge the normal compilation of the code, unable to accurately judge the code syntax problem, etc.

Active Publication Date: 2021-01-15
湖南皖湘科技有限公司
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the disadvantages of the above-mentioned patents are: at present, the code review process of the prior art has multiple permissions, but these permissions need to be manually reviewed on the relevant modules, that is, a large amount of human intervention is required to manually review the code, and manual Reviewing the code cannot accurately judge the grammatical problems of the code, nor can it judge whether the code can be compiled normally, so there is still room for improvement in the detection method of program code grammatical errors

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 of detecting program code syntax errors

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0028] see figure 1 , the present invention provides a technical solution: a method for detecting program code syntax errors, comprising the following steps:

[0029] Step 1, reviewing the new patch, using the compiling server to generate a new patch, and sending the new patch to the program code review server, so that the program code review server can review the new patch generated by the compiling server;

[0030] Step 2. Collection and storage of detection nodes. The program code review server collects and stores the content of the detection nodes in the new patch, so that the program code review server can quickly review and store the content of the new patch according to the detection nodes. deal with;

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 method for detecting program code syntax errors, and the method comprises the following steps: 1, auditing a newly added patch, generating a new newly added patch by using acompiling server, and sending the newly added patch to a program code auditing server, and enabling a program code auditing server to auditing the newly added patch generated by the compiling server.According to the method for detecting the syntax error of the program code, through the setting of six steps of auditing a newly added patch, collecting and storing detection nodes, detecting each function segment by segment, detecting whether code annotation is greater than or equal to a preset threshold value or not, feeding back error information and obtaining a detection result, the manual code auditing is avoided, the accuracy of judging the code grammar problem is improved while manpower is released, and whether the code can be normally compiled or not can be judged, so the detection method for the program code grammar error is improved.

Description

technical field [0001] The invention relates to the technical field of program code detection, in particular to a method for detecting program code syntax errors. Background technique [0002] As we all know, code is the source file written by the programmer in the language supported by the development tool, and it is a set of clear rule systems that represent information in discrete form by characters, symbols or signal symbols. The principles of code design include unique certainty, standardization and versatility, scalability and stability, easy recognition and memory, striving for shortness and uniform format, and easy modification. Source code is a branch of code, in a sense, source code is equivalent to code; [0003] After searching, the patent with the publication number CN110879708A published by China Patent Network discloses a local sensitive program analysis method based on abstract syntax tree and theorem proof, including: constructing an abstract syntax tree AS...

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
IPC IPC(8): G06F11/36
CPCG06F11/3608G06F11/3672Y02D10/00
Inventor 刘超赵小容李晶
Owner 湖南皖湘科技有限公司