1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465(************************************************************************)(* * The Coq Proof Assistant / The Coq 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) *)(************************************************************************)(************************************************************************)(* SerAPI: Coq interaction protocol with bidirectional serialization *)(************************************************************************)(* Copyright 2016-2019 MINES ParisTech -- License LGPL 2.1+ *)(* Copyright 2019-2023 Inria -- License LGPL 2.1+ *)(* Written by: Emilio J. Gallego Arias and others *)(************************************************************************)openPpx_hash_lib.Std.Hash.BuiltinopenPpx_compare_lib.BuiltinopenSexplib.Stdtypesign=[%import:NumTok.sign][@@derivingsexp,yojson,hash,compare]typenum_class=[%import:NumTok.num_class][@@deriving sexp,yojson]type'aexp=[%import:'aNumTok.exp][@@derivingsexp,yojson]moduleUnsigned=structmodulePierceSpec=structtypet=NumTok.Unsigned.ttype_t={int:string;frac:string;exp:string}[@@derivingsexp,yojson,hash,compare]endincludeSerType.Pierce(PierceSpec)endmoduleUnsignedNat=structmoduleUSNBij=structtypet=NumTok.UnsignedNat.ttype_t=string[@@derivingsexp,yojson,hash,compare]letto_t=NumTok.UnsignedNat.of_stringletof_t=NumTok.UnsignedNat.to_stringendincludeSerType.Biject(USNBij)endmoduleSigned=structtypet=[%import:NumTok.Signed.t][@@derivingsexp,yojson,hash,compare]end