Scriptor and interpreter
AssigneeLucent Technologies Inc.
InventorGaspar Hernandez, III
Life of this patent
Estimating the term…
Abstract
A scriptor and interpreter are disclosed. The scriptor and interpreter each not only check the syntax of a command in a script, but also that the values for the variables passed as arguments to command are consistent with the values attributed to those variables in preceding portions of the script.
Claims28
A method of processing an at least partially-completed script having at least one command, wherein said method checks syntax and argument consistency, the method comprising:
- a) providing a current command to be evaluated from said script, said command having a current argument;
- b) generating an ideal command from a set of permissible commands, said ideal command having an ideal argument that is consistent with preexisting values of variables identified in said script;
- c) comparing said current command against said ideal command;
- d) returning, if said step c) results in a match, to said step a) using a second command from said script;
- e) repeating, if said c) does not result in a match, said steps b) and c) for additional ideal commands until a match is found or until said set of permissible commands has been exhausted.
A method of editing a script having a sequence of commands, the method comprising:
- a) providing a script;
- b) selecting a command to be edited from said script, the selected command having an associated argument that sets the value of a variable;
- c) updating said associated argument of said selected command to change said value of said variable;
- wherein said script includes a second command that has a defined argument that corresponds to said variable but which does not equal the updated value of said variable;
- and
- d) regenerating said script to update said defined argument to equal said updated value of said variable.
A method of interpreting each command in a script having a sequence thereof written in a high-level scripting language, wherein said method checks syntax and argument consistency, the method comprising:
- a) providing a current command to be evaluated from said script, said command having a current argument;
- b) generating an ideal command from a set of permissible commands, said ideal command having an ideal argument that is consistent with preexisting values of variables identified in said script;
- c) comparing said current command against said ideal command;
- d) executing, if said step c) results in a match, said current command;
- e) returning, if said step c) results in a match, to said step 1) using a second command from said script;
- f) repeating, if said step c) does not result in a match, said steps b) and c) for additional ideal commands until a match is found or until said set of permissible commands has been exhausted;
- and
- g) executing, if a match is found via said step f), said current command.
A computer-readable medium having embodied thereon a program to be processed by a machine to debug an at least partially-completed script having a sequence of commands, wherein said computer-readable-medium-embodied program checks syntax and argument consistency, said computer-readable-medium-embodied program comprising:
- a first code segment to select a current command to be evaluated from said script, said command having a current argument;
- a second code segment to generate an ideal command from a set of permissible commands, said ideal command having an ideal argument that is consistent with preexisting values of variables identified in said script;
- a third code segment to compare said current command against said ideal command;
- a fourth code segment to return, if said third code segment achieves a match, to said first code segment using a second command from said script;
- and
- a fifth code segment to repeat, if said third codes segment does not achieve a match, said second and third codes segments for additional ideal commands until a match is found or until said set of permissible commands has been exhausted.
A computer-readable medium having embodied thereon a program to be processed by a machine to edit a script having a sequence of commands, said computer-readable-medium-embodied program comprising:
- a first code segment to select a command to be edited from said script, the selected command having an associated argument that sets the value of a variable;
- a second code segment to update the selected argument of the selected current command to change said value of said variable;
- wherein said script includes a second command that has a defined argument that corresponds to said variable, but which does not equal the updated value of said variable;
- and
- a third code segment to regenerate said script to update said defined argument to equal said updated value of said variable.
A computer readable medium having embodied thereon a program to be processed by a machine to interpret each command in a script having a sequence thereof written in a high-level scripting language, wherein said computer-readable-medium-embodied program checks syntax and argument consistency, said computer-readable-medium-embodied program comprising:
- a first code segment to provide a current command to be evaluated from said script, said command having a current argument;
- a second code segment to generate an ideal command from a set of permissible commands, said ideal command having an ideal argument that is consistent with preexisting values of variables identified in said script;
- a third code segment to compare said current command against said ideal command;
- a fourth code segment to execute, if said third code segment achieves a match, said current command;
- a fifth code segment to return, if said third codes segment achieves a match, to said first code segment using a second command from said script;
- a sixth code segment to repeat, if said third code segment does not achieve a match, said code second and third code segments for additional ideal commands until a match is found or until said set of permissible commands has been exhausted;
- and
- a seventh code segment to execute, if a match is found by said sixth code segment, and said current command.
Dependencies are inferred from the claim text.