X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fgrafite_engine%2FgrafiteTypes.ml;h=27a5cb61ef179e731572db093c7db67d999ac495;hb=f7da48c844105a52a705872dfa0d4104de010c82;hp=b99b15eaa9f8035adacdd37c6ab5f02e58689d4a;hpb=3f9cb46b5e167955e85b3d2544f1bed90f1a25b7;p=helm.git diff --git a/matita/components/grafite_engine/grafiteTypes.ml b/matita/components/grafite_engine/grafiteTypes.ml index b99b15eaa..27a5cb61e 100644 --- a/matita/components/grafite_engine/grafiteTypes.ml +++ b/matita/components/grafite_engine/grafiteTypes.ml @@ -31,18 +31,25 @@ exception Command_error of string let command_error msg = raise (Command_error msg) -class status = fun (b : string) -> +class virtual status = fun (b : string) -> let fake_obj = NUri.uri_of_string "cic:/matita/dummy.decl",0,[],[], NCic.Constant([],"",None,NCic.Implicit `Closed,(`Provided,`Theorem,`Regular)) in object + (* Warning: #stack and #obj are meaningful iff #ng_mode is `ProofMode *) + inherit ([Continuationals.Stack.t] NTacStatus.status fake_obj (Continuationals.Stack.empty)) + inherit NCicLibrary.dumpable_status + inherit NCicLibrary.status + inherit NCicExtraction.status + inherit GrafiteParser.status + inherit TermContentPres.status val baseuri = b val ng_mode = (`CommandMode : [`CommandMode | `ProofMode]) method baseuri = baseuri method set_baseuri v = {< baseuri = v >} method ng_mode = ng_mode; method set_ng_mode v = {< ng_mode = v >} - (* Warning: #stack and #obj are meaningful iff #ng_mode is `ProofMode *) - inherit ([Continuationals.Stack.t] NTacStatus.status fake_obj (Continuationals.Stack.empty)) end + +module Serializer = NCicLibrary.Serializer(struct type dumpable_s = status end)