CN108446110B - Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium - Google Patents

Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium Download PDF

Info

Publication number
CN108446110B
CN108446110B CN201810209233.0A CN201810209233A CN108446110B CN 108446110 B CN108446110 B CN 108446110B CN 201810209233 A CN201810209233 A CN 201810209233A CN 108446110 B CN108446110 B CN 108446110B
Authority
CN
China
Prior art keywords
script
sub
lua
scripts
lua script
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
CN201810209233.0A
Other languages
Chinese (zh)
Other versions
CN108446110A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810209233.0A priority Critical patent/CN108446110B/en
Publication of CN108446110A publication Critical patent/CN108446110A/en
Application granted granted Critical
Publication of CN108446110B publication Critical patent/CN108446110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a Lua script generation method, a Lua script generation device, a Lua script generation terminal and a computer readable medium, wherein the Lua script generation method comprises the following steps: acquiring a loading path of each sub-script corresponding to the target Lua script; and acquiring each sub-script according to the loading path, and combining the sub-scripts according to a preset combination mode to generate the target Lua script. The method, the device, the terminal and the computer readable medium for generating the Lua script provided by the embodiment of the invention realize the rapid generation of the Lua script which is easy to manage and maintain.

Description

Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to a Lua script generation method, a Lua script generation device, a Lua script generation terminal and a computer readable medium.
Background
Lua is a small scripting language written by standard C, which can be easily called by C/C + + codes and can also call C/C + + functions in reverse. Therefore, the Lua can be compiled and run on almost all operating systems and platforms, can be widely embedded into application programs of various applications, provides flexible extension and customization functions for the application programs, and becomes the best choice of embedded scripts.
When an operating system or platform (e.g., Redis) implements batch atomic operations through Lua, each Lua script needs to run completely in each operation process without being interrupted by a thread scheduling mechanism. Therefore, even if the same function or code exists in a plurality of Lua scripts, the same function or code must be written in different scripts, respectively, and the same function or code cannot be extracted as a common sub-script. At this time, if the same function or code needs to be changed, a plurality of Lua scripts need to be modified. This undoubtedly increases the time and effort of maintenance of the Lua script, i.e., increases the maintenance cost of the Lua script.
Disclosure of Invention
In view of this, embodiments of the present invention provide a Lua script generation method, an apparatus, a terminal, and a computer readable medium, which implement fast generation of a Lua script that is easy to manage and maintain.
In a first aspect, an embodiment of the present invention provides a Lua script generating method, including:
acquiring a loading path of each sub-script corresponding to the target Lua script;
and acquiring the sub-scripts according to the loading path, and combining the sub-scripts according to a preset combination mode to generate the target Lua script.
In a second aspect, an embodiment of the present invention provides a Lua script generating apparatus, including:
the loading path acquisition module is used for acquiring the loading path of each sub-script corresponding to the target Lua script;
and the target script generation module is used for acquiring the sub scripts according to the loading path and combining the sub scripts according to a preset combination mode to generate the target Lua script.
In a third aspect, an embodiment of the present invention provides a terminal, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the Lua script generation method according to any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the Lua script generation method according to any embodiment of the present invention.
According to the method, the device, the terminal and the computer readable medium for generating the Lua script, provided by the embodiment of the invention, each sub-script corresponding to the target Lua script is loaded by acquiring the loading path of the sub-script corresponding to the target Lua script; and splicing and combining the sub-scripts according to a preset combination mode to generate a target Lua script, so that the Lua script which is easy to manage and maintain is quickly generated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below of the drawings required for the embodiments or the technical solutions in the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart of a Lua script generation method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a Lua script generating device according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a flowchart of a Lua script generation method according to an embodiment of the present invention, where the embodiment is applicable to the generation of the Lua script, and the method may be implemented by a terminal, and specifically may be implemented by software and/or hardware in the terminal. Referring to fig. 1, the Lua script generation method includes the following steps:
and S110, acquiring the loading path of each sub-script corresponding to the target Lua script.
The target Lua script to be generated needs to be formed by combining at least one sub-script, and the sub-script is preset. The sub-scripts required by the target Lua script to be generated can be manually selected by a user, and the sub-scripts required by the target Lua script to be generated can be selected according to the configuration files by reading the corresponding configuration files. And after determining which sub-scripts are required to be combined by the target Lua script to be generated, acquiring a loading path of the corresponding sub-script according to a selection result.
Optionally, before obtaining the load path of each sub-script corresponding to the target Lua script, the method further includes:
acquiring at least one Lua script, and identifying repeated code segments between any two Lua scripts or repeated code segments in any Lua script; and segmenting at least one Lua script according to the repeated code segments to generate a plurality of sub scripts.
And each Lua script in the acquired at least one Lua script can realize different functions. The at least one Lua script can be manually written by a user, can be manually imported, and can be automatically imported through a specified path.
Wherein, when the same function or code segment may exist in one Lua script or between any two Lua scripts, the same function or code segment is repeatedly written for a plurality of times. After at least one Lua script is obtained, repeated code segments between any two Lua scripts or repeated code segments in any Lua script can be identified through modes of comparing program segments one by one or calculating the overall repetition rate and the like. Optionally, after the repeated code segments are identified, a division identifier may be added between a first line code and a previous line code of the repeated code segments and between a last line code and a next line code of the repeated code segments, at least one Lua script code is divided into a plurality of code segments according to the division identifier, and the plurality of code segments are edited and stored respectively, so as to generate a plurality of sub-scripts.
By defining a plurality of sub-scripts, a foundation can be laid for directly calling corresponding sub-scripts in the subsequent process of generating the target Lua script, and the target Lua script is formed by combining a plurality of sub-scripts, so that the writing efficiency of the Lua script is improved by the combined writing mode, the subsequent updating and maintenance are more convenient, and a large amount of time and energy are saved.
Optionally, the segmenting at least one Lua script according to the repeated code segments to generate a plurality of sub-scripts includes: dividing repeated code segments in at least one Lua script to generate candidate sub-scripts; and carrying out duplicate removal processing on the candidate sub-scripts, setting script identifications and loading paths for the candidate sub-scripts after the duplicate removal, and generating a plurality of sub-scripts.
After at least one Lua script code is divided to generate a plurality of code segments, the repeated parts of the repeated code segments are removed, only any one repeated code segment is reserved, and the unrepeated code segments are reserved, so that the deduplication processing of the candidate sub-script is completed. The memory space can be reduced through the deduplication processing, and the sub-scripts are convenient to manage.
The script identifier of the duplicate-removed sub-script is set, for example, the number, the letter, the special symbol or any combination thereof can be set to identify the duplicate-removed sub-script, and the script identifier can be set to facilitate the searching and editing of the sub-script, so that the maintenance and management of the sub-script and the target Lua script are more convenient.
After the loading paths of the multiple sub-scripts are set, script identifications and loading paths of the multiple sub-scripts can be associated. By associating the script identifier with the loading path, the corresponding loading path can be directly searched through the script identifier for loading the sub-script, the generation time of the target Lua script is shortened, and the target Lua script is generated more quickly.
Optionally, after generating the plurality of sub-scripts, the method further includes:
determining a sub-script corresponding to the repeated code segment contained in the at least one Lua script as a common sub-script in the at least one Lua script; determining an independent sub-script in at least one Lua script according to the public sub-script; generating a sub-script path configuration file according to the script identification and the loading path of the public sub-script and the script identification and the loading path of the independent sub-script; and generating a combined configuration file according to the execution sequence of the public sub-script and the independent sub-script in the target Lua script.
By dividing the sub-script into a common sub-script and an independent sub-script, different sub-script updating steps can be performed. For example, when the updated sub-script is an independent sub-script, when the target Lua script containing the independent sub-script before updating is inquired, the inquiry is stopped and the independent sub-script is updated without traversing all the target Lua scripts, so that the script updating time is saved. And when the updated sub-script is the public sub-script, all the target Lua scripts need to be traversed, and then all the target Lua scripts containing the public sub-script are updated.
The script identifier and the loading path contained in the sub-script path configuration file and the corresponding relation between the script identifier and the loading path can be dynamically updated. The script identification and the loading path can be associated through the generation of the sub-script path configuration file, the loading path corresponding to the script identification can be obtained through searching the sub-script configuration file and is used for loading the sub-script, the generation time of the target Lua script is shortened, and the target Lua script is generated more quickly.
The combined configuration file may include script identifiers of the common sub-script and the independent sub-script, and the order of the script identifiers may represent the execution order of the common sub-script and the independent sub-script. The script identification and sequencing in the combined configuration file can be dynamically updated. By generating the combined configuration file, the sub-scripts required by each target Lua script and the execution sequence of the sub-scripts can be defined, so that the generation of the target Lua script is more effective and convenient.
Optionally, obtaining the loading path of each sub-script corresponding to the target Lua script includes:
acquiring a configuration file of a target Lua script, wherein the configuration file comprises a combined configuration file and a sub-script path configuration file; sequentially acquiring script identifications of all sub-scripts corresponding to the target Lua script according to the combined configuration file; and acquiring a loading path corresponding to the script identifier of each sub-script according to the sub-script path configuration file.
The sub-scripts and the execution sequence thereof required by each target Lua script can be searched by acquiring the combined configuration file, and the loading paths corresponding to the script identifiers can be searched by acquiring the sub-script path configuration file, so that the target Lua script can be generated quickly. And after the sub-scripts are updated, the target Lua scripts including the sub-scripts before updating can be quickly searched by searching the combined configuration file, so that the sub-scripts can be quickly updated, the updating and maintaining time is saved, and the target Lua scripts can be more favorably maintained and managed.
And S120, acquiring each sub-script according to the loading path, and combining the sub-scripts according to a preset combination mode to generate the target Lua script.
After the sub-scripts are loaded according to the loading path, the sub-scripts can be combined and spliced according to the execution sequence, and the spliced Lua script can be determined to be the target Lua script. Wherein the script content may cause the map format to be stored.
Optionally, after the generating the target Lua script, the method further includes:
and when any sub script is detected to be updated, replacing the sub script before updating in the target Lua script according to the updated sub script.
Because the target Lua script is formed by splicing and combining a plurality of sub scripts, if any sub script is updated, the terminal can automatically update the same sub scripts in all the target Lua scripts according to the updated sub scripts. All the target Lua scripts can be automatically updated through the updated sub-scripts, so that the time and the energy for maintaining the Lua scripts are reduced, the updating and maintaining cost of the Lua scripts is saved, and the management efficiency of the Lua scripts is improved.
For example, suppose that there are now three target Lua scripts to be generated, i.e. command1, command2 and command3, and there are some common code segments to store as common sub-scripts common. The parts which are respectively and independently realized are determined as independent sub-scripts respectively named command1_ only.
Defining the combined configuration file in JSON (JSON) format in JS Object markup may be:
Figure BDA0001596728640000071
Figure BDA0001596728640000081
the sub-script path configuration file defined in the configuration file in the JSON format may be:
Figure BDA0001596728640000082
Figure BDA0001596728640000091
the snips field defines the script identifier of the sub-script and the loading path thereof, and the commands field defines the names of various functions and the script identifier of the required sub-script. Each sub-script combination mode is a splicing mode, for example, the combination id of the command1 is 0 and1, namely, the combination id corresponds to splicing common.
The sub-scripts and the execution sequence thereof required by each target Lua script can be searched by acquiring the combined configuration file, and the loading paths corresponding to the script identifiers can be searched by acquiring the sub-script path configuration file. And finally, the storage structure of the target Lua script is the script content spliced by the sub-scripts and is stored in a map format. Taking the three target Lua scripts as an example, the final target Lua script internal storage result is as follows:
command1- > script common. lua + command1_ only
command2- > script common. lua + command2_ only
command3- > script command3.lua
As can be seen from the above, the target Lua script can be formed by combining a plurality of common sub-scripts and independent sub-scripts, and can also be formed by a single independent sub-script, and the sub-scripts included in the target Lua script can also be updated and maintained according to the combined configuration file.
And when the method is applied to Redis, the script content can be sent to Redis only when the target Lua script is executed for the first time, and the corresponding script program can be executed only by sending the sha1 value (40 bytes) in the following process, so that the network data flow between the Redis and the Redis is greatly reduced.
In the Lua script generation method provided by this embodiment, each sub-script corresponding to the target Lua script is loaded by obtaining a loading path of the sub-script corresponding to the target Lua script; and splicing and combining the sub-scripts according to a preset combination mode to generate a target Lua script, so that the Lua script which is easy to manage and maintain is quickly generated.
Example two
Fig. 2 is a schematic structural diagram of a Lua script generation apparatus according to a second embodiment of the present invention, which is applicable to Lua script generation in this embodiment.
Referring to fig. 2, the Lua script generating device in this embodiment includes:
a loading path obtaining module 210, configured to obtain a loading path of each sub-script corresponding to the target Lua script;
and the target script generating module 220 is configured to obtain each sub-script according to the loading path, and combine each sub-script according to a preset combination mode to generate a target Lua script.
Optionally, the Lua script generating device further includes:
the system comprises a repeated code segment identification module, a database module and a database module, wherein the repeated code segment identification module is used for acquiring at least one Lua script and identifying repeated code segments between any two Lua scripts or repeated code segments in any Lua script;
and the sub-script generating module is used for segmenting at least one Lua script according to the repeated code segment to generate a plurality of sub-scripts.
Optionally, the sub-script generating module may include:
the candidate sub-script generating unit is used for dividing repeated code segments in at least one Lua script to generate candidate sub-scripts;
and the sub-script generating unit is used for carrying out duplication elimination processing on the candidate sub-scripts, setting script identifications and loading paths for the duplicated candidate sub-scripts and generating a plurality of sub-scripts.
Optionally, the Lua script generating device further includes:
the public sub-script determining module is used for determining the sub-script corresponding to the repeated code segment contained in the at least one Lua script as the public sub-script in the at least one Lua script;
the independent sub-script determining module is used for determining an independent sub-script in at least one Lua script according to the public sub-script;
the sub-script path configuration file is used for generating a sub-script path configuration file according to the script identifier and the loading path of the public sub-script and the script identifier and the loading path of the independent sub-script;
and the combined configuration file is used for generating the combined configuration file according to the execution sequence of the public sub-script and the independent sub-script in the target Lua script.
Optionally, the load path obtaining module 210 is specifically configured to:
acquiring a configuration file of a target Lua script, wherein the configuration file comprises a combined configuration file and a sub-script path configuration file; sequentially acquiring script identifications of all sub-scripts corresponding to the target Lua script according to the combined configuration file; and acquiring a loading path corresponding to the script identifier of each sub-script according to the sub-script path configuration file.
Optionally, the Lua script generating device further includes:
and the sub-script updating module is used for replacing the sub-script before updating in the target Lua script according to the updated sub-script when any sub-script is detected to be updated.
The Lua script generating device provided by the present embodiment belongs to the same inventive concept as the Lua script generating method provided by the first embodiment, and reference may be made to the first embodiment for technical details that are not described in detail in the present embodiment, and the present embodiment and the first embodiment have the same beneficial effects.
EXAMPLE III
The embodiment provides a terminal which can be used for Lua script generation. Fig. 3 is a schematic structural diagram of a terminal according to a third embodiment of the present invention. Referring to fig. 3, the terminal includes:
one or more processors 310;
a memory 320 for storing one or more programs;
when the one or more programs are executed by the one or more processors 310, the one or more processors 310 are enabled to implement the Lua script generation method as set forth in the first embodiment.
In FIG. 3, a processor 310 is illustrated as an example; the processor 310 and the memory 320 may be connected by a bus or other means, such as the bus connection shown in FIG. 3.
The memory 320 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the Lua script generation method in the embodiment of the present invention. The processor 310 executes various functional applications and data processing of the terminal by running software programs, instructions and modules stored in the memory 320, that is, the Lua script generation method described above is realized.
The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 320 may further include memory located remotely from the processor 310, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The terminal proposed by the embodiment and the Lua script generation method proposed by the first embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment can be referred to in the first embodiment, and the first embodiment have the same beneficial effects.
Example four
The present embodiment provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the Lua script generation method as set forth in the first embodiment.
The computer-readable storage medium provided by the present embodiment and the Lua script generating method provided by the first embodiment belong to the same inventive concept, and technical details that are not described in detail in the present embodiment can be referred to in the first embodiment, and the present embodiment and the first embodiment have the same beneficial effects.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A Lua script generation method is characterized by comprising the following steps:
acquiring a loading path of each sub-script corresponding to the target Lua script;
acquiring the sub-scripts according to the loading path, and combining the sub-scripts according to a preset combination mode to generate the target Lua script;
before the obtaining of the load path of each sub-script corresponding to the target Lua script, the method further includes:
acquiring at least one Lua script, and identifying repeated code segments between any two Lua scripts or repeated code segments in any Lua script;
segmenting the at least one Lua script according to the repeated code segment to generate a plurality of sub-scripts;
when the method is applied to Redis, only when the target Lua script is executed for the first time, the script content is sent to the Redis, and then only the sha1 value needs to be sent in the following process, so that the corresponding script program can be executed.
2. The method according to claim 1, wherein splitting the at least one Lua script according to the repeated code segments to generate a plurality of sub-scripts comprises:
dividing the repeated code segment in the at least one Lua script to generate candidate sub-scripts;
and carrying out duplicate removal processing on the candidate sub-scripts, setting script identifications and loading paths for the candidate sub-scripts after duplicate removal, and generating a plurality of sub-scripts.
3. The method of claim 2, after generating the plurality of sub-scripts, further comprising:
determining a sub-script corresponding to the repeated code segment contained in the at least one Lua script as a common sub-script in the at least one Lua script;
determining an independent sub-script in the at least one Lua script according to the common sub-script;
generating a sub-script path configuration file according to the script identification and the loading path of the public sub-script and the script identification and the loading path of the independent sub-script;
and generating a combined configuration file according to the execution sequence of the public sub-script and the independent sub-script in the target Lua script.
4. The method according to any one of claims 1 to 3, wherein obtaining the loading path of each sub-script corresponding to the target Lua script comprises:
acquiring a configuration file of the target Lua script, wherein the configuration file comprises a combined configuration file and a sub-script path configuration file;
sequentially acquiring script identifications of all sub-scripts corresponding to the target Lua script according to the combined configuration file;
and acquiring a loading path corresponding to the script identifier of each sub-script according to the sub-script path configuration file.
5. The method of claim 1, wherein after the generating the target Lua script, comprising:
and when any sub script is detected to be updated, replacing the sub script before updating in the target Lua script according to the updated sub script.
6. A Lua script generating apparatus, comprising:
the loading path acquisition module is used for acquiring the loading path of each sub-script corresponding to the target Lua script;
the target script generation module is used for acquiring the sub-scripts according to the loading path and combining the sub-scripts according to a preset combination mode to generate the target Lua script;
the system comprises a repeated code segment identification module, a database module and a database module, wherein the repeated code segment identification module is used for acquiring at least one Lua script and identifying repeated code segments between any two Lua scripts or repeated code segments in any Lua script;
the sub-script generating module is used for segmenting at least one Lua script according to the repeated code segment to generate a plurality of sub-scripts;
when the method is applied to Redis, only when the target Lua script is executed for the first time, the script content is sent to the Redis, and then only the sha1 value needs to be sent in the following process, so that the corresponding script program can be executed.
7. The apparatus of claim 6, further comprising:
and the sub-script updating module is used for replacing the sub-script before updating in the target Lua script according to the updated sub-script when any sub-script is detected to be updated.
8. A terminal, characterized in that the terminal comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the Lua script generation method of any of claims 1-5.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the Lua script generation method according to any one of claims 1 to 5.
CN201810209233.0A 2018-03-14 2018-03-14 Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium Active CN108446110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810209233.0A CN108446110B (en) 2018-03-14 2018-03-14 Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810209233.0A CN108446110B (en) 2018-03-14 2018-03-14 Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium

Publications (2)

Publication Number Publication Date
CN108446110A CN108446110A (en) 2018-08-24
CN108446110B true CN108446110B (en) 2022-01-04

Family

ID=63194452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810209233.0A Active CN108446110B (en) 2018-03-14 2018-03-14 Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium

Country Status (1)

Country Link
CN (1) CN108446110B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109822549B (en) * 2018-12-31 2021-05-11 深圳市越疆科技有限公司 Robot programming method and device and controller
CN111737280A (en) * 2020-06-22 2020-10-02 中国银行股份有限公司 Method and device for optimizing SQL storage process script
CN112069080A (en) * 2020-09-23 2020-12-11 北京合众伟奇科技股份有限公司 Automatic executable script test method and system
CN112416448A (en) * 2020-12-08 2021-02-26 北京中亦安图科技股份有限公司 Operating system information acquisition method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023861A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for generating test script and test suite
CN104899046A (en) * 2015-06-26 2015-09-09 上海斐讯数据通信技术有限公司 Multifunctional script running method and multifunctional script running system
WO2015144242A1 (en) * 2014-03-28 2015-10-01 Sato Holdings Kabushiki Kaisha Multiple platform printer configuration
CN106873993A (en) * 2017-02-07 2017-06-20 深圳市北斗智研科技有限公司 A kind of easily Scripting Edition method and system
CN106919374A (en) * 2015-12-28 2017-07-04 北京京东尚科信息技术有限公司 A kind of scenario generation method and device
CN107391378A (en) * 2017-07-27 2017-11-24 郑州云海信息技术有限公司 The generation method and device of a kind of test script

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015116176A1 (en) * 2014-01-31 2015-08-06 Hewlett-Packard Development Company, L.P. Device provided script to convert command
CN104866310B (en) * 2015-05-20 2018-07-13 百度在线网络技术(北京)有限公司 The processing method and system of knowledge data
CN106709064B (en) * 2017-01-17 2020-07-31 Oppo广东移动通信有限公司 Data processing method and device and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023861A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for generating test script and test suite
WO2015144242A1 (en) * 2014-03-28 2015-10-01 Sato Holdings Kabushiki Kaisha Multiple platform printer configuration
CN104899046A (en) * 2015-06-26 2015-09-09 上海斐讯数据通信技术有限公司 Multifunctional script running method and multifunctional script running system
CN106919374A (en) * 2015-12-28 2017-07-04 北京京东尚科信息技术有限公司 A kind of scenario generation method and device
CN106873993A (en) * 2017-02-07 2017-06-20 深圳市北斗智研科技有限公司 A kind of easily Scripting Edition method and system
CN107391378A (en) * 2017-07-27 2017-11-24 郑州云海信息技术有限公司 The generation method and device of a kind of test script

Also Published As

Publication number Publication date
CN108446110A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN108446110B (en) Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium
CN107832406B (en) Method, device, equipment and storage medium for removing duplicate entries of mass log data
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium
CN111068328B (en) Game advertisement configuration form generation method, terminal equipment and medium
CN105260639A (en) Face recognition system data update method and device
CN111831920A (en) User demand analysis method and device, computer equipment and storage medium
WO2018006721A1 (en) Method and apparatus for storing log file
CN112084179A (en) Data processing method, device, equipment and storage medium
CN115421764A (en) Method, device, equipment and storage medium for identifying module to be upgraded
CN112860412B (en) Service data processing method and device, electronic equipment and storage medium
CN112988280B (en) Configuration data processing method and device
CN112328602B (en) Method, device and equipment for writing data into Kafka
CN111125163B (en) Method and device for processing data
CN111159142B (en) Data processing method and device
CN108197255B (en) Method and equipment for setting query tree and computer readable storage medium
CN107422991B (en) Storage strategy management system
CN110708355A (en) File uploading method, system, device and readable storage medium
CN110221952B (en) Service data processing method and device and service data processing system
CN111080250B (en) Flow backspacing compensation method and device, storage medium and electronic equipment
CN109522014B (en) Algorithm processing method based on new product development, electronic device and readable storage medium
CN113342647A (en) Test data generation method and device
CN108763498B (en) User identity identification method and device, electronic equipment and readable storage medium
CN113901057A (en) Data playback method and device, computer equipment and storage medium
CN112947846A (en) Batch processing task execution method and device of object storage system and electronic equipment
CN115756630A (en) Plug-in processing method and device, computer 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