Cross-platform runnable program generation method and device, medium and electronic equipment

A running program, cross-platform technology, applied in the computer field, can solve the problems of poor code readability, great development difficulty, and difficult maintenance.

Pending Publication Date: 2020-10-23
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, when using the Dart language for development under the Flutter framework, the method of stacking components is usually adopted, which is relatively difficult to develop, and the code is poorly readable and difficult to maintain

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
  • Cross-platform runnable program generation method and device, medium and electronic equipment
  • Cross-platform runnable program generation method and device, medium and electronic equipment
  • Cross-platform runnable program generation method and device, medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein; A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only, and are not intended to limit the protection scope of the present disclosure.

[0028] It should be understood that the various steps described in the method implementations of the present disclosure may be executed in different orders, and / or executed in parallel. Additionally, method embodiments may include additional steps and / or omit performing illustrated steps. The scope of the present disclosure is not limited in this regard. ...

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 cross-platform runnable program generation method and device, a medium and electronic equipment. The cross-platform runnable program generation method comprises the steps of obtaining a first description code under a cross-platform framework, wherein the first description code is a code for defining preset processing logic based on a domain-specific language; analyzing thefirst description code based on a grammatical analysis model, and obtaining a first abstract syntax tree corresponding to the first description code; and compiling the first abstract syntax tree by using a cross-platform framework compiler to generate a core binary file, wherein the core binary file can run in a virtual machine of a cross-platform framework. According to the cross-platform runnable program generation method and device, a complex hierarchical structure during development by adopting a Dart language is avoided, and hierarchical retraction and nesting are continuously carried out. And the code is more optimized, so that the execution is faster. And errors can be found in the compiling process of the abstract syntax tree, so that the type is safer. And the logic readability of the code under the cross-platform framework is effectively improved by the grammatical characteristics of the domain-specific language.

Description

technical field [0001] The present disclosure relates to the field of computer technology, in particular, to a method, device, medium and electronic equipment for generating an executable program across platforms. Background technique [0002] At present, the cross-platform development framework has been widely used due to its advantages of cross-platform, high fidelity and high performance. on various platforms. [0003] Take the Flutter framework as an example, which is an open-source mobile application development framework that can run on iOS or Android platforms based on the Flutter framework. The Flutter framework provides a wealth of components and interfaces, allowing developers to quickly add local extensions to the Flutter framework. [0004] The Flutter framework uses the Dart language as the development language. The Dart language is a static language that runs on a specific Dart VM virtual machine. It provides high-speed pre-run compilation (English full name ...

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
IPC IPC(8): G06F8/20G06F8/41
CPCG06F8/22G06F8/42
Inventor刘丰恺
OwnerBEIJING BYTEDANCE NETWORK TECH CO LTD