Interpretation phase 3: Generating pseudo code with "endif" markers