Very smart way of simulating goto! I think we can apply the same in tree translator (over there I used extra variable to check if we need to keep going)