]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/oldDisambiguate.ml
ocaml 3.09 transition
[helm.git] / helm / gTopLevel / oldDisambiguate.ml
index db118b5187516a129ed59278a3e2cd059f9a2953..24dd30f91077f48c7daf21a87a130e988cb83553 100644 (file)
@@ -160,10 +160,10 @@ module Make(C:Callbacks) =
         let metasenv',expr = mk_metasenv_and_expr resolve_id' in
 (*CSC: Bug here: we do not try to typecheck also the metasenv' *)
          try
-          let term,_,metasenv'' =
-           CicRefine.type_of_aux' metasenv' context expr
+          let term,_,metasenv'',_ = (* TASSI: FIXME what are we doning here?*)
+           CicRefine.type_of_aux' metasenv' context expr CicUniv.empty_ugraph
           in
-           Ok (term,metasenv'')
+           Ok (term,metasenv'') (* TASSI: whould we pass back the ugraph? *)
          with
             CicRefine.Uncertain _ ->
 prerr_endline ("%%% UNCERTAIN!!! " ^ CicPp.ppterm expr) ;
@@ -322,12 +322,13 @@ module EnvironmentP3 =
     let regexpr =
      let alfa = "[a-zA-Z_-]" in
      let digit = "[0-9]" in
-     let ident = alfa ^ "\(" ^ alfa ^ "\|" ^ digit ^ "\)*" in
-     let blanks = "\( \|\t\|\n\)+" in
+     let ident = alfa ^ "\\(" ^ alfa ^ "\\|" ^ digit ^ "\\)*" in
+     let blanks = "\\( \\|\t\\|\n\\)+" in
      let nonblanks = "[^ \t\n]+" in
-     let uri = "/\(" ^ ident ^ "/\)*" ^ nonblanks in (* not very strict check *)
+     let uri = "/\\(" ^ ident ^ "/\\)*" ^ nonblanks in
+      (* not very strict check *)
       Str.regexp
-       ("alias" ^ blanks ^ "\(" ^ ident ^ "\)" ^ blanks ^ "\(" ^ uri ^ "\)")
+       ("alias" ^ blanks ^ "\\(" ^ ident ^ "\\)" ^ blanks ^ "\\(" ^ uri ^ "\\)")
     in
      let rec aux n =
       try