Debian Codegraph @

ide/rocqide/protocol/serialize.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 open Xml_datatype
12
13 exception Marshal_error of string * xml
14
15 val massoc: string -> (string * string) list -> string
16 val constructor: string -> string -> xml list -> xml
17 val do_match: string -> (string -> xml list -> 'b) -> xml -> 'b
18 val singleton: 'a list -> 'a
19 val empty: 'a list -> unit
20 val raw_string: xml list -> string
21 val of_unit: unit -> xml
22 val to_unit: xml -> unit
23 val of_bool: bool -> xml
24 val to_bool: xml -> bool
25 val of_list: ('a -> xml) -> 'a list -> xml
26 val to_list: (xml -> 'a) -> xml -> 'a list
27 val of_option: ('a -> xml) -> 'a option -> xml
28 val to_option: (xml -> 'a) -> xml -> 'a option
29 val of_string: string -> xml
30 val to_string: xml -> string
31 val of_int: int -> xml
32 val to_int: xml -> int
33 val of_pair: ('a -> xml) -> ('b -> xml) -> 'a * 'b -> xml
34 val to_pair: (xml -> 'a) -> (xml -> 'b) -> xml -> 'a * 'b
35 val of_union: ('a -> xml) -> ('b -> xml) -> ('a, 'b) CSig.union -> xml
36 val to_union: (xml -> 'a) -> (xml -> 'b) -> xml -> ('a, 'b) CSig.union
37 val of_edit_id: int -> xml
38 val to_edit_id: xml -> int
39 val of_loc : Loc.t -> xml
40 val to_loc : xml -> Loc.t
41 val of_xml : xml -> xml
42 val to_xml : xml -> xml