ast.rewrite(Rewriter { case stmnt@ExprStmnt(expr) => WhileStmnt( expr, stmnt) case otherwise => otherwise })