Translation device, translation method, and storage medium for program
AssigneeNEC Corporation
InventorJun Eguchi
Life of this patent
Estimating the term…
Loading patent…
AssigneeNEC Corporation
InventorJun Eguchi
Estimating the term…
A declaration translation unit (104) compiles a declaration of variables in overlapping storage areas in a first language to a declaration of independent data variables and respective corresponding flag variables in a second language; an assignment translation unit (105) compiles an assignment to the variables in the areas in the first language so that, in the second language, whether or not the values of the variables are valid is checked assuming that the assignment to the respective overlapping data variables is performed, the results are saved in flag variables for respective variables, and the assignment is performed only to valid data variables; and a reference translation unit (106) compiles the reference of the variables in the areas in the first language so that, in the second language, if the flag variable is valid, the value of the data variable is returned, and if invalid, an exception is occurred.
A translation device that translates an untranslated program described in a first programming language into a translated program described in a second programming language, comprising:
A translation method carried out by a translation device that translates an untranslated program described in a first programming language into a translated program described in a second programming language, the translation device including a declaration translation unit, an assignment translation unit, and a reference translation unit, the translation method comprising:
A non-transitory computer-readable storage medium that records a program for translating an untranslated program described in a first programming language into a translated program described in a second programming language in a computer, the program causing the computer to function as:
Dependencies are inferred from the claim text.