package coqide-server

  1. Overview
  2. Docs
The Coq Proof Assistant, XML protocol server

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.20.0.tar.gz
md5=66e57ea55275903bef74d5bf36fbe0f1
sha512=1a7eac6e2f58724a3f9d68bbb321e4cfe963ba1a5551b9b011db4b3f559c79be433d810ff262593d753770ee41ea68fbd6a60daa1e2319ea00dff64c8851d70b

doc/coqide-server.protocol/Richpp/index.html

Module RichppSource

This module offers semi-structured pretty-printing.

Sourcetype 'annotation located = {
  1. annotation : 'annotation option;
  2. startpos : int;
  3. endpos : int;
}

Each annotation of the semi-structured document refers to the substring it annotates.

Sourceval rich_pp : width:int -> ?depth:int -> Pp.t -> Pp.pp_tag located Xml_datatype.gxml

rich_pp width ppcmds returns the interpretation of ppcmds as a semi-structured document that represents (located) annotations of this string. The get_annotations function is used to convert tags into the desired annotation. width sets the printing width of the formatter.

Sourceval annotations_positions : 'annotation located Xml_datatype.gxml -> ('annotation * (int * int)) list

annotations_positions ssdoc returns a list associating each annotations with its position in the string from which ssdoc is built.

Sourceval xml_of_rich_pp : ('annotation -> string) -> ('annotation -> (string * string) list) -> 'annotation located Xml_datatype.gxml -> Xml_datatype.xml

xml_of_rich_pp ssdoc returns an XML representation of the semi-structured document ssdoc.

Enriched text

Type of text with style annotations

Sourceval richpp_of_pp : width:int -> ?depth:int -> Pp.t -> richpp

Extract style information from formatted text

OCaml

Innovation. Community. Security.

On This Page
  1. Enriched text