X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fgrafite%2FgrafiteAst.ml;h=c700c836b456e334f3acd7b862600fc3f2519cec;hb=84e770b58ae08a345087de816aba29bc2fc727ba;hp=fc9ea8c5d8964c3ad5b0c647eaf234b59c1b2ecd;hpb=fd93fa0155994b70482e0f07d8e45c238cce835d;p=helm.git diff --git a/helm/software/components/grafite/grafiteAst.ml b/helm/software/components/grafite/grafiteAst.ml index fc9ea8c5d..c700c836b 100644 --- a/helm/software/components/grafite/grafiteAst.ml +++ b/helm/software/components/grafite/grafiteAst.ml @@ -63,10 +63,13 @@ 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 | AutoBatch of loc * 'term auto_params - | Cases of loc * 'term * 'ident intros_spec + | Cases of loc * 'term * ('term, 'lazy_term, 'ident) pattern * + 'ident intros_spec | Change of loc * ('term, 'lazy_term, 'ident) pattern * 'lazy_term | Clear of loc * 'ident list | ClearBody of loc * 'ident @@ -130,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 @@ -138,19 +141,20 @@ 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 - | Inline of loc * presentation_style * string * string - (* URI or base-uri, name prefix *) + | Inline of loc * presentation_style * string * string * Cic.object_flavour option + (* URI or base-uri, name prefix, flavour *) (** To be increased each time the command type below changes, used for "safe" * marshalling *) -let magic = 12 +let magic = 13 type ('term,'obj) command = | Index of loc * 'term option (* key *) * UriManager.uri (* value *) - | Coercion of loc * UriManager.uri * bool (* add_obj *) * + | Coercion of loc * 'term * bool (* add_obj *) * int (* arity *) * int (* saturations *) | Default of loc * string * UriManager.uri list | Drop of loc @@ -178,7 +182,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