-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew_convert.ml
30 lines (24 loc) · 923 Bytes
/
new_convert.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(******************************************************************************
Rainbow, a termination proof certification tool
See the COPYRIGHTS and LICENSE files.
- Frederic Blanqui, 2010-11-11
main procedure for converting a file from one format to another
******************************************************************************)
open Error;;
open New_main;;
open Util;;
set_usage_msg ("usage: " ^ Sys.argv.(0) ^
" [-h] -i<ifmt> file1 [-i<ifmt> file2] -o<ofmt>\n\n \
where <ifmt> is either: trs, srs, pb, xtc, prf, cpf\n \
and <ofmt> is either: pb, prf, coq\n\n\
Converts the input file into the output format and sends the result on \
stdout.\n");;
let main() =
parse_args();
ignore (get_inputs());
match get_output() with
| None -> error "no output type provided"
| Some o -> convert o (get_inputs());;
let _ =
try main()
with Error e -> print_error stderr e; exit 0;;