]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/toplevel/top.ml
- we now add the kernel options in the preamble of the URI hierarchy
[helm.git] / helm / software / lambda-delta / toplevel / top.ml
index c1c3538446cb1942a8767d91164fa91d620fd735..515e6590ee03c4113efb02d24a72bb5b4e43c894 100644 (file)
@@ -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 <number> | -hk <string> ] <file> ...\n\n" ^
+      "Usage: helena [ -Vcgijmopqrux | -Ss <number> | -hk <string> ] <file> ...\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 = "<number>  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);