]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/grafite/grafiteAst.ml
ugly coerc db print
[helm.git] / helm / software / components / grafite / grafiteAst.ml
index 60e3aac4bfa0d2ad8ba476ecf1082c434cf22f1c..8fc37e4c543c430bd4a5ea08ea40a90953cbbee9 100644 (file)
@@ -55,10 +55,13 @@ type ntactic =
    | NCases of loc * CicNotationPt.term * npattern  
    | NCase1 of loc * string
    | NChange of loc * npattern * CicNotationPt.term
+   | NConstructor of loc * int option * CicNotationPt.term list
+   | NCut of loc * CicNotationPt.term
    | NElim of loc * CicNotationPt.term * npattern  
    | NGeneralize of loc * npattern
    | NId of loc
    | NIntro of loc * string
+   | NLApply of loc * CicNotationPt.term
    | NLetIn of loc * npattern * CicNotationPt.term * string
    | NReduce of loc * [ `Normalize of bool | `Whd of bool ] * npattern
    | NRewrite of loc * direction * CicNotationPt.term * npattern
@@ -188,9 +191,13 @@ type ('term,'lazy_term) macro =
   | Inline of loc * string * inline_param list
      (* URI or base-uri, parameters *) 
 
+type nmacro =
+  | NCheck of loc * CicNotationPt.term
+  | Screenshot of loc * string
+
 (** To be increased each time the command type below changes, used for "safe"
  * marshalling *)
-let magic = 26
+let magic = 28
 
 type ('term,'obj) command =
   | Index of loc * 'term option (* key *) * UriManager.uri (* value *)
@@ -213,7 +220,8 @@ type ('term,'obj) command =
 type ncommand =
   | UnificationHint of loc * CicNotationPt.term * int (* term, precedence *)
   | NObj of loc * CicNotationPt.term CicNotationPt.obj
-  | NUnivConstraint of loc * bool * NUri.uri * NUri.uri
+  | NUnivConstraint of loc * NUri.uri * NUri.uri
+  | NCopy of loc * string * NUri.uri * (NUri.uri * NUri.uri) list
   | NCoercion of loc * string *
       CicNotationPt.term * CicNotationPt.term *
       (string * CicNotationPt.term) * CicNotationPt.term
@@ -237,6 +245,7 @@ type ('term, 'lazy_term, 'reduction, 'obj, 'ident) code =
   | Command of loc * ('term, 'obj) command
   | NCommand of loc * ncommand
   | Macro of loc * ('term,'lazy_term) macro 
+  | NMacro of loc * nmacro 
   | NTactic of loc * ntactic list
   | Tactic of loc * ('term, 'lazy_term, 'reduction, 'ident) tactic option
       * punctuation_tactical