parsing logic from that point on until the end of file. What I do now (which doesn't cope with the problem) is: