]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/lexicon/cicNotation.ml
notation_id were compared using Pervasives.equal this was rarely triggering the
[helm.git] / helm / software / components / lexicon / cicNotation.ml
index e10a89d5bf06152328349222ad516a82acfb3146..248e08bcb242c7ada134c5e5325eae86814e2062 100644 (file)
@@ -32,6 +32,13 @@ type notation_id =
   | InterpretationId of TermAcicContent.interpretation_id
   | PrettyPrinterId of TermContentPres.pretty_printer_id
 
+let compare_notation_id x y = 
+  match x,y with
+  | RuleId i1, RuleId i2 -> CicNotationParser.compare_rule_id i1 i2
+  | RuleId _, _ -> ~-1
+  | _, RuleId _ -> 1
+  | x,y -> Pervasives.compare x y
+
 let parser_ref_counter = RefCounter.create ()
 let rule_ids_to_items = Hashtbl.create 113