- ac = AO.initial_counters;
- mc = MO.initial_counters;
- brgc= BrgO.initial_counters;
- mst = MA.initial_status
+ ac = AO.initial_counters;
+ mc = MO.initial_counters;
+ bagc = BagO.initial_counters;
+ mst = MA.initial_status
- let f st = function
- | None -> st
- | Some (_, (i, u, _)) ->
- Log.warn (P.sprintf "[%u] %s" i (U.string_of_uri u)); st
+ let f st _ = function
+ | None -> st
+ | Some (i, u, _) ->
+ Log.warn (P.sprintf "[%u] %s" i (U.string_of_uri u));
+ st
- let st = {st with brgc = count BrgO.count_item st.brgc item} in
- if !stage > 2 then BrgU.type_check (f st) !hierarchy item else st
+ let st = {st with bagc = count BagO.count_item st.bagc item} in
+ if !stage > 2 then BagU.type_check (f st) !H.graph item else st
- if !L.level > 2 then AO.print_counters Cps.start st.ac;
- if !L.level > 2 && !stage > 0 then MO.print_counters Cps.start st.mc;
- if !L.level > 2 && !stage > 1 then BrgO.print_counters Cps.start st.brgc;
+ if !L.level > 2 then AO.print_counters C.start st.ac;
+ if !L.level > 2 && !stage > 0 then MO.print_counters C.start st.mc;
+ if !L.level > 2 && !stage > 1 then BagO.print_counters C.start st.bagc;
"Summary levels: 0 just errors, 1 time stamps, 2 processed file names, \
3 data information, 4 typing information, 5 reduction information\n\n" ^
"Stages: 0 parsing, 1 to intermediate, 2 to untrusted, 3 to trusted\n"
in
"Summary levels: 0 just errors, 1 time stamps, 2 processed file names, \
3 data information, 4 typing information, 5 reduction information\n\n" ^
"Stages: 0 parsing, 1 to intermediate, 2 to untrusted, 3 to trusted\n"
in
- let help_S = "<number> Set summary level" in
- let help_V = " Show version information" in
+ let help_S = "<number> set summary level" in
+ let help_V = " show version information" in
+ let help_h = "<string> set type hierarchy" in
+ let help_i = " show local references by index" in
Arg.parse [
("-S", Arg.Int set_summary, help_S);
("-V", Arg.Unit print_version, help_V);
Arg.parse [
("-S", Arg.Int set_summary, help_S);
("-V", Arg.Unit print_version, help_V);
- ("-s", Arg.Int set_stage, help_s);
+ ("-n", Arg.Set BagR.nsi, help_n);
+ ("-s", Arg.Int set_stage, help_s)
- if !L.level > 0 then Time.utime_stamp "at exit"
-with BrgType.TypeError msg -> brg_error "Type Error" msg
+ if !L.level > 0 then Time.utime_stamp "at exit";
+ flush ()
+with BagType.TypeError msg -> bag_error "Type Error" msg