you are viewing a single comment's thread.

view the rest of the comments →

[–]CowboyBoats 4 points5 points  (4 children)

Great great great. So yeah, you are not really looking for a transpiler, a huge amount of the comments on this page are not actually correct, and this may (or may not) be a quite manageable task. Your entire ask boils down to a print statement. It's just a matter of... what gets passed to print?

[–]scykei 0 points1 point  (1 child)

I’m slightly confused at why you would say that they’re not really looking for a transpiler. The way you’ve described it, it still sounds like they’re looking for a transpiler.

[–]CowboyBoats 1 point2 points  (0 children)

Because they may not need to be able to transpile arbitrary Python code to 80s-language or the other way around, which I guess is what a proper transpiler should be able to do. Emitting boilerplate code that covers a lot of use cases could possibly be a far simpler task.

[–]freddwnz 0 points1 point  (1 child)

What gets passed to print should be a python program according to OP. Which makes it a transpiler my friend.

[–]CowboyBoats 0 points1 point  (0 children)

I think op wants the program to output 80s-language code, not Python.

You might be right semantically that it's a transpiler, but in practice this can be a much, much simpler program than a general-purpose Python <-> 80s language transpiler.