摘要 |
A computer system for transforming code and a method for transforming code to a different programming language are disclosed. The computer system has input means to receive the code; storage means to store the received code, identification data of a plurality of restructuring processes, transformed code and application software; and processing means configured to perform the method of transforming code to a different programming language. This method comprises receiving the code; creating an abstract syntax tree based on the code; storing on a data store identification data on a plurality of re-structuring processes to be run on the abstract syntax tree to re-structure the tree to aid the transformation of the code to the different language; automatically running the re-structuring processes identified in the data store on the abstract syntax tree; automatically running a deployment process on the restructured tree to transform the code to the different programming language; storing the transformed code in the data store; assessing the transformed code and based on this assessment identifying a further re-structuring processes to be run on the abstract syntax tree to aid the transformation of the code to the different language; storing on the data store identification data of the further re-structuring process; and repeating the running steps and storing transformed code.
|