Claims Analysis
Total Claims: 11
Claim 1
Independent Claim
377 words
A process for transformation of source code from an origin system of known characteristics for operation of a destination system of different known characteristics, with the aid of a digital computer, comprising the steps of: (a) providing said computer with a source file containing said source code, comprising a plurality of sequential source code statements, some of which incorporate at least one macro name and parameter, and with an output file; (b) providing said computer with a library file containing a plurality of sequential entries, each said entry comprising a macro name, a plurality of model statements, each said model statement comprising an expanded code field and a parametric triplet field, said expanded code field comprising expanded code which may incorporate parameters, and said triplet field comprising a number of triplets corresponding to the number of parameters in said expanded code field and each triplet identifying a parameter in said expanded code field and a condition of presence or absence of said parameter in said source code statements; (c) sequentially fetching a source code statement from said source file, and initializing said library file; (d) sequentially fetching an entry from said library file, and comparing said macro name of said entry with said source code statement; (e) repetition of step (d) until said library file is exhausted and, if no macro name is found in said source code statement, passing said source code statement to said output file and reversion to step (c); (f) sequentially fetching a model statement from said entry, if said macro name of said entry is found in said source code statement; (g) sequentially fetching a triplet in said parametric triplet field of said model statement, and a parameter identified by said triplet in said expanded code field of said model statement; (h) examining said source code statement for presence of said parameter; (i) repetition of steps (g) and (h) until said triplets are exhausted and, if each said condition identified by each said triplet is not satisfied, then passing said expanded code field of said model statement to said output file; (j) repetition of steps (f) through (i) until said model statements of said entry are exhausted; and (k) repetition of steps (c) through (j) until said source code statements are exhausted.
Claim 2
Dependent Claim
377 words
A process for transformation of source code from an origin system of known characteristics for operation of a destination system of different known characteristics, with the aid of a digital computer, comprising the steps of: (a) providing said computer with a source file containing said source code, comprising a plurality of sequential source code statements, some of which incorporate at least one macro name and parameter, and with an output file; (b) providing said computer with a library file containing a plurality of sequential entries, each said entry comprising a macro name, a plurality of model statements, each said model statement comprising an expanded code field and a parametric triplet field, said expanded code field comprising expanded code which may incorporate parameters, and said triplet field comprising a number of triplets corresponding to the number of parameters in said expanded code field and each triplet identifying a parameter in said expanded code field and a condition of presence or absence of said parameter in said source code statements; (c) sequentially fetching a source code statement from said source file, and initializing said library file; (d) sequentially fetching an entry from said library file, and comparing said macro name of said entry with said source code statement; (e) repetition of step (d) until said library file is exhausted and, if no macro name is found in said source code statement, passing said source code statement to said output file and reversion to step (c); (f) sequentially fetching a model statement from said entry, if said macro name of said entry is found in said source code statement; (g) sequentially fetching a triplet in said parametric triplet field of said model statement, and a parameter identified by said triplet in said expanded code field of said model statement; (h) examining said source code statement for presence of said parameter; (i) repetition of steps (g) and (h) until said triplets are exhausted and, if each said condition identified by each said triplet is not satisfied, then passing said expanded code field of said model statement to said output file; (j) repetition of steps (f) through (i) until said model statements of said entry are exhausted; and (k) repetition of steps (c) through (j) until said source code statements are exhausted.
Claim 3
Dependent Claim
86 words
A process as claimed in claim 1 wherein each said sequential entry of said library file additionally comprises a function code provided in step (b), and further comprising the step after step (b) of providing said computer with a function code selection, and further comprising the step after step (d) of comparing each said function code of each said fetched entry with said function code selection and, if said function code of said entry is not equivalent to said function code selection, reversion to step (d).
Claim 4
Dependent Claim
67 words
A process as claimed in claim 1 including the step after step (b) of initializing and clearing a macro flag, the step after step (i) of setting said macro flag if said expanded code is passed to said output file, and the step after step (k) of passing said output file to said source file and repeating steps (a) through (k) if said macro flag is set.
Claim 5
Dependent Claim
381 words
A process of modification of source code developed for an origin system of known dialect, to produce source code for use in a destination system of differing from dialect, comprising the steps of: (a) providing a source file containing said source code, comprising a plurality of sequential source code statements incorporating parameters and macro names, each said macro name representing code to accomplish at least one basic function for data file manipulation including merge, update, extract, summarize and sort; and providing an empty output file; (b) providing said computer with a library file containing a plurality of sequential entries, each said entry comprising a macro name, one or more model statements, each said model statement comprising an expanded code statement which may incorporate one or more parameters, and a number of triplets each corresponding to one of the parameters in said expanded code statement, each said triplet specifying a condition of presence or absence of said corresponding parameter in a source code statement which inhibits passage of said expanded code to said output file; (c) sequentially fetching a source code statement from said source file, and initializing said library file; (d) sequentially fetching an entry from said library file, and comparing said macro name of said entry with said source code statement; (e) repetition of step (d) until said library file is exhausted and, if no macro name is found in said source code statement, passing said source code statement to said output file and reversion to step (c); (f) if said macro name of said entry is found in said source code statement, then sequentially fetching a model statement from said entry; (g) sequentially fetching a triplet in said model statement and a corresponding parameter in said expanded code statement of said model statement; (h) examining said source code statement for presence of said parameter; (i) repetition of steps (g) and (h) until said triplets of said model statement are exhausted and, if each said triplet does not inhibit passage of said expanded code statement to said output file, then passing said expanded code statement to said output file; (j) repetition of steps (f) through (i) until said model statements of said entry are exhausted; and (k) repetition of steps (c) through (j) until said source code statements are exhausted.
Claim 6
Dependent Claim
381 words
A process of modification of source code developed for an origin system of known dialect, to produce source code for use in a destination system of differing from dialect, comprising the steps of: (a) providing a source file containing said source code, comprising a plurality of sequential source code statements incorporating parameters and macro names, each said macro name representing code to accomplish at least one basic function for data file manipulation including merge, update, extract, summarize and sort; and providing an empty output file; (b) providing said computer with a library file containing a plurality of sequential entries, each said entry comprising a macro name, one or more model statements, each said model statement comprising an expanded code statement which may incorporate one or more parameters, and a number of triplets each corresponding to one of the parameters in said expanded code statement, each said triplet specifying a condition of presence or absence of said corresponding parameter in a source code statement which inhibits passage of said expanded code to said output file; (c) sequentially fetching a source code statement from said source file, and initializing said library file; (d) sequentially fetching an entry from said library file, and comparing said macro name of said entry with said source code statement; (e) repetition of step (d) until said library file is exhausted and, if no macro name is found in said source code statement, passing said source code statement to said output file and reversion to step (c); (f) if said macro name of said entry is found in said source code statement, then sequentially fetching a model statement from said entry; (g) sequentially fetching a triplet in said model statement and a corresponding parameter in said expanded code statement of said model statement; (h) examining said source code statement for presence of said parameter; (i) repetition of steps (g) and (h) until said triplets of said model statement are exhausted and, if each said triplet does not inhibit passage of said expanded code statement to said output file, then passing said expanded code statement to said output file; (j) repetition of steps (f) through (i) until said model statements of said entry are exhausted; and (k) repetition of steps (c) through (j) until said source code statements are exhausted.
Claim 7
Dependent Claim
36 words
A process as claimed in claim 4 wherein said modes include a mode in which passage of said expanded code to said output file is inhibited by absence of said parameter in said source code statement.
Claim 8
Dependent Claim
36 words
A process as claimed in claim 4 wherein said modes include a mode in which passage of said expanded code to said output file is inhibited by presence of said parameter in said source code statement.
Claim 9
Dependent Claim
28 words
A process as claimed in claim 4 wherein said models include a mode in which passage of said expanded code statement to said output file is unconditionally conducted.
Claim 10
Independent Claim
281 words
A method of transformation of source code, with the aid of a digital computer, comprising the steps of: (a) providing said computer with a source file containing said source code, comprising a plurality of sequential source code statements; (b) providing said computer with a library file comprising a plurality of sequential entries, each said entry comprising a macro name, a plurality of model statements, each said model statement comprising an expanded code field and a logical expression field, said expanded code field comprising expanded code which may incorporate a number of parameters, and said logical expression field comprising a number of logical expressions not greater than the number of parameters in said expanded code, each said logical expression indicating correspondence to one of said parameters in said expanded code statement and expressing a condition of appearance of said corresponding parameter in a source code statement also containing said macro name of said entry in which said logical expression is found, under which said expanded code replaces said source code statement; (c) examining each said source code statement for presence therein of any of said macro names; (d) if one said macro name is found in said source code statement, then examining each said model statement of said sequential entry of said library file containing said one macro name for presence of any said logical expressions and corresponding parameters, and examining said source code statement for presence of said corresponding parameters; and (e) if said source code statement fails to satisfy each said condition expressed by each said logical expression within one said model statement, then replacing said source code statement with said expanded code statement of said one said model statement.
Claim 11
Independent Claim
281 words
A method of transformation of source code, with the aid of a digital computer, comprising the steps of: (a) providing said computer with a source file containing said source code, comprising a plurality of sequential source code statements; (b) providing said computer with a library file comprising a plurality of sequential entries, each said entry comprising a macro name, a plurality of model statements, each said model statement comprising an expanded code field and a logical expression field, said expanded code field comprising expanded code which may incorporate a number of parameters, and said logical expression field comprising a number of logical expressions not greater than the number of parameters in said expanded code, each said logical expression indicating correspondence to one of said parameters in said expanded code statement and expressing a condition of appearance of said corresponding parameter in a source code statement also containing said macro name of said entry in which said logical expression is found, under which said expanded code replaces said source code statement; (c) examining each said source code statement for presence therein of any of said macro names; (d) if one said macro name is found in said source code statement, then examining each said model statement of said sequential entry of said library file containing said one macro name for presence of any said logical expressions and corresponding parameters, and examining said source code statement for presence of said corresponding parameters; and (e) if said source code statement fails to satisfy each said condition expressed by each said logical expression within one said model statement, then replacing said source code statement with said expanded code statement of said one said model statement.