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

Code visualization analysis method and device based on abstract syntax

A technology of abstract syntax and analysis methods, applied in the direction of code compilation, program code conversion, creation/generation of source code, etc., can solve the problems of long development time and difficult maintenance.

Inactive Publication Date: 2021-02-02
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This will undoubtedly lead to long time-consuming development of enterprise projects and difficult maintenance, and it is easy for developers to introduce new problems when fixing problems

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 visualization analysis method and device based on abstract syntax
  • Code visualization analysis method and device based on abstract syntax
  • Code visualization analysis method and device based on abstract syntax

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, so that the advantages and features of the present invention can be more easily understood by those skilled in the art, so as to define the protection scope of the present invention more clearly.

[0025] see Figure 1 to Figure 5 , the embodiment of the present invention includes:

[0026] See figure 1 , a code visualization analysis method based on abstract syntax, comprising: S100, the front-end developer uploads the JavaScript code to the source code parsing runner and parses the code, the source code parsing runner parses the code, and the parsing code contains AST abstract syntax tree and code The execution context stack information is stored in the database by the source code parsing runner; S200, the AST data analyzer obtains the AST abstract syntax tree in the code parsed by the source code parsing runner, traverses the AST, and g...

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 visualization analysis method and device based on abstract syntax. The method comprises the steps: S100, a source code analysis operator analyzes a code; S200, an AST data analyzer acquires information in the code analyzed by the source code analysis operator and generates a workflow tree of the code, and the AST data analyzer adds data required by visual rendering according to the workflow tree to generate a shape tree finally; S300, a visual data renderer acquires information in the code analyzed by the source code analysis operator and the generated shape tree, and renders the information and the generated shape tree into a calling relation graph and an SVG tree graph respectively; and S400, a document integration output device integrates the generated andrendered code visual analysis graph according to the debugging requirements of a front-end developer, and outputs the integrated graph to the developer. The visual analysis graph can be analyzed andrendered while the code is operated and debugged, and code developers are assisted in visually tracking the operation condition of the target node.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to a code visualization analysis method and device based on abstract syntax. Background technique [0002] In the current web application development, the separation of front-end and back-end has become the preferred architecture mode. In this mode, the business complexity and code modularity of front-end projects are gradually increasing. Whether it is secondary development based on open source projects, or developing and maintaining existing enterprise projects, front-end developers have to spend a lot of time debugging and reading project source codes to sort out project codes with huge volume and complex call relationships. The logical relationship of the code. This will undoubtedly lead to long time-consuming enterprise project development and difficult maintenance, and it is easy for developers to introduce new problems when fixing problems. Contents of the invent...

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 Applications(China)
IPC IPC(8): G06F8/33G06F8/41G06F11/36
CPCG06F8/33G06F8/425G06F11/362
Inventor 符佳凤
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD