CN111625243B - Cross-language task processing method and device and electronic equipment - Google Patents
Cross-language task processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN111625243B CN111625243B CN202010401602.3A CN202010401602A CN111625243B CN 111625243 B CN111625243 B CN 111625243B CN 202010401602 A CN202010401602 A CN 202010401602A CN 111625243 B CN111625243 B CN 111625243B
- Authority
- CN
- China
- Prior art keywords
- task
- code
- language
- parameters
- parameter
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 20
- 238000004458 analytical method Methods 0.000 claims abstract description 40
- 238000000034 method Methods 0.000 claims abstract description 39
- 238000012545 processing Methods 0.000 claims abstract description 15
- 238000004590 computer program Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000011156 evaluation Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the disclosure provides a cross-language task processing method, a device and electronic equipment, 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 parameters into a first task described by a first language so as to generate second task parameters in a general format in the first task based on the first task parameters and first task codes input by a user; 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 a user. By the processing scheme, the efficiency of cross-language task program development can be improved.
Description
Technical Field
The disclosure relates to the technical field of data processing, and in particular relates to a cross-language task processing method and device and electronic equipment.
Background
Program development is the process of creating a software system or software parts of a system according to user requirements. Program development is a system project that includes demand capture, demand analysis, design, implementation, and testing. Software is typically implemented in a programming language. Development can be performed typically using program development tools. Software is divided into system software and application software and includes not only programs that can run on a computer, but files related to these programs are also generally considered to be part of the software. General procedures of software design ideas and methods include designing algorithms and methods for the functions and implementation of the software, overall structural design and modular design of the software, programming and debugging, program linkage and testing, and writing and submitting programs.
When the software program development based on the task pipeline is carried out, the input and output of the task and the writing of the linking code between the tasks are time-consuming and labor-consuming, and the developer is hard to concentrate on the development of the logic of the task. 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 method, an apparatus, and an electronic device for processing a cross-language task, so as 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 parameters into a first task described by a first language so as to generate second task parameters in a general format in the first task based on the first task parameters and first task codes input by a user;
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 a user.
According to a specific implementation manner of the embodiment of the present disclosure, before the generating, in the code generating tool, the first task parameter in the universal format using the obtained parameter definition file, the method further includes:
setting task pipeline parameter definitions related to the tasks;
and generating the parameter definition file based on the defined task pipeline parameters.
According to a specific implementation manner of an embodiment of the present disclosure, the generating, in a code generation tool, a first task parameter in a generic format 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;
based on the result of the analysis, a first task parameter with a general format is formed.
According to a specific implementation of an embodiment of the disclosure, after the first task parameter is input into the first task described by the first language, the method further includes:
analyzing the first task parameters by using the code generation tool to form a first analysis code of a first language description;
combining 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 common format by using the first code output.
According to a specific implementation of an embodiment of the disclosure, after the first task parameter is input 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;
if yes, executing the first task code after the first task code is set.
According to a specific implementation manner of the embodiment of the 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 after the analysis of the second task parameters into second analysis codes described in a second language format by using the code generation tool.
According to a specific implementation manner of the embodiment of the disclosure, based on the second task parameter, after generating the second parsing code in the second language format in the second task described by the second language, the method further includes:
judging whether a second task code in the second task is completed or not;
if yes, merging operation is carried out 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 parsing code and a second task code set by a 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 universal format in the code generation tool by using the acquired parameter definition file;
the input module is used for inputting the first task parameters into a first task described by a first language so as to generate second task parameters in a universal format in the first task based on the first task parameters and first task codes input by a user;
the second generating module is used for generating a second analysis code in a second language format in a second task described by a second language based on the second task parameters;
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 a user.
In a third aspect, embodiments of the present disclosure further provide an electronic device, including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
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 of the first aspect.
In a fourth aspect, embodiments of the present disclosure also provide a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the cross-language task processing method of the foregoing first aspect or any implementation manner of the first aspect.
In a fifth aspect, embodiments of the present disclosure 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 which, when executed by a computer, cause the computer to perform the cross-language task processing method of the first aspect or any implementation 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 parameters into a first task described by a first language so as to generate second task parameters in a general format in the first task based on the first task parameters and first task codes input by a user; 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 a user. By the processing scheme, 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 that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is a flowchart of a cross-language task processing method provided in an embodiment of the present disclosure;
FIG. 2 is a software flow chart 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 according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
Other advantages and effects of the present disclosure will become readily apparent to those skilled in the art from the following disclosure, which describes embodiments of the present disclosure by way of specific examples. It will be apparent that the described embodiments are merely some, but not all embodiments of the present disclosure. The disclosure may be embodied or practiced in other different specific embodiments, and details within the subject specification may be modified or changed from various points of view and applications without departing from the spirit of the disclosure. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure are intended to be within the scope of this disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the following 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 present disclosure, one skilled in the art will appreciate that one aspect described herein may be implemented independently of any other aspect, 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. In addition, such apparatus may be implemented and/or such methods practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should also be noted that the illustrations provided in the following embodiments merely illustrate the basic concepts of the disclosure by way of illustration, and only the components related to the disclosure are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided in order to provide 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 in the present embodiment may be performed by a computing device, which may be implemented as software, or as a combination of software and hardware, and the computing device may be integrally provided in a server, a client, or the like.
Referring to fig. 1 and fig. 2, the cross-language task processing method in the embodiment of the disclosure may include the following steps:
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 preset, through which all parameters related to the task program may be set. As an example, a task pipeline-related parameter definition file may be defined as follows:
thus, a parameter definition file containing two tasks can be defined, and by the parameters contained in the two tasks, a first task parameter having a common format can be generated by a preset code generation tool. 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, inputting the first task parameters into a first task described by a first language so as to generate second task parameters in a universal format in the first task based on the first task parameters and first task codes input by a user.
By reading the first task parameters in the universal format, in the task 1, the first task parameters can be resolved by a code generation tool in a resolving manner to obtain first resolved codes in the first task, the first resolved codes have specifications of a first language (for example, c++ language), the first resolved codes and the first task codes (for example, task 1 logic) set in the first task by a user can be executed by combining the first resolved codes and the first task codes, and the executed results can be used for generating second task parameters by a code output manner.
The second task parameters have a predetermined general format such that the second task parameters can be used as input parameters 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 parameters.
By reading the second task parameters in the second task, parsing and execution in a second language (e.g., python language) different from the first language can be performed. 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 is similar to the generation manner of the first analysis code, and may be a code type with a specific format set in a model form.
In the process of generating the second analysis code, the code generating tool can acquire the language environment in the second task, and the second analysis code which is the same as the current language environment can be generated by acquiring the language environment.
S104, forming a final task output code based on the second analysis code and a second task code set in the second task by a user.
After the second analysis code is generated, the second analysis code can be further combined with the second task code (task 2 logic) which is already set to be completed by the user in the second task to form a combined code, and finally a task output code is formed.
Through the scheme, parameter transmission can be performed in different language tasks by defining the general parameters, and the code generation tool is used for generating the language code templates meeting the requirements in the different tasks, 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 the generating, in the code generating tool, the first task parameter in the universal format using the obtained parameter definition file, the method further includes: setting task pipeline parameter definitions related to the tasks; 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, in a code generation tool, a first task parameter in a general format using the obtained parameter definition file includes:
s301, inputting the parameter definition file in the code generation tool.
The parameter definition file may be received by a code generation tool, and parameters in the parameter definition file can be transferred 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 general format based on the analysis result.
By the above embodiment, the task parameter can be effectively transferred.
Referring to fig. 4, after the first task parameter is input into the first task described by the first language, according to a specific implementation of the embodiment of the present disclosure, the method further includes:
s401, analyzing the first task parameters by using the code generation tool to form a first analysis code of a first language description;
s402, combining and executing the first analysis code and the first task code to form a first code output;
s403, generating a second task parameter with a common format by using the first code output.
According to a specific implementation of an embodiment of the disclosure, after the first task parameter is input 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; if yes, executing the first task code after the first task code is set.
According to a specific implementation manner of the embodiment of the 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 after the analysis of the second task parameters into second analysis codes described in a second language format by using the code generation tool.
According to a specific implementation manner of the embodiment of the disclosure, based on the second task parameter, after generating the second parsing code in the second language format in the second task described by the second language, the method further includes: judging whether a second task code in the second task is completed or not; if yes, merging operation is carried out 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 parsing code and a second task code set by a 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 present disclosure further provides a cross-language task processing device 50, including:
a first generating module 501, configured to generate a first task parameter in a generic format in a code generating tool using the acquired 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 generic 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 an execution module 504, 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.
The parts of this embodiment, which are not described in detail, are referred to the content described in the above method embodiment, and are not described in detail herein.
Referring to fig. 6, an embodiment of the present disclosure also provides an electronic device 60, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
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 foregoing method embodiments.
The disclosed embodiments also provide a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform 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 which, when executed by a computer, cause the computer to perform the cross-language task processing method of the foregoing 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., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
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, which may perform various appropriate actions and processes according to 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 device 60 are also stored. The processing device 601, the ROM602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic 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 an electronic device 60 having various means is shown, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to 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 shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated 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 an internet protocol address from the at least two internet protocol addresses and returns the internet protocol address; receiving an Internet protocol address returned by the node evaluation equipment; wherein the acquired internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer-readable medium carries one or more programs that, 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 of the present disclosure may be written in 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams 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 involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring 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 foregoing is merely specific embodiments of the disclosure, but the protection scope of the 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 disclosure are intended to be covered by the protection scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (10)
1. A method for processing a cross-language task, comprising:
setting all parameters related to a task program by using the acquired parameter definition files, wherein the parameter definition files comprise two or more parameter definition files of tasks, and the types of languages used by each task are different; generating a first task parameter in a generic format in a code generation tool; the universal format is a code file of a universal language type;
inputting the first task parameters into a first task described by a first language, and analyzing the first task parameters by using the code generation tool to form a first analysis code described by the first language; combining and executing the first analysis code and a first task code input by a user to form a first code output; generating a second task parameter having a generic format using the first encoded output;
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 a user.
2. The method of claim 1, wherein the using the obtained parameter definition file, prior to generating the first task parameter in the generic format in the code generation tool, further comprises:
setting task pipeline parameter definitions related to the tasks;
and generating the parameter definition file based on the defined task pipeline parameters.
3. The method of claim 1, wherein generating the first task parameter in the generic format in the code generation tool 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;
based on the result of the analysis, a first task parameter with a general format is formed.
4. The method of claim 1, wherein after the inputting 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;
if yes, executing the first task code after the first task code is set.
5. The method of claim 1, wherein 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 comprises:
analyzing specific parameters in the second task parameters;
and converting the result after the analysis of the second task parameters into second analysis codes described in a second language format by using the code generation tool.
6. The method of claim 1, wherein the 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 completed or not;
if yes, merging operation is carried out on the second analysis code and the second task code.
7. The method of claim 1, wherein forming a final task output code based on the second parsing 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.
8. A cross-language task processing device, comprising:
the first generation module is used for setting all parameters related to the task program by using the acquired parameter definition files, wherein the parameter definition files comprise parameter definition files of two or more tasks, and the types of languages used by each task are different; generating a first task parameter in a generic format in a code generation tool; the universal format is a code file of a universal language type;
the input module is used for inputting the first task parameters into a first task described by a first language, and analyzing the first task parameters by using the code generation tool to form a first analysis code described by the first language; combining and executing the first analysis code and a first task code input by a user to form a first code output; generating a second task parameter having a generic format using the first encoded output;
the second generating module is used for generating a second analysis code in a second language format in a second task described by a second language based on the second task parameters;
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 a user.
9. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
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-7.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the cross-language task processing method of any one of the preceding claims 1-7.
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 CN111625243A (en) | 2020-09-04 |
CN111625243B true 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 (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101334664A (en) * | 2007-06-25 | 2008-12-31 | Vega格里沙贝两合公司 | 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 |
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 |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6986101B2 (en) * | 1999-05-06 | 2006-01-10 | International Business Machines Corporation | Method and apparatus for converting programs and source code files written in a programming language to equivalent markup language files |
CN103488775B (en) * | 2013-09-29 | 2016-08-10 | 中国科学院信息工程研究所 | A kind of calculating system processed for big data and computational methods |
US9619217B2 (en) * | 2013-11-20 | 2017-04-11 | Wolfram Research, Inc. | Methods and systems for cloud computing |
US9465590B2 (en) * | 2014-07-07 | 2016-10-11 | Sap Se | Code generation framework for application program interface for model |
US9778922B2 (en) * | 2014-10-31 | 2017-10-03 | Bae Systems Information And Electronic Systems Integration Inc. | Automated code-generation for cross-language development, testing, and integration |
US9740463B2 (en) * | 2015-08-10 | 2017-08-22 | 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 |
CN108255615B (en) * | 2017-11-30 | 2022-03-01 | 平安科技(深圳)有限公司 | Cross-language calling method, server and storage medium |
CN108595171B (en) * | 2018-04-27 | 2021-08-10 | 广州视源电子科技股份有限公司 | Object model generation method, device, equipment and storage medium |
CN108920133B (en) * | 2018-06-14 | 2021-06-18 | 北京三快在线科技有限公司 | Cross-language programming method and device, electronic equipment and storage medium |
CN109117141B (en) * | 2018-09-04 | 2021-09-24 | 深圳市木瓜移动科技有限公司 | Method, device, electronic equipment and computer readable storage medium for simplifying programming |
CN110888720A (en) * | 2019-10-08 | 2020-03-17 | 北京百度网讯科技有限公司 | Task processing method and device, computer equipment and storage medium |
-
2020
- 2020-05-13 CN CN202010401602.3A patent/CN111625243B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7685313B1 (en) * | 2000-05-31 | 2010-03-23 | International Business Machines Corporation | Universal conversion server |
CN101334664A (en) * | 2007-06-25 | 2008-12-31 | Vega格里沙贝两合公司 | Device and method for generating a user interface configuration for a field device |
CN110352400A (en) * | 2017-03-08 | 2019-10-18 | 华为技术有限公司 | Method and apparatus for handling message |
CN110554875A (en) * | 2018-05-30 | 2019-12-10 | 北京三快在线科技有限公司 | Code conversion method and device, electronic equipment and storage medium |
CN110413736A (en) * | 2019-07-25 | 2019-11-05 | 百度在线网络技术(北京)有限公司 | Across language text representation method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111625243A (en) | 2020-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109739478B (en) | Front-end project automatic construction method and device, storage medium and electronic equipment | |
CN111367516B (en) | Application interface generation method and device and electronic equipment | |
CN112685029B (en) | Method, device, equipment and storage medium for generating visual template | |
CN111177617A (en) | Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment | |
CN111309304B (en) | Method, device, medium and electronic equipment for generating IDL file | |
CN110781658B (en) | Resume analysis method, resume analysis device, electronic equipment and storage medium | |
CN111857720B (en) | User interface state information generation method and device, electronic equipment and medium | |
CN112416303B (en) | Software development kit hot repair method and device and electronic equipment | |
CN113391860B (en) | Service request processing method and device, electronic equipment and computer storage medium | |
CN111752644A (en) | Interface simulation method, device, equipment and storage medium | |
CN111625243B (en) | Cross-language task processing method and device and electronic equipment | |
CN111625326B (en) | Task pipeline execution method and device and electronic equipment | |
CN111367791B (en) | Method, device, medium and electronic equipment for generating test case | |
CN111399902B (en) | Client source file processing method and device, readable medium and electronic equipment | |
CN111274551B (en) | Compiler-based java code protection method and device and electronic equipment | |
CN110908711A (en) | Control development method and device of application program and electronic equipment | |
CN112688863B (en) | Gateway data processing method and device and electronic equipment | |
CN111275828B (en) | Data processing method and device of three-dimensional assembly and electronic equipment | |
CN116701181B (en) | Information verification flow display method, device, equipment and computer readable medium | |
CN111367555B (en) | Assertion method, assertion device, electronic equipment and computer readable medium | |
CN118519986A (en) | Data migration method, device, equipment, storage medium and product | |
CN116303050A (en) | Test method and device | |
CN117234465A (en) | Code generation method, device, equipment and storage medium based on markup language | |
CN112486494A (en) | File generation method and device, electronic equipment and computer readable storage medium | |
CN116069848A (en) | Method, device, equipment, storage medium and product for generating data reporting interface |
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 |