From 6ef2dc11653e0572db6f7660470242ed23a0bdc2 Mon Sep 17 00:00:00 2001 From: Paul Steckler Date: Thu, 13 Apr 2017 16:38:48 -0400 Subject: update XML protocol doc to 8.6 --- dev/doc/xml-protocol.md | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'dev') diff --git a/dev/doc/xml-protocol.md b/dev/doc/xml-protocol.md index 22aa120d5d..4e51176059 100644 --- a/dev/doc/xml-protocol.md +++ b/dev/doc/xml-protocol.md @@ -1,4 +1,4 @@ -#Coq XML Protocol for Coq 8.5# +#Coq XML Protocol for Coq 8.6# This document is based on documentation originally written by CJ Bell for his [vscoq](https://github.com/siegebell/vscoq/) project. @@ -12,6 +12,12 @@ A somewhat out-of-date description of the async state machine is [documented here](https://github.com/ejgallego/jscoq/blob/master/etc/notes/coq-notes.md). OCaml types for the protocol can be found in the [`ide/interface.mli` file](/ide/interface.mli). +# CHANGES +## Changes from 8.5: + * In several places, flat text wrapped in tags now appears as structured text inside tags + * The "errormsg" feedback has been replaced by a "message" feedback which contains + tag, with a message_level attribute of "error" + * [Commands](#commands) - [About](#command-about) - [Add](#command-add) @@ -41,7 +47,6 @@ OCaml types for the protocol can be found in the [`ide/interface.mli` file](/ide - [WorkerStatus](#feedback-workerstatus) - [File Dependencies](#feedback-filedependencies) - [File Loaded](#feedback-fileloaded) - - [ErrorMessage](#feedback-errormessage) - [Message](#feedback-message) - [Custom](#feedback-custom) @@ -73,15 +78,15 @@ Returns information about the protocol and build dates for Coqtop. #### *Returns* ```html - 8.5 - 20140312 - April 2014 - April 15 2014 16:16:30 + 8.6 + 20150913 + December 2016 + Dec 23 2016 16:16:30 ``` The string fields are the Coq version, the protocol version, the release date, and the compile time of Coqtop. -The protocol version is a date in YYYYMMDD format, where "20140312" corresponds to Coq 8.5. An IDE that wishes +The protocol version is a date in YYYYMMDD format, where "20150913" corresponds to Coq 8.6. An IDE that wishes to support multiple Coq versions can use the protocol version information to know how to handle output from Coqtop. ### **Add(stateId: integer, command: string, verbose: boolean)** @@ -136,12 +141,12 @@ state that should become the next tip. loc_s="${startOffsetOfError}" loc_e="${endOffsetOfError}"> - ${errorMessage} + ${errorMessage} ``` - Another kind of error, for example, Qed with a pending goal. ```html - ${errorMessage} + ${errorMessage} ``` ------------------------------- @@ -230,11 +235,11 @@ proofs. 3 - ${hyp1} + ${hyp1} ... - ${hypN} + ${hypN} - ${goal} + ${goal} ... ${goalN} @@ -713,13 +718,15 @@ Ex: `status = "Idle"` or `status = "proof: myLemmaName"` or `status = "Dead"` ``` -* Error Message. +* Message. `level` is one of `{info,warning,notice,error,debug}`. For example, in response to an add `"Axiom foo: nat."` with `verbose=true`, message `foo is assumed` will be emitted in response. ```xml - - ${errorMessage" + + + ${message} + ``` -- cgit v1.2.3