12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152(************************************************************************)(* v * The Coq Proof Assistant / The Coq Development Team *)(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2017 *)(* \VV/ **************************************************************)(* // * This file is distributed under the terms of the *)(* * GNU Lesser General Public License Version 2.1 *)(************************************************************************)(************************************************************************)(* Coq serialization API/Plugin *)(* Copyright 2016-2017 MINES ParisTech *)(************************************************************************)(* Status: Very Experimental *)(************************************************************************)openSexplib.Stdtypesign=[%import:NumTok.sign][@@derivingsexp,yojson]typenum_class=[%import:NumTok.num_class][@@derivingsexp,yojson]type'aexp=[%import:'aNumTok.exp][@@derivingsexp,yojson]moduleUnsigned=structtype_t={int:string;frac:string;exp:string}[@@derivingsexp,yojson]typet=NumTok.Unsigned.tlett_of_sexps=Obj.magic(_t_of_sexps)letsexp_of_ts=sexp_of__t(Obj.magics)letof_yojsons=Obj.magic(_t_of_yojsons)letto_yojsons=_t_to_yojson(Obj.magics)endmoduleSigned=structtypet=[%import:NumTok.Signed.t][@@derivingsexp,yojson]end