Methods and Apparatus for Automatic Translation of a Computer Program Language Code
First Claim
1. A method for automatic translation of a computer program language code, comprising:
- tokenizing one or more characters of a source programming language code to generate a list of tokens;
parsing the list of tokens to generate a grammatical data structure, wherein the grammatical data structure comprises one or more data nodes;
processing the one or more data nodes of the grammatical data structure to generate a document object model, wherein the document object model comprises one or more portable data nodes; and
analyzing the one or more portable data nodes in the document object model to generate one or more characters of a target programming language code.
5 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the methods and apparatus for automatic cross language program code translation are provided. One or more characters of a source programming language code are tokenized to generate a list of tokens. Thereafter, the list of tokens is parsed to generate a grammatical data structure comprising one or more data nodes. The grammatical data structure may be an abstract syntax tree. The one or more data nodes of the grammatical data structure are processed to generate a document object model comprising one or more portable data nodes. Subsequently, the one or more portable data nodes in the document object model are analyzed to generate one or more characters of a target programming language code.
-
Citations
53 Claims
-
1. A method for automatic translation of a computer program language code, comprising:
-
tokenizing one or more characters of a source programming language code to generate a list of tokens; parsing the list of tokens to generate a grammatical data structure, wherein the grammatical data structure comprises one or more data nodes; processing the one or more data nodes of the grammatical data structure to generate a document object model, wherein the document object model comprises one or more portable data nodes; and analyzing the one or more portable data nodes in the document object model to generate one or more characters of a target programming language code. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. An apparatus for automatic translation of a computer program language code, the apparatus comprising.
a tokenizer configured to tokenize one or more characters of a source programming language code to generate a list of tokens; -
a parser configured to parse the list of tokens to generate a grammatical data structure, wherein the grammatical data structure comprises one or more data nodes; a generator configured to process the one or more data nodes of the grammatical data structure to generate a document object model, wherein the document object model comprises one or more portable data nodes; and an analyzer configured to process the one or more portable data nodes in the document object model to generate one or more characters of a target programming language code. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31)
-
-
32. A computer-readable medium having computer-executable instructions for performing a method for language translation of a computer program code, said method comprising:
-
tokenizing one or more characters of a source programming language code to generate a list of tokens based on a set of expression rules; parsing the list of tokens to generate a grammatical data structure based on a set of grammar rule, wherein the grammatical data structure comprises one or more data nodes; processing the one or more data nodes of the grammatical data structure to generate a document object model, wherein the document object model comprises one or more portable nodes; and analyzing the one or more portable nodes of the document object model to generate one or more characters of a target programming language code. - View Dependent Claims (33, 34, 35, 36, 37, 38)
-
-
39. A system for automatic translation of a computer program language code, comprising:
-
means for tokenizing one or more characters of a source programming language code to generate a list of tokens; means for parsing the list of tokens to generate a grammatical data structure, wherein the grammatical data structure comprises one or more data nodes; means for processing the one or more data nodes of the grammatical data structure to generate a document object model, wherein the document object model comprises one or more portable data nodes; and means for analyzing the one or more portable data nodes in the document object model to generate one or more characters of a target programming language code. - View Dependent Claims (40, 41, 42, 43, 44, 45, 46, 47, 48)
-
-
49. A method for automatic translation of computer programming language code written in a source programming language to obtain computer programming language code in a target programming language, comprising:
-
identifying one or more non-equivalent and one or more equivalent features in the source programming language, wherein the one or more non-equivalent features and the one or more equivalent features are identified based on features of the target programming language; and performing, to obtain processed source code, at least one operation selected from the group consisting of;
removing the one or more non-equivalent features of the source programming language; and
replacing the one or more non-equivalent features with the one or more equivalent features of the source programming language; andtranslating the processed source code into the target programming language. - View Dependent Claims (50, 51, 52, 53)
-
Specification