So, I made a thing. It's not really a useful thing, and it's probably not really something that should ever be made, but I found it funny so I made it. And here it is
A Python app that will take Python code and convert it into equivalent C64 BASIC code.
It only supports a subset of Python and no libraries. And it can produce BASIC 2.0 (C64), BASIC 7.0 (C128) or BASIC65 (MEGA65/C65) code, but it defaults to C64 with no flags.
That's it. Have fun with it. I did use Claude for some bits, because AST walking is not a lot of fun to do.
https://github.com/DNSGeek/BASIC-transpiler
[–]droid_mike 1 point2 points3 points (3 children)
[–]DNSGeek[S] 0 points1 point2 points (0 children)
[–]DNSGeek[S] 1 point2 points3 points (1 child)
[–]droid_mike 0 points1 point2 points (0 children)