CN115951868A - Method, apparatus and storage medium for executing script command - Google Patents

Method, apparatus and storage medium for executing script command Download PDF

Info

Publication number
CN115951868A
CN115951868A CN202211420834.9A CN202211420834A CN115951868A CN 115951868 A CN115951868 A CN 115951868A CN 202211420834 A CN202211420834 A CN 202211420834A CN 115951868 A CN115951868 A CN 115951868A
Authority
CN
China
Prior art keywords
script
code block
script command
command
electronic device
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
CN202211420834.9A
Other languages
Chinese (zh)
Other versions
CN115951868B (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.)
Core Huazhang Technology Beijing Co ltd
Original Assignee
Core Huazhang Technology Beijing 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 Core Huazhang Technology Beijing Co ltd filed Critical Core Huazhang Technology Beijing Co ltd
Priority to CN202211420834.9A priority Critical patent/CN115951868B/en
Priority to CN202410198591.1A priority patent/CN117931156A/en
Publication of CN115951868A publication Critical patent/CN115951868A/en
Application granted granted Critical
Publication of CN115951868B publication Critical patent/CN115951868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The application provides a method, equipment and a storage medium for executing script commands. The method comprises the following steps: receiving a script command description input by a user, wherein the script command description comprises a first script command written in a first script language and a second script command written in a second script language; determining a first identifier and a second identifier according to the script command description, wherein the first identifier corresponds to the first script command, and the second identifier corresponds to the second script command; executing the first script command and the second script command based on the first identification and the second identification; and outputting the execution result described by the script command.

Description

Method, apparatus and storage medium for executing script command
Technical Field
The present application relates to the field of computer software technologies, and in particular, to a method, an apparatus, and a storage medium for executing a script command.
Background
Scripts (scripts) are executable files written in a certain format using a specific descriptive language. A scripting language, also known as a build-out language, or dynamic language, is a programming language used to control software applications, and scripts are usually stored as text and are only interpreted or compiled when called.
In the field of verification of integrated circuits, users (e.g., verification engineers) often need to use script commands to configure various verification resources (e.g., FPGA resources and daughter card resources, etc.) and verification procedures. As technology develops, a variety of scripting languages gradually appear and develop. Commonly used scripting languages may include: javaScript, PHP (Hypertext Preprocessor), python, tcl (Tool Command Language), VBScript, CSS (Cascading Style Sheets), and the like. Different users often use different scripting languages, and the different scripting languages have respective advantages under different scenes. For example, tcl is supported by a number of existing application program interfaces (api), python may make the description more concise in some complex tasks.
However, the script command system usually only supports one script language, and script command files written by different script languages are separated. If one scripting language requires a call to another scripting language, the scripting command system requires the use of specific commands to perform the call of one scripting command file to another scripting file. This makes it impossible for the user to flexibly switch script commands written using a plurality of scripting languages.
How to realize that a user uses multiple scripting languages in one scripting command system at the same time and realize flexible switching of the scripting languages without using a specific command to call cross files is a problem to be solved urgently.
Disclosure of Invention
A first aspect of the present application provides a method of executing a script command, the method comprising: receiving a script command description input by a user, wherein the script command description comprises a first script command written in a first script language and a second script command written in a second script language; determining a first identifier and a second identifier according to the script command description, wherein the first identifier corresponds to the first script command, and the second identifier corresponds to the second script command; executing the first script command and the second script command based on the first identification and the second identification; and outputting the execution result described by the script command.
A second aspect of the present application provides an electronic device comprising: a memory for storing a set of instructions; and at least one processor configured to execute the set of instructions to cause the electronic device to perform the method of the first aspect.
A third aspect of the application provides a non-transitory computer readable storage medium storing a set of instructions of a computer for, when executed, causing the computer to perform the method of the first aspect.
According to the method, the equipment and the storage medium for executing the script commands, provided by the application, through the method of adding the identification in the script command description, a user can write the script commands written in different languages into the same script command description. When the script command description is imported, the electronic device can divide the script command description into a plurality of code blocks according to the identification and execute the code blocks by using the corresponding script processors according to the script language types of the code blocks. Therefore, the electronic equipment does not need to spend resources on calling specific commands to realize calling among script command files written in different languages, and the speed of executing the script commands is improved. Meanwhile, the user can directly switch the script language to write the script command description according to the execution sequence of the script command, so that the execution sequence in the script command description is clearer, the calling relation of the script command to other script commands does not need to be analyzed with extra effort, and the requirement of the user on flexibly using the script language is met.
Drawings
In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for the embodiments or related technologies in the following description are briefly introduced, and it is obvious that the drawings in the following description are only the embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 shows a schematic structural diagram of an exemplary electronic device according to an embodiment of the present application.
FIG. 2 shows a schematic diagram of the call process between different script command descriptions.
FIG. 3A depicts a diagram of an exemplary script command description, according to an embodiment of the application.
FIG. 3B is a diagram illustrating an exemplary process of executing a script command according to an embodiment of the application.
FIG. 4 illustrates a flow diagram of an exemplary method of executing a script command in accordance with embodiments of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to the accompanying drawings in combination with specific embodiments.
It is to be noted that, unless otherwise defined, technical or scientific terms used herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. As used in this application, the terms "first," "second," and the like do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" and similar words are intended to mean that the elements or items listed before the word cover the elements or items listed after the word and their equivalents, without excluding other elements or items. "coupled" and similar terms are not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
Fig. 1 shows a schematic structural diagram of an electronic device 100 according to an embodiment of the present application. The electronic device 100 may be an electronic device running a simulation tool. As shown in fig. 1, the electronic device 100 may include: a processor 102, a memory 104, a network interface 106, a peripheral interface 108, and a bus 110. Wherein the processor 102, the memory 104, the network interface 106, and the peripheral interface 108 are communicatively coupled to each other within the electronic device via a bus 110.
The processor 102 may be a Central Processing Unit (CPU), an image processor, a neural Network Processor (NPU), a Microcontroller (MCU), a programmable logic device, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits. The processor 102 may be used to perform functions associated with the techniques described herein. In some embodiments, processor 102 may also include multiple processors integrated into a single logic component. As shown in FIG. 1, the processor 102 may include a plurality of processors 102a, 102b, and 102c.
The memory 104 may be configured to store data (e.g., instruction sets, computer code, intermediate data, etc.). In some embodiments, the simulation test system for simulating a test design may be a computer program stored in memory 104. As shown in fig. 1, the data stored by the memory may include program instructions (e.g., for implementing the method of executing script commands of the present application) and data to be processed (e.g., the memory may store temporary code generated during the compilation process). The processor 102 may also access memory stored program instructions and data and execute the program instructions to operate on the data to be processed. The memory 104 may include volatile memory devices or non-volatile memory devices. In some embodiments, the memory 104 may include Random Access Memory (RAM), read Only Memory (ROM), optical disks, magnetic disks, hard disks, solid State Disks (SSDs), flash memory, memory sticks, and the like.
The network interface 106 may be configured to provide communications with other external devices to the electronic device 100 via a network. The network may be any wired or wireless network capable of transmitting and receiving data. For example, the network may be a wired network, a local wireless network (e.g., bluetooth, wiFi, near Field Communication (NFC), etc.), a cellular network, the internet, or a combination of the above. It is to be understood that the type of network is not limited to the specific examples described above. In some embodiments, network interface 106 may include any combination of any number of Network Interface Controllers (NICs), radio frequency modules, transceivers, modems, routers, gateways, adapters, cellular network chips, and the like.
The peripheral interface 108 may be configured to connect the electronic device 100 with one or more peripheral devices to enable input and output of information. For example, the peripheral devices may include input devices such as keyboards, mice, touch pads, touch screens, microphones, various sensors, and output devices such as displays, speakers, vibrators, indicator lights, and the like.
The bus 110 may be configured to transfer information between various components of the electronic device 100 (e.g., the processor 102, the memory 104, the network interface 106, and the peripheral interface 108), such as an internal bus (e.g., a processor-memory bus), an external bus (a USB port, a PCI-E bus), and so forth.
It should be noted that although the electronic device architecture described above only shows the processor 102, the memory 104, the network interface 106, the peripheral interface 108, and the bus 110, in a specific implementation, the electronic device architecture may also include other components necessary to achieve normal operation. In addition, it can be understood by those skilled in the art that the electronic device architecture described above may also include only the components necessary to implement the embodiments of the present application, and not necessarily all the components shown in the drawings.
In the field of verification of integrated circuits, in order to verify whether a logic system design is correct, a verification environment needs to be designed for verifying the logic system design. The verification environment may be run on a computer or simulation tool after compilation to perform simulation testing on various functions of the logic system design to verify that the logic system design is correct. To build a verification environment for verifying a logic system design, a user (e.g., a verification engineer) needs to configure various verification resources (e.g., a prototype verification board or a hardware simulator) and verification flows using script commands. For example, a user may select, via script commands, to use one of the FPGAs on the prototype verification board for his own verification project, and configure one or more daughter cards to connect to the FPGA. The user may also select his own authentication items and configure the corresponding parameters by script commands.
As described above, the commonly used scripting languages are diverse. Different users often use different scripting languages, and the different scripting languages have respective advantages under different scenes.
In some embodiments, a user may configure a portion of the validation resource using script commands written in the Tcl scripting language, and then the user may process a portion of the task using script commands written in the Python scripting language. After task processing is complete, the user may proceed to configure the next validation resources using script commands written in the Tcl scripting language. Thus, it is necessary to call the script command written in the Python script language in the script command description written in the Tcl script language.
FIG. 2 shows a schematic diagram of a calling process 200 between different script command descriptions.
Generally, a script command file only contains script commands written in a script language. As shown in FIG. 2, the script command file 201 may be, for example, a script command written in the Tcl scripting language; the script command file 202 may be, for example, a script command written in Python scripting language.
When executing the description 2011 in the script command file 201, the electronic device 100 may call the execution result of the description 2021 in the script command file 202 by a specific command. The specific commands may be, for example: eval ("puts $ A") ". Since the contents of the script command file call written in the Tcl scripting language may be in a string format, the electronic device 100 may package the called portion "Py eval" import os "in the description 2021 as a string. In some embodiments, electronic device 100 may also pack description 2021 into a file for invocation. In some cases, in order to invoke a Python script command in, for example, the Tcl scripting language, it is often necessary to reference a specific library file, translate the Python command, and compile it with a compiler in the Tcl language. This leads to 2 technical problems, one of which is that the user needs to refer to a special library, which increases the learning cost of the user; secondly, the Python command used in the Tcl cannot interact with other native Tcl commands, so that the result of Python command processing cannot be directly used by other Tcl commands, and thus, only a very simple Python command can be used in the Tcl to process some simple problems, and the maximum capability of each language cannot be exerted.
For a complicated verification process, the electronic device 100 may call the scenario described in the script command file 202 several times when executing the script command file 201, even call the scenario described in other script command files. In this case, the process of multiple invocations by the electronic device 100 would be cumbersome, requiring constant switching back and forth between multiple script command files. Moreover, the electronic device 100 needs to manage a large number of character string codes or files, and occupies a large amount of storage resources.
In view of this, the present disclosure provides a method for executing a script command.
FIG. 3A illustrates a schematic diagram of an exemplary script command description 300, according to an embodiment of the present application.
The user can write script commands in a script command description 300 using a plurality of scripting languages according to the requirements of the verification task. The script command description 300 may include a script command "xxxxxxxx" written using a Tcl scripting language and a script command "yyyyyyy" written using a Python scripting language. The electronic device 100 may receive a script command description 300 input by a user. The electronic device 100 may execute the script commands in the order of the script commands in the script command description 300. As shown in fig. 3A, the electronic device 100 may execute the script command "xxxxxxxx" written in the Tcl script language, execute the script command "Yyyyyy" written in the Python script language, and then continue to execute the script command "xxxxxxxx" written in the Tcl script language.
Such a writing manner allows the script command description 300 to include both script commands written in the Tcl script language and script commands written in the Python script language. The user can flexibly switch different script languages in the same script command description 300 according to the execution sequence of the script commands to write the script commands.
In order to distinguish script commands written in different script languages, the electronic device 100 may determine an identifier corresponding to each script language according to the script command description 300. For example, the identity corresponding to the Tcl scripting language may be "Tcl" and the identity corresponding to the Python scripting language may be "Py". The identifications "Tcl" and "Py" may be added by the user when writing the script command description 300. In some embodiments, electronic device 100 may determine in script command description 300 that the script command "xxxxxxxx" is preceded by a flag "Tcl," meaning that the content under flag "Tcl" is each a script command written in the Tcl scripting language. The electronic device 100 may determine that the identifier before the script command "yyyyy" is "Py" in the script command description 300, which indicates that the contents under the identifier "Py" are all script commands written in Python scripting language.
It is understood that in some embodiments, electronic device 100 may automatically recognize the language in which the script command is described without any identification.
FIG. 3B depicts a diagram of an exemplary process 310 of executing a script command, according to an embodiment of the application.
Script command description 300 the electronic device 100 may split out script commands written in the Tcl scripting language to get a code block 3111 based on the determined identification "Tcl". Since the script command description 300 may include a plurality of identifiers "Tcl", the electronic device 100 may split the script command written in the Tcl script language in the script command description 300 based on the plurality of identifiers to obtain a plurality of code blocks 3111 and 3112 written in the Tcl script language, and the like. Similarly, the electronic device 100 may split out a script command written in a Python scripting language to obtain the code block 3113 based on the determined identification "Py". In response to the multiple identifications "Py" that may be included in the script command description 300, the electronic device 100 may split the script command description 300 into multiple code blocks 3113 and 3114 written in a Python scripting language, and so on.
The electronic device 100 may also obtain interaction information 312 between the code blocks 3111, 3112 and the code blocks 3113, 3114.
The interaction information 312 may include an execution order among the code blocks 3111, 3112, 3113, 3114. The electronic device 100 may execute the script command of the code block 3111, then execute the script command of the code block 3113, then execute the script command of the code block 3112, and finally execute the script command of the code block 3114 according to the execution sequence in the interaction information 312. The order in which the electronic device 100 executes the code blocks may coincide with the order of script commands in the script command description 300 written by the user.
Since the code blocks 3111 and 3112 are written in the Tcl scripting language, and the code blocks 3113 and 3114 are written in the Python scripting language, the electronic device 100 may call a script processor corresponding to the scripting language to process the corresponding code blocks. The electronic device 100 may call the script processor 3131 to process the code blocks 3111 and 3112. The script processor 3131 may be a Tcl script interpreter or compiler. In response to the script processor 3131 being a script interpreter, the script interpreter may directly execute script commands in the code blocks 3111 and 3112. In response to the script processor 3131 being a compiler, the compiler may compile the script commands in the code blocks 3111 and 3112 to generate intermediate code. The electronic device 100 may call the script processor 3132 to process the code blocks 3113 and 3114. The script processor 3132 may be a Python script interpreter or compiler.
The interaction information 312 may also include a call relationship between the code blocks 3111, 3112 and the code blocks 3113, 3114. For example, the calling relationship may be the calling relationship of code block 3111 to code block 3113. The call relationship of the code block 3111 to the code block 3113 may actually be a call of the code block 3111 to the result of execution of the code block 3113. For example, the code block 3113 may be a script command written using Python scripting language to perform a task. The code block 3111 needs to call the execution result of the task to continue executing the script command. The electronic device 100 may call the script processor 3132 to process the code block 3113 to obtain an execution result of the code block 3113. The electronic device 100 may call the execution result of the code block 3113 via the script processor 3131. Thus, the electronic apparatus 100 may perform the call of the code block 3111 to the code block 3113 based on the call relation.
In some embodiments, the script processor 3131 may process the code blocks 3111 and 3112 to obtain first intermediate code described in an intermediate language (e.g., a C + + language or a C language). Similarly, the script processor 3132 may process the code blocks 3113 and 3114 to obtain a second intermediate code, which is also described by the intermediate language (i.e., for example, C + + language or C language). The electronic device 100 may further run the intermediate language compiler for further processing (e.g., interpretation or compilation) based on the first intermediate code, the second intermediate code, and the interaction information 312, and ultimately executing the script command description 300.
The electronic device 100 may output the execution result 314 of the script command description 300 via the script processors 3131 and 3132 after processing the code blocks 3111, 3112, 3113 and 3114. The execution results 314 may be displayed on the display via the peripheral interface 108 of the electronic device 100.
Therefore, by adding the identification method in the script command description, a user can write script commands written in different languages into the same script command description. When importing the script command description, the electronic device 100 may divide the script command description into a plurality of code blocks according to the identifier and execute the code blocks using corresponding script processors according to the script language types of the code blocks. In this way, the electronic device 100 does not need to spend resources calling specific commands to realize calling between script command files written in different languages, and the speed of executing the script commands is increased. Meanwhile, the user can directly switch the script language to write the script command description according to the execution sequence of the script command, so that the execution sequence in the script command description is clearer, the calling relation of the script command to other script commands does not need to be analyzed with extra effort, and the requirement of the user on flexibly using the script language is met.
FIG. 4 illustrates a flow diagram of an exemplary method 400 of executing a script command in accordance with embodiments of the present application. The method 400 may be implemented by the electronic device 100 shown in fig. 1. The method 400 may include the following steps.
At step 402, electronic device 100 may receive a script command description (e.g., script command description 300 in FIG. 3A) input by a user. Wherein the script command description includes a first script command (e.g., script command "xxxxxxxx" in fig. 3A) written in a first script language (e.g., tcl script language) and a second script command (e.g., script command "yyyyy" in fig. 3A) written in a second script language (e.g., python script language).
In step 404, the electronic device 100 may determine a first identifier (e.g., identifier "Tcl") corresponding to the first script command and a second identifier (e.g., identifier "Py") corresponding to the second script command according to the script command description (e.g., the content under the identifier "Tcl" in fig. 3B is the script command "xxxxxxxx" written in the Tcl script language, and the content under the identifier "Py" is the script command "Yyyyyy" written in the Python script language).
In some embodiments, the electronic device 100 may determine the first identifier in the script command description according to the first script command (e.g., the identifier determined to precede script command "xxxxxxxx" in fig. 3B is "Tcl"); and determining the second identifier in the script command description based on the second script command (e.g., determining the identifier "Py" before the script command "yyyyy" in fig. 3B).
In step 406, the electronic device 100 may execute the first script command and the second script command based on the first identification and the second identification.
In some embodiments, the electronic device 100 may split the script command description (e.g., the script command description 300 in fig. 3B) into at least one first code block (e.g., the code blocks 3111 and 3112 in fig. 3B) according to the first identifier (e.g., the identifier "Tcl"), where the at least one first code block is written in the first script language (e.g., the Tcl script language). The electronic device 100 may split the script command description (e.g., script command description 300 in fig. 3B) into at least one second code block (e.g., code blocks 3113 and 3114 in fig. 3B) according to the second identifier (e.g., identifier "Py"), where the at least one second code block is written in the second script language (e.g., python script language). The electronic device 100 may obtain interaction information (e.g., interaction information 312 in fig. 3B) for the at least one first code block and the at least one second code block. The electronic device 100 may process the at least one first code block and the at least one second code block, respectively, based on the interaction information.
In some embodiments, the interaction information may include an execution order (e.g., first executing the script commands of code block 3111, then executing the script commands of code block 3113, then executing the script commands of code block 3112, and finally executing the script commands of code block 3114). The electronic device 100 may process the at least one first code block and the at least one second code block sequentially based on the execution order.
In some embodiments, the electronic device 100 may process the at least one first code block (e.g., code blocks 3111 and 3112 in fig. 3B) using a first script processor (e.g., script processor 3131 in fig. 3B). In some embodiments, the first script processor may be a script interpreter (e.g., a Tcl script interpreter) or a compiler. In response to the script processor being a script interpreter, the script interpreter may directly run the at least one first code block. In response to the script processor being a compiler, the compiler may compile the at least one first code block to generate intermediate code.
Similarly, the electronic device 100 may process the at least one second code block (e.g., code blocks 3113 and 3114 in fig. 3B) using a second script processor (e.g., script processor 3132 in fig. 3B). In some embodiments, the second script processor may be a script interpreter (e.g., a Python script interpreter) or a compiler.
The electronic device 100 may process the associated at least one first code block and the at least one second code block based on the interaction information 312. In some embodiments, the interaction information may also include a call relationship of the first code block (e.g., code block 3111 in fig. 3B) to the second code block (e.g., code block 3113 in fig. 3B). The electronic device 100 may process the second code block to obtain execution results. And based on the calling relationship, the electronic device 100 may execute the calling of the execution result by the first code block. In some embodiments, the electronic device 100 may process the at least one first code block into a first intermediate code using the first script processor, the first intermediate code being described in an intermediate language (e.g., C + + language or C language). The electronic device 100 may process the at least one second code block into a second intermediate code using the second script processor, the second intermediate code also being described in the intermediate language described above. The electronic device 100 may also process the first intermediate code and the second intermediate code using a third compiler corresponding to the intermediate language and generate an executable code based on the first intermediate code, the second intermediate code, and the interaction information. The electronic device 100 may execute the executable code to obtain an execution result 314.
In step 408, the electronic device 100 may output the execution result (e.g., the execution result 314 in fig. 3B) described by the script command.
The embodiment of the application also provides the electronic equipment. The electronic device may be the electronic device 100 of fig. 1. The electronic device 100 may include a memory for storing a set of instructions; and at least one processor configured to execute the set of instructions to cause the electronic device to perform method 400.
Embodiments of the present application also provide a non-transitory computer-readable storage medium. The non-transitory computer-readable storage medium stores a set of instructions of a computer for causing the electronic device to perform the method 400 when executed.
Some embodiments of the present application are described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the context of the present application, technical features in the above embodiments or in different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the present application described above, which are not provided in detail for the sake of brevity.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures, such as Dynamic RAM (DRAM), may use the discussed embodiments.
The present application is intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the application are intended to be included within the scope of the application.

Claims (9)

1. A method of executing a script command, comprising:
receiving script command description input by a user, wherein the script command description comprises a first script command written in a first script language and a second script command written in a second script language;
determining a first identifier and a second identifier according to the script command description, wherein the first identifier corresponds to the first script command, and the second identifier corresponds to the second script command;
executing the first script command and the second script command based on the first identification and the second identification; and
and outputting the execution result described by the script command.
2. The method of claim 1, wherein determining the first identification and the second identification from the script command description further comprises:
determining the first identifier in the script command description according to the first script command; and
and determining the second identifier in the script command description according to the second script command.
3. The method of claim 1, wherein executing the first script command and the second script command based on the first identification and the second identification further comprises:
splitting the script command description into at least one first code block according to the first identification, wherein the at least one first code block is written in the first script language;
splitting the script command description into at least one second code block according to the second identification, wherein the at least one second code block is written in the second script language;
obtaining mutual information of the at least one first code block and the at least one second code block;
processing the at least one first code block and the at least one second code block, respectively, based on the interaction information; and
processing the associated at least one first code block and the at least one second code block based on the interworking information.
4. The method of claim 3, wherein the interaction information comprises an execution order, processing the at least one first code block and the at least one second code block, respectively, based on the interaction information further comprising:
the at least one first code block and the at least one second code block are processed sequentially based on the execution order.
5. The method of claim 4, wherein sequentially processing the at least one first code block and the at least one second code block further comprises:
processing the at least one first code block using a first script processor; and
processing the at least one second code block using a second script processor.
6. The method of claim 5, wherein the first script processor and the second script processor are script interpreters or compilers.
7. The method of claim 4, wherein the interaction information further includes a call relationship of the first code block to the second code block, processing the associated at least one first code block and the at least one second code block based on the interaction information further comprising:
processing the second code block to obtain an execution sub-result; and
based on the calling relationship, executing the calling of the execution sub-result by the first code block.
8. An electronic device, comprising:
a memory for storing a set of instructions; and
at least one processor configured to execute the set of instructions to cause the electronic device to perform the method of any of claims 1-7.
9. A non-transitory computer readable storage medium storing a set of instructions of an electronic device, which when executed, cause the electronic device to perform the method of any of claims 1 to 7.
CN202211420834.9A 2022-11-11 2022-11-11 Method, apparatus and storage medium for executing script command Active CN115951868B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211420834.9A CN115951868B (en) 2022-11-11 2022-11-11 Method, apparatus and storage medium for executing script command
CN202410198591.1A CN117931156A (en) 2022-11-11 2022-11-11 Method, apparatus and storage medium for executing script command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211420834.9A CN115951868B (en) 2022-11-11 2022-11-11 Method, apparatus and storage medium for executing script command

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410198591.1A Division CN117931156A (en) 2022-11-11 2022-11-11 Method, apparatus and storage medium for executing script command

Publications (2)

Publication Number Publication Date
CN115951868A true CN115951868A (en) 2023-04-11
CN115951868B CN115951868B (en) 2024-03-12

Family

ID=87286560

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202410198591.1A Pending CN117931156A (en) 2022-11-11 2022-11-11 Method, apparatus and storage medium for executing script command
CN202211420834.9A Active CN115951868B (en) 2022-11-11 2022-11-11 Method, apparatus and storage medium for executing script command

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202410198591.1A Pending CN117931156A (en) 2022-11-11 2022-11-11 Method, apparatus and storage medium for executing script command

Country Status (1)

Country Link
CN (2) CN117931156A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117172203A (en) * 2023-09-07 2023-12-05 芯华章科技股份有限公司 Method for processing script command, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313610A1 (en) * 2007-06-13 2008-12-18 Microsoft Corporation Discoscript: a simplified distributed computing scripting language
CN106970802A (en) * 2017-04-25 2017-07-21 北京航天飞行控制中心 The method and device of integrated programming script in the language-specific of field
CN113986210A (en) * 2021-10-28 2022-01-28 西安热工研究院有限公司 Script engine execution method and system supporting script customization
CN114840251A (en) * 2022-04-28 2022-08-02 阿里巴巴(中国)有限公司 Script processing method, terminal, storage medium and program product

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313610A1 (en) * 2007-06-13 2008-12-18 Microsoft Corporation Discoscript: a simplified distributed computing scripting language
CN106970802A (en) * 2017-04-25 2017-07-21 北京航天飞行控制中心 The method and device of integrated programming script in the language-specific of field
CN113986210A (en) * 2021-10-28 2022-01-28 西安热工研究院有限公司 Script engine execution method and system supporting script customization
CN114840251A (en) * 2022-04-28 2022-08-02 阿里巴巴(中国)有限公司 Script processing method, terminal, storage medium and program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117172203A (en) * 2023-09-07 2023-12-05 芯华章科技股份有限公司 Method for processing script command, electronic device and storage medium

Also Published As

Publication number Publication date
CN117931156A (en) 2024-04-26
CN115951868B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
CN110134386B (en) Program editing method and device
US10191751B2 (en) Information processing device for generating application programming interface information
US8448151B2 (en) Method for binarizing initial script on operating system and operating method of binary script
CN110599183B (en) Intelligent contract calling method and device and storage medium
CN115951868B (en) Method, apparatus and storage medium for executing script command
US10387124B2 (en) System and method for creating domain specific language
EP3797356B1 (en) Code base sharing between standalone and web-based versions of an application due to the implementing of an emulated network communication channel
CN112434478B (en) Method for simulating virtual interface of logic system design and related equipment
CN115934093A (en) Applet cross-terminal application method, related device and computer storage medium
CN115688643A (en) Method, apparatus and storage medium for simulating logic system design
CN115729604A (en) Micro application integration method, system, electronic device and storage medium
CN112232003B (en) Method for simulating design, electronic device and storage medium
CN111949510B (en) Test processing method, device, electronic equipment and readable storage medium
CN117075912B (en) Method for program language conversion, compiling method and related equipment
CN113760356B (en) Differential configuration method, device, equipment and medium of program product
CN105893092B (en) COM component processing method and device
CN117172203A (en) Method for processing script command, electronic device and storage medium
CN117172168A (en) Method for realizing callback in simulation, electronic equipment and storage medium
CN115828805A (en) Method, apparatus and storage medium for split logic system design
CN118051221A (en) Program generation method and related equipment
CN112835791A (en) Game compatibility automatic testing method, device, equipment and medium
CN117472407A (en) Platform upgrading method, device, equipment and medium based on k8s cluster construction
CN116112479A (en) http interface implementation method, device, equipment and storage medium
CN116820970A (en) Program testing method, device, medium and equipment
CN114090007A (en) Multi-language text generation method, terminal and storage medium suitable for development language

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