CN111625243A - Cross-language task processing method and device and electronic equipment - Google Patents

Cross-language task processing method and device and electronic equipment Download PDF

Info

Publication number
CN111625243A
CN111625243A CN202010401602.3A CN202010401602A CN111625243A CN 111625243 A CN111625243 A CN 111625243A CN 202010401602 A CN202010401602 A CN 202010401602A CN 111625243 A CN111625243 A CN 111625243A
Authority
CN
China
Prior art keywords
task
code
parameter
language
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010401602.3A
Other languages
Chinese (zh)
Other versions
CN111625243B (en
Inventor
白戈
王长虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010401602.3A priority Critical patent/CN111625243B/en
Publication of CN111625243A publication Critical patent/CN111625243A/en
Application granted granted Critical
Publication of CN111625243B publication Critical patent/CN111625243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms

Abstract

The embodiment of the disclosure provides a cross-language task processing method, a device and an electronic device, belonging to the technical field of data processing, wherein the method comprises the following steps: generating a first task parameter in a general format in a code generation tool by using the acquired parameter definition file; inputting the first task parameter into a first task described by a first language so as to generate a second task parameter in a common format based on the first task parameter and a first task code input by a user in the first task; generating a second parsing code in a second language format in a second task described by a second language based on the second task parameters; and forming a final task output code based on the second analysis code and a second task code set in the second task by the user. Through the processing scheme disclosed by the invention, the efficiency of cross-language task program development can be improved.

Description

Cross-language task processing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a cross-language task processing method and apparatus, and an electronic device.
Background
Program development is the process of building a software system or software parts in a system according to user requirements. Program development is a system engineering that includes requirement capture, requirement analysis, design, implementation, and testing. Software is typically implemented in a programming language. Development is typically possible using program development tools. Software is divided into system software and application software, and includes not only programs that can be run on a computer, but files related to these programs are also generally considered to be part of the software. The general process of the software design idea and method includes the algorithm and method for designing the function and implementation of the software, the overall structural design and module design of the software, programming and debugging, program joint debugging and testing, and writing and submitting the program.
When a software program based on a task pipeline is developed, the input and output of tasks and the writing of linking codes between the tasks are time-consuming and labor-consuming, and developers are difficult to concentrate on the development of the logic of the tasks. The situation is further complicated when tasks are written in different programming languages.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a cross-language task processing method, apparatus, and electronic device to at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present disclosure provides a cross-language task processing method, including:
generating a first task parameter in a general format in a code generation tool by using the acquired parameter definition file;
inputting the first task parameter into a first task described by a first language so as to generate a second task parameter in a common format based on the first task parameter and a first task code input by a user in the first task;
generating a second parsing code in a second language format in a second task described by a second language based on the second task parameters;
and forming a final task output code based on the second analysis code and a second task code set in the second task by the user.
According to a specific implementation manner of the embodiment of the present disclosure, before generating the first task parameter in the common format in the code generation tool by using the acquired parameter definition file, the method further includes:
setting a task pipeline parameter definition related to the task;
and generating the parameter definition file based on the defined task pipeline parameters.
According to a specific implementation manner of the embodiment of the present disclosure, the generating a first task parameter in a general format in a code generation tool by using the obtained parameter definition file includes:
inputting the parameter definition file in the code generation tool;
analyzing the parameter definition file by using the code generation tool;
and forming a first task parameter with a universal format based on the result obtained by the analysis.
According to a specific implementation manner of the embodiment of the present disclosure, after the inputting of the first task parameter into the first task described by the first language, the method further includes:
analyzing the first task parameter by using the code generation tool to form a first analysis code described by a first language;
merging and executing the first analysis code and the first task code to form a first code output;
and generating a second task parameter with a universal format by utilizing the first encoding output.
According to a specific implementation manner of the embodiment of the present disclosure, after the inputting of the first task parameter into the first task described by the first language, the method further includes:
judging whether the first task code is set in the first task completely;
if so, executing the first task code after the first task code is set.
According to a specific implementation manner of the embodiment of the present disclosure, the generating, based on the second task parameter, a second parsing code in a second language format in a second task described by a second language includes:
analyzing specific parameters in the second task parameters;
and converting the result of the analysis of the second task parameter into a second analysis code described in a second language format by using the code generation tool.
According to a specific implementation manner of the embodiment of the present disclosure, after the second parsing code in the second language format is generated in the second task described by the second language based on the second task parameter, the method further includes:
judging whether a second task code in the second task is finished or not;
and if so, executing a merging operation on the second analysis code and the second task code.
According to a specific implementation manner of the embodiment of the present disclosure, the forming a final task output code based on the second analysis code and a second task code set by the user in the second task includes:
and after the second task code is executed, generating the task output code by using the code generation tool.
In a second aspect, an embodiment of the present disclosure provides a cross-language task processing device, including:
the first generation module is used for generating a first task parameter in a general format in the code generation tool by using the acquired parameter definition file;
the input module is used for inputting the first task parameter into a first task described by a first language so as to generate a second task parameter in a universal format based on the first task parameter and a first task code input by a user in the first task;
a second generating module for generating a second parsing code in a second language format in a second task described by a second language based on the second task parameter;
and the execution module is used for forming a final task output code based on the second analysis code and a second task code set in the second task by the user.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the cross-language task processing method of the first aspect or any implementation manner of the first aspect.
In a fourth aspect, the disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the cross-language task processing method in the first aspect or any implementation manner of the first aspect.
In a fifth aspect, the embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to execute the cross-language task processing method in the foregoing first aspect or any implementation manner of the first aspect.
The cross-language task processing scheme in the embodiment of the disclosure comprises the steps of generating a first task parameter in a general format in a code generation tool by using an acquired parameter definition file; inputting the first task parameter into a first task described by a first language so as to generate a second task parameter in a common format based on the first task parameter and a first task code input by a user in the first task; generating a second parsing code in a second language format in a second task described by a second language based on the second task parameters; and forming a final task output code based on the second analysis code and a second task code set in the second task by the user. Through the processing scheme disclosed by the invention, the efficiency of cross-language task program development can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a cross-language task processing method provided by an embodiment of the present disclosure;
FIG. 2 is a software flowchart of a cross-language task processing method provided by an embodiment of the present disclosure;
FIG. 3 is a flowchart of another cross-language task processing method provided by an embodiment of the present disclosure;
FIG. 4 is a flowchart of another cross-language task processing method provided by an embodiment of the present disclosure;
FIG. 5 is a schematic structural diagram of a cross-language task processing device according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a cross-language task processing method. The cross-language task processing method provided by the embodiment can be executed by a computing device, the computing device can be implemented as software, or implemented as a combination of software and hardware, and the computing device can be integrally arranged in a server, a client and the like.
Referring to fig. 1 and fig. 2, a cross-language task processing method in an embodiment of the present disclosure may include the following steps:
and S101, generating a first task parameter in a general format in a code generation tool by using the acquired parameter definition file.
In order to enable program writing between tasks in a multi-language environment, a parameter definition file may be set in advance, and all parameters related to the task program may be set through the parameter definition file. As an example, a task pipeline related parameter definition file may be defined as follows:
Figure BDA0002489677150000061
in this way, a parameter definition file including two tasks can be defined, and the first task parameter having a common format can be generated by a preset code generation tool through the parameters included in the two tasks. The code generation tool can be set according to actual needs, and preset parameters can be converted into code files of different language types through the code generation tool.
S102, the first task parameter is input into a first task described by a first language, so that a second task parameter in a universal format is generated in the first task based on the first task parameter and a first task code input by a user.
The method comprises the steps of reading first task parameters in a general format, analyzing the first task parameters in a code generation tool in an analysis mode in task 1 to obtain first analysis codes in the first task, enabling the first analysis codes to have the specification of a first language (for example, C + + language), executing the first task codes in a mode of combining the first analysis codes and the first task codes by using the first analysis codes and first task codes (for example, task 1 logic) set by a user in the first task, and generating second task parameters through a code output mode according to the executed result.
The second task parameter has a predetermined common format, so that the second task parameter can be used as an input parameter for the second task (task 2).
S103, generating a second analysis code in a second language format in a second task described by a second language based on the second task parameter.
By reading the second task parameters in the second task, parsing and execution can be performed in a second language (e.g., python language) different from the first language. Specifically, the code generation tool may be used to perform an analysis operation on the second task parameter, so as to generate a second analysis code in the second task, where the second analysis code may be a code type with a specific format set in a model form, similar to the generation manner of the first analysis code.
In the process of generating the second analysis code, the code generation tool acquires the language environment in the second task, and can generate the second analysis code which is the same as the current language environment by acquiring the language environment.
And S104, forming a final task output code based on the second analysis code and a second task code set in the second task by the user.
After the second analysis code is generated, the second analysis code may be further merged with a second task code (task 2 logic) that has been set by the user to be completed in the second task, so as to form a merged code, and finally form a task output code.
By the scheme, parameter transmission can be performed in different language tasks in a mode of defining general parameters, and the language code template meeting requirements is generated in different tasks through the code generation tool, so that a user only needs to pay attention to logic codes in the tasks, and the software development efficiency of the cross-language tasks is further improved.
According to a specific implementation manner of the embodiment of the present disclosure, before generating the first task parameter in the common format in the code generation tool by using the acquired parameter definition file, the method further includes: setting a task pipeline parameter definition related to the task; and generating the parameter definition file based on the defined task pipeline parameters.
Referring to fig. 3, according to a specific implementation manner of the embodiment of the present disclosure, the generating a first task parameter in a generic format in a code generation tool by using an obtained parameter definition file includes:
s301, inputting the parameter definition file into the code generation tool.
The parameter definition file may be received by a code generation tool, and parameters in the parameter definition file may be passed to the code generation tool by inputting the parameter definition file into the code generation tool.
S302, analyzing the parameter definition file by using the code generation tool.
The code generation tool can analyze the parameters in the parameter definition file, and further extract each specific parameter in the parameter definition file.
S303, forming a first task parameter with a universal format based on the result obtained by the analysis.
By the embodiment, the task parameters can be effectively transmitted.
Referring to fig. 4, according to a specific implementation manner of the embodiment of the present disclosure, after the inputting the first task parameter into the first task described by the first language, the method further includes:
s401, analyzing the first task parameter by using the code generation tool to form a first analysis code described by a first language;
s402, merging and executing the first analysis code and the first task code to form a first code output;
and S403, generating a second task parameter with a general format by using the first coded output.
According to a specific implementation manner of the embodiment of the present disclosure, after the inputting of the first task parameter into the first task described by the first language, the method further includes: judging whether the first task code is set in the first task completely; if so, executing the first task code after the first task code is set.
According to a specific implementation manner of the embodiment of the present disclosure, the generating, based on the second task parameter, a second parsing code in a second language format in a second task described by a second language includes: analyzing specific parameters in the second task parameters; and converting the result of the analysis of the second task parameter into a second analysis code described in a second language format by using the code generation tool.
According to a specific implementation manner of the embodiment of the present disclosure, after the second parsing code in the second language format is generated in the second task described by the second language based on the second task parameter, the method further includes: judging whether a second task code in the second task is finished or not; and if so, executing a merging operation on the second analysis code and the second task code.
According to a specific implementation manner of the embodiment of the present disclosure, the forming a final task output code based on the second analysis code and a second task code set by the user in the second task includes:
and after the second task code is executed, generating the task output code by using the code generation tool.
Corresponding to the above method embodiment, referring to fig. 5, the disclosed embodiment further provides a cross-language task processing device 50, including:
a first generating module 501, configured to generate a first task parameter in a common format in a code generation tool by using the obtained parameter definition file;
an input module 502, configured to input the first task parameter into a first task described by a first language, so as to generate a second task parameter in a common format in the first task based on the first task parameter and a first task code input by a user;
a second generating module 503, configured to generate a second parsing code in a second language format in a second task described by a second language based on the second task parameter;
and the execution module 504 is configured to form a final task output code based on the second analysis code and a second task code set by the user in the second task.
For parts not described in detail in this embodiment, reference is made to the contents described in the above method embodiments, which are not described again here.
Referring to fig. 6, an embodiment of the present disclosure also provides an electronic device 60, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the cross-language task processing method of the method embodiments described above.
The disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the cross-language task processing method in the foregoing method embodiments.
The disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the cross-language task processing method in the aforementioned method embodiments.
Referring now to FIG. 6, a schematic diagram of an electronic device 60 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 60 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 60 are also stored. The processing device 601, the ROM602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. While the figures illustrate an electronic device 60 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (11)

1. A cross-language task processing method is characterized by comprising the following steps:
generating a first task parameter in a general format in a code generation tool by using the acquired parameter definition file;
inputting the first task parameter into a first task described by a first language so as to generate a second task parameter in a common format based on the first task parameter and a first task code input by a user in the first task;
generating a second parsing code in a second language format in a second task described by a second language based on the second task parameters;
and forming a final task output code based on the second analysis code and a second task code set in the second task by the user.
2. The method according to claim 1, wherein before generating the first task parameter in the common format in the code generation tool by using the obtained parameter definition file, the method further comprises:
setting a task pipeline parameter definition related to the task;
and generating the parameter definition file based on the defined task pipeline parameters.
3. The method according to claim 1, wherein the generating the first task parameter in the common format in the code generation tool by using the obtained parameter definition file comprises:
inputting the parameter definition file in the code generation tool;
analyzing the parameter definition file by using the code generation tool;
and forming a first task parameter with a universal format based on the result obtained by the analysis.
4. The method of claim 1, wherein after entering the first task parameter into the first task described by the first language, the method further comprises:
analyzing the first task parameter by using the code generation tool to form a first analysis code described by a first language;
merging and executing the first analysis code and the first task code to form a first code output;
and generating a second task parameter with a universal format by utilizing the first encoding output.
5. The method of claim 4, wherein after entering the first task parameter into the first task described by the first language, the method further comprises:
judging whether the first task code is set in the first task completely;
if so, executing the first task code after the first task code is set.
6. The method of claim 1, wherein generating second parsing code in a second language format in a second task described by a second language based on the second task parameters comprises:
analyzing specific parameters in the second task parameters;
and converting the result of the analysis of the second task parameter into a second analysis code described in a second language format by using the code generation tool.
7. The method of claim 1, wherein after generating a second parsed code in a second language format in a second task described by a second language based on the second task parameters, the method further comprises:
judging whether a second task code in the second task is finished or not;
and if so, executing a merging operation on the second analysis code and the second task code.
8. The method of claim 1, wherein forming a final task output code based on the second parsed code and a second task code set by a user in the second task comprises:
and after the second task code is executed, generating the task output code by using the code generation tool.
9. A cross-language task processing apparatus, comprising:
the first generation module is used for generating a first task parameter in a general format in the code generation tool by using the acquired parameter definition file;
the input module is used for inputting the first task parameter into a first task described by a first language so as to generate a second task parameter in a universal format based on the first task parameter and a first task code input by a user in the first task;
a second generating module for generating a second parsing code in a second language format in a second task described by a second language based on the second task parameter;
and the execution module is used for forming a final task output code based on the second analysis code and a second task code set in the second task by the user.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the cross-language task processing method of any one of the preceding claims 1-8.
11. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the cross-language task processing method of any one of the preceding claims 1-8.
CN202010401602.3A 2020-05-13 2020-05-13 Cross-language task processing method and device and electronic equipment Active CN111625243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010401602.3A CN111625243B (en) 2020-05-13 2020-05-13 Cross-language task processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010401602.3A CN111625243B (en) 2020-05-13 2020-05-13 Cross-language task processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111625243A true CN111625243A (en) 2020-09-04
CN111625243B CN111625243B (en) 2023-07-18

Family

ID=72271831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010401602.3A Active CN111625243B (en) 2020-05-13 2020-05-13 Cross-language task processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111625243B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030121000A1 (en) * 1999-05-06 2003-06-26 Michael Richard Cooper Method and apparatus for converting programs and source code files written in a programming language to equivalent markup language files
US20080320402A1 (en) * 2007-06-25 2008-12-25 Andreas Isenmann Device and Method for Generating a User Interface Configuration for a Field Device
US7685313B1 (en) * 2000-05-31 2010-03-23 International Business Machines Corporation Universal conversion server
CN103488775A (en) * 2013-09-29 2014-01-01 中国科学院信息工程研究所 Computing system and computing method for big data processing
US20150154012A1 (en) * 2013-11-20 2015-06-04 Wolfram Research, Inc. Methods and systems for cloud computing
US20160004516A1 (en) * 2014-07-07 2016-01-07 Petko Ivanov Code Generation Framework for Application Program Interface for Model
US20160124731A1 (en) * 2014-10-31 2016-05-05 Bae Systems Information And Electronic Systems Integration Inc. Automated code-generation for cross-language development, testing, and integration
US20170046137A1 (en) * 2015-08-10 2017-02-16 Oracle International Corporation Mechanism for increasing the performance of multiple language programs by inserting called language ir into the calling language
CN107463595A (en) * 2017-05-12 2017-12-12 中国科学院信息工程研究所 A kind of data processing method and system based on Spark
CN108255615A (en) * 2017-11-30 2018-07-06 平安科技(深圳)有限公司 Across language call method, server and storage medium
CN108595171A (en) * 2018-04-27 2018-09-28 广州视源电子科技股份有限公司 Model generating method, device, equipment and the storage medium of object
CN108920133A (en) * 2018-06-14 2018-11-30 北京三快在线科技有限公司 Across Programming with Pascal Language method, apparatus, electronic equipment and storage medium
CN109117141A (en) * 2018-09-04 2019-01-01 深圳市木瓜移动科技有限公司 Simplify method, apparatus, the electronic equipment, computer readable storage medium of programming
CN110352400A (en) * 2017-03-08 2019-10-18 华为技术有限公司 Method and apparatus for handling message
CN110413736A (en) * 2019-07-25 2019-11-05 百度在线网络技术(北京)有限公司 Across language text representation method and device
CN110554875A (en) * 2018-05-30 2019-12-10 北京三快在线科技有限公司 Code conversion method and device, electronic equipment and storage medium
CN110888720A (en) * 2019-10-08 2020-03-17 北京百度网讯科技有限公司 Task processing method and device, computer equipment and storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030121000A1 (en) * 1999-05-06 2003-06-26 Michael Richard Cooper Method and apparatus for converting programs and source code files written in a programming language to equivalent markup language files
US7685313B1 (en) * 2000-05-31 2010-03-23 International Business Machines Corporation Universal conversion server
US20080320402A1 (en) * 2007-06-25 2008-12-25 Andreas Isenmann Device and Method for Generating a User Interface Configuration for a Field Device
CN101334664A (en) * 2007-06-25 2008-12-31 Vega格里沙贝两合公司 Device and method for generating a user interface configuration for a field device
CN103488775A (en) * 2013-09-29 2014-01-01 中国科学院信息工程研究所 Computing system and computing method for big data processing
US20150154012A1 (en) * 2013-11-20 2015-06-04 Wolfram Research, Inc. Methods and systems for cloud computing
US20160004516A1 (en) * 2014-07-07 2016-01-07 Petko Ivanov Code Generation Framework for Application Program Interface for Model
US20160124731A1 (en) * 2014-10-31 2016-05-05 Bae Systems Information And Electronic Systems Integration Inc. Automated code-generation for cross-language development, testing, and integration
US20170046137A1 (en) * 2015-08-10 2017-02-16 Oracle International Corporation Mechanism for increasing the performance of multiple language programs by inserting called language ir into the calling language
CN110352400A (en) * 2017-03-08 2019-10-18 华为技术有限公司 Method and apparatus for handling message
CN107463595A (en) * 2017-05-12 2017-12-12 中国科学院信息工程研究所 A kind of data processing method and system based on Spark
CN108255615A (en) * 2017-11-30 2018-07-06 平安科技(深圳)有限公司 Across language call method, server and storage medium
CN108595171A (en) * 2018-04-27 2018-09-28 广州视源电子科技股份有限公司 Model generating method, device, equipment and the storage medium of object
CN110554875A (en) * 2018-05-30 2019-12-10 北京三快在线科技有限公司 Code conversion method and device, electronic equipment and storage medium
CN108920133A (en) * 2018-06-14 2018-11-30 北京三快在线科技有限公司 Across Programming with Pascal Language method, apparatus, electronic equipment and storage medium
CN109117141A (en) * 2018-09-04 2019-01-01 深圳市木瓜移动科技有限公司 Simplify method, apparatus, the electronic equipment, computer readable storage medium of programming
CN110413736A (en) * 2019-07-25 2019-11-05 百度在线网络技术(北京)有限公司 Across language text representation method and device
CN110888720A (en) * 2019-10-08 2020-03-17 北京百度网讯科技有限公司 Task processing method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马强;刘佩林;: "基于编程语言结构的通用配置代码生成方法", no. 18 *

Also Published As

Publication number Publication date
CN111625243B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN109597617B (en) Method and device for quickly generating service page based on template
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
CN111367516B (en) Application interface generation method and device and electronic equipment
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN110781658B (en) Resume analysis method, resume analysis device, electronic equipment and storage medium
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111738316A (en) Image classification method and device for zero sample learning and electronic equipment
CN111176707A (en) Templated automatic operation and maintenance method and device and electronic equipment
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN111625291A (en) Automatic iteration method and device of data processing model and electronic equipment
CN111177260A (en) Database remote copying method and device and electronic equipment
CN111625243B (en) Cross-language task processing method and device and electronic equipment
CN111625326B (en) Task pipeline execution method and device and electronic equipment
CN110609728A (en) Page generation method and device and electronic equipment
CN112688863B (en) Gateway data processing method and device and electronic equipment
CN111738311A (en) Multitask-oriented feature extraction method and device and electronic equipment
CN110908711A (en) Control development method and device of application program and electronic equipment
CN111275828B (en) Data processing method and device of three-dimensional assembly and electronic equipment
CN113347278B (en) Data processing method and device and electronic equipment
CN115470292B (en) Block chain consensus method, device, electronic equipment and readable storage medium
CN116561015B (en) Map application testing method, electronic device and computer readable medium
CN111399902B (en) Client source file processing method and device, readable medium and electronic equipment
CN112486494A (en) File generation method and device, electronic equipment and computer readable storage medium

Legal Events

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