Dynamic compiling method and device, equipment and storage medium

A dynamic, syntax tree technology, applied in code compilation, program code conversion, etc., can solve problems such as low efficiency and achieve the effect of speeding up

Pending Publication Date: 2022-07-15
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, the commonly used dynamic compilation method in the industry is to formulate DSL specifications according to their own needs and dynamic analysis capabilities, and finally compile the Dart source code into a DSL product, and then the running engine converts the DSL product into page display content in real time, but this The process is very complicated and inefficient

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
  • Dynamic compiling method and device, equipment and storage medium
  • Dynamic compiling method and device, equipment and storage medium
  • Dynamic compiling method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

[0021] figure 1 The main flow of the method for implementing dynamic compilation according to an embodiment of the present disclosure is shown, such as figure 1 As shown, the method includes:

[0022] Operation S110, obtaining at least one source file;

[0023] Among them, the source file refers to the file containing the source code, that is, the file that the R...

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 provides a dynamic compiling method, device and equipment and a storage medium, belongs to the technical field of computers, and particularly relates to the field of research, development, operation and maintenance of Internet and mobile applications. According to the specific implementation scheme, a DSL specification is used, a source file is analyzed, a DSL syntax tree corresponding to the source file is determined, and a first target file is obtained; and according to the DSL syntax tree, determining a declaration type and a calling sequence of a program object represented by each node, and then according to the declaration type and the calling sequence, determining a loading sequence of the declaration type to obtain a second target file. Due to the fact that the second target file comprises the declaration types of the program objects, the arrangement sequence of which is consistent with the calling sequence, in the process of converting the DSL product in the first target file into the executable file corresponding to the source file in the executable environment, the speed of loading the declaration types and the program objects can be greatly increased; and thus, the efficiency of converting the DSL product into the page display content in real time is improved.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and in particular, to the field of research and development and operation and maintenance of Internet and mobile applications. Background technique [0002] As flutter technology becomes more and more mature, the technology of online real-time update or hot repair is gradually implemented in some applications (apps), such as the dynamic compilation method of flutter based on the runtime parsing of Domain Specific Language (DSL) products . [0003] DSL is also a computer programming language with language expression ability, but different from General Purpose Language (GPL) such as Java, C, and Python, DSL focuses on a specific field and has limited expression ability, such as displaying web pages. HTML, SQL for database processing, regular expressions for retrieving or replacing text, Gradle for automating builds, etc. [0004] At present, the commonly used dynamic compilation method...

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/41G06F8/427
Inventor 李俊蓉高飞
Owner BEIJING BAIDU NETCOM SCI & 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