Application program code conversion method and device, electronic equipment and storage medium

An application program and code conversion technology, applied in the computer field, can solve the problems of large increase in package volume, high development difficulty, and large resource consumption, and achieve the effect of improving development efficiency, improving development efficiency, and low development difficulty

Active Publication Date: 2020-09-25
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the underlying and terminal hardware of different platforms are very different, developers need to develop mobile applications for each platform, which consumes a lot of resources
[0003] In response to the above situation, a method of cross-platform development of mobile applications has emerged. At present, the main framework is J2objc. However, J2objc does not support the conversion of language specification, but only supports translation into OC language, and the underlying framework (framework) and lib( library) library, the size of the package increases greatly, the development is difficult and the efficiency is low

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
  • Application program code conversion method and device, electronic equipment and storage medium
  • Application program code conversion method and device, electronic equipment and storage medium
  • Application program code conversion method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the application clearer, the technical solutions of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the application. Obviously, the described embodiments are the Some embodiments of the technical solution, but not all embodiments. Based on the embodiments described in the application documents, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the technical solutions of the present application.

[0038] Some concepts involved in the embodiments of the present application are introduced below.

[0039] Grammatical element: refers to the basic constituent unit of the code. In the embodiment of the present application, if the source code file of the application program is Java language, the language element in the source code...

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 relates to the technical field of computers, and specially relates to an application program code conversion method and device, the electronic equipment and the storage medium, which areused for improving the cross-platform development efficiency of an application program, and the method comprises the steps of obtaining the data structure of each syntax element in a source code fileof the application program to be converted and the context incidence relation between the syntax elements in the source code file; obtaining a mapping relationship between the data structure of the syntax element in the source code file and the data structure of the syntax element in the target language system; translating each syntax element in the source code file into a target language based on the mapping relationship to obtain a target code corresponding to each syntax element; and integrating the target codes corresponding to the syntax elements according to a context association relationship to obtain a converted target code file. Due to the fact that the invention belongs to the source code level conversion, only application program source codes need to be developed once, translation can be conducted based on syntax elements, and development efficiency is improved.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to an application program code conversion method, device, electronic equipment and storage medium. Background technique [0002] Mobile application development is based on different platforms. Existing platform is a lot, for example ios platform, Android (Android) platform, Blackberry (Blackberry) platform, WebOS platform, Symbian (Symbian) platform etc. Because different platforms have very different underlying and terminal hardware, developers need to develop mobile applications for each platform, which consumes a lot of resources. [0003] In response to the above situation, a method of cross-platform development of mobile applications has emerged. At present, the main framework is J2objc. However, J2objc does not support conversion language specification, only supports translation to OC language, and the underlying framework (framework) and lib( library) librar...

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/40
CPCG06F8/40
Inventor 魏常伟
Owner TENCENT TECH (SHENZHEN) 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