-requires="helm-content helm-ng_cic_content helm-syntax_extensions camlp5.gramlib ulex08 helm-grafite"
+requires="helm-content helm-syntax_extensions camlp5.gramlib ulex08 helm-grafite"
version="0.0.1"
archive(byte)="content_pres.cma"
archive(native)="content_pres.cmxa"
BoxPp.render_to_string (function x::_->x|_->assert false)
~map_unicode_to_tex:false 80 t);*)t)
-let lookup_uri ids_to_uris id =
- try
- let uri = Hashtbl.find ids_to_uris id in
- Some (NReference.string_of_reference uri)
- with Not_found -> None
-;;
-
let render ~lookup_uri ?(prec=(-1)) =
let module A = Ast in
let module P = Mpresentation in
(** {2 Rendering} *)
-val lookup_uri: (Interpretations.cic_id,NReference.reference) Hashtbl.t ->
- Interpretations.cic_id -> string option
-
(** level 1 -> level 0
* @param ids_to_uris mapping id -> uri for hyperlinking
* @param prec precedence level *)
val render:
- lookup_uri:(Interpretations.cic_id -> string option) -> ?prec:int -> NotationPt.term ->
+ lookup_uri:(Content.id -> string option) -> ?prec:int -> NotationPt.term ->
markup
(** level 0 -> xml stream *)
val ncontent2pres:
#TermContentPres.status ->
?skip_initial_lambdas:int -> ?skip_thm_and_qed:bool ->
- ids_to_nrefs:(Interpretations.id, NReference.reference) Hashtbl.t ->
+ ids_to_nrefs:(Content.id, NReference.reference) Hashtbl.t ->
NotationPt.term Content.cobj ->
CicNotationPres.boxml_markup
val nsequent2pres :
#TermContentPres.status ->
- ids_to_nrefs:(Interpretations.id, NReference.reference) Hashtbl.t ->
+ ids_to_nrefs:(Content.id, NReference.reference) Hashtbl.t ->
subst:NCic.substitution -> NotationPt.term Content.conjecture ->
CicNotationPres.boxml_markup
(** {2 State handling} *)
-type id = string
-
val hide_coercions: bool ref
type db
method set_interp_status: #g_status -> 'self
end
-type cic_id = string
-
val add_interpretation:
#status as 'status ->
string -> (* id / description *)
#status -> metasenv:NCic.metasenv -> subst:NCic.substitution ->
int * NCic.conjecture ->
NotationPt.term Content.conjecture *
- (id, NReference.reference) Hashtbl.t (* id -> reference *)
+ (Content.id, NReference.reference) Hashtbl.t (* id -> reference *)
val nmap_obj:
#status -> NCic.obj ->
NotationPt.term Content.cobj *
- (id, NReference.reference) Hashtbl.t (* id -> reference *)
+ (Content.id, NReference.reference) Hashtbl.t (* id -> reference *)