(* $Id: nCic.ml 9058 2008-10-13 17:42:30Z tassi $ *)
+class type g_status =
+ object
+ inherit LexiconEngine.g_status
+ inherit NRstatus.g_dumpable_status
+ end
+
class status =
object (self)
inherit LexiconEngine.status
inherit NRstatus.dumpable_status
method set_estatus
- : 'status.
- < coerc_db : NCicCoercion.db;
- uhint_db : NCicUnifHint.db;
- timestamp: NCicLibrary.timestamp;
- dump: NRstatus.Serializer.obj list;
- lstatus: LexiconEngine.lexicon_status; .. > as 'status -> 'self
+ : 'status. #g_status as 'status -> 'self
= fun o -> (self#set_lexicon_engine_status o)#set_dumpable_status o
end
(* $Id: nCic.ml 9058 2008-10-13 17:42:30Z tassi $ *)
+class type g_status =
+ object
+ inherit LexiconEngine.g_status
+ inherit NRstatus.g_dumpable_status
+ end
+
class status :
object ('self)
inherit LexiconEngine.status
inherit NRstatus.dumpable_status
- method set_estatus:
- < coerc_db : NCicCoercion.db;
- uhint_db : NCicUnifHint.db;
- timestamp: NCicLibrary.timestamp;
- dump: NRstatus.Serializer.obj list;
- lstatus: LexiconEngine.lexicon_status; .. > -> 'self
+ inherit g_status
+ method set_estatus: #g_status -> 'self
end
notation_ids = [];
}
+class type g_status =
+ object
+ method lstatus: lexicon_status
+ end
+
class status =
object
val lstatus = initial_status
method lstatus = lstatus
method set_lstatus v = {< lstatus = v >}
method set_lexicon_engine_status
- : 'status. < lstatus: lexicon_status; .. > as 'status -> 'self
+ : 'status. #g_status as 'status -> 'self
= fun o -> {< lstatus = o#lstatus >}
end
notation_ids: CicNotation.notation_id list; (** in-scope notation ids *)
}
+class type g_status =
+ object
+ method lstatus: lexicon_status
+ end
+
class status :
object ('self)
- method lstatus: lexicon_status
+ inherit g_status
method set_lstatus: lexicon_status -> 'self
- method set_lexicon_engine_status: < lstatus: lexicon_status ; .. > -> 'self
+ method set_lexicon_engine_status: #g_status -> 'self
end
val eval_command : #status as 'status -> LexiconAst.command -> 'status
let init = load_db;;
+class type g_status =
+ object
+ method timestamp: timestamp
+ end
class status =
object
method timestamp = timestamp
method set_timestamp v = {< timestamp = v >}
method set_library_status
- : 'status. < timestamp : timestamp; .. > as 'status -> 'self
+ : 'status. #g_status as 'status -> 'self
= fun o -> {< timestamp = o#timestamp >}
end
type timestamp
+class type g_status =
+ object
+ method timestamp: timestamp
+ end
+
class status :
object ('self)
- method timestamp: timestamp
+ inherit g_status
method set_timestamp: timestamp -> 'self
- method set_library_status: <timestamp: timestamp; ..> -> 'self
+ method set_library_status: #g_status -> 'self
end
(* it also checks it and add it to the environment *)
let empty_db = DB.empty,DB.empty
+class type g_status =
+ object
+ inherit NCicUnifHint.g_status
+ method coerc_db: db
+ end
+
class status =
object
inherit NCicUnifHint.status
method coerc_db = db
method set_coerc_db v = {< db = v >}
method set_coercion_status
- : 'status. < coerc_db : db; uhint_db: NCicUnifHint.db; .. > as 'status ->
- 'self
- = fun o -> {< db = o#coerc_db >}#set_unifhint_status o
+ : 'status. #g_status as 'status -> 'self
+ = fun o -> {< db = o#coerc_db >}#set_unifhint_status o
end
let index_coercion status name c src tgt arity arg =
type db
+class type g_status =
+ object
+ inherit NCicUnifHint.g_status
+ method coerc_db: db
+ end
+
class status :
object ('self)
inherit NCicUnifHint.status
+ inherit g_status
method coerc_db: db
method set_coerc_db: db -> 'self
- method set_coercion_status: <coerc_db: db; uhint_db: NCicUnifHint.db; ..>
- -> 'self
+ method set_coercion_status: #g_status -> 'self
end
val empty_db: db
let skel_dummy = NCic.Implicit `Type;;
+class type g_status =
+ object
+ method uhint_db: db
+ end
+
class status =
object
val db = HDB.empty, EQDB.empty
method uhint_db = db
method set_uhint_db v = {< db = v >}
method set_unifhint_status
- : 'status. < uhint_db : db; .. > as 'status -> 'self
+ : 'status. #g_status as 'status -> 'self
= fun o -> {< db = o#uhint_db >}
end
exception HintNotValid
+class type g_status =
+ object
+ method uhint_db: db
+ end
+
class status :
object ('self)
- method uhint_db: db
+ inherit g_status
method set_uhint_db: db -> 'self
- method set_unifhint_status: < uhint_db : db; .. > -> 'self
+ method set_unifhint_status: #g_status -> 'self
end
val index_hint:
(* $Id: nCicRefiner.ml 9802 2009-05-25 15:39:26Z tassi $ *)
+class type g_status =
+ object
+ inherit NCicCoercion.g_status
+ inherit NCicLibrary.g_status
+ end
+
class status =
object (self)
inherit NCicCoercion.status
inherit NCicLibrary.status
method set_rstatus
- : 'status.
- < coerc_db : NCicCoercion.db;
- uhint_db : NCicUnifHint.db;
- timestamp: NCicLibrary.timestamp; .. > as 'status -> 'self
- = fun o ->
- (self#set_coercion_status o)#set_library_status o
+ : 'status. #g_status as 'status -> 'self
+ = fun o -> (self#set_coercion_status o)#set_library_status o
end
type sstatus = status
status
end
+class type g_dumpable_status =
+ object
+ inherit g_status
+ method dump: Serializer.obj list
+ end
+
class dumpable_status =
object
inherit status
method dump = dump
method set_dump v = {< dump = v >}
method set_dumpable_status
- : 'status.
- < coerc_db : NCicCoercion.db;
- uhint_db : NCicUnifHint.db;
- timestamp: NCicLibrary.timestamp;
- dump: Serializer.obj list; .. > as 'status -> 'self
+ : 'status. #g_dumpable_status as 'status -> 'self
= fun o -> {< dump = o#dump >}#set_rstatus o
end
(* $Id: nCicRefiner.ml 9802 2009-05-25 15:39:26Z tassi $ *)
+class type g_status =
+ object
+ inherit NCicCoercion.g_status
+ inherit NCicLibrary.g_status
+ end
+
class status :
object ('self)
inherit NCicCoercion.status
inherit NCicLibrary.status
- method set_rstatus:
- < coerc_db : NCicCoercion.db;
- uhint_db : NCicUnifHint.db;
- timestamp: NCicLibrary.timestamp; .. > -> 'self
+ inherit g_status
+ method set_rstatus: #g_status -> 'self
end
module Serializer:
val require: baseuri:NUri.uri -> (#status as 'status) -> 'status
end
+class type g_dumpable_status =
+ object
+ inherit g_status
+ method dump: Serializer.obj list
+ end
+
class dumpable_status :
object ('self)
inherit status
- method dump: Serializer.obj list
+ inherit g_dumpable_status
method set_dump: Serializer.obj list -> 'self
- method set_dumpable_status:
- < coerc_db : NCicCoercion.db;
- uhint_db : NCicUnifHint.db;
- timestamp: NCicLibrary.timestamp;
- dump: Serializer.obj list; .. > -> 'self
+ method set_dumpable_status: #g_dumpable_status -> 'self
end