Skip to content

Commit 640467f

Browse files
committed
Remove .ml conversion.
1 parent 8055935 commit 640467f

File tree

9 files changed

+5
-717
lines changed

9 files changed

+5
-717
lines changed

jscomp/bsc/rescript_compiler_main.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ let format_file input =
195195
let ext = Ext_file_extensions.classify_input (Ext_filename.get_extension_maybe input) in
196196
let syntax =
197197
match ext with
198-
| Ml | Mli -> `ml
199198
| Res | Resi -> `res
200199
| _ -> Bsc_args.bad_arg ("don't know what to do with " ^ input) in
201200
let formatted = Res_multi_printer.print ~ignore_parse_errors:!Clflags.ignore_parse_errors syntax ~input in

jscomp/syntax/cli/res_cli.ml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,10 @@ end = struct
195195
[
196196
("-recover", Arg.Unit (fun () -> recover := true), "Emit partial ast");
197197
( "-parse",
198-
Arg.String (fun txt ->
199-
let _ = assert (txt <> "ml") in
200-
origin := txt),
198+
Arg.String
199+
(fun txt ->
200+
let _ = assert (txt <> "ml") in
201+
origin := txt),
201202
"Parse ml or res. Default: res" );
202203
( "-print",
203204
Arg.String (fun txt -> print := txt),

0 commit comments

Comments
 (0)