Parse loop expression