Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code analysis method based on regular expression

A code analysis and expression technology, applied in the field of code analysis based on regular expressions, can solve the problem of inability to quickly analyze code fragments, and achieve the effect of rapid analysis

Pending Publication Date: 2021-12-10
SOUTH UNIVERSITY OF SCIENCE AND TECHNOLOGY OF CHINA
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to provide a code analysis method based on regular expressions for the above-mentioned defects of the prior art, aiming at solving the need to obtain all codes in the automatic code review (code review) method in the prior art, and Compile all the code to generate JAVA bytecode, and cannot quickly analyze the problem of incomplete code fragments

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
  • Code analysis method based on regular expression
  • Code analysis method based on regular expression
  • Code analysis method based on regular expression

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The present invention discloses a code analysis method based on regular expressions. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0053] Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and / or groups ...

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 code analysis method based on a regular expression, and the method comprises the steps: obtaining a code change text, and carrying out the extraction preprocessing of the code change text to obtain a plurality of program statements; performing regular expression rule-based code analysis and screening on the plurality of program statements to obtain a plurality of abnormal program statements; and according to the plurality of abnormal program statements, generating a Github message. Each error pattern can be matched line by line by performing extraction preprocessing on the code change text, incomplete code snippets can be quickly analyzed by performing regular expression rule-based code analysis and screening on a plurality of program statements, and the whole code library does not need to be compiled and analyzed.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a code analysis method based on regular expressions. Background technique [0002] In multi-person collaborative software development, developers often need to review the submissions of code contributors to ensure code quality. Manual code review is very time-consuming because it requires developers to read the code changed by contributors, check for potential code defects, and communicate with contributors about the changes that need to be made. However, the existing automatic code review (codereview) method also has the following problems: all codes need to be obtained and compiled to generate JAVA bytecodes, and incomplete code fragments cannot be quickly analyzed. [0003] Therefore, the prior art still needs to be improved and developed. Contents of the invention [0004] The technical problem to be solved by the present invention is to provide a code analysis method b...

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/36G06F16/245
CPCG06F11/0775G06F11/3668G06F16/334G06F16/367Y02D10/00
Inventor 陈馨慧张晓文周颖
Owner SOUTH UNIVERSITY OF SCIENCE AND TECHNOLOGY OF CHINA
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More