Program source code translator
First Claim
Patent Images
1. A method for translating a program source file on a computer system, comprising the steps of:
- supplying a source file containing host language statements, and containing supplemental language statements which are not valid host language statements, to a language specific translator;
within the language specific translator, copying the host language statements to a modified source file;
translating the supplemental language statements into a language independent format;
communicating the translated supplemental language statements to a separate translator;
in the separate translator, translating the translated supplemental language statements into lists of tasks necessary to perform the supplemental language statements, and returning a language independent list of tasks to the language specific translator; and
translating the returned tasks into host language statements, and writing such host language statements to the modified source file.
1 Assignment
0 Petitions
Accused Products
Abstract
A pre-compiler for a host programming language contains a language dependent portion and a language independent portion. The language dependent portion extracts source file statements written in a supplemental language and converts them into a language independent format. The language independent statements are communicated to the language independent portion, which translates them into lists of tasks to be performed. These tasks are communicated back to the language dependent portion in a language independent format. The language dependent portion then translates the tasks into procedure calls in the host language.
93 Citations
15 Claims
-
1. A method for translating a program source file on a computer system, comprising the steps of:
-
supplying a source file containing host language statements, and containing supplemental language statements which are not valid host language statements, to a language specific translator; within the language specific translator, copying the host language statements to a modified source file; translating the supplemental language statements into a language independent format; communicating the translated supplemental language statements to a separate translator; in the separate translator, translating the translated supplemental language statements into lists of tasks necessary to perform the supplemental language statements, and returning a language independent list of tasks to the language specific translator; and translating the returned tasks into host language statements, and writing such host language statements to the modified source file. - View Dependent Claims (2, 3)
-
-
4. A system for translating program source code, comprising:
-
a language independent translator for translating supplemental language statements in a first language independent format into a list of tasks in a second language independent format; and a language specific translator, connected to said language independent translator for communicating information therewith, for selecting supplemental language statements from an input file containing a plurality of program source code statements in a language specific to said language specific translator, for converting such supplemental language statements into the first language independent format, for communicating the converted supplemental language statements to said language independent translator, for receiving the list of tasks from said language independent translator, and for converting the list of tasks from the second language independent format into program source code statements in the language specific to said language specific translator. - View Dependent Claims (5, 6, 7, 8, 9)
-
-
10. A method for precompiling, on a computer system, a program source file containing host language statements and supplemental language statements, comprising the steps of:
-
(a) initializing a host language specific pre-compiler with user information and options; (b) initializing a supplemental language pre-compiler with information obtained from the host language specific pre-compiler; (c) within the host language specific pre-compiler, processing the program source file to copy host language statements to a modified source file and to extract supplemental language statements; (d) converting the extracted supplemental language statements to a format which is independent of the host language, and communicating them to the supplemental language pre-compiler; (e) within the supplemental language pre-compiler, parsing the converted supplemental language statements, generating a corresponding list of tasks necessary to perform the supplemental language statements, and communicating the list of tasks back to the language specific pre-compiler; (f) within the host language specific pre-compiler, translating the list of tasks into host language statements; and (g) writing the host language statements formed in step (f) to the modified source file. - View Dependent Claims (11, 12, 13, 14, 15)
-
Specification