let parse_flags s = try Flags.of_int (Int.of_string s) with _ -> error "invalid FLAG" s sexp_of_string