Parse while and if.