Programming language conversion method and device for banking business and electronic equipment

By analyzing the C source code of banking business and constructing the syntax tree, combining preset syntax structure and language feature rules, efficient, accurate and automated conversion from C language to Java language is achieved, and the problems of low conversion efficiency and poor accuracy in the existing technology are solved.

CN119690454APending Publication Date: 2025-03-25RICHFIT INFORMATION TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311235077.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-22
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

When converting C language code into Java language code, the prior art has problems such as low conversion efficiency, poor accuracy and insufficient automation, especially when dealing with the core banking business, it is easy to cause errors.

Method used

By code analysis of the C source code of the target banking business, it determines its data type, library function type, database type, memory management rules and function conversion rules, builds an initial syntax tree, and generates the corresponding Java language syntax tree based on preset syntax structure mapping rules and language feature rules, and finally realizes the automated conversion of C source code to Java code.

Benefits of technology

It realizes efficient, accurate and automated conversion of C source code to Java language code, improves conversion efficiency and accuracy, reduces the workload of manual conversion, and shortens the delivery cycle of new functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690454A_ABST
    Figure CN119690454A_ABST
Patent Text Reader

Abstract

The invention provides a programming language conversion method and device for banking businesses and electronic equipment, and the method comprises the steps: carrying out the code analysis of a C source code of a to-be-detected target banking business, determining a data type, a library function type, a database type, a memory management rule and a function conversion rule corresponding to the C source code; according to the data type, the library function type, the database type, the memory management rule and the function conversion rule, determining an initial syntax tree corresponding to the C source code corresponding to the target bank business; based on the initial syntax tree, a preset syntax structure mapping rule and a preset language characteristic rule, determining a JAVA language syntax tree of a JAVA language corresponding to the C source code; and determining a JAVA language code corresponding to the target bank business according to the target abstract syntax tree and a target preset syntax rule. According to the method and the device, the C source code is efficiently, accurately and automatically converted into the JAVA language code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of code conversion, and in particular to a programming language conversion method, device and electronic equipment for banking services. Background Art

[0002] With the development of computer technology and the continuous expansion of banking business, the core business of banks needs to be continuously upgraded and optimized. The core business of many banks is still developed based on C language, which to a certain extent limits the scalability, maintainability and security of the system. Java language has become the mainstream language for banking business development due to its platform independence, object-oriented programming and good security. Most banks need a set of C2JAVA tools that meet the needs of the core business system of the bank to reduce the research and development workload of the core business system of the bank, realize the automatic migration of the program of the core business system of the bank, and shorten the delivery cycle of new functions.

[0003] Then, traditional JAVA tools on the market (C2J and CPP-to-Java-Converter_Source, etc.) usually use a grammatical rule-based conversion method, which has limitations in complex engineering scenarios, readability, and accuracy. This method is prone to errors when processing core banking business and has low conversion efficiency. The existing C language code for the core banking business has reached tens of millions of codes. If the conversion is only performed manually by converting the C language, the conversion efficiency is low and the accuracy of the code during the conversion process is low. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a programming language conversion method, device and electronic device for banking business. The embodiments provided in this application realize efficient, accurate and automatic conversion of C source code into JAVA language code.

[0005] The embodiment of the present application provides a programming language conversion method for banking services, and the programming language conversion method for banking services includes:

[0006] Parse the C source code of the target banking business to be detected to determine the data type, library function type, database type, memory management rules and function conversion rules corresponding to the C source code;

[0007] Determine an initial syntax tree corresponding to the C source code corresponding to the target banking business according to the data type, the library function type, the database type, the memory management rule, and the function conversion rule;

[0008] Determine a JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, the preset syntax structure mapping rule and the preset language characteristic rule;

[0009] According to the target abstract syntax tree and the target preset syntax rules, the JAVA language code corresponding to the target banking service is determined.

[0010] Further, the data types include basic data types, pointer data types, and array data types, and based on the initial syntax tree, the preset syntax structure mapping rule, and the preset language feature rule, determining a JAVA language syntax tree of the JAVA language corresponding to the C source code includes:

[0011] Determine the target data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the data type in the initial syntax tree and the preset syntax structure mapping rule;

[0012] Determine the target library function type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the library function type in the initial syntax tree and the preset syntax structure mapping rule;

[0013] Determine the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the database type in the initial syntax tree and the preset language characteristic rule;

[0014] Determine a target memory management rule in a JAVA language syntax tree of the JAVA language corresponding to the C source code according to the memory management rule in the initial syntax tree and the preset language characteristic rule;

[0015] Determine a target function conversion rule in a JAVA language syntax tree of the JAVA language corresponding to the C source code according to the function conversion rule in the initial syntax tree and the preset language characteristic rule;

[0016] A JAVA language syntax tree of the JAVA language corresponding to the C source code is determined according to the target library function type, the target database type, the target memory management rule and the target function conversion rule.

[0017] Further, the data types include basic data types, pointer data types, and array data types, and determining the target data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the data types in the initial syntax tree and the preset syntax structure mapping rules includes:

[0018] Determine the target basic data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the basic data type in the initial syntax tree and the preset syntax structure mapping rule;

[0019] Determine a target pointer data type in a JAVA language syntax tree of the JAVA language corresponding to the C source code according to the pointer data type in the initial syntax tree and a preset syntax structure mapping rule;

[0020] According to the array data type in the initial syntax tree and the preset syntax structure mapping rule, the array data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0021] Further, the step of determining the target function conversion rule in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the function conversion rule in the initial syntax tree and the preset language characteristic rule includes:

[0022] The global variables and static variables in the function conversion rules in the initial syntax tree are converted according to the preset syntax structure mapping rules to determine the target class variables in the JAVA language syntax tree of the JAVA language corresponding to the C source code.

[0023] Further, the step of determining the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the database type in the initial syntax tree and the preset language characteristic rule includes:

[0024] Determine, according to the database table corresponding to the database type in the initial syntax tree and the preset language characteristic rule, a Java mapping object corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code;

[0025] Determine Java connection configuration information corresponding to the target database type in a JAVA language syntax tree of the JAVA language corresponding to the C source code according to the connection configuration information corresponding to the database type in the initial syntax tree and the preset language characteristic rule;

[0026] Determine the Java ORM framework query type corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the SQL query type corresponding to the database type in the initial syntax tree and the preset language feature rules;

[0027] According to the error data processing type corresponding to the database type in the initial syntax tree and the preset language characteristic rule, the Java ORM framework abnormal data processing type corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0028] Further, the method of determining the Java ORM framework abnormal data processing type corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the error data processing type corresponding to the database type in the initial syntax tree and the preset language characteristic rule includes:

[0029] According to the error return value, error global variable and preset language characteristic rules corresponding to the database type in the initial syntax tree, the exception throwing data and the exception catching data in the JAVA language syntax tree of the JAVA language corresponding to the C source code are determined.

[0030] Furthermore, after determining the JAVA language code corresponding to the target banking service according to the target abstract syntax tree and the target preset syntax rule, the programming language conversion method for banking service further includes:

[0031] The syntax and semantics of the JAVA language code are verified so as to implement the checking of the JAVA language code.

[0032] The embodiment of the present application further provides a programming language conversion device for banking services, the programming language conversion device for banking services comprising:

[0033] A first determination module is used to parse the C source code of the target banking business to be detected, and determine the data type, library function type, database type, memory management rules and function conversion rules corresponding to the C source code;

[0034] A second determination module is used to determine an initial syntax tree corresponding to the C source code corresponding to the target banking business according to the data type, the library function type, the database type, the memory management rule and the function conversion rule;

[0035] A third determination module is used to determine a JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, the preset syntax structure mapping rule and the preset language characteristic rule;

[0036] The fourth determination module is used to determine the JAVA language code corresponding to the target banking service according to the target abstract syntax tree and the target preset syntax rule.

[0037] An embodiment of the present application also provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the programming language conversion method for banking business as described above are performed.

[0038] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the programming language conversion method for banking services as described above are executed.

[0039] The programming language conversion method, device and electronic device for banking business provided in the embodiments of the present application are compared with the programming language conversion in the prior art. The embodiments provided in the present application parse the C source code of the target banking business to be detected to determine the data type, library function type, database type, memory management rule and function conversion rule corresponding to the C source code, and determine the initial syntax tree corresponding to the C source code corresponding to the target banking business based on the data type, library function type, database type, memory management rule and function conversion rule, and then determine the JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, preset syntax structure mapping rules and preset language feature rules; and determine the JAVA language code corresponding to the target banking business based on the target abstract syntax tree and the target preset syntax rules, thereby realizing efficient, accurate and automatic conversion of the C source code into JAVA language code.

[0040] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 One of the flow charts of a programming language conversion method for banking services provided in an embodiment of the present application is shown;

[0043] Figure 2 A second flowchart of a method for converting a programming language of a banking service provided in an embodiment of the present application is shown;

[0044] Figure 3 One of the structural schematic diagrams of a programming language conversion device for banking services provided in an embodiment of the present application is shown;

[0045] Figure 4 A second structural diagram of a programming language conversion device for banking services provided in an embodiment of the present application is shown;

[0046] Figure 5 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown.

[0047] In the figure:

[0048] 300 - a programming language conversion device for banking business; 310 - a first determination module; 320 - a second determination module; 330 - a third determination module; 340 - a fourth determination module; 350 - a verification module; 500 - an electronic device; 510 - a processor; 520 - a memory; 530 - a bus. DETAILED DESCRIPTION

[0049] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0050] First, the application scenarios to which the present application is applicable are introduced. The present application can be applied in the field of computer software engineering technology.

[0051] Research has found that traditional JAVA tools on the market (C2J and CPP-to-Java-Converter_Source, etc.) usually use a grammatical rule-based conversion method, which has limitations in complex engineering scenarios, readability, and accuracy. This method is prone to errors when processing core banking business and has low conversion efficiency. The existing C language code for core banking business has reached tens of millions of codes. If the conversion is only performed manually by converting C language, the conversion efficiency is low and the code accuracy during the conversion process is low.

[0052] Based on this, the embodiments of the present application provide a programming language conversion method, device and electronic device for banking business, which realizes efficient, accurate and automatic conversion of C source code into JAVA language code.

[0053] See also Figure 1 , Figure 1 This is one of the flow charts of a method for converting a programming language of a banking service provided in an embodiment of the present application. Figure 1As shown in the figure, the programming language conversion method for banking services provided in the embodiment of the present application includes the following steps:

[0054] S101. Parse the C source code of the target banking business to be detected to determine the data type, library function type, database type, memory management rules and function conversion rules corresponding to the C source code.

[0055] In this step, in the process of parsing the C source code of the target banking business to be detected, it is necessary to conduct in-depth analysis and parsing of the C source code of the target banking business using common lexical analysis, syntax analysis and semantic analysis methods. This process can be completed by but is not limited to using a mature C language parser library.

[0056] S102. Determine an initial syntax tree corresponding to the C source code corresponding to the target banking business according to the data type, the library function type, the database type, the memory management rule, and the function conversion rule.

[0057] In this step, the initial syntax tree corresponding to the C source code in the embodiment provided by the present application is generated by deeply analyzing and parsing the C source code of the target banking business using commonly used lexical analysis, syntax analysis, and semantic analysis methods to determine the data type, the library function type, the database type, the memory management rules, and the function conversion rules.

[0058] S103: Determine a JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, a preset syntax structure mapping rule, and a preset language characteristic rule.

[0059] In this step, the data types include basic data types, pointer data types, and array data types. Based on the initial syntax tree, the preset syntax structure mapping rules, and the preset language feature rules, a JAVA language syntax tree of the JAVA language corresponding to the C source code is determined, including the following sub-steps:

[0060] Sub-step 1031: Determine the target data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the data type in the initial syntax tree and the preset syntax structure mapping rule.

[0061] In this step, there are certain differences in data types between the C source code and the JAVA language code, so data type conversion is required during the conversion process. Here, the basic data types, pointer data types, and array data types of the C source code are converted according to the preset syntax structure mapping rules, and the target data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0062] Wherein, sub-step 1031 includes the following sub-steps:

[0063] Sub-step 10311: Determine the target basic data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the basic data type in the initial syntax tree and the preset syntax structure mapping rule.

[0064] Thus, the basic data types in the initial syntax tree in the embodiment provided by the present application include but are not limited to: int and float; the target basic data types in the JAVA language syntax tree include but are not limited to: Integer and Float.

[0065] Sub-step 10312: Determine the target pointer data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the pointer data type in the initial syntax tree and the preset syntax structure mapping rule.

[0066] In the above description, the pointer data type in the initial syntax tree belongs to a complex data type. Therefore, when performing data type conversion, it is necessary to ensure the compatibility between complex data types to avoid potential type errors.

[0067] Sub-step 10313: Determine the array data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the array data type in the initial syntax tree and the preset syntax structure mapping rule.

[0068] In this way, the array data type in the initial syntax tree belongs to a complex data type. Therefore, when performing data type conversion, it is necessary to ensure the compatibility between complex data types to avoid potential type errors.

[0069] Sub-step 1032: Determine the target library function type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the library function type in the initial syntax tree and the preset syntax structure mapping rule.

[0070] In this step, many standard library functions and third-party libraries are used in the C source code of the target banking business detected in the embodiment provided by the present application, and these functions and libraries need to be processed during the conversion process, including converting the library function calls in the C language into corresponding calls in the Java language, and processing the third-party library dependencies of the C language code, expanding the existing Java library or developing a new Java library to achieve the same functions as the C language library.

[0071] Sub-step 1033: Determine the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the database type in the initial syntax tree and the preset language characteristic rule.

[0072] In this step, sub-step 1023 in the embodiment provided in this application includes the following sub-steps:

[0073] Sub-step 10331: Determine, according to the database table corresponding to the database type in the initial syntax tree and the preset language characteristic rules, the Java mapping object corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code.

[0074] Here, in the embodiment provided by the present application, the C source code in the initial syntax tree is converted into a call to the Java ORM framework, and the ORM (Object-Relational Mapping) framework is used to characterize the mapping of database tables to objects, so that developers can operate the database in an object-oriented manner. ORM simplifies the code and improves development efficiency.

[0075] Among them, firstly, the database table corresponding to the database type in the initial syntax tree needs to be mapped into a Java mapping object.

[0076] In this way, usually, a database table corresponds to a Java entity class, and the attributes in these entity classes correspond one-to-one to the fields in the database table. In the Java ORM framework - Hibernate, you can use XML mapping files or annotations to achieve mapping; and in the Java ORM framework - MyBatis, you can use XML mapping files to achieve mapping.

[0077] Sub-step 10332: Determine Java connection configuration information corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code based on the connection configuration information corresponding to the database type in the initial syntax tree and the preset language characteristic rules.

[0078] Here, after the mapping is implemented, the embodiment provided by the present application needs to configure the connection configuration information of the database. At this time, it is necessary to determine the corresponding Java connection configuration information based on the connection configuration information corresponding to the database type in the initial syntax tree and the preset language feature rules.

[0079] Among them, in Hibernate, you can use the hibernate.cfg.xml file to configure the Java connection configuration information corresponding to the standard database type; in MyBatis, you can use the mybatis-config.xml file to configure the Java connection configuration information corresponding to the standard database type.

[0080] Sub-step 10333: Determine the JavaORM framework query type corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the SQL query type corresponding to the database type in the initial syntax tree and the preset language feature rules.

[0081] Here, the embodiment provided by the present application converts the SQL query type and operation code in the initial syntax tree corresponding to the C source code into the query and operation of the Java ORM framework corresponding to the target database type in the JAVA language syntax tree of the AVA language according to the preset language characteristic rules.

[0082] In the Hibernate framework, HQL (Hibernate Query Language) or Criteria API can be used for querying.

[0083] In this way, dynamic SQL can be used for queries in the MyBatis framework.

[0084] In the above, in terms of operations, both frameworks provide rich API methods, such as save, update, and delete, etc., to implement addition, deletion, and modification operations.

[0085] Here, since the Java ORM framework usually has its own transaction processing function, it is necessary to convert the transaction processing code in the C source code into the transaction processing of the Java ORM framework. In Hibernate, the Transaction object can be used for transaction management; in MyBatis, the SqlSession object can be used for transaction management.

[0086] Sub-step 10334: Determine the Java ORM framework abnormal data processing type corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the error data processing type corresponding to the database type in the initial syntax tree and the preset language characteristic rules.

[0087] Here, in the embodiment provided by the present application, in the process of converting the error data processing type corresponding to the database type in the initial syntax tree and the preset language feature rules into the exception data processing type of the Java ORM framework, the Java ORM framework will usually throw errors in the database operation process as exceptions. Therefore, it is necessary to replace the error handling code in the original C source code with Java exception handling code, such as a try-catch block.

[0088] In this way, the embodiment provided by the present application successfully converts the code for calling the database from the C source code into the code for calling the JavaORM framework, thereby making better use of the object-oriented characteristics of Java and making the code easier to maintain and expand.

[0089] In this step, the embodiment provided by the present application determines the exception throwing data and exception catching data in the JAVA language syntax tree of the JAVA language corresponding to the C source code based on the error return value, error global variable and preset language characteristic rules corresponding to the database type in the initial syntax tree.

[0090] Sub-step 1034: Determine the target memory management rule in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the memory management rule in the initial syntax tree and the preset language characteristic rule.

[0091] In this step, there are great differences in memory management between C source code and JAVA language code. C source code requires manual allocation and release of memory, while Java language has a garbage collection mechanism. Therefore, during the conversion process, the memory allocation and release operations in the memory management rules in the C source code need to be converted into the target memory management rules in the Java language syntax tree.

[0092] Here, in the embodiment provided by the present application, the memory allocation and release operations in the memory management rules in the C source code are converted into the target memory management rules in the Java language syntax tree, which can be specifically:

[0093] Convert malloc and free operations in C source code to new operations in JAVA language code, and process pointer operations in C source code.

[0094] Sub-step 1035: Determine a target function conversion rule in a JAVA language syntax tree of the JAVA language corresponding to the C source code according to the function conversion rule in the initial syntax tree and the preset language characteristic rule.

[0095] In this step, sub-step 1025 in the embodiment provided by this application also includes the following sub-steps:

[0096] Sub-step 10351, convert the global variables and static variables in the function conversion rules in the initial syntax tree according to the preset syntax structure mapping rules, and determine the target class variables in the JAVA language syntax tree of the JAVA language corresponding to the C source code.

[0097] Here, in order to keep the code modular and maintainable, it is necessary to encapsulate related functions and variables into appropriate classes.

[0098] Sub-step 1036, determining a JAVA language syntax tree of the JAVA language corresponding to the C source code according to the target library function type, the target database type, the target memory management rule, and the target function conversion rule.

[0099] Here, in the process of the embodiment provided in the present application, in addition to converting the target library function type, the target database type, the target memory management rule and the target function conversion rule into JAVA language, the multi-threading and concurrent processing logic in the C source code is also converted into JAVA language form, specifically: the thread creation, synchronization and communication operations in the C source code are converted into the Thread class and related concurrent processing classes in the Java language (such as the classes in the java.util.concurrent package).

[0100] In the above, in the process of the embodiment provided in the present application, in addition to converting the target library function type, target database type, target memory management rules and target function conversion rules into JAVA language, the performance of the C source code conversion is also optimized to ensure that the generated Java code has good performance, including optimizing data structures and algorithms to adapt to the characteristics of the Java language and the runtime environment.

[0101] In the above, in the process of the embodiment provided by the present application, in addition to converting the target library function type, the target database type, the target memory management rule and the target function conversion rule into JAVA language, the code style and specifications in the C source code conversion process are also controlled. At this time, indentation, spaces and naming rules need to be used correctly. You can refer to the existing Java language code style guide to ensure that the generated Java language code meets industry standards and best practices.

[0102] In the above, in the process of the embodiment provided in the present application, in addition to converting the target library function type, target database type, target memory management rules and target function conversion rules into JAVA language, the comments in the C source code conversion process are also converted and converted into comments in the Java language. In order to facilitate subsequent code maintenance and upgrades, corresponding documentation needs to be written for the generated JAVA language code.

[0103] In the above, the method of writing corresponding documents for the generated JAVA language code can specifically be but not limited to: JavaDoc comments for classes and methods, and detailed description documents about the conversion process and tool usage.

[0104] S104: Determine the JAVA language code corresponding to the target banking service according to the target abstract syntax tree and the target preset syntax rule.

[0105] In this step, in order to improve the automation and efficiency of the conversion process, the embodiment provided by the present application needs to integrate the conversion tool from C source code to Java language code into the existing tool chain, including but not limited to: integration with version control systems (such as Git) to automatically trigger the conversion process when the code changes; integration with continuous integration and deployment systems (such as Jenkins) to automatically test and verify the code after it is submitted; integration with code editors and IDEs (such as Eclipse and IntelliJ IDEA) to preview and debug the generated Java language code in real time during the development process.

[0106] Here, the language code meets the scenario requirements of different target banking businesses to be tested. It is necessary to ensure that the conversion rules from C source code to Java language code have certain configurability and extensibility, including allowing users to customize data type mapping and library function mapping and other conversion rules.

[0107] Among them, the programming language conversion method for bank business of the embodiment provided in the present application can provide a plug-in mechanism so that users can expand and customize the processing logic in the conversion process as needed; and support saving the conversion rules as configuration files for sharing and reuse among different projects and teams.

[0108] The programming language conversion method for banking business provided in the embodiment of the present application is different from that in the prior art. The embodiment provided by the present application parses the C source code of the target banking business to be detected to determine the data type, library function type, database type, memory management rule and function conversion rule corresponding to the C source code, and determines the initial syntax tree corresponding to the C source code corresponding to the target banking business based on the data type, library function type, database type, memory management rule and function conversion rule, and then determines the JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, preset syntax structure mapping rules and preset language feature rules; and determines the JAVA language code corresponding to the target banking business based on the target abstract syntax tree and the target preset syntax rules, thereby realizing efficient, accurate and automatic conversion of the C source code into JAVA language code.

[0109] See also Figure 2 , Figure 2 The flowchart of the programming language conversion method for banking services provided by an embodiment of the present application is as follows. Figure 2 As shown in the figure, the programming language conversion method for banking services provided in the embodiment of the present application includes the following steps:

[0110] S201. Parse the C source code of the target banking business to be detected to determine the data type, library function type, database type, memory management rules and function conversion rules corresponding to the C source code.

[0111] S202. Determine an initial syntax tree corresponding to the C source code corresponding to the target banking business according to the data type, the library function type, the database type, the memory management rule, and the function conversion rule.

[0112] S203: Determine a JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, a preset syntax structure mapping rule, and a preset language characteristic rule.

[0113] S204: Determine the JAVA language code corresponding to the target banking service according to the target abstract syntax tree and the target preset syntax rule.

[0114] S205: Verify the syntax and semantics of the JAVA language code to implement the check of the JAVA language code.

[0115] In this step, after determining the JAVA language code corresponding to the target banking business, the embodiment provided by the present application also needs to fully test and verify the JAVA language code to ensure that its functions and performance are equivalent to the original C source code, and the testing and verification methods in the embodiment provided by the present application include but are not limited to: writing unit tests, integration tests, and performance tests to cover various functions and scenarios in the original C source code, and through these tests and verifications, it can be ensured that the generated Java language code is of high quality and reliability.

[0116] The following is an example of a specific banking business:

[0117] Embodiment 1:

[0118] Step S1: Obtain the C source code in the account management module that contains the functions of creating, querying, modifying and deleting the flying account, and use specific data structures and related database operations.

[0119] Step S2: Convert the C source code into Java language code; convert the original C source code into equivalent Java language code through AST (syntax tree) conversion technology, and use Java's object-oriented characteristics to abstract the account management module into a Java class, and use Java's ORM framework to perform database operations.

[0120] Step S3: Database operation conversion: convert the original C language database operation into the operation of the Java ORM framework. For example, using Hibernate, object-relational mapping can be used to perform database query, insert, update and delete operations.

[0121] Step S4: Error handling and exception mechanism: Convert the original C language error handling code into Java's exception handling mechanism. In Java, the try-catch block can be used to capture exceptions and handle them appropriately to improve the reliability and stability of the code.

[0122] Through this embodiment, the target banking business is successfully converted from C language to Java language, and the object-oriented characteristics and ORM framework of Java are used to improve the maintainability and readability of the code; at the same time, through the conversion of database operations, the performance and efficiency of the system are improved, and the security and defense of Java are fully utilized.

[0123] Embodiment 2:

[0124] Step S1: Obtain the C source code of the conversion payment processing module, where the conversion payment processing module is responsible for processing the user's payment request, including operations such as verifying payment information, deducting money, and updating transaction records.

[0125] Step S2: Convert the C source code into Java language code; convert the original C source code into equivalent Java language code through AST (syntax tree) conversion technology. In Java, the payment processing module can be designed in an object-oriented manner, and the Java ORM framework can be used for database operations.

[0126] Step S3: Database operation conversion: convert the original C language database operation into the operation of the Java ORM framework. For example, MyBatis can use XML mapping files to perform database query and update operations.

[0127] Step S4: Error handling and exception mechanism: Convert the original C language error handling code into Java's exception handling mechanism. In Java, by using Java's exception mechanism and transaction management function, the reliability and consistency of the payment processing process can be guaranteed.

[0128] Through this embodiment, the payment processing module is successfully converted from C language to Java language, and the payment processing is completed by utilizing Java's object-oriented features and ORM framework.

[0129] Embodiment three:

[0130] Step S1: Obtain the C source code of the bill generation module, wherein the bill generation module is responsible for generating bills based on the customer's transaction records and account information. The bill generation module includes functions such as formatting bills, calculating fees, and generating bills in PDF or HTML format.

[0131] Step S2: Convert the C source code into Java language code; convert the original C source code into equivalent Java language code through AST (syntax tree) conversion technology. In Java, the payment processing module can be designed in an object-oriented manner, and Java related libraries and frameworks can be used for formatting and file generation.

[0132] Step S3: Database operation conversion: Convert the original C language database operations to the operations of the Java ORM framework. For example, using Spring Data JPA, annotations can be used to define entity classes and database operations to simplify the development process.

[0133] Step S4: PDF / HTML generation: Use Java related libraries, such as Apache PDFBox or iText, to convert the generated bill data into PDF or HTML format files. These libraries provide rich APIs and functions to facilitate bill formatting, style setting and file output.

[0134] Step S5: Exception handling and error detection: The error handling code in the original C source code is converted into the Java exception handling mechanism. By using the Java exception mechanism, potential errors can be captured and processed to improve the reliability and stability of the system.

[0135] Through this embodiment, the payment processing module is successfully converted from C language to Java language, and the object-oriented characteristics and related libraries of Java are used to improve the maintainability and readability of the code. At the same time, through the conversion of database operations and PDF / HTML generation, the performance and efficiency are improved, and the security and defense of Java are fully utilized.

[0136] Among them, the description of S201 to S204 can refer to the description of S101 to S104, and can achieve the same technical effect, which is not repeated here.

[0137] The programming language conversion method for banking business provided in the embodiment of the present application is different from that in the prior art. The embodiment provided by the present application parses the C source code of the target banking business to be detected to determine the data type, library function type, database type, memory management rule and function conversion rule corresponding to the C source code, and determines the initial syntax tree corresponding to the C source code corresponding to the target banking business based on the data type, library function type, database type, memory management rule and function conversion rule, and then determines the JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, preset syntax structure mapping rules and preset language feature rules; and determines the JAVA language code corresponding to the target banking business based on the target abstract syntax tree and the target preset syntax rules, thereby realizing efficient, accurate and automatic conversion of the C source code into JAVA language code.

[0138] The embodiment provided in the present application converts the C source code of the detected target banking business into the corresponding JAVA language code through the syntax tree conversion technology, and ensures that the original business logic and functions can be correctly implemented in the converted Java language code, and can utilize the optimization and performance tuning functions of the Java virtual machine (JVM) to improve the system's operating efficiency and response speed, thereby improving the user experience; and the Java language code has a high level of security, including built-in security mechanisms, access control, exception handling, and encryption technology, thereby preventing potential security vulnerabilities and attacks.

[0139] The embodiments provided in this application improve the maintainability and readability of the code, cross-platform and scalability, system performance and efficiency, compatibility and migration, reliability and stability, security and defensiveness, support for advanced features, ecosystem and community support, which will help transform and upgrade the core business of the bank, thereby improving the quality, reliability and security of the core business of the bank.

[0140] See also Figure 3 , Figure 4 , Figure 3 This is one of the structural block diagrams of a programming language conversion device for banking services provided in an embodiment of the present application. Figure 4 This is a second structural block diagram of a programming language conversion device for banking services provided in an embodiment of the present application. Figure 3 As shown in , the programming language conversion device 300 for banking services includes:

[0141] The first determination module 310 is used to parse the C source code of the target banking business to be detected, and determine the data type, library function type, database type, memory management rules and function conversion rules corresponding to the C source code.

[0142] The second determination module 320 is used to determine the initial syntax tree corresponding to the C source code corresponding to the target banking business according to the data type, the library function type, the database type, the memory management rule and the function conversion rule.

[0143] The third determination module 330 is used to determine a JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, the preset syntax structure mapping rule and the preset language characteristic rule.

[0144] Further, the data type includes a basic data type, a pointer data type and an array data type, and the third determination module 330 is specifically used to:

[0145] According to the data type in the initial syntax tree and the preset syntax structure mapping rule, a target data type in a JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0146] According to the library function type in the initial syntax tree and the preset syntax structure mapping rule, a target library function type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0147] According to the database type in the initial syntax tree and the preset language characteristic rule, a target database type in a JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0148] According to the memory management rules in the initial syntax tree and the preset language characteristic rules, a target memory management rule in a JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0149] According to the function conversion rules in the initial syntax tree and the preset language characteristic rules, a target function conversion rule in a JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0150] A JAVA language syntax tree of the JAVA language corresponding to the C source code is determined according to the target library function type, the target database type, the target memory management rule and the target function conversion rule.

[0151] Further, the data types include basic data types, pointer data types, and array data types, and determining the target data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the data types in the initial syntax tree and the preset syntax structure mapping rules includes:

[0152] According to the basic data types in the initial syntax tree and the preset syntax structure mapping rule, a target basic data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0153] According to the pointer data type in the initial syntax tree and the preset syntax structure mapping rule, a target pointer data type in a JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0154] According to the array data type in the initial syntax tree and the preset syntax structure mapping rule, the array data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0155] Further, the step of determining the target function conversion rule in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the function conversion rule in the initial syntax tree and the preset language characteristic rule includes:

[0156] The global variables and static variables in the function conversion rules in the initial syntax tree are converted according to the preset syntax structure mapping rules to determine the target class variables in the JAVA language syntax tree of the JAVA language corresponding to the C source code.

[0157] Further, the step of determining the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the database type in the initial syntax tree and the preset language characteristic rule includes:

[0158] According to the database table corresponding to the database type in the initial syntax tree and the preset language characteristic rule, a Java mapping object corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0159] According to the connection configuration information corresponding to the database type in the initial syntax tree and the preset language characteristic rule, the Java connection configuration information corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0160] According to the SQL query type corresponding to the database type in the initial syntax tree and the preset language feature rule, the Java ORM framework query type corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0161] According to the error data processing type corresponding to the database type in the initial syntax tree and the preset language characteristic rule, the Java ORM framework abnormal data processing type corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

[0162] Further, the method of determining the Java ORM framework abnormal data processing type corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the error data processing type corresponding to the database type in the initial syntax tree and the preset language characteristic rule includes:

[0163] According to the error return value, error global variable and preset language characteristic rules corresponding to the database type in the initial syntax tree, the exception throwing data and the exception catching data in the JAVA language syntax tree of the JAVA language corresponding to the C source code are determined.

[0164] The fourth determination module 340 is used to determine the JAVA language code corresponding to the target banking service according to the target abstract syntax tree and the target preset syntax rule.

[0165] The programming language conversion device 300 for banking business provided in the embodiment of the present application is different from that in the prior art. The embodiment provided by the present application parses the C source code of the target banking business to be detected to determine the data type, library function type, database type, memory management rule and function conversion rule corresponding to the C source code, and determines the initial syntax tree corresponding to the C source code corresponding to the target banking business based on the data type, library function type, database type, memory management rule and function conversion rule, and then determines the JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, preset syntax structure mapping rules and preset language feature rules; and determines the JAVA language code corresponding to the target banking business based on the target abstract syntax tree and the target preset syntax rules, thereby realizing efficient, accurate and automatic conversion of the C source code into JAVA language code.

[0166] Further, such as Figure 4 As shown, the programming language conversion device 300 for banking services includes:

[0167] The first determination module 310 is used to parse the C source code of the target banking business to be detected, and determine the data type, library function type, database type, memory management rules and function conversion rules corresponding to the C source code.

[0168] The second determination module 320 is used to determine the initial syntax tree corresponding to the C source code corresponding to the target banking business according to the data type, the library function type, the database type, the memory management rule and the function conversion rule.

[0169] The third determination module 330 is used to determine a JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, the preset syntax structure mapping rule and the preset language characteristic rule.

[0170] The fourth determination module 340 is used to determine the JAVA language code corresponding to the target banking service according to the target abstract syntax tree and the target preset syntax rule.

[0171] The verification module 350 is used to verify the syntax and semantics of the JAVA language code so as to implement the inspection of the JAVA language code.

[0172] The programming language conversion device 300 for banking business provided in the embodiment of the present application is different from that in the prior art. The embodiment provided by the present application parses the C source code of the target banking business to be detected to determine the data type, library function type, database type, memory management rule and function conversion rule corresponding to the C source code, and determines the initial syntax tree corresponding to the C source code corresponding to the target banking business based on the data type, library function type, database type, memory management rule and function conversion rule, and then determines the JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, preset syntax structure mapping rules and preset language feature rules; and determines the JAVA language code corresponding to the target banking business based on the target abstract syntax tree and the target preset syntax rules, thereby realizing efficient, accurate and automatic conversion of the C source code into JAVA language code.

[0173] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown in , the electronic device 500 includes a processor 510 , a memory 520 and a bus 530 .

[0174] The memory 520 stores machine-readable instructions executable by the processor 510. When the electronic device 500 is running, the processor 510 communicates with the memory 520 via the bus 530. When the machine-readable instructions are executed by the processor 510, the above-mentioned Figure 1 as well as Figure 2 The steps of the method for converting the programming language of banking services in the method embodiment shown in the figure, and the specific implementation methods can be found in the method embodiment, which will not be repeated here.

[0175] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 as well as Figure 2The steps of the method for converting the programming language of banking services in the method embodiment shown in the figure, and the specific implementation methods can be found in the method embodiment, which will not be repeated here.

[0176] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0177] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0178] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0179] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0180] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0181] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A programming language conversion method for banking business, characterized in that: The programming language conversion method for banking business includes: Parse the C source code of the target banking business to be detected to determine the data type, library function type, database type, memory management rules and function conversion rules corresponding to the C source code; Determine an initial syntax tree corresponding to the C source code corresponding to the target banking business according to the data type, the library function type, the database type, the memory management rule, and the function conversion rule; Determine a JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, the preset syntax structure mapping rule and the preset language characteristic rule; According to the target abstract syntax tree and the target preset syntax rules, the JAVA language code corresponding to the target banking service is determined.

2. The method for converting the programming language of banking services according to claim 1, characterized in that: The data types include basic data types, pointer data types, and array data types. Based on the initial syntax tree, the preset syntax structure mapping rule, and the preset language characteristic rule, a JAVA language syntax tree of the JAVA language corresponding to the C source code is determined, including: Determine the target data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the data type in the initial syntax tree and the preset syntax structure mapping rule; Determine the target library function type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the library function type in the initial syntax tree and the preset syntax structure mapping rule; Determine the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the database type in the initial syntax tree and the preset language characteristic rule; Determine a target memory management rule in a JAVA language syntax tree of the JAVA language corresponding to the C source code according to the memory management rule in the initial syntax tree and the preset language characteristic rule; Determine a target function conversion rule in a JAVA language syntax tree of the JAVA language corresponding to the C source code according to the function conversion rule in the initial syntax tree and the preset language characteristic rule; A JAVA language syntax tree of the JAVA language corresponding to the C source code is determined according to the target library type, the target database type, the target memory management rule, and the target function conversion rule.

3. The method for converting the programming language of banking services according to claim 2, characterized in that: The data types include basic data types, pointer data types, and array data types, and determining the target data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the data types in the initial syntax tree and the preset syntax structure mapping rule includes: Determine the target basic data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the basic data type in the initial syntax tree and the preset syntax structure mapping rule; Determine a target pointer data type in a JAVA language syntax tree of the JAVA language corresponding to the C source code according to the pointer data type in the initial syntax tree and a preset syntax structure mapping rule; According to the array data type in the initial syntax tree and the preset syntax structure mapping rule, the array data type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

4. The method for converting the programming language of banking services according to claim 2, characterized in that: The step of determining a target function conversion rule in a JAVA language syntax tree of the JAVA language corresponding to the C source code according to the function conversion rule in the initial syntax tree and the preset language characteristic rule comprises: The global variables and static variables in the function conversion rules in the initial syntax tree are converted according to the preset syntax structure mapping rules to determine the target class variables in the JAVA language syntax tree of the JAVA language corresponding to the C source code.

5. The method for converting the programming language of banking services according to claim 2, characterized in that: The step of determining the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the database type in the initial syntax tree and the preset language characteristic rule comprises: Determine, according to the database table corresponding to the database type in the initial syntax tree and the preset language characteristic rule, a Java mapping object corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code; Determine Java connection configuration information corresponding to the target database type in a JAVA language syntax tree of the JAVA language corresponding to the C source code according to the connection configuration information corresponding to the database type in the initial syntax tree and the preset language characteristic rule; Determine the Java ORM framework query type corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the SQL query type corresponding to the database type in the initial syntax tree and the preset language feature rules; According to the error data processing type corresponding to the database type in the initial syntax tree and the preset language characteristic rule, the Java ORM framework abnormal data processing type corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code is determined.

6. The method for converting the programming language of banking services according to claim 5, characterized in that: The method of determining the Java ORM framework abnormal data processing type corresponding to the target database type in the JAVA language syntax tree of the JAVA language corresponding to the C source code according to the error data processing type corresponding to the database type in the initial syntax tree and the preset language characteristic rule includes: According to the error return value, error global variable and preset language characteristic rules corresponding to the database type in the initial syntax tree, the exception throwing data and the exception catching data in the JAVA language syntax tree of the JAVA language corresponding to the C source code are determined.

7. The method for converting the programming language of banking services according to claim 1, characterized in that: After determining the JAVA language code corresponding to the target banking service according to the target abstract syntax tree and the target preset syntax rule, the programming language conversion method for banking service further includes: The syntax and semantics of the JAVA language code are verified so as to implement the checking of the JAVA language code.

8. A programming language conversion device for banking services, characterized in that: The programming language conversion device for banking business comprises: A first determination module is used to parse the C source code of the target banking business to be detected, and determine the data type, library function type, database type, memory management rules and function conversion rules corresponding to the C source code; A second determination module is used to determine an initial syntax tree corresponding to the C source code corresponding to the target banking business according to the data type, the library function type, the database type, the memory management rule and the function conversion rule; A third determination module is used to determine a JAVA language syntax tree of the JAVA language corresponding to the C source code based on the initial syntax tree, the preset syntax structure mapping rule and the preset language characteristic rule; The fourth determination module is used to determine the JAVA language code corresponding to the target banking service according to the target abstract syntax tree and the target preset syntax rule.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate via the bus, and the machine-readable instructions are executed by the processor to perform the steps of the programming language conversion method for banking business as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the programming language conversion method for banking services as described in any one of claims 1 to 7 are executed.