X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Ftoplevel%2Ftop.ml;h=515e6590ee03c4113efb02d24a72bb5b4e43c894;hb=0920a5755553774f5b41d7603318ea997ecbdca5;hp=c1c3538446cb1942a8767d91164fa91d620fd735;hpb=0e6bf0ef18e3879a359b2b6f63d600c20102f0ab;p=helm.git diff --git a/helm/software/lambda-delta/toplevel/top.ml b/helm/software/lambda-delta/toplevel/top.ml index c1c353844..515e6590e 100644 --- a/helm/software/lambda-delta/toplevel/top.ml +++ b/helm/software/lambda-delta/toplevel/top.ml @@ -18,6 +18,7 @@ module H = Hierarchy module O = Output module Y = Entity module X = Library +module AL = AutLexer module AP = AutProcess module AO = AutOutput module DA = CrgAut @@ -52,7 +53,7 @@ let initial_status mk_uri cover g expand si = { brgc = BrgO.initial_counters; bagc = BagO.initial_counters; mst = MA.initial_status ~cover (); - dst = DA.initial_status (mk_uri cover); + dst = DA.initial_status (mk_uri si cover); ast = AP.initial_status; kst = Y.initial_status g expand si } @@ -181,7 +182,7 @@ let rec process st = function let main = try - let version_string = "Helena 0.8.1 M - December 2009" in + let version_string = "Helena 0.8.1 M - January 2010" in let set_hierarchy s = let err () = L.warn (P.sprintf "Unknown type hierarchy: %s" s) in let f g = graph := g in @@ -199,6 +200,9 @@ try let f och = moch := Some och in ML.open_out f name in + let unquote () = + AL.unquote := true + in let close = function | None -> () | Some och -> ML.close_out C.start och @@ -240,7 +244,7 @@ try flush_all () in let help = - "Usage: helena [ -Vcgijmopux | -Ss | -hk ] ...\n\n" ^ + "Usage: helena [ -Vcgijmopqrux | -Ss | -hk ] ...\n\n" ^ "Summary levels: 0 just errors (default), 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 (default)\n" @@ -257,6 +261,7 @@ try let help_m = " output intermediate representation (HAL)" in let help_o = " use old abstract language instead of crg" in let help_p = " preprocess Automath source" in + let help_q = " disable quotation of identifiers" in let help_r = " disable initial segment of URI hierarchy" in let help_s = " set translation stage (see above)" in let help_u = " activate sort inclusion" in @@ -276,6 +281,7 @@ try ("-m", Arg.Set meta, help_m); ("-o", Arg.Set old, help_o); ("-p", Arg.Set preprocess, help_p); + ("-q", Arg.Unit unquote, help_q); ("-r", Arg.Clear use_cover, help_r); ("-s", Arg.Int set_stage, help_s); ("-u", Arg.Set si, help_u);