3 ms·
The word I'd use to describe a program that does what the OP does is indeed "transpiler", but it's not technically incorrect to call it a compiler. The textboo
by qsort 4y ago
The word I'd use to describe a program that does what the OP does is indeed "transpiler", but it's not technically incorrect to call it a compiler.
The textbook definition of a compiler from A to B is any program that takes as input a program PA written in A and gives as output a program PB written in B, such that for all valid inputs I and modulo the undefined behaviors of A and B, it holds that PA(I) = PB(I).
So you could write a Java program that turns C++ into Python and it would technically qualify as a compiler.