]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/number_notation.ml
default of auto_disambiguation set to true
[helm.git] / helm / ocaml / cic_disambiguation / number_notation.ml
index 7ce0ec0a0face58e43e0a041b4733612cb1267bf..2b3ce2d601a351ae4bc81628afb6b58e9c049792 100644 (file)
  * http://helm.cs.unibo.it/
  *)
 
-let _ =
-  let const s = Cic.Const (s, []) in
-  let mutind s = Cic.MutInd (s, 0, []) in
+(* $Id$ *)
 
+let _ =
   DisambiguateChoices.add_num_choice
     ("natural number",
       (fun _ num _ -> HelmLibraryObjects.build_nat (int_of_string num)));
@@ -38,7 +37,7 @@ let _ =
       (fun _ num _ ->
         let num = int_of_string num in
         if num = 0 then
-          raise DisambiguateTypes.Invalid_choice
+          raise (DisambiguateTypes.Invalid_choice (lazy "0 is not a valid positive number"))
         else
           HelmLibraryObjects.build_bin_pos num));
   DisambiguateChoices.add_num_choice