X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fgrafite%2FgrafiteAst.ml;h=c861a1a45657f937f1d158a50f2a0f19c1ec8e18;hb=26711af9f9afbaf93dbb3a4e1c227d6e884a8ebe;hp=180d687c9282d314814e579e1a1ad6b14d18461b;hpb=6a5e51c1cf9a56c74a8b53a9b8bc5aa686c9780e;p=helm.git diff --git a/helm/software/components/grafite/grafiteAst.ml b/helm/software/components/grafite/grafiteAst.ml index 180d687c9..c861a1a45 100644 --- a/helm/software/components/grafite/grafiteAst.ml +++ b/helm/software/components/grafite/grafiteAst.ml @@ -63,6 +63,7 @@ type ('term, 'lazy_term, 'reduction, 'ident) tactic = (* Real tactics *) | Absurd of loc * 'term | Apply of loc * 'term + | ApplyRule of loc * 'term | ApplyP of loc * 'term (* apply for procedural reconstruction *) | ApplyS of loc * 'term * 'term auto_params | Assumption of loc @@ -132,7 +133,7 @@ type print_kind = [ `Env | `Coer ] type presentation_style = Declarative | Procedural of int option -type 'term macro = +type ('term,'lazy_term) macro = (* Whelp's stuff *) | WHint of loc * 'term | WMatch of loc * 'term @@ -140,6 +141,7 @@ type 'term macro = | WLocate of loc * string | WElim of loc * 'term (* real macros *) + | Eval of loc * 'lazy_term reduction * 'term | Check of loc * 'term | Hint of loc * bool | AutoInteractive of loc * 'term auto_params @@ -148,12 +150,13 @@ type 'term macro = (** To be increased each time the command type below changes, used for "safe" * marshalling *) -let magic = 13 +let magic = 14 type ('term,'obj) command = | Index of loc * 'term option (* key *) * UriManager.uri (* value *) | Coercion of loc * 'term * bool (* add_obj *) * int (* arity *) * int (* saturations *) + | UnificationHint of (loc * 'term) | Default of loc * string * UriManager.uri list | Drop of loc | Include of loc * string @@ -180,7 +183,7 @@ type ('term,'lazy_term,'reduction,'ident) non_punctuation_tactical = type ('term, 'lazy_term, 'reduction, 'obj, 'ident) code = | Command of loc * ('term, 'obj) command - | Macro of loc * 'term macro + | Macro of loc * ('term,'lazy_term) macro | Tactic of loc * ('term, 'lazy_term, 'reduction, 'ident) tactic option * ('term, 'lazy_term, 'reduction, 'ident) punctuation_tactical | NonPunctuationTactical of loc