2 ||M|| This file is part of HELM, an Hypertextual, Electronic
3 ||A|| Library of Mathematics, developed at the Computer Science
4 ||T|| Department, University of Bologna, Italy.
6 ||T|| HELM is free software; you can redistribute it and/or
7 ||A|| modify it under the terms of the GNU General Public License
8 \ / version 2 or (at your option) any later version.
9 \ / This software is distributed as is, NO WARRANTY.
10 V_______________________________________________________________ *)
12 module R = Helm_registry
19 Scanf.sscanf s "%u %u" A.mk_exists
22 Scanf.sscanf s "%u" A.mk_or
25 Scanf.sscanf s "%u" A.mk_and
28 let preamble = L.get_preamble conf in
29 let ooch = L.open_out preamble (R.get_string "xoa.objects") in
30 let noch = L.open_out preamble (R.get_string "xoa.notations") in
31 List.iter (L.out_include ooch) (R.get_list R.string "xoa.include");
32 List.iter (E.generate ooch noch) (R.get_list unm_ex "xoa.ex");
33 List.iter (E.generate ooch noch) (R.get_list unm_or "xoa.or");
34 List.iter (E.generate ooch noch) (R.get_list unm_and "xoa.and");
35 close_out noch; close_out ooch
38 let help = "Usage: xoa [ <configuration file> ]*\n" in
39 Arg.parse [] process help