package coqide-server

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

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.20.1.tar.gz
md5=0cfaa70f569be9494d24c829e6555d46
sha512=8ee967c636b67b22a4f34115871d8f9b9114df309afc9ddf5f61275251088c6e21f6cf745811df75554d30f4cebb6682f23eeb2e88b771330c4b60ce3f6bf5e2

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

Module XmlprotocolSource

* Applicative part of the interface of CoqIDE calls to Coq

Sourcetype 'a call
Sourcetype unknown_call =
  1. | Unknown : 'a call -> unknown_call
Sourceval abstract_eval_call : Interface.handler -> 'a call -> bool * 'a Interface.value

* Protocol version

Sourceval protocol_version : string
Sourcetype msg_format =
  1. | Richpp of {
    1. width : int;
    2. depth : int;
    }
  2. | Ppcmds

By default, we still output messages in Richpp so we are compatible with 8.6, however, 8.7 aware clients will want to set this to Ppcmds

* XML data marshalling

Sourceval of_call : 'a call -> Xml_datatype.xml
Sourceval of_answer : msg_format -> 'a call -> 'a Interface.value -> Xml_datatype.xml
Sourceval to_answer : 'a call -> Xml_datatype.xml -> 'a Interface.value
Sourceval document : (Xml_datatype.xml -> string) -> unit

* Debug printing

Sourceval pr_call : 'a call -> string
Sourceval pr_value : 'a Interface.value -> string
Sourceval pr_full_value : 'a call -> 'a Interface.value -> string
Sourcetype msg_type =
  1. | Feedback
  2. | LtacDebugInfo
  3. | Other

Classification of messages handled by different mechanisms

* Serialization of feedback

Sourceval of_ltac_debug_answer : tag:string -> Pp.t -> Xml_datatype.xml

* Serialization of debugger output

Sourceval to_ltac_debug_answer : Xml_datatype.xml -> string * Pp.t
Sourceval of_vars : (string * Pp.t) list -> Xml_datatype.xml

* reply for db_vars message

Sourceval of_stack : (string * (string * int list) option) list -> Xml_datatype.xml

* reply for db_stack message

OCaml

Innovation. Community. Security.