+ 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!

9th Sep 2017, 2:06 AM
Hugo Alfredo Zanarde
Hugo Alfredo Zanarde - avatar
4 Respostas
+ 17
Possible.
9th Sep 2017, 2:25 AM
Nithiwat
Nithiwat - avatar
+ 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'.
9th Sep 2017, 3:07 AM
Kirk Schafer
Kirk Schafer - avatar
+ 4
yes! good luck !
9th Sep 2017, 4:41 AM
AL.The.Flame!
AL.The.Flame! - avatar
+ 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!
9th Sep 2017, 3:43 AM
Ipang