Dynamic communication between script and execution layers
First Claim
1. A method of dynamically communicating a parameter during runtime between a command-line scripting module and a virtual machine, the method comprising:
- providing a script to a command-line scripting module, wherein;
the script executes a function that requires the parameter; and
the script does not provide the parameter to the function;
generating byte code for the function, wherein try-catch code is automatically inserted around code that uses the parameter in the function;
executing the byte code on a virtual machine until an exception is generated because the parameter was not provided to the function, wherein the function is unable to request the parameter as a user input during runtime;
passing the exception from the virtual machine to the command-line scripting module;
extracting a parameter identifier from the exception at the command-line scripting module;
generating output using the parameter identifier at the command-line scripting module, wherein the output requests the parameter;
receiving input at the command-line scripting module that includes the parameter;
re-executing the byte code with the parameter.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of dynamically communicating a parameter during runtime may include providing a script to a command-line scripting module that uses the parameter, where the parameter is to be provided during runtime by a user and the script is configured to generate an exception including an identifier associated with the parameter. The method may also include generating byte code based on the script, executing the byte code on a virtual machine until the exception is generated, passing the exception to the command-line scripting module, causing, by the command-line scripting module, receiving a parameter value from the user through an input device, passing the parameter value to the virtual machine, and continuing execution of the byte code on the virtual machine.
26 Citations
20 Claims
-
1. A method of dynamically communicating a parameter during runtime between a command-line scripting module and a virtual machine, the method comprising:
-
providing a script to a command-line scripting module, wherein; the script executes a function that requires the parameter; and the script does not provide the parameter to the function; generating byte code for the function, wherein try-catch code is automatically inserted around code that uses the parameter in the function; executing the byte code on a virtual machine until an exception is generated because the parameter was not provided to the function, wherein the function is unable to request the parameter as a user input during runtime; passing the exception from the virtual machine to the command-line scripting module; extracting a parameter identifier from the exception at the command-line scripting module; generating output using the parameter identifier at the command-line scripting module, wherein the output requests the parameter; receiving input at the command-line scripting module that includes the parameter; re-executing the byte code with the parameter. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A non-transitory computer-readable memory comprising instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
-
providing a script to a command-line scripting module, wherein; the script executes a function that requires the parameter; and the script does not provide the parameter to the function; generating byte code for the function, wherein try-catch code is automatically inserted around code that uses the parameter in the function; executing the byte code on a virtual machine until an exception is generated because the parameter was not provided to the function, wherein the function is unable to request the parameter as a user input during runtime; passing the exception from the virtual machine to the command-line scripting module; extracting a parameter identifier from the exception at the command-line scripting module; generating output using the parameter identifier at the command-line scripting module, wherein the output requests the parameter; receiving input at the command-line scripting module that includes the parameter; re-executing the byte code with the parameter. - View Dependent Claims (12, 13, 14, 15, 16, 17)
-
-
18. A system comprising:
-
one or more processors; and a memory communicatively coupled with and readable by the one or more processors and comprising instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising; providing a script to a command-line scripting module, wherein; the script executes a function that requires the parameter; and the script does not provide the parameter to the function; generating byte code for the function, wherein try-catch code is automatically inserted around code that uses the parameter in the function; executing the byte code on a virtual machine until an exception is generated because the parameter was not provided to the function, wherein the function is unable to request the parameter as a user input during runtime; passing the exception from the virtual machine to the command-line scripting module; extracting a parameter identifier from the exception at the command-line scripting module; generating output using the parameter identifier at the command-line scripting module, wherein the output requests the parameter; receiving input at the command-line scripting module that includes the parameter; re-executing the byte code with the parameter. - View Dependent Claims (19, 20)
-
Specification