]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/grafite_engine/grafiteTypes.ml
Previous patch improved: we now use an ad-hoc wrapper for Grammar.parsable
[helm.git] / matita / components / grafite_engine / grafiteTypes.ml
index b99b15eaa9f8035adacdd37c6ab5f02e58689d4a..fe27a965673652ee084f12a9138e2dc19c1ad3a9 100644 (file)
@@ -37,12 +37,22 @@ class status = fun (b : string) ->
    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 GrafiteParser.status
+   inherit TermContentPres.status
    val baseuri = b
    val ng_mode = (`CommandMode : [`CommandMode | `ProofMode])
+   val dependencies = ([] : string list)
    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))
+   method dependencies = dependencies
+   method set_dependencies v = {< dependencies = v >}
  end
+
+module Serializer =
+ NCicLibrary.Serializer(struct type dumpable_status = status end)