]> matita.cs.unibo.it Git - helm.git/blobdiff - components/acic_content/cicNotationPt.ml
Wildcard patterns implemented in case analysis. The following term is now
[helm.git] / components / acic_content / cicNotationPt.ml
index 73eeb017dad00d781bbb61f9242b2eeb8f631186..d9d92ad6fc5b905cbb9ba0600c441fc95a4d7bf3 100644 (file)
@@ -32,7 +32,7 @@ type induction_kind = [ `Inductive | `CoInductive ]
 type sort_kind = [ `Prop | `Set | `Type of CicUniv.universe | `CProp ]
 type fold_kind = [ `Left | `Right ]
 
-type location = Token.flocation
+type location = Stdpp.location
 let fail floc msg =
   let (x, y) = HExtlib.loc_of_floc floc in
   failwith (Printf.sprintf "Error at characters %d - %d: %s" x y msg)
@@ -105,7 +105,9 @@ type term =
 
 and meta_subst = term option
 and subst = string * term
-and case_pattern = string * href option * term capture_variable list
+and case_pattern =
+   Pattern of string * href option * term capture_variable list
+ | Wildcard
 
 and box_kind = H | V | HV | HOV
 and box_spec = box_kind * bool * bool (* kind, spacing, indent *)