Code structure view analyzing and previewing method
A structure analysis and code technology, applied in the field of code analysis, can solve problems such as low analysis efficiency, complexity, and inconvenience in real-time preview of target code positioning of code structure, so as to improve code reading efficiency and ease of use.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0029] The technical solution of the patent is further described in detail below in conjunction with the specific embodiments.
[0030] See Figure 1 , a code structure view parsing and previewing method, including code preprocessing module, code parsing module, result processing module and result storage module; the code preprocessing module is used to receive the code file or code text content passed by the supplicant, determine the code file language type, calculate the code file content md5, and determine whether there is a historical analysis result. The code parsing module is used to analyze the code file, combined with the language type involved in the code file for parsing, so as to obtain the syntax parsing tree; and based on the visitor pattern of the syntax parsing tree, the parsing starts from the code file syntax entry rules to obtain the code structure analysis results.
[0031] The code parsing module contains syntax description files based on Antlr4 and various comm...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
