File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 8
8
exception Error of Location. t * string
9
9
10
10
let remove_quotes s =
11
- assert (s.[0 ] = '\' ' && s.[String. length s - 1 ] = '\' ');
11
+ assert (
12
+ (s.[0 ] = '\' ' && s.[String. length s - 1 ] = '\' ') ||
13
+ (s.[0 ] = '"' && s.[String. length s - 1 ] = '"' ));
12
14
String. sub s 1 (String. length s - 2 )
13
15
}
14
16
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ let singleton_if check ~f x = if check then [f x] else []
231
231
232
232
let arg_choice l f =
233
233
let pick s =
234
- let s = s |> String. trim |> String . lowercase_ascii in
234
+ let s = s |> String. trim |> CCString . lowercase_ascii in
235
235
try f (List. assoc s l)
236
236
with Not_found -> assert false
237
237
in
@@ -303,7 +303,7 @@ let () =
303
303
304
304
exception NotImplemented of string
305
305
306
- let pp_with_sep sep out () = Format. fprintf out " %s@ " sep
306
+ let pp_with_sep sep out () = Format. fprintf out " %s@, " sep
307
307
let pp_seq ?(sep =" " ) p = CCFormat. seq ~sep: (pp_with_sep sep) p
308
308
let pp_list ?(sep =" " ) p = CCFormat. list ~sep: (pp_with_sep sep) p
309
309
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ let output_opt = Utils.arg_choice outputs_ ((:=) output_)
101
101
102
102
(* solver string specification *)
103
103
let parse_solvers_ s =
104
- let s = String. trim s |> String . lowercase_ascii in
104
+ let s = String. trim s |> CCString . lowercase_ascii in
105
105
let l = CCString.Split. list_cpy ~by: " ," s in
106
106
List. map
107
107
(function
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ and mk_var ~state v =
219
219
let name = ID. name (Var. id v) in
220
220
let name = match name.[0 ] with
221
221
| 'A' .. 'Z' -> name
222
- | 'a' .. 'b' -> String . capitalize_ascii name
222
+ | 'a' .. 'b' -> CCString . capitalize_ascii name
223
223
| _ -> " V" ^ name
224
224
in
225
225
Var. make ~name ~ty: (preprocess_ty ~state (Var. ty v))
You can’t perform that action at this time.
0 commit comments