I'm trying to use CPS to simplify control-flow implementation in my Python interpreter. Specifically, when implementing return / break / continue , I have to store state and unwind manually, which is tedious. I've read that it's extraordinarily tricky to implement exception handling in this way. What I want is for each eval function to be able to direct control flow to either the next instruction, or to a different instruction entirely. Some people with more experience than me suggested looking into CPS as a way to deal with this properly. I really like how it simplifies control flow in the