Device and method for supporting multi-language code output by low-code platform
By introducing intelligent recommendation, multilingual mapping and definition generation modules into the low-code platform, the automatic generation and seamless integration of multilingual code is achieved, solving the development restrictions of existing low-code platforms in multilingual environments, and improving the platform flexibility and code compatibility.
Patent Information
- Application Number
- CN202510038573.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2045-01-10
AI Technical Summary
Existing low-code development platforms usually only support code generation in a single programming language, resulting in additional coding and integration costs when developing projects in multi-language environments, and the compatibility and integration of generated codes are difficult.
Provide a low-code platform to realize automatic generation and seamless integration of multilingual code through intelligent recommendation modules, multilingual mapping modules and definition generation modules. The intelligent recommendation module recommends programming languages based on business logic and target platform characteristics. The multilingual mapping module converts abstract syntax tree (AST) into executable code of the target programming language, and defines the generation module to automatically generate interface code to realize data interaction in different languages and Function call.
It realizes automatic selection of the appropriate programming language and generating corresponding code according to the needs of developers, ensuring seamless integration and optimization between code modules of different programming languages, improving the flexibility and scalability of low-code platforms, and reducing developers' workload and ensure compatibility and stability of generated code.
Smart Images

Figure CN119440490A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software development technology, and in particular to a device and method for a low-code platform to support multi-language code generation. Background Art
[0002] Existing low-code development platforms mainly focus on visual construction of business logic and simplifying the code generation process. However, existing low-code platforms usually only support code generation in a single programming language, which limits their practical applications. Different development projects require the use of multiple programming languages to adapt to different development requirements and platform environments (such as Web, mobile, embedded systems, etc.), which brings additional coding and integration costs to developers. Therefore, how to realize the automatic generation of multi-language codes in low-code platforms and ensure the compatibility and efficient integration between generated codes has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] In response to the needs and shortcomings of current technological development, the present invention provides a device and method for a low-code platform to support multi-language code output, which can automatically select a suitable programming language and generate corresponding code according to the developer's needs or system environment, and at the same time achieve seamless integration and optimization between code modules of different programming languages.
[0004] In the first aspect, the present invention provides a device for a low-code platform to support multi-language code generation. The technical solution adopted to solve the above technical problems is as follows: A device for a low-code platform supporting multi-language code generation, which is deployed on the low-code platform and includes: The intelligent recommendation module is used to intelligently recommend programming languages for developers to choose based on the type of business logic defined by the developer through the low-code platform and the characteristics of the target platform. The programming language selected by the developer is the target programming language; A multi-language mapping module, which is used to map the operations in the AST into executable code of the target programming language according to the language rules and grammar definitions of the target programming language, wherein the AST is generated by the low-code platform according to the business logic defined by the developer; The definition generation module is used to define the interface specifications, automatically generate the corresponding interface code based on the programming language to be connected and insert it into the target location of the executable code, so as to realize data interaction and function call between codes in different programming languages.
[0005] Optionally, the types of business logic defined by developers through the low-code platform include compute-intensive, IO-intensive, data-driven, event-driven, rule engine, microservice architecture, and domain-driven design; The target platform defined by developers through the low-code platform refers to the type of environment in which the application runs, including web applications, mobile applications, embedded systems, and backend services; The intelligent recommendation module first analyzes the type of business logic and the characteristics of the target platform, and then generates a recommended list of programming languages for developers to choose from according to preset rules, wherein the preset rules include the following: (a) When the target platform is a Web application: If the business logic type is compute-intensive, we recommend using programming languages Java or TypeScript; if the business logic type is IO-intensive, we recommend using programming languages JavaScript or Python; if the business logic type is data-driven, we recommend using programming languages Python or R; if the business logic type is event-driven, we recommend using programming languages JavaScript or Node.js; if the business logic type is rule engine, we recommend using programming languages Python or Drools; if the business logic type is microservice architecture, we recommend using programming languages Java, Python, or Go; if the business logic type is domain-driven design, we recommend using programming languages Java or C#; (b) When the business logic type is one of the following: compute-intensive, IO-intensive, data-driven, event-driven, rule engine, microservice architecture, and domain-driven design: If the target platform is an Android mobile application, the recommended programming language is Java; if the target platform is an iOS mobile application, the recommended programming language is Swift or Objective-C; if the target platform is an embedded system, the recommended programming language is C or C++; if the target platform is a high-concurrency backend service, the recommended programming language is Java or Go.
[0006] Optionally, the multi-language mapping module involved maps the operations in the AST into executable code of the target programming language according to the language rules and grammar definition of the target programming language. The specific operations include: Traverse the entire AST and identify the type and content of each node; For each AST node, find the corresponding grammatical structure and operation according to the pre-loaded language rules; Generate code snippets of the target programming language based on the matched language rules; The generated code snippets are stitched together into complete executable code and output to the developer.
[0007] Optionally, the definition generation module involved is responsible for defining a set of common interface specifications in the low-code platform, wherein the interface specifications include interface name and description, parameter type and format, return value type and format, error handling mechanism, and communication protocol; According to the defined interface specification, the definition generation module automatically generates corresponding interface code based on the programming language to be connected, and automatically inserts it into the executable code, so that codes in different programming languages can perform data exchange and function call through the interface code.
[0008] In the second aspect, the present invention provides a method for a low-code platform to support multi-language code generation. The technical solution adopted to solve the above technical problems is as follows: A method for a low-code platform to support multi-language code generation, based on the device described in the first aspect, includes the following implementation steps: S1. Developers define business logic and target platform through the low-code platform, and the low-code platform converts the business logic defined by developers into AST; S2. Introduce an intelligent recommendation module in the low-code platform. The intelligent recommendation module intelligently recommends programming languages for developers to choose based on the type of business logic and the characteristics of the target platform. The programming language selected by the developer is the target programming language; S3. Introduce a multi-language mapping module in the low-code platform, which maps the operations in the AST into executable code of the target programming language according to the language rules and grammar definitions of the target programming language; S4. The low-code platform dynamically compiles the executable code output by the multi-language mapping module, detects the correctness of the code, and ensures that the code can be successfully compiled and passes basic syntax checks; S5. After dynamic compilation, the low-code platform optimizes the executable code output by the multi-language mapping module to ensure the best practices of code style and performance, and automatically formats the code based on the best coding standards of the programming language selected by the developer to ensure that the code meets the standards; S6. Introduce a definition generation module in the low-code platform. Developers define interface specifications through the definition generation module. The definition generation module automatically generates corresponding interface codes based on the programming language to be connected and inserts them into the target location of the executable code, thereby achieving seamless integration between executable codes of different programming languages.
[0009] Optionally, the types of business logic defined by developers through the low-code platform include compute-intensive, IO-intensive, data-driven, event-driven, rule engine, microservice architecture, and domain-driven design; The target platform defined by developers through the low-code platform refers to the type of environment in which the application runs, including web applications, mobile applications, embedded systems, and back-end services.
[0010] Optionally, in step S2, the intelligent recommendation module first analyzes the business logic type and the target platform, and then generates a programming language recommendation list for the developer to choose according to preset rules, wherein the preset rules include the following: (a) When the target platform is a Web application: If the business logic type is compute-intensive, we recommend using programming languages Java or TypeScript; if the business logic type is IO-intensive, we recommend using programming languages JavaScript or Python; if the business logic type is data-driven, we recommend using programming languages Python or R; if the business logic type is event-driven, we recommend using programming languages JavaScript or Node.js; if the business logic type is rule engine, we recommend using programming languages Python or Drools; if the business logic type is microservice architecture, we recommend using programming languages Java, Python, or Go; if the business logic type is domain-driven design, we recommend using programming languages Java or C#; (b) When the business logic type is one of the following: compute-intensive, IO-intensive, data-driven, event-driven, rule engine, microservice architecture, and domain-driven design: If the target platform is an Android mobile application, the recommended programming language is Java; if the target platform is an iOS mobile application, the recommended programming language is Swift or Objective-C; if the target platform is an embedded system, the recommended programming language is C or C++; if the target platform is a high-concurrency backend service, the recommended programming language is Java or Go.
[0011] Optionally, after executing step S2, the low-code platform loads corresponding language rules and grammar definitions according to the target programming language, and the language rules and grammar definitions exist in the form of configuration files or built-in data structures, which are used to describe the syntax and characteristics of the target programming language; After the low-code platform converts the business logic defined by the developer into AST, the multi-language mapping module performs the following operations: Traverse the entire AST and identify the type and content of each node; For each AST node, find the corresponding grammatical structure and operation according to the pre-loaded language rules; Generate code snippets of the target programming language based on the matched language rules; The generated code snippets are stitched together into complete executable code and output to the developer.
[0012] Optionally, when executing step S4, for the executable code output by the multi-language mapping module, the low-code platform automatically calls the corresponding compiler for real-time compilation, detects the correctness of the code, ensures that the code can be successfully compiled and passes basic syntax checks, and generates compilation results and logs; If an error occurs during the compilation process, the compiler will generate an error message. The low-code platform will then use the built-in static code analysis tool to perform an in-depth analysis of the error, identify common code problems and provide repair suggestions. The error message and repair suggestions are displayed to the developer through the graphical interface of the low-code platform, and the developer can simply click on the suggestion to make the repair.
[0013] Optionally, step S6 specifically includes the following operations: The developer defines the interface specification by defining the generation module, and the interface specification includes the interface name and description, parameter type and format, return value type and format, error handling mechanism, and communication protocol; According to the defined interface specification, the definition generation module automatically generates the corresponding interface code based on the programming language to be connected, and automatically inserts it into the target location of the executable code, so that the codes of different programming languages can perform data interaction and function call through the interface code; The low-code platform conducts comprehensive testing on the integrated code to verify whether the interface codes between different programming languages can work properly, ensure data consistency and functional integrity, and then automatically generates detailed interface documents for developers to understand and use.
[0014] A low-code platform of the present invention supports a device and method for generating codes in multiple languages, which has the following beneficial effects compared with the prior art: The present invention can automatically select a suitable programming language and generate corresponding code according to developer needs or system environment, while achieving seamless integration and optimization between code modules of different programming languages; it can improve the flexibility and scalability of existing low-code platforms, reduce the workload of developers, and ensure the compatibility and stability of generated code. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Attached Figure 1 is a module schematic diagram of the first embodiment of the present invention; Attached Figure 2 It is a method flow chart of embodiment 2 of the present invention. DETAILED DESCRIPTION
[0016] In order to make the technical solution, the technical problem solved and the technical effect of the present invention more clearly understood, the technical solution of the present invention is clearly and completely described below in conjunction with specific embodiments.
[0017] Embodiment 1: Refer to the attached Figure 1This embodiment proposes a device for a low-code platform to support multi-language code generation, which is deployed on the low-code platform and includes: The intelligent recommendation module is used to intelligently recommend programming languages for developers to choose based on the type of business logic defined by the developer through the low-code platform and the characteristics of the target platform. The programming language selected by the developer is the target programming language; A multi-language mapping module, which is used to map the operations in the AST into executable code of the target programming language according to the language rules and grammar definitions of the target programming language, wherein the AST is generated by the low-code platform according to the business logic defined by the developer; The definition generation module is used to define the interface specifications, automatically generate the corresponding interface code based on the programming language to be connected and insert it into the target location of the executable code, so as to realize data interaction and function call between codes in different programming languages.
[0018] The low-code platform described in this embodiment has the following functions: converting the business logic defined by the developer into AST, dynamically compiling the executable code, detecting the correctness of the code, ensuring that the code can be successfully compiled and pass basic syntax checks, optimizing the executable code, ensuring the best practices for code style and performance, and automatically formatting the code based on the best coding standards of the programming language selected by the developer to ensure that the code meets the standards. Based on these functions, the low-code development platform specifically used in this embodiment can be one of Mendix, OutSystems, and PowerApps (Microsoft).
[0019] In this embodiment, the types of business logic defined by developers through the low-code platform include compute-intensive, IO-intensive, data-driven, event-driven, rule engine, microservice architecture, and domain-driven design; the target platform defined by developers through the low-code platform refers to the type of environment in which the application runs, including Web applications, mobile applications, embedded systems, and back-end services.
[0020] The intelligent recommendation module first analyzes the type of business logic and the characteristics of the target platform, and then generates a recommended list of programming languages for developers to choose from according to preset rules, wherein the preset rules include the following: (a) When the target platform is a Web application: If the business logic type is compute-intensive, we recommend using programming languages Java or TypeScript; if the business logic type is IO-intensive, we recommend using programming languages JavaScript or Python; if the business logic type is data-driven, we recommend using programming languages Python or R; if the business logic type is event-driven, we recommend using programming languages JavaScript or Node.js; if the business logic type is rule engine, we recommend using programming languages Python or Drools; if the business logic type is microservice architecture, we recommend using programming languages Java, Python, or Go; if the business logic type is domain-driven design, we recommend using programming languages Java or C#; (b) When the business logic type is one of the following: compute-intensive, IO-intensive, data-driven, event-driven, rule engine, microservice architecture, and domain-driven design: If the target platform is an Android mobile application, the recommended programming language is Java; if the target platform is an iOS mobile application, the recommended programming language is Swift or Objective-C; if the target platform is an embedded system, the recommended programming language is C or C++; if the target platform is a high-concurrency backend service, the recommended programming language is Java or Go.
[0021] In this embodiment, the multi-language mapping module maps the operations in the AST into executable code of the target programming language according to the language rules and grammar definitions of the target programming language. The specific operations include: Traverse the entire AST and identify the type and content of each node; For each AST node, find the corresponding grammatical structure and operation according to the pre-loaded language rules; Generate code snippets of the target programming language based on the matched language rules; The generated code snippets are stitched together into complete executable code and output to the developer.
[0022] In this embodiment, the definition generation module is responsible for defining a set of common interface specifications in the low-code platform, wherein the interface specifications include interface name and description, parameter type and format, return value type and format, error handling mechanism, and communication protocol; According to the defined interface specification, the definition generation module automatically generates corresponding interface code based on the programming language to be connected, and automatically inserts it into the executable code, so that codes in different programming languages can perform data exchange and function call through the interface code.
[0023] Embodiment 2: Refer to the attached Figure 2Based on the device of the first embodiment, this embodiment further proposes a method for a low-code platform to support multi-language code generation, and the specific implementation steps are as follows: S1. Developers define business logic and target platform through the low-code platform, and the low-code platform converts the business logic defined by developers into AST.
[0024] S2. Introduce an intelligent recommendation module in the low-code platform. The intelligent recommendation module intelligently recommends programming languages for developers to choose based on the type of business logic and the characteristics of the target platform. The programming language selected by the developer is the target programming language.
[0025] Subsequently, the low-code platform loads the corresponding language rules and grammar definitions according to the target programming language. The language rules and grammar definitions exist in the form of configuration files or built-in data structures, which are used to describe the syntax and characteristics of the target programming language.
[0026] S3. Introduce a multi-language mapping module in the low-code platform. The multi-language mapping module maps the operations in the AST to executable code of the target programming language according to the language rules and grammar definitions of the target programming language. This process specifically includes: Traverse the entire AST and identify the type and content of each node; For each AST node, find the corresponding grammatical structure and operation according to the pre-loaded language rules; Generate code snippets of the target programming language based on the matched language rules; The generated code snippets are stitched together into complete executable code and output to the developer.
[0027] S4. For the executable code output by the multi-language mapping module, the low-code platform automatically calls the corresponding compiler for real-time compilation and detects the correctness of the code to ensure that the code can be successfully compiled and pass basic syntax checks, and generates compilation results and logs.
[0028] If an error occurs during the compilation process, the compiler will generate an error message. The low-code platform will then use the built-in static code analysis tool to perform an in-depth analysis of the error, identify common code problems and provide repair suggestions. The error message and repair suggestions are displayed to the developer through the graphical interface of the low-code platform, and the developer can simply click on the suggestion to make the repair.
[0029] S5. After dynamic compilation, the low-code platform optimizes the executable code output by the multi-language mapping module to ensure best practices in code style and performance, and automatically formats the code based on the best coding standards of the programming language selected by the developer to ensure that the code complies with the standards.
[0030] S6. Introduce definition generation module in low-code platform; The developer defines the interface specification through the definition generation module, and the interface specification includes the interface name and description, parameter type and format, return value type and format, error handling mechanism, and communication protocol; According to the defined interface specification, the definition generation module automatically generates the corresponding interface code based on the programming language to be connected and inserts it into the target location of the executable code, so that the codes of different programming languages can perform data interaction and function call through the interface code; Subsequently, the low-code platform conducts comprehensive testing on the integrated code to verify whether the interface codes between different programming languages can work properly, ensure data consistency and functional integrity, and finally automatically generate detailed interface documents for developers to understand and use.
[0031] For example, the user can select Java as the backend language and JavaScript as the frontend language, and after executing the aforementioned steps S1-S5, in step S6, according to the defined interface specification, the definition generation module automatically generates the corresponding interface code based on the programming languages Java and JavaScript and inserts it into the target location of the executable code, so that the codes of different programming languages (Java and JavaScript) can perform data interaction and function calls through the interface code. Of course, the low-code platform will also ensure the consistency of interfaces between different programming languages through a unified data exchange format (such as JSON or XML), and users do not need to manually handle cross-language compatibility issues.
[0032] In summary, the device and method for supporting multi-language code generation using a low-code platform of the present invention can automatically select a suitable programming language and generate corresponding code according to developer needs or system environment, while achieving seamless integration and optimization between code modules of different programming languages; it can improve the flexibility and scalability of existing low-code platforms, reduce the workload of developers, and ensure the compatibility and stability of generated code.
[0033] The above specific examples are used to explain the principles and implementation methods of the present invention in detail. These examples are only used to help understand the core technical content of the present invention. Based on the above specific embodiments of the present invention, any improvements and modifications made by technicians in this technical field without departing from the principles of the present invention should fall within the scope of patent protection of the present invention.
Claims
1. A low-code platform supports multi-language code generation, characterized in that: It is deployed on a low-code platform, including: The intelligent recommendation module is used to intelligently recommend programming languages for developers to choose based on the type of business logic defined by the developer through the low-code platform and the characteristics of the target platform. The programming language selected by the developer is the target programming language; A multi-language mapping module, which is used to map the operations in the AST into executable code of the target programming language according to the language rules and grammar definitions of the target programming language, wherein the AST is generated by the low-code platform according to the business logic defined by the developer; The definition generation module is used to define the interface specifications, automatically generate the corresponding interface code based on the programming language to be connected and insert it into the target location of the executable code, so as to realize data interaction and function call between codes in different programming languages.
2. According to claim 1, a low-code platform supporting multi-language code generation device is characterized in that: The types of business logic defined by developers through low-code platforms include compute-intensive, IO-intensive, data-driven, event-driven, rule engine, microservice architecture, and domain-driven design; The target platform defined by developers through the low-code platform refers to the type of environment in which the application runs, including web applications, mobile applications, embedded systems, and backend services; The intelligent recommendation module first analyzes the type of business logic and the characteristics of the target platform, and then generates a programming language recommendation list for the developer to choose according to preset rules, wherein the preset rules include the following: (a) When the target platform is a Web application: If the business logic type is compute-intensive, we recommend using programming languages Java or TypeScript; if the business logic type is IO-intensive, we recommend using programming languages JavaScript or Python; if the business logic type is data-driven, we recommend using programming languages Python or R; if the business logic type is event-driven, we recommend using programming languages JavaScript or Node.js; if the business logic type is rule engine, we recommend using programming languages Python or Drools; if the business logic type is microservice architecture, we recommend using programming languages Java, Python, or Go; if the business logic type is domain-driven design, we recommend using programming languages Java or C#; (b) When the business logic type is one of compute-intensive, IO-intensive, data-driven, event-driven, rule engine, microservice architecture, and domain-driven design: if the target platform is an Android mobile application, the recommended programming language is Java; if the target platform is an iOS mobile application, the recommended programming language is Swift or Objective-C; If the target platform is an embedded system, the recommended programming language is C or C++. If the target platform is a high-concurrency backend service, the recommended programming language is Java or Go.
3. According to claim 1, a low-code platform supporting multi-language code generation device is characterized in that: The multi-language mapping module maps the operations in the AST into executable code of the target programming language according to the language rules and grammar definitions of the target programming language. The specific operations include: Traverse the entire AST and identify the type and content of each node; For each AST node, find the corresponding grammatical structure and operation according to the pre-loaded language rules; Generate code snippets of the target programming language based on the matched language rules; The generated code snippets are stitched together into complete executable code and output to the developer.
4. According to claim 1, a low-code platform supporting multi-language code generation device is characterized in that: The definition generation module is responsible for defining a set of common interface specifications in the low-code platform, and the interface specifications include interface name and description, parameter type and format, return value type and format, error handling mechanism, and communication protocol; According to the defined interface specification, the definition generation module automatically generates corresponding interface code based on the programming language to be connected, and automatically inserts it into the executable code, so that codes in different programming languages can perform data exchange and function call through the interface code.
5. A method for a low-code platform to support multi-language code generation, characterized in that: The device according to any one of claims 1 to 4 comprises the following implementation steps: S1. Developers define business logic and target platform through the low-code platform, and the low-code platform converts the business logic defined by developers into AST; S2. Introduce an intelligent recommendation module in the low-code platform. The intelligent recommendation module intelligently recommends programming languages for developers to choose based on the type of business logic and the characteristics of the target platform. The programming language selected by the developer is the target programming language; S3. Introduce a multi-language mapping module in the low-code platform, which maps the operations in the AST into executable code of the target programming language according to the language rules and grammar definitions of the target programming language; S4. The low-code platform dynamically compiles the executable code output by the multi-language mapping module, detects the correctness of the code, and ensures that the code can be successfully compiled and passes basic syntax checks; S5. After dynamic compilation, the low-code platform optimizes the executable code output by the multi-language mapping module to ensure the best practices of code style and performance, and automatically formats the code based on the best coding standards of the programming language selected by the developer to ensure that the code meets the standards; S6. Introduce a definition generation module in the low-code platform. Developers define interface specifications through the definition generation module. The definition generation module automatically generates corresponding interface codes based on the programming language to be connected and inserts them into the target location of the executable code, thereby achieving seamless integration between executable codes of different programming languages.
6. According to claim 5, a method for low-code platform supporting multi-language code generation is characterized in that: The types of business logic defined by developers through low-code platforms include compute-intensive, IO-intensive, data-driven, event-driven, rule engine, microservice architecture, and domain-driven design; The target platform defined by developers through the low-code platform refers to the type of environment in which the application runs, including web applications, mobile applications, embedded systems, and back-end services.
7. According to claim 6, a method for low-code platform supporting multi-language code generation, characterized in that: In step S2, the intelligent recommendation module first analyzes the business logic type and the target platform, and then generates a programming language recommendation list for the developer to choose according to preset rules, wherein the preset rules include the following: (a) When the target platform is a Web application: If the business logic type is compute-intensive, we recommend using programming languages Java or TypeScript; if the business logic type is IO-intensive, we recommend using programming languages JavaScript or Python; if the business logic type is data-driven, we recommend using programming languages Python or R; if the business logic type is event-driven, we recommend using programming languages JavaScript or Node.js; if the business logic type is rule engine, we recommend using programming languages Python or Drools; if the business logic type is microservice architecture, we recommend using programming languages Java, Python, or Go; if the business logic type is domain-driven design, we recommend using programming languages Java or C#; (b) When the business logic type is one of the following: compute-intensive, IO-intensive, data-driven, event-driven, rule engine, microservice architecture, and domain-driven design: If the target platform is an Android mobile application, the recommended programming language is Java; if the target platform is an iOS mobile application, the recommended programming language is Swift or Objective-C; if the target platform is an embedded system, the recommended programming language is C or C++; if the target platform is a high-concurrency backend service, the recommended programming language is Java or Go.
8. According to claim 5, a method for low-code platform supporting multi-language code generation is characterized in that: After executing step S2, the low-code platform loads the corresponding language rules and grammar definitions according to the target programming language. The language rules and grammar definitions exist in the form of configuration files or built-in data structures, which are used to describe the syntax and characteristics of the target programming language; After the low-code platform converts the business logic defined by the developer into AST, the multi-language mapping module performs the following operations: Traverse the entire AST and identify the type and content of each node; For each AST node, find the corresponding grammatical structure and operation according to the pre-loaded language rules; Generate code snippets in the target programming language based on the matched language rules; The generated code snippets are stitched together into complete executable code and output to the developer.
9. According to claim 5, a method for low-code platform supporting multi-language code generation is characterized in that: When executing step S4, for the executable code output by the multi-language mapping module, the low-code platform automatically calls the corresponding compiler for real-time compilation, detects the correctness of the code, ensures that the code can be successfully compiled and passes basic syntax checks, and generates compilation results and logs; If an error occurs during compilation, the compiler will generate an error message, and the low-code platform will then use the built-in static code analysis tool to conduct an in-depth analysis of the error, identify common code problems, and provide repair suggestions; Error information and repair suggestions are displayed to developers through the graphical interface of the low-code platform, and developers can make repairs by simply clicking on the suggestions.
10. According to claim 5, a method for low-code platform supporting multi-language code generation is characterized in that: The step S6 specifically includes the following operations: The developer defines the interface specification by defining the generation module, and the interface specification includes the interface name and description, parameter type and format, return value type and format, error handling mechanism, and communication protocol; According to the defined interface specification, the definition generation module automatically generates the corresponding interface code based on the programming language to be connected, and automatically inserts it into the target location of the executable code, so that the codes of different programming languages can perform data exchange and function call through the interface code; The low-code platform conducts comprehensive testing on the integrated code to verify whether the interface codes between different programming languages can work properly, ensure data consistency and functional integrity, and then automatically generates detailed interface documentation for developers to understand and use.
Citation Information
Patent Citations
Source code file generation method and device, electronic equipment and storage medium
CN115357252A
Language service implementation method and device of domain-specific language, and storage medium
CN116775004A
LLM-based low-code application development method and system
CN117215551A
Method and system for customizing network interface and dynamically loading low-code platform
CN117519815A
Data source definition method and system based on zero code development platform
CN118760464A