首页>
外国专利>
METHOD FOR CONVERTING SOURCE CODE WRITTEN IN DYNAMIC TYPING LANGUAGE INTO TARGET CODE WRITTEN IN STATIC TYPING LANGUAGE AND EXECUTING THE SAME, AND COMPUTER PROGRAM AND COMPUTER SYSTEM FOR THE METHOD
METHOD FOR CONVERTING SOURCE CODE WRITTEN IN DYNAMIC TYPING LANGUAGE INTO TARGET CODE WRITTEN IN STATIC TYPING LANGUAGE AND EXECUTING THE SAME, AND COMPUTER PROGRAM AND COMPUTER SYSTEM FOR THE METHOD
PROBLEM TO BE SOLVED: To provide a method for converting a source code written in a dynamic typing language into a target code written in a static typing language.;SOLUTION: The method includes the step of generating a target code from a source code in a storage device and including a step of storing in a buffer a signature of a function/method to be used for a caller in the source code. In this step, generation of an interface class is delayed to a time point immediately before execution of a part of the target code corresponding to the function/method call by the caller, the interface class being needed to generate the caller and serving as an interface in the static typing language. The method also includes the step of generating in the storage device a consolidated interface class for all signatures stored in the buffer, and loading the generated consolidated interface class from the storage device. In this step, all the signatures in the buffer are deleted upon generation of the consolidated interface class.;COPYRIGHT: (C)2011,JPO&INPIT
展开▼