parser: while command; refactor to cond. cmd.