CONVERTING SOURCE CODE
First Claim
Patent Images
1. A method comprising:
- receiving, at a computing device configured to execute a first converter and a second converter, source code in a first programming language, the source code including a flag associated with translating the source code from the first programming language into one or more other programming languages, the flag indicating a design pattern;
translating the source code by the first converter to generate a first translation of the source code in a second programming language, wherein, responsive to detecting the flag in the source code, the first converter conforms at least a portion of the first translation to the design pattern;
translating the source code by the second converter to generate a second translation of the source code in a third programming language, wherein, responsive to detecting the flag in the source code, the second converter conforms at least a portion of the second translation to the design pattern;
outputting the first translation to a first device; and
outputting the second translation to a second device.
2 Assignments
0 Petitions
Accused Products
Abstract
A method includes receiving source code in a first programming language. The method further includes identifying a design pattern based on a flag included in the source code. The method further includes generating a first translation of the source code in a second programming language, where at least a portion of the second file conforms to the design pattern. The method further includes generating a second translation of the source code in a third programming language. The method further includes outputting first data based on the first translation to a first device and second data based on the second translation to a second device.
-
Citations
20 Claims
-
1. A method comprising:
-
receiving, at a computing device configured to execute a first converter and a second converter, source code in a first programming language, the source code including a flag associated with translating the source code from the first programming language into one or more other programming languages, the flag indicating a design pattern; translating the source code by the first converter to generate a first translation of the source code in a second programming language, wherein, responsive to detecting the flag in the source code, the first converter conforms at least a portion of the first translation to the design pattern; translating the source code by the second converter to generate a second translation of the source code in a third programming language, wherein, responsive to detecting the flag in the source code, the second converter conforms at least a portion of the second translation to the design pattern; outputting the first translation to a first device; and outputting the second translation to a second device. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An apparatus comprising:
-
a memory storing instructions; a processor configured to execute the instructions to; receive source code in a first programming language; identify a design pattern based on a flag included in the source code, the flag configured associated with translating the source code from the first programming language into one or more other programming languages; generate, by a first converter, a first translation of the source code in a second programming language, wherein, responsive to detecting the flag in the source code, the first converter conforms at least a portion of the first translation to the design pattern; and generate a second translation of the source code in a third programming language; and a communication interface to; output first data based on the first translation to a first device; and output second data based on the second translation to a second device. - View Dependent Claims (10, 11, 12)
-
-
13. A non-transitory computer-readable storage device storing instructions that, when executed by a processor, cause the processor to perform operations comprising:
-
receiving source code in a first programming language; identifying a design pattern based on a flag converter directive included in the source code, the converter directive specifying the design pattern by name; generating, by a first converter, a first translation of the source code in a second programming language, wherein, responsive to identifying the converter directive in the source code, at least a portion of source code instructions of the first translation generated by the first converter conform to the design pattern; generating, by a second converter, a second translation of the source code into a third programming language, wherein, responsive to identifying the converter directive in the source code, at least a portion of source code instructions of the second translation generated by the second converter conform to the design pattern; initiating output of first data based on the first translation to a first device; and initiating output of second data based on the second translation to a second device. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
Specification