]> matita.cs.unibo.it Git - helm.git/commitdiff
Number notation for NG
authorAndrea Asperti <andrea.asperti@unibo.it>
Mon, 18 Jan 2010 09:51:09 +0000 (09:51 +0000)
committerAndrea Asperti <andrea.asperti@unibo.it>
Mon, 18 Jan 2010 09:51:09 +0000 (09:51 +0000)
helm/software/components/grafite_parser/grafiteDisambiguate.ml
helm/software/components/grafite_parser/grafiteParser.ml

index 6aee803f42578cf16cb04a5187856470c2f3c48a..28742e6c7651c93edc8cd9a423bed51df0da2139 100644 (file)
@@ -81,12 +81,18 @@ let ncic_mk_choice = function
         ~term_of_nref:(fun nref -> NCic.Const nref)
        name dsc
   | LexiconAst.Number_alias (_, dsc) -> 
-       let desc,f = DisambiguateChoices.lookup_num_by_dsc dsc in
-       desc, `Num_interp
+     (try
+       let desc,f = DisambiguateChoices.nlookup_num_by_dsc dsc in
+        desc, `Num_interp
+         (fun num -> match f with `Num_interp f -> f num | _ -> assert false)
+      with
+       DisambiguateChoices.Choice_not_found _ ->
+        let desc,f = DisambiguateChoices.lookup_num_by_dsc dsc in
+        desc, `Num_interp
          (fun num -> 
             fst (OCic2NCic.convert_term 
               (UriManager.uri_of_string "cic:/xxx/x.con") 
-              (match f with `Num_interp f -> f num | _ -> assert false)))
+              (match f with `Num_interp f -> f num | _ -> assert false))))
   | LexiconAst.Ident_alias (name, uri) -> 
      uri, `Sym_interp 
       (fun l->assert(l = []);
index 68299b8ea72f26042223058893dbdfacc3c3f421..7be30e407db19b1f918e46eb367080422e3114bd 100644 (file)
@@ -483,6 +483,7 @@ EXTEND
   auto_fixed_param: [
    [ IDENT "paramodulation"
    | IDENT "fast_paramod"
+   | IDENT "paramod"
    | IDENT "slir"
    | IDENT "depth"
    | IDENT "width"