dalmaciouno/csharp-if-else-switch-statement-compiler ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python program that can read a C# file or text input and process if else and switch statements like a simple compiler.

I want it to understand basic condition blocks, turn the code into tokens, and use a clean object oriented structure for the statement types and the compiler flow. It should be able to handle nested if else logic and simple switch cases, then show the result in a useful way, like a parsed representation or whatever compiled output makes the most sense for this project.

Please make it easy to run from the command line, keep the code organized, and include a few example inputs so I can see it working. If you need to check current Python docs or best practices for structuring it, go ahead and look those up online.

Are you gonna build this?

make sure you review the code using arcumet

Try freeSponsored — opens Arcumet in a new tab