Patent Document ID: 9405518
Application ID: 14992081

Base Claim:
1. A method for translating computer code, comprising: receiving a compiler output, wherein the compiler output comprises a first set of data structures that are associated with a source code written in a first programming language; analyzing the first set of data structures within the compiler output; building an internal representation of the source code based on the compiler output, wherein building the internal representation comprises mapping the first set of data structures to a second set of data structures associated with a second programming language; creating a source code template using the second set of data structures associated with the second programming language; and transforming a plurality of source code of the first programming language into a plurality of comments in the source code template of the second programming language; wherein building an internal representation of the source code based on the compiler output comprises: generating a list of the data structures within the first set of data structures within the compiler output; mapping the first set of data structures within the compiler output to a plurality of classes and objects associated with the second programming language; assigning to the classes and object associated with the second programming language, a name that corresponds to the first set of data structures contained in the compiler output.

---

Claim 5:
5. The method of claim 1 , further comprising: in response to determining that the compiler output contains a Structured Query Language command, generating a corresponding embedded Structured Query Language command comment in the source code template.