Analysis method and device for function expression in compiled language environment, storage medium and terminal

A parsing method and expression technology, which are applied to the parsing method and device of a function expression in a compiled language environment, a storage medium, and a terminal field to achieve the effect of simplifying the parsing operation and reducing the computational complexity.

Pending Publication Date: 2020-10-09
SHANGHAI SHIJIU INFORMATION TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem solved by the present invention is how to reduce the complexity of parsing function expressions in a compiled language environment and improve operational efficiency

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
  • Analysis method and device for function expression in compiled language environment, storage medium and terminal
  • Analysis method and device for function expression in compiled language environment, storage medium and terminal
  • Analysis method and device for function expression in compiled language environment, storage medium and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] As mentioned in the background art, the current way of parsing and processing function expressions in a compiled language environment is relatively complicated, which seriously affects the data processing speed of the terminal in the C / S architecture.

[0026] Specifically, regardless of the client or server in the existing C / S architecture, if the terminal is running in a compiled language environment, when receiving the function expression sent by the other end, it is necessary to write a special compiler, and The compiler is invoked to perform a series of complex processes such as lexical analysis, syntax analysis, and semantic analysis on the received function expression. It can be seen that in the prior art, when parsing a function expression in a compiled language environment, the processing logic is complicated and the efficiency is low.

[0027] In order to solve the above technical problems, an embodiment of the present invention provides a method for parsing a...

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 an analysis method and device for a function expression in a compiled language environment, a storage medium and a terminal. The method comprises the steps of obtianing the function expression from the exterior of the compiled language environment; carrying out regular replacement operation on the function expression so as to analyze the function expression into a characterstring in a JSON format; and constructing a call tree based on the character string in the JSON format. Through the method provided by the invention, the analysis operation on the function expressionin a compiled language environment can be simplified, and the operation complexity is reduced.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for analyzing function expressions in a compiled language environment, a storage medium, and a terminal. Background technique [0002] In the client-server (C / S for short) architecture in the field of algorithms, there are some application scenarios where one of the client and the server needs to pass a function expression to the other for the latter to use in its own operating environment. Called in , where the function expression supports functions and four arithmetic operations. [0003] In some scripting languages ​​(such as JavaScript) environments, the passed function expression string can be executed directly. [0004] However, in a compiled language (such as C++ or Java) environment, this type of operating environment is not equipped with a parser, and the function expression string passed from the outside must be parsed before it can be called. Ho...

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/41
CPCG06F8/427
Inventor 陈昶华
Owner SHANGHAI SHIJIU INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products