Something went wrong. Try again.
forked from coq/coq
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596(************************************************************************)(* * The Rocq Prover / The Rocq Development Team *)(* v * Copyright INRIA, CNRS and contributors *)(* <O___,, * (see version control and CREDITS file for authors & dates) *)(* \VV/ **************************************************************)(* // * This file is distributed under the terms of the *)(* * GNU Lesser General Public License Version 2.1 *)(* * (see LICENSE file for the text of the license) *)(************************************************************************)
(** * Applicative part of the interface of RocqIDE calls to Rocq *)
open Interfaceopen Xml_datatype
type 'a call
type unknown_call = Unknown : 'a call -> unknown_call
val add : add_sty -> add_rty callval edit_at : edit_at_sty -> edit_at_rty callval query : query_sty -> query_rty callval goals : goals_sty -> goals_rty callval hints : hints_sty -> hints_rty callval status : status_sty -> status_rty callval mkcases : mkcases_sty -> mkcases_rty callval evars : evars_sty -> evars_rty callval search : search_sty -> search_rty callval get_options : get_options_sty -> get_options_rty callval set_options : set_options_sty -> set_options_rty callval quit : quit_sty -> quit_rty callval init : init_sty -> init_rty callval stop_worker : stop_worker_sty -> stop_worker_rty call(* internal use (fake_ide) only, do not use *)val wait : wait_sty -> wait_rty call(* retrocompatibility *)val interp : interp_sty -> interp_rty callval print_ast : print_ast_sty -> print_ast_rty callval annotate : annotate_sty -> annotate_rty callval proof_diff : proof_diff_sty -> proof_diff_rty callval db_cmd : db_cmd_sty -> db_cmd_rty callval db_upd_bpts : db_upd_bpts_sty -> db_upd_bpts_rty callval db_continue : db_continue_sty -> db_continue_rty callval db_stack : db_stack_sty -> db_stack_rty callval db_vars : db_vars_sty -> db_vars_rty callval db_configd : db_configd_sty -> db_configd_rty callval subgoals : subgoals_sty -> subgoals_rty call
val abstract_eval_call : handler -> 'a call -> bool * 'a value
(** * Protocol version *)
val protocol_version : string
(** 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 *)type msg_format = Richpp of { width : int; depth : int } | Ppcmds
(** * XML data marshalling *)
val of_call : 'a call -> xmlval to_call : xml -> unknown_call
val of_answer : msg_format -> 'a call -> 'a value -> xmlval to_answer : 'a call -> xml -> 'a value
(* Prints the documentation of this module *)val document : (xml -> string) -> unit
(** * Debug printing *)
val pr_call : 'a call -> stringval pr_value : 'a value -> stringval pr_full_value : 'a call -> 'a value -> string
(** Classification of messages handled by different mechanisms *)type msg_type = Feedback | LtacDebugInfo | Other
(* EJGA: We could even include the decoding info here *)val msg_kind : xml -> msg_type
(** * Serialization of feedback *)val of_feedback : msg_format -> Feedback.feedback -> xmlval to_feedback : xml -> Feedback.feedback
(** * Serialization of debugger output *)val of_ltac_debug_answer : tag:string -> Pp.t -> xmlval to_ltac_debug_answer : xml -> string * Pp.t
(** * reply for db_vars message *)val of_vars : (string * Pp.t) list -> xml
(** * reply for db_stack message *)val of_stack : (string * (string * int list) option) list -> xml