]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/grafite_engine/grafiteTypes.ml
Implementation of Ocaml extraction (largely ported from Coq).
[helm.git] / matita / components / grafite_engine / grafiteTypes.ml
index d36998181c887df94a11553341768bc219e04814..12935e80d6d838e3c6937a957b843eb41f740472 100644 (file)
@@ -31,7 +31,7 @@ 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))
@@ -40,6 +40,11 @@ class status = fun (b : string) ->
    (* 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 OcamlExtractionTable.status
+   inherit GrafiteParser.status
+   inherit TermContentPres.status
    val baseuri = b
    val ng_mode = (`CommandMode : [`CommandMode | `ProofMode])
    method baseuri = baseuri
@@ -48,5 +53,4 @@ class status = fun (b : string) ->
    method set_ng_mode v = {< ng_mode = v >}
  end
 
-module Serializer =
- NCicLibrary.Serializer(struct type dumpable_status = status end)
+module Serializer = NCicLibrary.Serializer(struct type dumpable_s = status end)