Converting
How to convert code using Kodezi.
Last updated
How to convert code using Kodezi.
Last updated
The Code Conversion Tool offers automated conversion of algorithms from one language to another while preserving the source code's structure, variables and comments. The feature performs an analysis on the source code and then builds a translation model to convert it into the target language.
Log in with Google Authentication in Kodezi.
After signing in successfully, click on the Translating button.
Inside the Translating UI, the first language box represents the current language, which is fixed and cannot be changed. The second language box allows you to choose the language into which you wish to translate the current program. Then click the Translating button.
Kodezi does not support extremely large sections of code, so you may have to select a block of code for converting if guided to do so.
After clicking on the Translating button, the translation process will start.
You will see results similar to these in your IDE once the translating process is finished.
Now you can click on the Generate button to create a separate folder, "Translate Code" and save the file with the name "Translate" and the current time in the same workspace as the original code.
Our model is trained on numerous languages and will try to convert from one language to another efficiently but the main constraint is the language itself. An object-oriented language can't be converted to a markup language (e.g. JavaScript to HTML). Also, some languages are very rich in built-in functions (e.g. Python), so when converting to other languages the functions will be needed to be swapped.