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

Code processing method and device, computer readable medium

A processing method and code technology, applied in the field of computer-readable media, code processing methods and devices, can solve the problems of complex shape and structure, difficult participation, no effective solution, etc., and achieve the effect of reducing complexity

Active Publication Date: 2020-11-06
SHENZHEN TENCENT COMP SYST CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] There are great differences in shape and structure when converting SQL to vector graphics, which makes it very complicated to realize the conversion based on related technologies, and there is no intermediate content that can be read and output, which makes even data experts who are proficient in SQL Difficulty participating in the conversion process from SQL to vector graphics
[0005] To sum up, there is still no effective solution for how to realize the output of readable intermediate content in the process of converting SQL to vector graphics in related technologies

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 processing method and device, computer readable medium
  • Code processing method and device, computer readable medium
  • Code processing method and device, computer readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0035] Intermediate Language (Intermediate Language) in computer science refers to a programming language applied to abstract machines (Abstract Machine). The purpose of its design is to help analyze computer programs. In the embodiment of the present invention, it uses A brand-new intermediate language is developed, which can simplify the difficulty of converting SQL to vector graphics, and supports the output of readable intermediate language in the process of converting SOL to vector graphics.

[0036] Domain-specific language (DSL, Domain-specific Language) is a language that focuses on a specific field, is easy to read, and facilitates better communication between developers and domain ex...

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 method and device for code processing. The method comprises the steps that a target code is analyzed, and a syntax tree corresponding to the target code is obtained; the syntax tree is analyzed, operations contained in the target code are determined, and the operations contained in the target code are serialized through topological sequencing of the syntax tree; nodes which have one-to-one correspondence relations with the operations contained in the target code are generated, and a node sequence is generated based on the serialization result of the operations contained in the target code as well as the generated nodes, wherein sorting of the nodes contained in the node sequence is corresponding to the serialization result of the operations contained in the target code; and each node in the node sequence is analyzed successively based on information of each node in the node sequence, so that an intermediate language code corresponding to the target code is obtained. According to the invention, readable intermediate contents can be output during conversion of the target code to a vector diagram.

Description

technical field [0001] The invention relates to intermediate language technology, in particular to a code processing method and device, and a computer-readable medium. Background technique [0002] Structured Query Language (SQL, Structured Query Language) is a database query and programming language. Data flow usually refers to a set of ordered nodes with a starting point and an ending point. SQL is expressed in the form of data flow. The collection of atomic nodes in the SQL text is organized in a certain order, and finally a data flow graph is obtained, which is called a vector diagram; [0003] At present, there are very few relevant technical solutions for converting SQL into vector graphics. The main technical solution is to parse the SQL first, store or directly process the parsed content through Extensible Markup Language (XML, Extensible Markup Language), and use The graphics library of the high-level programming language draws a vector diagram equivalent to SQL. ...

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 Patents(China)
IPC IPC(8): G06F8/30G06F16/242
Inventor 李金龙
Owner SHENZHEN TENCENT COMP SYST CO LTD