Patent Document ID: 4553205
Application ID: 06420730

Base Claim:
1. 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:
2. 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).