Program information issuing method and device, and electronic equipment
A technology of electronic equipment and programs, applied in the computer field, can solve problems such as no support solutions and inability to make applications dynamic
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] A method for distributing program information disclosed in the embodiment of this application, such as figure 1 As shown, the method includes: Step 110 to Step 150.
[0029] Step 110, obtain the abstract syntax tree of the target source program through a preset syntax analysis tool.
[0030] The Abstract Syntax Tree (AST) is a tree representation of the abstract syntax structure of the source code, and each node on the tree represents a structure in the source code. In the embodiment of the present application, the abstract syntax tree of the target source program may be obtained by using a syntax analysis tool or syntax analysis algorithm in the prior art. For example, the sub-item tools used in the static code inspection tool set in the development environment are stripped out, the process of analyzing the abstract syntax tree of the source code is completed, and the data structure of the abstract syntax tree is obtained.
[0031] Step 120, according to the data str...
Embodiment 2
[0079] A device for issuing program information disclosed in the embodiment of the present application, such as figure 2 As shown, the device includes:
[0080] An abstract syntax tree obtaining module 210, configured to obtain the abstract syntax tree of the target source program through a preset syntax analysis tool;
[0081] An intermediate transmission object determination module 220, configured to determine an intermediate transmission object matching the node of a preset structure type according to the data structure of the node in the abstract syntax tree;
[0082] A key-value mapping object acquisition module 230, configured to convert each of the intermediate transfer objects by calling a preset conversion interface to obtain a key-value mapping object corresponding to the corresponding intermediate transfer object;
[0083] The information assembling module 240 is configured to assemble the key-value mapping objects corresponding to each of the intermediate transmi...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


