AZHenley/python1024 ? reverse-engineered prompt

Reverse engineered prompt

Build me a tiny Python like interpreter in C that can run simple Pythony code from standard input, like a fizzbuzz script. I want it to be absurdly small, around 1024 bytes if possible, and it should compile with gcc in GNU89 mode, not clang. Keep it focused on the core joke of the project, just enough parsing and execution to handle very basic Python style syntax and print output for something like fizzbuzz.

Make sure it can be built from a single C file, and give me a simple way to compile it and run a sample .py file through it. If you need to, look up anything unclear from current docs online, but keep the result minimal and clever rather than full Python.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab