Technical Brief
The software migrator is composed of two main modules: PHPtoTIL and PHPtoJava. PHP source files are processed by PHPtoTIL and stored in an intermediate representation called TIL (Translation Intermediate Language). TILtoJava then turns this intermediate representation into Java source files, packaged as a Java Enterprise Edition application. Further detailing the architecture, PHPtoTIL is composed of several submodules, as follows:
Throughout its operation PHPtoTIL collaborates with an utility module containing the interface of the PHP runtime, in order to have a fully resolved TIL model. TILtoJava traverses the well-formed TIL representation and translates it into appropriate Java constructions. The Java abstract syntax tree (AST) is built in-memory, then saved as Java source code together with Java EE support classes and XML descriptors. The Java implementation of the runtime is also linked to the final application.
|
