get_operator_type works for while, until, do, done