News for hackers. Stuff that matters.
Re:I wrote a Brainfuck to Go compiler by qsort on Tuesday June 07, 2022 @01:50AM (#31650334)
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.

There are no comments on this comment yet.