CN116841559A - Transcoding method, device, apparatus, medium and program product - Google Patents

Transcoding method, device, apparatus, medium and program product Download PDF

Info

Publication number
CN116841559A
CN116841559A CN202310857270.3A CN202310857270A CN116841559A CN 116841559 A CN116841559 A CN 116841559A CN 202310857270 A CN202310857270 A CN 202310857270A CN 116841559 A CN116841559 A CN 116841559A
Authority
CN
China
Prior art keywords
target
code
program
target code
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310857270.3A
Other languages
Chinese (zh)
Inventor
何子南
王凯
李炯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310857270.3A priority Critical patent/CN116841559A/en
Publication of CN116841559A publication Critical patent/CN116841559A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/37Compiler construction; Parser generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides a transcoding method, which can be applied to the technical field of information security. The code conversion method comprises the following steps: acquiring source program codes and target program languages, wherein the source program codes are written in the source program language; respectively acquiring a parser and an encoder based on the source program language and the target program language; parsing the source program code into intermediate data based on the parser; and recoding the intermediate data based on the encoder to obtain a first target code, wherein the first target code accords with the writing requirement of the target programming language. The present disclosure also provides a transcoding apparatus, device, storage medium, and program product.

Description

Transcoding method, device, apparatus, medium and program product
Technical Field
The present disclosure relates to the field of information security technology, and in particular, to a transcoding method, apparatus, device, medium, and program product.
Background
In the process of creating and transforming, in order to adapt to a new system, it is often necessary to transform the language used by the program in the original old system into the language used by the program in the new system, so as to inherit the logic of the program in the original old system.
There are a number of transcoding schemes in the prior art, one of which is to implement transcoding by means of a transcoding tool. Existing transcoding tools implement transcoding by limiting the language of the source code and the language of the object code, e.g., PLSQL to Java, EGL to Java.
Then, for different reconstruction projects, it is necessary to develop a transcoding tool that has a one-to-one correspondence between different source code languages and target code languages, and when for a new reconstruction project, the historical transcoding tool cannot be effectively utilized, and the development cost of the new transcoding tool is increased.
Disclosure of Invention
In view of the foregoing, the present disclosure provides transcoding methods, apparatus, devices, media, and program products that improve transcoding tool reusability and reduce transcoding costs.
According to a first aspect of the present disclosure, there is provided a transcoding method comprising: acquiring source program codes and target program languages, wherein the source program codes are written in the source program language; respectively acquiring a parser and an encoder based on the source program language and the target program language; parsing the source program code into intermediate data based on the parser; and recoding the intermediate data based on the encoder to obtain a first target code, wherein the first target code accords with the writing requirement of the target programming language.
According to an embodiment of the disclosure, after the recoding the intermediate data based on the encoder, obtaining a first object code, the method further includes: acquiring a source program framework and a target program framework; acquiring an adapter based on the source program framework and the target program framework; and adapting the first target code based on the adapter to obtain a second target code, wherein the second target code meets the writing requirement of the target program framework.
According to an embodiment of the disclosure, the parsing the source program code into intermediate data based on the parser includes: acquiring a preset analysis chain based on the source program language, wherein the preset analysis chain comprises a plurality of grammar resolvers which are arranged in sequence; and analyzing the source program code based on the plurality of grammar analyzers which are arranged in sequence to obtain intermediate data, wherein the intermediate data is serialized data, and the serialized data comprises logic information of the source program code, a code structure of the source program code and a data structure of the source program code.
According to an embodiment of the disclosure, the recoding the intermediate data based on the encoder, to obtain a first object code includes: acquiring a preset compiling chain based on the target program language, wherein the preset compiling chain comprises a plurality of grammar compilers which are arranged in sequence; and encoding the serialized data based on the plurality of grammar compilers arranged in sequence to obtain the first target code.
According to an embodiment of the disclosure, the adapting, based on the adapter, the first object code to obtain a second object code includes: traversing the first object code, and identifying a trigger keyword; and modifying the first target code according to preset adaptation logic based on the trigger key word to obtain the second target code.
According to an embodiment of the disclosure, the preset adapting logic includes a data structure of a framework, and the modifying the first target code according to the preset adapting logic based on the trigger key to obtain the second target code includes: acquiring a data structure of a frame in the first target code based on the trigger key; and mapping according to the data structure of the target frame based on the data structure of the frame in the first target code to obtain the data structure of the frame in the second target code.
According to an embodiment of the disclosure, the preset adapting logic further includes transaction control of a framework, and the modifying the first target code according to the preset adapting logic based on the trigger key to obtain the second target code further includes: based on the trigger key, acquiring transaction control of a frame in the first target code; and replacing according to the transaction control of the target frame based on the transaction control of the frame in the first target code to obtain the transaction control of the frame in the second target code.
According to an embodiment of the disclosure, the preset adapting logic further includes an access manner of a framework, where the access manner of the framework includes a program access manner, and the modifying the first object code according to the preset adapting logic based on the trigger key to obtain the second object code further includes: acquiring a program access mode of a frame in the first target code based on the trigger key; and configuring according to the program access mode of the target frame based on the program access mode of the frame in the first target code to obtain the program access mode of the frame in the second target code.
According to an embodiment of the present disclosure, the access manner of the target program includes a database access manner, and the modifying, based on the trigger key, the first target code according to a preset adaptation logic to obtain the second target code further includes: based on the trigger key words, acquiring a database access mode of a frame in the first target code; and configuring according to the database access mode of the target frame based on the database access mode of the frame in the first target code to obtain the database access mode of the frame in the second target code.
In a second aspect of the present disclosure, there is provided a transcoding device comprising: the first acquisition module is used for acquiring source program codes and target program languages, wherein the source program codes are written in the source program languages; the second acquisition module is used for respectively acquiring a parser and an encoder based on the source program language and the target program language; the analysis module is used for analyzing the source program code into intermediate data based on the analyzer; and the encoding module is used for recoding the intermediate data based on the encoder to obtain a first target code, wherein the first target code accords with the writing requirement of the target program language.
According to an embodiment of the present disclosure, the transcoding device further comprises: the third acquisition module is used for acquiring a source program framework and a target program framework; a fourth obtaining module, configured to obtain an adapter based on the source program framework and the target program framework; and the adaptation module is used for carrying out adaptation operation on the first target code based on the adapter to obtain a second target code, wherein the second target code meets the writing requirement of the target program framework.
According to an embodiment of the disclosure, the parsing module is further configured to obtain a preset parsing chain based on the source program language, where the preset parsing chain includes a plurality of syntax parsers arranged in sequence; and analyzing the source program code based on the plurality of grammar analyzers which are arranged in sequence to obtain intermediate data, wherein the intermediate data is serialized data, and the serialized data comprises logic information of the source program code, a code structure of the source program code and a data structure of the source program code.
According to an embodiment of the disclosure, the encoding module is configured to obtain a preset compiling chain based on the target program language, where the preset compiling chain includes a plurality of grammar compilers arranged in sequence; and encoding the serialized data based on the plurality of grammar compilers arranged in sequence to obtain the first target code.
According to an embodiment of the disclosure, the adapting module is further configured to traverse the first object code and identify a trigger key; and modifying the first target code according to preset adaptation logic based on the trigger key word to obtain the second target code.
According to an embodiment of the disclosure, the preset adaptation logic includes a data structure of a frame, and the adaptation module is further configured to obtain, based on the trigger key, the data structure of the frame in the first object code; and mapping according to the data structure of the target frame based on the data structure of the frame in the first target code to obtain the data structure of the frame in the second target code.
According to an embodiment of the disclosure, the preset adaptation logic further includes a transaction control of a frame, and the adaptation module is further configured to obtain the transaction control of the frame in the first object code based on the trigger key; and replacing according to the transaction control of the target frame based on the transaction control of the frame in the first target code to obtain the transaction control of the frame in the second target code.
According to an embodiment of the disclosure, the preset adaptation logic further includes an access manner of a frame, where the access manner of the frame includes a program access manner, and the adaptation module is further configured to obtain, based on the trigger key, the program access manner of the frame in the first object code; and configuring according to the program access mode of the target frame based on the program access mode of the frame in the first target code to obtain the program access mode of the frame in the second target code.
According to an embodiment of the disclosure, the access manner of the target program includes a database access manner, and the adaptation module is further configured to obtain the database access manner of the frame in the first target code based on the trigger key; and configuring according to the database access mode of the target frame based on the database access mode of the frame in the first target code to obtain the database access mode of the frame in the second target code.
In a third aspect of the present disclosure, there is provided an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the transcoding method described above.
In a fourth aspect of the present disclosure, there is also provided a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described transcoding method.
In a fifth aspect of the present disclosure, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements the above-described transcoding method.
In the embodiment of the disclosure, mutually independent and complementary interference resolvers and encoders are respectively arranged, wherein the resolvers and the encoders are respectively packaged with resolving logics from a certain program language to a certain data structure and coding logics from the certain data structure to a certain program language, in the process of transcoding, the resolvers and the encoders in any language can be freely combined and matched to be configured, and a transcoding tool obtained after the resolvers and the encoders are assembled is used for generating program codes in a target language.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a transcoding method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a transcoding method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of another transcoding method according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a source code parsing method according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates an object code encoding method according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates an object code adaptation method according to an embodiment of the present disclosure;
FIG. 7 schematically illustrates a schematic diagram of a transcoding tool, according to an embodiment of the present disclosure;
FIG. 8 schematically illustrates a schematic diagram of another transcoding tool, according to an embodiment of the present disclosure;
FIG. 9 schematically illustrates a schematic diagram of another transcoding tool, according to an embodiment of the present disclosure;
FIG. 10 schematically illustrates a block diagram of a transcoding device, according to an embodiment of the present disclosure; and
FIG. 11 schematically illustrates a block diagram of an electronic device adapted to implement a transcoding method, according to an embodiment of the present disclosure
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The existing transcoding tool defines the language type of the source code and the language type of the target code, for example, a certain transcoding tool directly packages a function of converting PLSQL into Java and a certain transcoding tool directly packages a function of converting EGL into Java. In the process of project implementation, there are cases where code types (program languages) overlap, and tools configured by a project that has been completed historically cannot be effectively reused, for example, cobol needs to be converted into PLSQL under a certain host project, EGL code needs to be converted into Java, and EGL needs to be converted into PLSQL for certain scenarios. This makes it necessary to develop 3 separate tools simultaneously to complete the code language conversion for these 3-class transcoding scenarios.
To solve the technical problems existing in the prior art, an embodiment of the present disclosure provides a transcoding method, including: acquiring source program codes and target program languages, wherein the source program codes are written in the source program language; respectively acquiring a parser and an encoder based on the source program language and the target program language; parsing the source program code into intermediate data based on the parser; and recoding the intermediate data based on the encoder to obtain a first target code, wherein the first target code accords with the writing requirement of the target programming language.
In the embodiment of the disclosure, mutually independent and complementary interference resolvers and encoders are respectively arranged, wherein the resolvers and the encoders are respectively packaged with resolving logics from a certain program language to a certain data structure and coding logics from the certain data structure to a certain program language, in the process of transcoding, the resolvers and the encoders in any language can be freely combined and matched to be configured, and a transcoding tool obtained after the resolvers and the encoders are assembled is used for generating program codes in a target language.
Fig. 1 schematically illustrates an application scenario diagram of a transcoding method according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the transcoding method provided by the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the transcoding device provided by the embodiments of the present disclosure may be generally provided in the server 105. The transcoding method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the transcoding means provided by the embodiments of the present disclosure may also be provided in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The transcoding method of the disclosed embodiment will be described in detail below with reference to fig. 2 to 9 based on the scenario described in fig. 1.
Fig. 2 schematically illustrates a flow chart of a transcoding method according to an embodiment of the present disclosure.
Fig. 7 schematically illustrates a schematic diagram of a transcoding tool, according to an embodiment of the present disclosure.
As shown in fig. 2, the transcoding method of this embodiment includes operations S210 to S240, and the transcoding method may be performed by the server 105.
In operation S210, source program code and a target program language are acquired, the source program code being written in the source program language.
In operation S220, a parser and an encoder are acquired, respectively, based on the source program language and the target program language.
Specifically, the parser is selected by the source program language and the encoder is selected by the target program language. The parser encapsulates the parsing logic of the active program language into intermediate data of the self-lapping data structure, and the encoder encapsulates the encoding logic of the intermediate data of the self-lapping data structure into the target program language. For example, the decoder is packaged with analysis logic for analyzing the Cobol language into intermediate data of the self-grinding data structure; for another example, the encoder has encapsulated therein coding logic for converting intermediate data of the self-grinding data structure into Java language. Then, as shown in the above example, in the project that needs to implement conversion of Cobol into Java, if the Cobol decoder and the Java encoder are preconfigured, the Cobol decoder and the Java encoder are directly combined to form a Cobol-Java transcoding tool; for another example, the function of converting EGL to Java is realized by combining an EGL parser and a Java parser.
As shown in fig. 7, the parser and the encoder are independent of each other, and may be freely combined, wherein the parser parses the source code and forms a self-grinding data structure, and the encoder forms the encoding of the target language through the self-grinding data structure.
In operation S230, the source program code is parsed into intermediate data based on the parser.
Specifically, the parser is responsible for parsing execution logic in source program code, including: logic information, code structures, and data structures. The logic information refers to grammar of which methods are used in the code, such as assignment, flow jump, call and the like; the code structure refers to which methods (or definitions) etc. are used/introduced in the code, and the data structure refers to the data structure of the code itself. For example, which SQL cursors are defined, which public classes (or definitions) are implemented, and so on.
It should be noted that, in addition to the self-grinding data structure, the intermediate data may also use a conventional abstract syntax tree, and of course, in the embodiment of the present disclosure, the reason that the structure of the intermediate data does not use the abstract syntax tree is that: the method can reduce the creation and maintenance cost of the abstract grammar tree, and one of the initial design purposes of the self-research data structure is to support the subsequent expansion of the analysis information, so that grammar information related to all languages is not required to be supported at one time. Because the parser and encoder are separate from each other, in the absence of syntax information, the parser can be optimized to supplement the missing information.
In order to ensure maintainability of the parser, the parser may be composed of a plurality of syntax parsers, specifically, the parsing method is as follows:
fig. 4 schematically illustrates a source code parsing method according to an embodiment of the present disclosure.
As shown in fig. 4, the source code parsing method of this embodiment includes operations S410 to S420, and operations S410 to S420 may at least partially perform operation S230 described above.
In operation S410, a preset parsing chain including a plurality of syntax parsers arranged in sequence is acquired based on the source program language.
Specifically, the resolvers exist in a chained structure, the resolvers are included in the chain, and when a certain resolvers need to be added, the operation can be directly performed on a certain resolvers in the chain, for example, new resolvers are added at the tail end according to the ordering of the chain.
In operation S420, the source program code is parsed based on the plurality of syntax parsers arranged in sequence, to obtain intermediate data, which is serialized data including logic information of the source program code, a code structure of the source program code, and a data structure of the source program code.
Specifically, the parsing process traverses the source program code through a parsing chain, that is, the logic information, the code structure and the data structure in the source program code are matched through a plurality of grammar parsers arranged in sequence, and a serialized file is output, that is, the serialized file is intermediate data, and the intermediate data can completely reflect the executed content of the source program code.
In operation S240, the intermediate data is recoded based on the encoder, to obtain a first object code, where the first object code meets the writing requirements of the object program language.
Since the serialized intermediate file is output after performing the above operations S410 to S420, the encoding process of the encoder may be the inverse of the above operations S410 to S420, and the specific encoding method is as follows:
fig. 5 schematically illustrates an object code encoding method according to an embodiment of the present disclosure.
As shown in fig. 5, the object code encoding method of this embodiment includes operations S510 to S520, and operations S510 to S520 may at least partially perform operation S240 described above.
In operation S510, a preset compilation chain including a plurality of grammar compilers arranged in order is acquired based on the target program language.
In operation S520, the serialized data is encoded based on the plurality of syntax compilers arranged in sequence, resulting in the first object code.
Similar to the parsing principle of the parser described above, the encoding logic is done based on serialized intermediate data, except that the parser uses syntax logic such as Cobol language and the encoder uses encoding logic such as Java language.
In the embodiment of the disclosure, mutually independent and complementary interference resolvers and encoders are respectively arranged, wherein the resolvers and the encoders are respectively packaged with resolving logics from a certain program language to a certain data structure and coding logics from the certain data structure to a certain program language, in the process of transcoding, the resolvers and the encoders in any language can be freely combined and matched to be configured, and a transcoding tool obtained after the resolvers and the encoders are assembled is used for generating program codes in a target language.
Note that, operations S210 to S240 described above only discuss performing transcoding without considering the frame difference (the frame difference may be the same frame down-conversion, or the different frame differences are small so as not to be considered). However, in the project of migration transformation between old and new systems, migration is performed between frames with larger differences (for example, a host frame is transformed into a platform frame), and thus, not only the differentiated transformation between different code languages but also the differentiated transformation between frames where different programs are located are simply involved, for example, the programs are migrated from an old system frame CICS (a commercialized frame, which is more suitable for a host) to a frame SpringBoot (a frame which is more popular in the market and is more suitable for a platform) used by the new system, and in the migration process of the frames, adaptation needs to be performed based on the differences between the CICS and the SpringBoot. It is to be understood that the CICS and SpringBoot are only exemplary, and the transcoding method is applicable to all existing frameworks on the market, and these existing frameworks are not described in detail herein.
Fig. 3 schematically illustrates a flow chart of another transcoding method according to an embodiment of the present disclosure.
Fig. 8 schematically illustrates a schematic diagram of another transcoding tool, according to an embodiment of the present disclosure.
Fig. 9 schematically illustrates a schematic diagram of another transcoding tool, according to an embodiment of the present disclosure.
As shown in fig. 3, another transcoding method of this embodiment includes operations S310 to S330 in addition to operations S210 to S240 described above, and operations S310 to S330 are performed after operation S240.
In operation S310, a source program frame and a target program frame are acquired.
In operation S320, an adapter is acquired based on the source program framework and the target program framework.
Specifically, the acquisition method of the adapter is different from the acquisition method of the parser/encoder, and in the acquisition method of the parser/encoder, only one code of the source program language and the target program language needs to be known, and the adapter needs to be aware of the difference between the source program framework and the target program framework, so that the source program framework and the target program framework need to be known at the same time. Then in configuring the adapters, it is also necessary to configure the adapters individually based on the differences in the frames.
In operation S330, the adapter is used to adapt the first object code to obtain a second object code, where the second object code meets the writing requirement of the object program framework.
As shown in fig. 8 and 9, the adapter may be encapsulated in an encoder, and in the process of implementing the encoding logic on the intermediate file, the logic for frame adaptation is implemented together; the adapter may also be independent outside of the parser and encoder. For the latter, the purpose of extracting the adapter alone is to decouple the language conversion from the framework adaptation, thereby enabling a flexible combination of the language conversion and the framework adaptation of the custom conversion. The encoder does not consider the adaptation to the target framework anymore, but only converts the code at the syntax level. For example, the code converted by only a tool combined with the PLSQL encoder by the EGL parser is actually a program in the EGL format written in PLSQL language. Although the post-conversion program cannot run, the underlying code can be provided quickly by simply assembling the system's existing parser and encoder. The adapter intervenes the conversion result according to the difference of the two grammars before and after conversion. Of course, the adapting process of the adapter may also be formed by manual intervention, for example, the first target code formed after the code conversion is performed, and the debugger converts the first target code into the second target code by transmitting the modification instruction through the interactive interface, and in this process, some operations of customizing modification may also be performed, which is not described herein.
As shown in connection with fig. 7, 8 and 9, because the encoder is separated from the adapter, the operation of the encoder is not affected even without the adapter, but the object code that may be generated cannot be run. By applying the offer-test procedure, the scene that the adapter does not cover at present is maximally identified. Extracting the grammar information required by adapting the scenes, checking whether the intermediate data of the current self-grinding data structure already contains the corresponding grammar, and when the intermediate data does not contain the corresponding grammar, configuring the corresponding rule in the adapter instead of the parser can also increase the maintainability of the scheme.
It should be noted that, part of the rules in the adapter are common for different language conversion processes, for example, in the process of converting the CICS framework into the SpringBoot framework, the common conversion rules can be applied to converting EGL into Java, and can be applied to converting Cobol into Java, and the like, so that the common conversion rules can be called as common rules, and therefore, in the framework conversion process, the common rules are not affected by code languages. Of course, it should be noted that, in the framework conversion process, besides the public rule, the custom rule customized by the system user is included, and the custom rule customized by the user is implemented consistently in the new and old systems, which is not described herein, and in the embodiment of the present disclosure, only the public rule is discussed.
For common rules for framework transformations in an adapter, the following is shown:
fig. 6 schematically illustrates an object code adaptation method according to an embodiment of the present disclosure.
As shown in fig. 6, the object code adaptation method of this embodiment includes operations S610 to S620, and the operations S610 to S620 may at least partially perform the above-described operation S330.
In operation S610, the first object code is traversed, and a trigger key is identified.
In operation S620, the first object code is modified according to a preset adaptation logic based on the trigger key, so as to obtain the second object code.
The trigger key comprises a plurality of trigger keys, and different trigger keys correspond to different adaptation logic.
In particular, the adapter may interfere with the conversion from the grammatical, methodological, procedural different levels:
1) For grammar level, for example, when the EGL method calls other methods, because the EGL language has no program access limit, and Java has, the position of the class where the calling method is located is checked when other methods are called in all EGL methods, and if the method is a common method, the method needs to be called according to the calling mode conforming to Java language rules.
2) For the method level, for example, all methods in PLSQL require a method header definition, whereas in Cobol there is no one. Additional method header definitions are required to generate PLSQL when converting all Cobol methods.
3) For the program level, for example in a Cobol to PLSQL scenario, the Cobol's CopyBook definition needs to be converted to the TYPE definition in PLSQL. The two definitions are different in both the definition mode and the use mode, so that all used scenes in the original Cobol program need to be adapted according to the converted TYPE.
Then, from the viewpoint of coding at the grammar, method and program level, the process of implementing transcoding is specifically implemented: data structures between frames, transaction control between frames, and access patterns between frames.
For data structures between frames, transaction control between frames, and access patterns between frames, the following is shown:
according to an embodiment of the disclosure, the preset adapting logic includes a data structure of a framework, and the modifying the first target code according to the preset adapting logic based on the trigger key to obtain the second target code includes: acquiring a data structure of a frame in the first target code based on the trigger key; and mapping according to the data structure of the target frame based on the data structure of the frame in the first target code to obtain the data structure of the frame in the second target code.
Specifically, the data structures used under different frameworks are different, for example, a data structure using a JavaBean under the source program framework and a data format using a Json under the target program framework. And mapping the definition, the assignment, the value and the like under the old framework to the definition, the assignment, the value and the like under the new framework, and realizing the mapping according to the compiling rule of the new framework. The conversion of the data structure of the framework involves the syntax level, the method level and the program level, and it should be noted that the data structure of the framework is different from the data structure of the code.
According to an embodiment of the disclosure, the preset adapting logic further includes transaction control of a framework, and the modifying the first target code according to the preset adapting logic based on the trigger key to obtain the second target code further includes: based on the trigger key, acquiring transaction control of a frame in the first target code; and replacing according to the transaction control of the target frame based on the transaction control of the frame in the first target code to obtain the transaction control of the frame in the second target code.
In particular, different frameworks have different manners of transaction control, e.g., commit/rollback operations in a host are implemented in a platform by virtue of multiple transaction management controls, and transaction commit/rollback may be accomplished by a class common to the platform. The transaction control mode is used for designing the method.
According to an embodiment of the disclosure, the preset adapting logic further includes an access manner of a framework, where the access manner of the framework includes a program access manner, and the modifying the first object code according to the preset adapting logic based on the trigger key to obtain the second object code further includes: acquiring a program access mode of a frame in the first target code based on the trigger key; and configuring according to the program access mode of the target frame based on the program access mode of the frame in the first target code to obtain the program access mode of the frame in the second target code.
Specifically, for the access mode of the program level, the deployment positions and the authorities in different frameworks are different, and corresponding transformation is implemented for the deployment positions and the authorities.
According to an embodiment of the present disclosure, the access manner of the target program includes a database access manner, and the modifying, based on the trigger key, the first target code according to a preset adaptation logic to obtain the second target code further includes: based on the trigger key words, acquiring a database access mode of a frame in the first target code; and configuring according to the database access mode of the target frame based on the database access mode of the frame in the first target code to obtain the database access mode of the frame in the second target code.
Specifically, for database access modes, for example, for transformation between an Oracle database and a MySQL database, adaptation of database access can be achieved by simulating cursor processing in the case where cursor processing is not present in one database and cursor processing is not present in the other database. The program access mode and the database access mode relate to the improvement of a grammar level and a program level.
Based on the transcoding method, the disclosure further provides a transcoding device. The device will be described in detail below in connection with fig. 10.
Fig. 10 schematically shows a block diagram of a transcoding device according to an embodiment of the present disclosure.
As shown in fig. 10, the transcoding device 1000 of this embodiment includes a first acquisition module 1010, a second acquisition module 1020, a parsing module 1030, and an encoding module 1040.
The first acquisition module 1010 is configured to acquire source program code and target program language, where the source program code is written in the source program language. In an embodiment, the first obtaining module 1010 may be configured to perform the operation S210 described above, which is not described herein.
The second obtaining module 1020 is configured to obtain a parser and an encoder, respectively, based on the source program language and the target program language. In an embodiment, the second obtaining module 1020 may be configured to perform the operation S220 described above, which is not described herein.
The parsing module 1030 is configured to parse the source program code into intermediate data based on the parser. In an embodiment, the parsing module 1030 may be used to perform the operation S230 described above, which is not described herein.
The encoding module 1040 is configured to recode the intermediate data based on the encoder to obtain a first object code, where the first object code meets the writing requirement of the target programming language. In an embodiment, the encoding module 1040 may be used to perform the operation S240 described above, which is not described herein.
In the embodiment of the disclosure, mutually independent and complementary interference resolvers and encoders are respectively arranged, wherein the resolvers and the encoders are respectively packaged with resolving logics from a certain program language to a certain data structure and coding logics from the certain data structure to a certain program language, in the process of transcoding, the resolvers and the encoders in any language can be freely combined and matched to be configured, and a transcoding tool obtained after the resolvers and the encoders are assembled is used for generating program codes in a target language.
According to an embodiment of the present disclosure, the transcoding device further comprises: the third acquisition module is used for acquiring a source program framework and a target program framework; a fourth obtaining module, configured to obtain an adapter based on the source program framework and the target program framework; and the adaptation module is used for carrying out adaptation operation on the first target code based on the adapter to obtain a second target code, wherein the second target code meets the writing requirement of the target program framework.
According to an embodiment of the disclosure, the parsing module is further configured to obtain a preset parsing chain based on the source program language, where the preset parsing chain includes a plurality of syntax parsers arranged in sequence; and analyzing the source program code based on the plurality of grammar analyzers which are arranged in sequence to obtain intermediate data, wherein the intermediate data is serialized data, and the serialized data comprises logic information of the source program code, a code structure of the source program code and a data structure of the source program code.
According to an embodiment of the disclosure, the encoding module is configured to obtain a preset compiling chain based on the target program language, where the preset compiling chain includes a plurality of grammar compilers arranged in sequence; and encoding the serialized data based on the plurality of grammar compilers arranged in sequence to obtain the first target code.
According to an embodiment of the disclosure, the adapting module is further configured to traverse the first object code and identify a trigger key; and modifying the first target code according to preset adaptation logic based on the trigger key word to obtain the second target code.
According to an embodiment of the disclosure, the preset adaptation logic includes a data structure of a frame, and the adaptation module is further configured to obtain, based on the trigger key, the data structure of the frame in the first object code; and mapping according to the data structure of the target frame based on the data structure of the frame in the first target code to obtain the data structure of the frame in the second target code.
According to an embodiment of the disclosure, the preset adaptation logic further includes a transaction control of a frame, and the adaptation module is further configured to obtain the transaction control of the frame in the first object code based on the trigger key; and replacing according to the transaction control of the target frame based on the transaction control of the frame in the first target code to obtain the transaction control of the frame in the second target code.
According to an embodiment of the disclosure, the preset adaptation logic further includes an access manner of a frame, where the access manner of the frame includes a program access manner, and the adaptation module is further configured to obtain, based on the trigger key, the program access manner of the frame in the first object code; and configuring according to the program access mode of the target frame based on the program access mode of the frame in the first target code to obtain the program access mode of the frame in the second target code.
According to an embodiment of the disclosure, the access manner of the target program includes a database access manner, and the adaptation module is further configured to obtain the database access manner of the frame in the first target code based on the trigger key; and configuring according to the database access mode of the target frame based on the database access mode of the frame in the first target code to obtain the database access mode of the frame in the second target code.
Any of the first acquisition module 1010, the second acquisition module 1020, the parsing module 1030, and the encoding module 1040 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules, according to embodiments of the present disclosure. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the first acquisition module 1010, the second acquisition module 1020, the parsing module 1030, and the encoding module 1040 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging the circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of the first acquisition module 1010, the second acquisition module 1020, the parsing module 1030, and the encoding module 1040 may be at least partially implemented as a computer program module, which when executed, may perform the corresponding functions.
Fig. 11 schematically illustrates a block diagram of an electronic device adapted to implement a transcoding method, according to an embodiment of the present disclosure.
As shown in fig. 11, an electronic device 1100 according to an embodiment of the present disclosure includes a processor 1101 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1102 or a program loaded from a storage section 1108 into a Random Access Memory (RAM) 1103. The processor 1101 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 1101 may also include on-board memory for caching purposes. The processor 1101 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flow according to embodiments of the present disclosure.
In the RAM 1103, various programs and data necessary for the operation of the electronic device 1100 are stored. The processor 1101, ROM 1102, and RAM 1103 are connected to each other by a bus 1104. The processor 1101 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 1102 and/or the RAM 1103. Note that the program may be stored in one or more memories other than the ROM 1102 and the RAM 1103. The processor 1101 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the disclosure, the electronic device 1100 may also include an input/output (I/O) interface 1105, the input/output (I/O) interface 1105 also being connected to the bus 1104. The electronic device 1100 may also include one or more of the following components connected to the I/O interface 1105: an input section 1106 including a keyboard, a mouse, and the like; an output portion 1107 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 1108 including a hard disk or the like; and a communication section 1109 including a network interface card such as a LAN card, a modem, and the like. The communication section 1109 performs communication processing via a network such as the internet. The drive 1110 is also connected to the I/O interface 1105 as needed. Removable media 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in drive 1110, so that a computer program read therefrom is installed as needed in storage section 1108.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 1102 and/or RAM 1103 described above and/or one or more memories other than ROM 1102 and RAM 1103.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to perform the methods provided by embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 1101. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program can also be transmitted, distributed over a network medium in the form of signals, downloaded and installed via the communication portion 1109, and/or installed from the removable media 1111. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 1109, and/or installed from the removable media 1111. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 1101. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (13)

1. A method of transcoding, comprising:
acquiring source program codes and target program languages, wherein the source program codes are written in the source program language;
Respectively acquiring a parser and an encoder based on the source program language and the target program language;
parsing the source program code into intermediate data based on the parser; and
and recoding the intermediate data based on the encoder to obtain a first target code, wherein the first target code accords with the writing requirement of the target program language.
2. The method of claim 1, wherein after said recoding said intermediate data based on said encoder, obtaining a first object code, further comprising:
acquiring a source program framework and a target program framework;
acquiring an adapter based on the source program framework and the target program framework; and
and carrying out adapting operation on the first target code based on the adapter to obtain a second target code, wherein the second target code meets the writing requirement of the target program framework.
3. The method of claim 1 or 2, wherein the parsing the source program code into intermediate data based on the parser comprises:
acquiring a preset analysis chain based on the source program language, wherein the preset analysis chain comprises a plurality of grammar resolvers which are arranged in sequence; and
And analyzing the source program code based on the plurality of grammar analyzers which are arranged in sequence to obtain intermediate data, wherein the intermediate data is serialized data, and the serialized data comprises logic information of the source program code, a code structure of the source program code and a data structure of the source program code.
4. A method according to claim 3, wherein said recoding said intermediate data based on said encoder to obtain a first object code comprises:
acquiring a preset compiling chain based on the target program language, wherein the preset compiling chain comprises a plurality of grammar compilers which are arranged in sequence; and
and encoding the serialized data based on the plurality of grammar compilers arranged in sequence to obtain the first target code.
5. The method of claim 2, wherein the adapting the first object code based on the adapter to obtain a second object code comprises:
traversing the first object code, and identifying a trigger keyword; and
and modifying the first target code according to preset adaptation logic based on the trigger key word to obtain the second target code.
6. The method of claim 5, wherein the preset adaptation logic comprises a data structure of a framework,
the step of modifying the first target code based on the trigger key according to preset adaptation logic to obtain the second target code comprises the following steps:
acquiring a data structure of a frame in the first target code based on the trigger key; and
and mapping according to the data structure of the target frame based on the data structure of the frame in the first target code to obtain the data structure of the frame in the second target code.
7. The method of claim 5, wherein the preset adaptation logic further comprises a transactional control of a framework,
the step of modifying the first target code based on the trigger key according to preset adaptation logic to obtain the second target code, and the step of:
based on the trigger key, acquiring transaction control of a frame in the first target code; and
and replacing according to the transaction control of the target frame based on the transaction control of the frame in the first target code to obtain the transaction control of the frame in the second target code.
8. The method of claim 5, wherein the preset adaptation logic further comprises an access manner of a framework, the access manner of the framework comprising a program access manner,
The step of modifying the first target code based on the trigger key according to preset adaptation logic to obtain the second target code, and the step of:
acquiring a program access mode of a frame in the first target code based on the trigger key; and
and configuring according to the program access mode of the target frame based on the program access mode of the frame in the first target code to obtain the program access mode of the frame in the second target code.
9. The method of claim 8, wherein the access means of the object program comprises a database access means,
the step of modifying the first target code based on the trigger key according to preset adaptation logic to obtain the second target code, and the step of:
based on the trigger key words, acquiring a database access mode of a frame in the first target code; and
and configuring according to the database access mode of the target frame based on the database access mode of the frame in the first target code to obtain the database access mode of the frame in the second target code.
10. A transcoding device, comprising:
the first acquisition module is used for acquiring source program codes and target program languages, wherein the source program codes are written in the source program languages;
The second acquisition module is used for respectively acquiring a parser and an encoder based on the source program language and the target program language;
the analysis module is used for analyzing the source program code into intermediate data based on the analyzer; and
and the encoding module is used for recoding the intermediate data based on the encoder to obtain a first target code, wherein the first target code accords with the writing requirement of the target programming language.
11. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-9.
12. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1 to 9.
13. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 9.
CN202310857270.3A 2023-07-13 2023-07-13 Transcoding method, device, apparatus, medium and program product Pending CN116841559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310857270.3A CN116841559A (en) 2023-07-13 2023-07-13 Transcoding method, device, apparatus, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310857270.3A CN116841559A (en) 2023-07-13 2023-07-13 Transcoding method, device, apparatus, medium and program product

Publications (1)

Publication Number Publication Date
CN116841559A true CN116841559A (en) 2023-10-03

Family

ID=88161450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310857270.3A Pending CN116841559A (en) 2023-07-13 2023-07-13 Transcoding method, device, apparatus, medium and program product

Country Status (1)

Country Link
CN (1) CN116841559A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117075912A (en) * 2023-10-16 2023-11-17 芯行纪科技有限公司 Method for program language conversion, compiling method and related equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117075912A (en) * 2023-10-16 2023-11-17 芯行纪科技有限公司 Method for program language conversion, compiling method and related equipment
CN117075912B (en) * 2023-10-16 2023-12-26 芯行纪科技有限公司 Method for program language conversion, compiling method and related equipment

Similar Documents

Publication Publication Date Title
US11422778B2 (en) Development environment for real-time dataflow programming language
CN110096338B (en) Intelligent contract execution method, device, equipment and medium
CN111736840B (en) Method for compiling applet application, method for running applet application, storage medium and electronic device
US11531529B2 (en) Method and electronic device for deploying operator in deep learning framework
CN111338623A (en) Method, device, medium and electronic equipment for developing user interface
CN111913741A (en) Object interception method, device, medium and electronic equipment
CN116841559A (en) Transcoding method, device, apparatus, medium and program product
CN113419740A (en) Program data stream analysis method and device, electronic device and readable storage medium
CN113761871A (en) Rich text rendering method and device, electronic equipment and storage medium
CN113238739A (en) Plug-in development and data acquisition method, device, electronic equipment and medium
US20170131980A1 (en) Model driven architecture for network management and configuration
CN113032256A (en) Automatic test method, device, computer system and readable storage medium
CN114115884A (en) Management method and related device for programming service
CN109597611B (en) Front-end data flow control component development system, method, device and storage medium
US11803786B2 (en) Enterprise integration platform
US11797277B2 (en) Neural network model conversion method server, and storage medium
CN110990167B (en) Front-end communication method and device, storage medium and electronic equipment
CN113778451A (en) File loading method and device, computer system and computer readable storage medium
CN111782196A (en) MVP architecture-based development method and device
CN110673834A (en) Source code calling method and device, computer equipment and storage medium
CN113032003B (en) Development file export method, development file export device, electronic equipment and computer storage medium
CN111708526B (en) API writing method
CN116107588A (en) Program language conversion method, apparatus, device, medium, and program product
CN116820565A (en) Source code processing method, device, electronic equipment and medium
CN116301902A (en) Conversion method, apparatus, device, medium and program product for different program languages

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination