Conversion method and system for codes between different platforms
A conversion method and conversion system technology, applied in the direction of program code conversion, software maintenance/management, reverse engineering, etc., can solve the problem of developing the same function APP many times, reduce the workload and development cycle, improve the online speed, users Experience the best results
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0070] This embodiment provides a code conversion method between different platforms, the conversion method includes:
[0071] Step 11, through the conversion tool, convert the business code under the first platform into a syntax tree;
[0072] Step 12, retrieve events and functions in the business code under the first platform through the syntax tree;
[0073] Step 13, retrieve the conversion rule corresponding to the event and the function in the registry, and put the retrieved conversion rule into the corresponding position of the event and the function in the syntax tree;
[0074] The registry includes preset conversion rules for converting events and functions under the first platform to corresponding events and functions under the second platform;
[0075] Step 14: Convert the syntax tree into business codes under the second platform by using the conversion tool.
[0076] In this embodiment, the conversion between the syntax tree and the code is realized by AST, wherei...
Embodiment 2
[0079] This embodiment provides a code conversion method between different platforms, so Figure 4 As shown, the conversion method includes:
[0080] Step 21, compare the business code under the first platform and the business code under the second platform to obtain the difference point of the business code under the two platforms;
[0081] Step 22, according to the difference point, make a registry;
[0082] The registry includes preset conversion rules for converting events and functions under the first platform to corresponding events and functions under the second platform;
[0083] Step 23, standardize the business code under the first platform;
[0084] Step 24, through the conversion tool, convert the business code under the first platform into a syntax tree;
[0085] Step 25, retrieving events and functions in the business code under the first platform through the syntax tree;
[0086] Step 26, retrieve the conversion rule corresponding to the event and the functi...
Embodiment 3
[0116] This embodiment provides a code conversion system between different platforms, wherein, in this embodiment, the code under the first platform is stored in the first folder; the code under the second platform is stored in the second folder.
[0117] Place Figure 10 As shown, the conversion system includes: a syntax tree conversion module 41, a business code conversion module 42, a specification module 43, a comparison module 44, a registry making module 45, a mapping module 46, a frame code conversion module 47, a theme matching module 48, Traverse module 49 , common code conversion module 50 and verification module 51 .
[0118] The syntax tree conversion module 41 is used to convert the business code under the first platform into a syntax tree by using a conversion tool. In this embodiment, the conversion tool is AST.
[0119] The service code conversion module 42 is configured to perform batch processing on the node contents in the syntax tree according to preset c...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com