CN115951868B - 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
CN115951868B
CN115951868B CN202211420834.9A CN202211420834A CN115951868B CN 115951868 B CN115951868 B CN 115951868B CN 202211420834 A CN202211420834 A CN 202211420834A CN 115951868 B CN115951868 B CN 115951868B
Authority
CN
China
Prior art keywords
script
code block
script command
command
identifier
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
Application number
CN202211420834.9A
Other languages
Chinese (zh)
Other versions
CN115951868A (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 CN202410198591.1A priority Critical patent/CN117931156A/en
Priority to CN202211420834.9A priority patent/CN115951868B/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

Landscapes

  • Stored Programmes (AREA)

Abstract

The application provides a method, equipment and 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 identifier and the second identifier; and outputting an execution result of the script command description.

Description

Method, apparatus and storage medium for executing script command
Technical Field
The present invention 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
Script (Script) is an executable file written in accordance with a certain format using a specific descriptive language. Scripting languages, also known as extended languages, or dynamic languages, are programming languages used to control software applications, and scripts are typically saved in text and interpreted or compiled only 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, daughter card resources, etc.) and verification flows. As technology evolves, a wide variety of scripting languages evolve and develop. Common scripting languages may include: javaScript, PHP (Hypertext Preprocessor ), python, tcl (Tool Command Language, tool command language), VBScript, CSS (Cascading Style Sheets ), etc. Different users often use different scripting languages, which have their own advantages in different scenarios. For example, tcl has a large number of existing application programming interfaces (api) supported, python may make the description more compact in some complex tasks.
However, script command systems typically support only one scripting language, with script command files written in different scripting languages being separate. If one scripting language requires invocation of another scripting language, the scripting command system requires the use of specific commands to perform the invocation of one scripting command file on another scripting file. This makes it impossible for a user to flexibly switch script commands written using a plurality of script languages.
How to realize the flexible switching of the scripting languages by using multiple scripting languages simultaneously in one scripting command system without using specific commands to make cross-file calls is a problem to be solved.
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 identifier and the second identifier; and outputting an execution result of the script command description.
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 present 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 device and the storage medium for executing the script command, through the method of adding the identifier 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 may divide the script command description into a plurality of code blocks according to the identification, and execute the code blocks using corresponding script processors according to script language types of the code blocks. Therefore, the electronic equipment does not need to spend resources to call specific commands so as to realize the call among script command files written in different languages, and the speed of executing 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 call relation of the script command to other script commands is not required to be analyzed with additional effort, and the requirement of the user for flexibly using the script language is met.
Drawings
In order to more clearly illustrate the technical solutions of the present application or related art, the drawings that are required to be used in the description of the embodiments or related art will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort to those of ordinary skill in the art.
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 a call procedure between different script command descriptions.
FIG. 3A shows a schematic diagram of an exemplary script command description in accordance with embodiments of the present application.
FIG. 3B illustrates a schematic diagram of an exemplary process of executing script commands, according to embodiments of the present application.
FIG. 4 illustrates a flow chart of an exemplary method of executing script commands, according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail below with reference to the accompanying drawings.
It is to be noted that unless otherwise defined, technical or scientific terms used herein should be taken in a general sense as understood by one of ordinary skill in the art to which this application belongs. The terms "first," "second," and the like, as used herein, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" and the like means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof without precluding other elements or items. The term "coupled" and the like are not 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: processor 102, memory 104, network interface 106, peripheral interface 108, and 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 (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 (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits. The processor 102 may be used to perform functions related to the techniques described herein. In some embodiments, processor 102 may also include multiple processors integrated as a single logical 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 used to simulate the test design may be a computer program stored in memory 104. As shown in fig. 1, the data stored in the memory may include program instructions (e.g., program instructions for implementing the methods of executing script commands of the present application) as well as data to be processed (e.g., the memory may store temporary code generated during compilation). The processor 102 may also access program instructions and data stored in the memory and execute the program instructions to perform operations on the data to be processed. The memory 104 may include volatile storage or nonvolatile storage. In some embodiments, memory 104 may include Random Access Memory (RAM), read Only Memory (ROM), optical disks, magnetic disks, hard disks, solid State Disks (SSD), flash memory, memory sticks, and the like.
The network interface 106 may be configured to provide communication 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 foregoing. It will be appreciated 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, receivers, modems, routers, gateways, adapters, cellular network chips, etc.
The peripheral interface 108 may be configured to connect the electronic apparatus 100 with one or more peripheral devices to enable information input and output. For example, the peripheral devices may include input devices such as keyboards, mice, touchpads, touch screens, microphones, various types of sensors, and output devices such as displays, speakers, vibrators, and indicators.
Bus 110 may be configured to transfer information between the various components of electronic device 100 (e.g., processor 102, memory 104, network interface 106, and peripheral interface 108), such as an internal bus (e.g., processor-memory bus), an external bus (USB port, PCI-E bus), etc.
It should be noted that, although the above electronic device architecture 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 proper operation. Furthermore, those skilled in the art will appreciate that the electronic device architecture described above may also include only the components necessary to implement the embodiments of the present application, and not all of the components shown in the figures.
In the field of verification of integrated circuits, in order to verify whether a logic system design is correct, a design verification environment is required for verifying the logic system design. The verification environment may be run on a computer or simulation tool after compilation to perform simulation tests on various functions of the logic system design to verify that the logic system design is correct. In order to build a verification environment for verifying a logical 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, through a script command, 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 can also select his authentication item and configure the corresponding parameters through script commands.
As mentioned above, the scripting languages commonly used are diverse. Different users often use different scripting languages, which have their own advantages in different scenarios.
In some embodiments, a user may configure a portion of the verification resources using a script command written in a Tcl scripting language, and then the user may process a portion of the tasks using a script command written in a Python scripting language. After the task processing is complete, the user may continue to configure the next validation resource using the script commands written in the Tcl scripting language. Thus, there is a need to invoke script commands 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 call process 200 between different script command descriptions.
Typically, a script command file contains script commands written in only one scripting language. As shown in fig. 2, the script command file 201 may be, for example, a script command written in Tcl script language; the script command file 202 may be, for example, a script command written in a Python script language.
The electronic device 100 may call the execution result of the description 2021 in the script command file 202 by a specific command when executing the description 2011 in the script command file 201. The specific command may be, for example: "tcl.eval (" puts $A ")". Since the contents of the script command file call written in the Tcl scripting language may be in a character string format, the electronic device 100 may wrap the called portion "Py eval" import os "in the description 2021 into a character string. In some embodiments, the electronic device 100 may also wrap the description 2021 into a file for invocation. In some cases, to invoke a Python's script command in, for example, a Tcl scripting language, it is often necessary to reference a specific library file, translate the Python command, and then compile it with a compiler in the Tcl language. The method has the advantages that 2 technical problems are led out, firstly, a user needs to refer to a special library, and the learning cost of the user is increased; 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 therefore, only very simple Python commands can be used in the Tcl to process some simple problems, and the maximum capability of respective languages cannot be exerted.
For a complex verification process, the electronic device 100 may call the script command file 202 multiple times while executing the script command file 201, even call other script command files. In this case, the process of multiple invocations of the electronic device 100 would be very cumbersome, requiring constant toggling between script command files. And the electronic device 100 needs to manage a large number of character string codes or files, occupying a large amount of storage resources.
In view of this, an embodiment of the disclosure provides a method for executing a script command.
FIG. 3A shows a schematic diagram of an exemplary script command description 300, according to an embodiment of the present application.
The user may write script commands in a script command description 300 using multiple script languages according to the requirements of the verification task. The script command description 300 may include a script command "xxxxxxxx" written using a Tcl script language and a script command "Yyyyyy" written using a Python script language. The electronic device 100 may receive a script command description 300 entered 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 "Xxxxxxxxx" written in the Tcl script language first, then execute the script command "yyyyy" written in the Python script language, and then continue executing the script command "Xxxxxxxxx" written in the Tcl script language.
Such writing is such that the script command description 300 includes both script commands written in Tcl script language and script commands written in Python script language. The user can flexibly switch different scripting languages in the same scripting command description 300 to write the scripting commands according to the execution order of the scripting commands.
To distinguish script commands written in different scripting languages, the electronic device 100 may determine an identification corresponding to each scripting language from the script command description 300. For example, the identifier corresponding to the Tcl scripting language may be "Tcl" and the identifier corresponding to the Python scripting language may be "Py". The identifications "Tcl" and "Py" may be added by the user when writing script command description 300. In some embodiments, electronic device 100 may determine in scripting command description 300 that the identification preceding scripting command "xxxxxxxx" is "Tcl", indicating that the content under the identification "Tcl" is a scripting command written in the Tcl scripting language. The electronic device 100 may determine that the identification preceding the script command "yyyyyyy" is "Py" in the script command description 300, indicating that the contents under the identification "Py" are all script commands written in Python script language.
It will be appreciated that in some embodiments, the electronic device 100 may automatically recognize what language the script command is described in, without any identification.
FIG. 3B illustrates a schematic diagram of an exemplary process 310 of executing script commands, according to an embodiment of the present application.
Script command description 300 the script command written in the Tcl scripting language may be split by the electronic device 100 based on the determined identification "Tcl" to obtain code block 3111. Because the script command description 300 may include a plurality of identifiers "tcls," the electronic device 100 may split the script commands written in the Tcl scripting 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 scripting language, and so on. Similarly, the electronic device 100 may split the script command written in the Python script language based on the determined identification "Py" to obtain the code block 3113. In response to the script command description 300 including the plurality of identifications "Py" therein, the electronic device 100 can split the script command description 300 into a plurality of code blocks 3113 and 3114 and the like written in Python scripting language.
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 between the code blocks 3111, 3112, 3113, 3114. The electronic device 100 may execute the script command of the code block 3111 first, 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 order in the interaction information 312. The order in which the electronic device 100 executes the blocks of code may be consistent with the order of the script commands in the user-written script command description 300.
Since the code blocks 3111 and 3112 are written in Tcl script language, and the code blocks 3113 and 3114 are written in Python script language, the electronic device 100 can call a script processor corresponding to the script language to process the corresponding code blocks. The electronic device 100 may invoke the script processor 3131 to process the code blocks 3111 and 3112. Script processor 3131 may be a Tcl script interpreter or compiler. In response to script processor 3131 being a script interpreter, the script interpreter may directly run script commands in code blocks 3111 and 3112. In response to script processor 3131 being a compiler, the compiler may compile script commands in code blocks 3111 and 3112 to generate intermediate code. The electronic device 100 may invoke the script processor 3132 to process the code blocks 3113 and 3114. Script processor 3132 may be a Python script interpreter or compiler.
Interaction information 312 may also include call relationships between code blocks 3111, 3112 and code blocks 3113, 3114. For example, the call relationship may be a call relationship of the code block 3111 to the code block 3113. The call relationship of code block 3111 to code block 3113 may actually be a call of code block 3111 to the execution result of code block 3113. For example, code block 3113 may be a script command written using the Python script language to perform a task. Code block 3111 needs to call the execution result of the task to continue executing script commands. 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 device 100 can execute the call of the code block 3111 to the code block 3113 based on the call relationship.
In some embodiments, script processor 3131 may process code blocks 3111 and 3112 to obtain first intermediate code, the first intermediate code being described in an intermediate language (e.g., c++ language or C language). Similarly, script processor 3132 may process code blocks 3113 and 3114 to obtain second intermediate code, which is also described by the intermediate language (i.e., for example, the c++ language or the C language). The electronic device 100 may further execute the intermediate language compiler to further process (e.g., interpret or compile) and ultimately execute the script command description 300 based on the first intermediate code, the second intermediate code, and the interaction information 312.
After the code blocks 3111, 3112, 3113, and 3114 are processed, the electronic device 100 can output an execution result 314 of the script command description 300 via the script processors 3131 and 3132. The execution results 314 may be displayed on a display via the peripheral interface 108 of the electronic device 100.
In this way, by adding the identification method in the script command description, the user can write script commands written in different languages in the same script command description. When importing a script command description, the electronic device 100 may divide the script command description into a number of code blocks according to the identification and execute using corresponding script processors according to the script language type of the code blocks. In this way, the electronic device 100 does not need to spend resources to call a specific command to realize the call between script command files written in different languages, thereby improving the speed of executing the script command. 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 call relation of the script command to other script commands is not required to be analyzed with additional effort, and the requirement of the user for flexibly using the script language is met.
FIG. 4 illustrates a flow chart of an exemplary method 400 of executing script commands, according to an embodiment 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, the electronic device 100 may receive a script command description (e.g., script command description 300 in fig. 3A) entered by a user. Wherein the script command description includes a first script command (e.g., script command "xxxxxx" in fig. 3A) written in a first script language (e.g., tcl script language) and a second script command (e.g., script command "Yyyyyy" in fig. 3A) written in a second script language (e.g., python script language).
At step 404, 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 from the script command description (e.g., the contents under identifier "Tcl" in fig. 3B are each script commands "xxxxxxx" written in Tcl script language, and the contents under identifier "Py" are each script commands "yyyyy" written in Python script language).
In some embodiments, electronic device 100 may determine the first identity in the script command description based on the first script command (e.g., the identity in fig. 3B determined to be "Tcl" preceding script command "xxxxxx"); and determining the second identity in the script command description based on the second script command (e.g., the identity "Py" in fig. 3B determined prior to script command "Yyyyyy").
At 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, electronic device 100 may split the script command description (e.g., script command description 300 in fig. 3B) into at least one first code block (e.g., code blocks 3111 and 3112 in fig. 3B) based on the first identification (e.g., identification "Tcl"), where the at least one first code block is written in the first script language (e.g., 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) based on the second identification (e.g., identification "Py"), wherein 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., executing the script command of code block 3111 first, then executing the script command of code block 3113, then executing the script command of code block 3112, and finally executing the script command of code block 3114). The electronic device 100 may sequentially process the at least one first code block and the at least one second code block 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 can 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 an execution result. And based on the calling relationship, the electronic device 100 may execute the call of the first code block to the execution result. 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 further process the first intermediate code and the second intermediate code using a third compiler corresponding to the intermediate language, and generate 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.
At 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 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 the 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 that, when executed, are to cause the electronic device to perform the method 400.
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 can 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 are also possible or may be advantageous.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the application (including the claims) is limited to these examples; the technical features of the above embodiments or in different embodiments may also be combined under the idea of the present application, the steps may be implemented in any order, and there are many other variations of the different aspects of the present application as described above, which are not provided in details for the sake of brevity.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
This application is intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Accordingly, any omissions, modifications, equivalents, improvements and the like, which are within the spirit and principles of the application, are intended to be included within the scope of the present application.

Claims (8)

1. A method of executing script commands, 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 identifier and the second identifier; and
outputting the execution result described by the script command,
wherein executing the first script command and the second script command based on the first identifier and the second identifier further comprises:
splitting the script command description into at least one first code block according to the first identifier, 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 identifier, wherein the at least one second code block is written in the second script language;
acquiring interaction information of the at least one first code block and the at least one second code block; and
processing the associated at least one first code block and the at least one second code block based on the interaction information,
wherein the interaction information includes an execution order of the first code block and the second code block or a call relationship of the first code block to the second code block,
wherein processing the associated at least one first code block and the at least one second code block based on the interaction information further comprises:
processing the at least one first code block into first intermediate code using a first script processor;
processing the at least one second code block into second intermediate code using a second script processor; and
executable code is generated based on the first intermediate code, the second intermediate code, and the interaction information.
2. The method of claim 1, wherein determining the first and second identifications 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 identification in the script command description according to the second script command.
3. The method of claim 1, wherein compiling the associated at least one first code block and the at least one second code block based on the interaction information further comprises:
the at least one first code block and the at least one second code block are sequentially processed based on the execution order.
4. The method of claim 3, 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
the at least one second code block is processed using a second script processor.
5. The method of claim 4, wherein the first script processor and the second script processor are script interpreters or compilers.
6. The method of claim 3, wherein compiling the associated at least one first code block and the at least one second code block based on the interaction information further comprises:
processing the second code block to obtain an execution sub-result; and
and executing the call of the first code block to the execution sub-result based on the call relation.
7. 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 one of claims 1 to 6.
8. 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-6.
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
CN202410198591.1A CN117931156A (en) 2022-11-11 2022-11-11 Method, apparatus and storage medium for executing script command
CN202211420834.9A CN115951868B (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 CN115951868A (en) 2023-04-11
CN115951868B true 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)

Families Citing this family (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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7861222B2 (en) * 2007-06-13 2010-12-28 Microsoft Corporation Discoscript: a simplified distributed computing scripting language

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN115951868A (en) 2023-04-11
CN117931156A (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN107203465B (en) System interface testing method and device
CN110599183B (en) Intelligent contract calling method and device and storage medium
US8448151B2 (en) Method for binarizing initial script on operating system and operating method of binary script
CN115951868B (en) Method, apparatus and storage medium for executing script command
CN109614325B (en) Method and device for determining control attribute, electronic equipment and storage medium
US10387124B2 (en) System and method for creating domain specific language
CN112287569A (en) Method, electronic device and storage medium for simulating logic system design
CN112154417B (en) Sharing code libraries between stand-alone and Web-based versions of an application via an emulated network communication channel
CN115422866A (en) Method for simulating logic system design on simulator and related equipment
CN112434478B (en) Method for simulating virtual interface of logic system design and related equipment
CN114548027A (en) Method for tracking signal in verification system, electronic device and storage medium
CN107783867B (en) Gesture testing method and device, computer equipment and storage medium
CN114328062B (en) Method, device and storage medium for checking cache consistency
CN107341038B (en) Compatibility processing method and device and electronic equipment
CN109542447B (en) OTX program file execution method and device
CN115688643A (en) Method, apparatus and storage medium for simulating logic system design
CN112232003B (en) Method for simulating design, electronic device and storage medium
CN114741294A (en) Page debugging method, device, equipment and storage medium
CN111949510B (en) Test processing method, device, electronic equipment and readable storage medium
CN112363969A (en) Interface debugging method and device, electronic equipment and readable storage medium
CN112131806A (en) Compilation method for verification design, electronic device and storage medium
CN117172168B (en) Method for realizing callback in simulation, electronic equipment and storage medium
CN113505066B (en) Method for verifying tested module and verification system
CN116151187B (en) Method, apparatus and storage medium for processing trigger condition
CN114169287B (en) Method for generating connection schematic diagram of verification environment, electronic equipment and storage medium

Legal Events

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