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

Data processing method and device

A data processing and preprocessing technology, applied in the field of data processing, can solve the problem of low code scanning accuracy, achieve the effect of solving low accuracy and improving accuracy

Active Publication Date: 2016-12-14
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 30 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Embodiments of the present invention provide a data processing method and device to at least solve the technical problem of low code scanning accuracy in the related art

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
  • Data processing method and device
  • Data processing method and device
  • Data processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] According to an embodiment of the present invention, an embodiment of a data processing method is provided.

[0044] Optionally, in this embodiment, the above-mentioned data processing method can be applied to figure 1 In the hardware environment shown by the server 102 and the terminal 104. figure 1 It is a block diagram of the hardware structure of a computer terminal according to a data processing method according to an embodiment of the present invention. Such as figure 1 As shown, the server 102 is connected to the terminal 104 through a network. The above-mentioned network includes but is not limited to: a wide area network, a metropolitan area network, or a local area network. The terminal 104 is not limited to a PC, a mobile phone, a tablet computer, and the like. The data processing method in the embodiment of the present invention may be executed by the server 102, may also be executed by the terminal 104, or may be executed jointly by the server 102 and the termi...

Embodiment 2

[0155] The technical solutions of the present invention will be described below in conjunction with preferred embodiments.

[0156] This embodiment is for C # The language is based on the non-compiled global symbolization scheme, which provides accurate and efficient symbolization results for the upper-level static code check item scan, so that the check item has the syntax level, cross-function scan, semantic level and a certain degree of logic analysis capabilities. The final output of the code scan results can help developers and testers quickly locate hidden problems in the code, improve code quality, and reduce later repair costs. Suitable for all use C # Static code inspection of the language project.

[0157] This embodiment fully considers the missing code files, missing type definitions and grammatical errors, so the symbolization process does not need to compile the input C # Code, no need for C # The code can be compiled.

[0158] This embodiment realizes that for C # The...

Embodiment 3

[0239] The application environment of the embodiment of the present invention may, but is not limited to, refer to the application environment in the foregoing embodiment, which will not be repeated in this embodiment. The embodiment of the present invention provides an optional specific application for implementing the foregoing data processing method.

[0240] Figure 24 It is a schematic diagram of an original code according to an embodiment of the present invention. Such as Figure 24 As shown, by obtaining the code file, the code file is the source program text including the character sequence; performing lexical analysis on the character sequence in the code file to obtain the lexical unit sequence; parsing the code file to obtain the preset object; Set objects to associate to establish a global symbol table, which is used to record the data information of all preset objects in the code file; and perform a static code scan on the code file according to the global symbol tab...

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 data processing method and a data processing device. The data processing method comprises the following steps: acquiring a code file which is a source program text including a character string; performing lexical analysis on the character string in the code file, thereby acquiring a lexical unit sequence; analyzing the code file, thereby acquiring a preset object; relating the lexical unit sequence to the preset object, thereby establishing an overall symbol table which is used for recording the data information of all the preset objects in the code file; performing static code scanning on the code file according to the overall symbol table, thereby acquiring a scanning result, wherein the scanning result at least comprises a search result for the category of the lexical unit sequence. The invention solves the technical problem of low accuracy of the code scanning in the related technique.

Description

Technical field [0001] The present invention relates to the field of data processing, and in particular, to a data processing method and device. Background technique [0002] Currently, there is no global symbolization solution for the data processing method that generates symbolization. When the upper-level static code check item is scanned, the processing result of non-global symbolization is not accurate enough. [0003] In the traditional compilation process, the abstract syntax tree (AST) will establish the logical relationship between code expressions, for example, the logical relationship between the if statement and the else statement in the if-else statement segment, and does not establish abstraction for a single code expression The grammatical structure requires the compiled language code as input. Once the input language code has a grammatical error, the global abstract syntax tree structure constructed will be wrong and have no reference significance. In this way, the...

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): G06F11/36G06F17/22G06F17/27G06F9/44
CPCG06F8/315G06F8/73G06F11/3604G06F40/146G06F40/205G06F40/284
Inventor 邹越严明张蓓黄斌袁明凯魏学峰
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products