System and method of universal programming language conversion
First Claim
1. A method for universal programming language conversion between two different sequential programming languages including a source program in a first programming language and a target program in a second programming language, the method comprising the steps of:
- parsing the source program in the first programming language using a parsing interface specific to the first programming language;
stripping all syntax from the parsed source program;
receiving as input the parsed source program without any syntax;
instantiating classes in a framework for capturing semantics of the parsed source program independent of syntax and execution model of the sequential programming languages;
producing a semantic representation of the parsed source program without any syntax; and
receiving the semantic representation at a printer interface specific to the second programming language and adding the syntax of the target program in the second programming language.
1 Assignment
0 Petitions
Accused Products
Abstract
An apparatus and method for universal programming language conversion between two different sequential programming languages, e.g., sequential procedural and sequential object oriented programming languages. In particular, conversion is between a source program in a first programming language and a target program in a second programming language. Initially, the source program in the first programming language is parsed using a parsing interface specific to the first programming language. All syntax from the parsed source program is then stripped or removed. Classes in a framework are instantiated to capture semantics of the parsed source program independent of syntax and execution model of the sequential programming languages. The classes are C++ classes representing fundamental core constructs of all sequential programming languages. A semantic representation of the parsed source program without any syntax is produced. The semantic representation is received at a printer interface specific to the second programming language and syntax of the target program in the second programming language is added. This same process can be used for either high-level conversion or compilation depending on whether the target programming language is high level or low level, respectively.
53 Citations
10 Claims
-
1. A method for universal programming language conversion between two different sequential programming languages including a source program in a first programming language and a target program in a second programming language, the method comprising the steps of:
-
parsing the source program in the first programming language using a parsing interface specific to the first programming language;
stripping all syntax from the parsed source program;
receiving as input the parsed source program without any syntax;
instantiating classes in a framework for capturing semantics of the parsed source program independent of syntax and execution model of the sequential programming languages;
producing a semantic representation of the parsed source program without any syntax; and
receiving the semantic representation at a printer interface specific to the second programming language and adding the syntax of the target program in the second programming language. - View Dependent Claims (2, 3, 4)
-
-
5. An apparatus for universal programming language conversion between two different sequential programming languages including a source program in a first programming language and a target program in a second programming language, comprising:
-
a parsing interface specific to the first programming language for parsing the source program in the first programming language and stripping all syntax from the parsed source program;
a framework including instantiable classes for capturing a semantic representation of the parsed source program independent of syntax and execution model of the sequential programming languages; and
a printer interface specific to the second programming language for receiving the semantic representation and adding the syntax of the target program in the second programming language. - View Dependent Claims (6, 7, 8)
-
-
9. An apparatus for universal programming language conversion between two different sequential programming languages including a source program in a first programming language and a target program in a second programming language, comprising:
a processor for instantiating classes in a framework representing a unification of semantics of the sequential programming languages independent of syntax and execution model. - View Dependent Claims (10)
Specification