CROSS-PLATFORM CODE CONVERSION METHOD AND DEVICE

In a cross-platform code conversion method, a conversion device obtains first source code that is configured to run on a first platform. The conversion device performs syntactic analysis on the first source code to generate a syntax tree corresponding to the first source code, and identifies a to-be...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Le, Yongnian, Huang, Bo
Format: Patent
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:In a cross-platform code conversion method, a conversion device obtains first source code that is configured to run on a first platform. The conversion device performs syntactic analysis on the first source code to generate a syntax tree corresponding to the first source code, and identifies a to-be-converted syntax block in the syntax tree according to a syntax rule provided by a rule library. The conversion device converts the to-be-converted syntax block according to a conversion rule provided by the rule library to obtain a converted syntax block. The conversion device then generates, based on the obtained converted syntax block, second source code for running on a second platform.