Cognitive dynamic script language builder
First Claim
1. A computer-implemented method for dynamically updating a script, the method comprising:
- receiving an error message from the script operating in a run-time environment;
determining a cause of the error message, wherein the cause of the error message is an erroneous segment of code of the script;
determining a solution to the error message, wherein the solution to the error message is a replacement segment of code for the erroneous segment of code;
creating a new script based on the replacement segment of code, wherein creating the new script based on the replacement segment of code comprises;
updating a database based on the determined segment of code, wherein the database is comprising of a type of code selected from the group consisting of;
a skeleton database, a moniker database, and a symbol database;
inserting one or more skeletons from the skeleton database into a moniker from the moniker database; and
inserting one or more variables from the variable database into the one or more skeletons to create the new script, wherein at least one of the one or more skeletons, the one or more variables and the monikers contain the determined segment of code; and
executing the new script in the run-time environment.
1 Assignment
0 Petitions
Accused Products
Abstract
An embodiment of the invention may include a method, computer program product and computer system for updating a script of scripting language. The embodiment may include a computing device that receives an error message from the script operating in a run-time environment. The embodiment may include a computing device that determines a cause of the error message, wherein the cause of the error message is an erroneous segment of code of the script. The embodiment may include a computing device that determines a solution to the error message, wherein the solution to the error message is a replacement segment of code for the erroneous segment of code. The embodiment may include a computing device that creates a new script based on the replacement segment of code. The embodiment may include a computing device that operates the new script in the run-time environment.
26 Citations
17 Claims
-
1. A computer-implemented method for dynamically updating a script, the method comprising:
-
receiving an error message from the script operating in a run-time environment; determining a cause of the error message, wherein the cause of the error message is an erroneous segment of code of the script; determining a solution to the error message, wherein the solution to the error message is a replacement segment of code for the erroneous segment of code; creating a new script based on the replacement segment of code, wherein creating the new script based on the replacement segment of code comprises; updating a database based on the determined segment of code, wherein the database is comprising of a type of code selected from the group consisting of; a skeleton database, a moniker database, and a symbol database; inserting one or more skeletons from the skeleton database into a moniker from the moniker database; and inserting one or more variables from the variable database into the one or more skeletons to create the new script, wherein at least one of the one or more skeletons, the one or more variables and the monikers contain the determined segment of code; and executing the new script in the run-time environment. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product for dynamically updating a script, the computer program product comprising
one or more computer-readable storage devices and program instructions stored on at least one of the one or more computer-readable storage devices, the program instructions comprising: -
receiving an error message from the script operating in a run-time environment; determining a cause of the error message, wherein the cause of the error message is an erroneous segment of code of the script; determining a solution to the error message, wherein the solution to the error message is a replacement segment of code for the erroneous segment of code; creating a new script based on the replacement segment of code, wherein creating the new script based on the replacement segment of code comprises; updating a database based on the determined segment of code, wherein the database is comprising of a type of code selected from the group consisting of;
a skeletondatabase, a moniker database, and a symbol database; inserting one or more skeletons from the skeleton database into a moniker from the moniker database; and inserting one or more variables from the variable database into the one or more skeletons to create the new script, wherein at least one of the one or more skeletons, the one or more variables and the monikers contain the determined segment of code; and executing the new script in the run-time environment. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer system for dynamically updating a script, the computer system comprising
one or more processors, one or more computer-readable memories, one or more computer-readable tangible storage devices, and program instructions stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, the program instructions comprising: -
receiving an error message from the script operating in a run-time environment; determining a cause of the error message, wherein the cause of the error message is an erroneous segment of code of the script; determining a solution to the error message, wherein the solution to the error message is a replacement segment of code for the erroneous segment of code; creating a new script based on the replacement segment of code, wherein creating the new script based on the replacement segment of code comprises; updating a database based on the determined segment of code, wherein the database is comprising of a type of code selected from the group consisting of;
a skeletondatabase, a moniker database, and a symbol database; inserting one or more skeletons from the skeleton database into a moniker from the moniker database; and inserting one or more variables from the variable database into the one or more skeletons to create the new script, wherein at least one of the one or more skeletons, the one or more variables and the monikers contain the determined segment of code; and executing the new script in the run-time environment. - View Dependent Claims (14, 15, 16, 17)
-
Specification