12345678910111213141516171819202122232425262728293031323334353637383940openSexplib.SexpopenSexplib.Convletexn_to_stringe=to_string_hum(sexp_of_exne)letsexp_of_big_intn=Atom(Big_int.string_of_big_intn)letsexp_of_natn=Atom(Nat.string_of_natn)letsexp_of_ration=Atom(Ratio.string_of_ration)letsexp_of_numn=Atom(Num.string_of_numn)letbig_int_of_sexpsexp=matchsexpwith|Atomstr->(tryBig_int.big_int_of_stringstrwith|exc->of_sexp_error("big_int_of_sexp: "^exn_to_stringexc)sexp)|List_->of_sexp_error"big_int_of_sexp: atom needed"sexp;;letnat_of_sexpsexp=matchsexpwith|Atomstr->(tryNat.nat_of_stringstrwith|exc->of_sexp_error("nat_of_sexp: "^exn_to_stringexc)sexp)|List_->of_sexp_error"nat_of_sexp: atom needed"sexp;;letratio_of_sexpsexp=matchsexpwith|Atomstr->(tryRatio.ratio_of_stringstrwith|exc->of_sexp_error("ratio_of_sexp: "^exn_to_stringexc)sexp)|List_->of_sexp_error"ratio_of_sexp: atom needed"sexp;;letnum_of_sexpsexp=matchsexpwith|Atomstr->(tryNum.num_of_stringstrwith|exc->of_sexp_error("num_of_sexp: "^exn_to_stringexc)sexp)|List_->of_sexp_error"num_of_sexp: atom needed"sexp;;