Skip to content

Commit 4a94992

Browse files
committed
Syntax: remove conversion of reason files.
1 parent 2c6af3d commit 4a94992

File tree

3 files changed

+2
-127
lines changed

3 files changed

+2
-127
lines changed

res_syntax/cli/res_cli.ml

+2-5
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ end = struct
196196
("-recover", Arg.Unit (fun () -> recover := true), "Emit partial ast");
197197
( "-parse",
198198
Arg.String (fun txt -> origin := txt),
199-
"Parse reasonBinary, ml or res. Default: res" );
199+
"Parse ml or res. Default: res" );
200200
( "-print",
201201
Arg.String (fun txt -> print := txt),
202202
"Print either binary, ml, ast, sexp, comments or res. Default: res" );
@@ -238,18 +238,15 @@ module CliArgProcessor = struct
238238
in
239239
let parsingEngine =
240240
match origin with
241-
| "reasonBinary" -> Parser Res_driver_reason_binary.parsingEngine
242241
| "ml" -> Parser Res_driver_ml_parser.parsingEngine
243242
| "res" -> Parser Res_driver.parsingEngine
244243
| "" -> (
245244
match Filename.extension filename with
246245
| ".ml" | ".mli" -> Parser Res_driver_ml_parser.parsingEngine
247-
| ".re" | ".rei" -> Parser Res_driver_reason_binary.parsingEngine
248246
| _ -> Parser Res_driver.parsingEngine)
249247
| origin ->
250248
print_endline
251-
("-parse needs to be either reasonBinary, ml or res. You provided "
252-
^ origin);
249+
("-parse needs to be either ml or res. You provided " ^ origin);
253250
exit 1
254251
in
255252
let printEngine =

res_syntax/src/res_driver_reason_binary.ml

-119
This file was deleted.

res_syntax/src/res_driver_reason_binary.mli

-3
This file was deleted.

0 commit comments

Comments
 (0)