+ 4
Is it possible to develop a programming language translator?
For example, we could create a "C++ to Java" or "C++ to Python" converter/translator. It could be very useful!
4 Réponses
+ 17
Possible.
+ 5
cython converts Python to c/c++
I tried it recently because it can insanely accelerate Python (possibly more with manual edits), but a 2-line program generates hundreds (thousands?) of lines of boilerplate and I was reluctant to put that in CodePlayground just for 'fun'.
+ 4
yes!
good luck !
+ 3
It is possible, but that would require mastering each language involved, if you're looking at this matter for your own need I would suggest to manually port the code (if you have access to the source code) because your brain has much better logic compared to a "educated translator", plus you get to customize it on the way.
Good luck!