Data processing system and method for simulating “include” files in javascript
AssigneeInternational Business Machines Corporation
InventorRichard Dale Hoffman
Life of this patent
Estimating the term…
Abstract
A data processing system and methodology simulate “include” function in the JavaScript programming language. The include function is utilized to more efficiently use a set of instructions that are repeated during execution of a program. By setting those instructions in a single file that is then called through the use of a JavaScript subroutine calling protocol, sets of instructions may be repeatedly accessed and executed in a manner that simulates the include function provided by other programming languages.
Claims23
A method for simulating an instruction, comprising the steps of:
- receiving a first plurality of instructions in a first computer program, wherein the first computer program is written in a scripting programming language;
- detecting a first function instruction in the first plurality of instructions;
- and
- executing a subroutine in response to the first function instruction, wherein the subroutine retrieves a plurality of values in the scripting programming language and simulates the instruction using the plurality of values.
A method for simulating an include function using an interpreted programming language, comprising the steps of:
- retrieving a plurality of instructions corresponding to a first application, wherein a first one of the plurality of instructions identifies a first function instruction;
- enabling a first data processing device to execute a subroutine in response to the first function instruction;
- enabling the first data processing device to access a file in response to execution of the subroutine;
- and
- retrieving at least a plurality of items in the interpreted programming language from the file.
A data processing system for executing a computer program, comprising:
- means for receiving a first plurality of instructions in a first computer program, wherein the first computer program is written in the scripting programming language;
- means for detecting a first function instruction in the first plurality of instructions;
- and
- means for executing a subroutine in response to the first function instruction, wherein the subroutine retrieves a plurality of values in the scripting programming language and simulates the instruction using the plurality of items.
Dependencies are inferred from the claim text.