Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Condition compiling implementation method and device, equipment and storage medium

An implementation method and conditional compilation technology, applied in the computer field, can solve problems such as limiting the flexibility of Dart programming, Dart technology application, and not supporting conditional compilation, so as to improve flexibility and reduce limitations

Pending Publication Date: 2021-06-25
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When compiling Dart code, the Dart compiler can only detect and judge the local library files involved in the code, and does not support conditional compilation. It cannot introduce non-local library files through conditional compilation, which greatly limits The flexibility of Dart programming and the application of Dart technology

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, in the case of no conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.

[0040] In the following description, many specific details are set forth in order to fully understand the present disclosure, but the present disclosure can also be implemented in other ways than described here; obviously, the embodiments in the description are only some of the embodiments of the present disclosure, and Not all examples.

[0041] figure 1 is a flow chart of a method for implementing conditional compilation provided by an embodiment of the present disclosure, and the method can be executed by a Dart compiler, such as figure 1 As shown, the method provided in this embodiment includes the following steps:

[0042] ...

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 embodiment of the invention relates to a condition compiling implementation method and device, equipment and a storage medium, and the method comprises the steps: compiling a Dart code of a project, obtaining the information of an import condition in an import statement when the import statement used for importing a non-local library file is compiled, and obtaining the information of the import condition in the import statement; searching the assignment of the import condition from the pre-obtained assignment of the condition in the Dart code, and when the assignment of the import condition meets the preset condition, importing the non-local library file pointed when the assignment of the import condition meets the preset condition into the Dart code for compiling, so that the condition compiling based on the Dart programming language is realized. According to the method, the non-local library file can be imported for compiling in Dart compiling, so that the flexibility of Dart programming is improved, and the limitation of Dart technology application is reduced.

Description

technical field [0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a method, device, device, and storage medium for implementing conditional compilation. Background technique [0002] In the related art, Dart is a commonly used computer programming language. When compiling Dart code, the Dart compiler can only detect and judge the local library files involved in the code, and does not support conditional compilation. It cannot introduce non-local library files through conditional compilation, which greatly limits The flexibility of Dart programming and the application of Dart technology. Contents of the invention [0003] In order to solve the above technical problems or at least partly solve the above technical problems, embodiments of the present disclosure provide a conditional compilation implementation method, device, device and storage medium. [0004] The first aspect of the embodiments of the present...

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/41G06F8/30
CPCG06F8/443G06F8/315
Inventor 刘丰恺
Owner BEIJING BYTEDANCE NETWORK 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
Eureka Blog
Learn More
PatSnap group products