The invention discloses a
software source code language translation system and method. The
system comprises a program
object model management module, a program
object model, a conversion rule base, a
source code resolving module, a program
object model conversion engine and a target language generating module, wherein the program object
model management module is used for managing the program object model used as a translation
intermediate product, the management on the program object model includes the model creating, storage, inquiry and modification, the conversion rule base is used for managing the
source code resolving rule, the model conversion rule and the code generating rule, the source code resolving module is used for executing the source code resolving rule and converting a
software source code text into an equivalent structurized program object model, the program object model conversion engine is used for executing the model conversion rule and performing conversion on the program object model, and the target language generating model is used for executing the code generating rule and generating the target language source code. The
system and the method have the advantages that configurable rules are introduced, the
universal function of the source code
language translation can be reused, and the sufficient customization capability can be provided.