X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fgrafite%2FgrafiteAst.ml;h=8fc37e4c543c430bd4a5ea08ea40a90953cbbee9;hb=ad8d37cce3b39565861014d870b91b1add0ec0e3;hp=813a080719cfbf039ea234c4dab8e1c81460004a;hpb=948bb5d710c5d7f3185b6fef76c8e71f247cc664;p=helm.git diff --git a/helm/software/components/grafite/grafiteAst.ml b/helm/software/components/grafite/grafiteAst.ml index 813a08071..8fc37e4c5 100644 --- a/helm/software/components/grafite/grafiteAst.ml +++ b/helm/software/components/grafite/grafiteAst.ml @@ -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,7 @@ 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 * @@ -238,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