Check for EOF in the end of expression