WHILE-DO statement parser