123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657open!BasemoduletypeS=sigtypesexptype'awriter=Config.t->'a->sexp->unit(** [pp_formatter conf fmt sexp] will mutate the fmt with functions such as
[set_formatter_tag_functions] *)valpp_formatter:Caml.Format.formatterwritervalpp_formatter':next:(unit->sexpoption)->Config.t->Caml.Format.formatter->unitvalpp_buffer:Buffer.twritervalpp_out_channel:Caml.out_channelwritervalpp_blit:(string,unit)Blit.subwriter(** [pretty_string] needs to allocate. If you care about performance, using one of the
[pp_*] functions above is advised. *)valpretty_string:Config.t->sexp->stringvalsexp_to_string:sexp->stringend(** Pretty-printing of S-expressions *)moduletypeSexp_pretty=sigmoduleConfig=ConfigmoduletypeS=SincludeSwithtypesexp:=Sexp.tmoduleSexp_with_layout:Swithtypesexp:=Sexplib.Sexp.With_layout.t_or_commentmoduleNormalize:sigtypet=(* Contains a sexp with associated comments. *)|Sexpofsexp*stringlist|Commentofcommentandcomment=|Line_commentofstring(* Does not contain the "#|" "|#"; contains its indentation size. *)|Block_commentofint*stringlist|Sexp_commentofcommentlist*sexpandsexp=|Atomofstring|Listoftlistvalof_sexp_or_comment:Config.t->Sexplib.Sexp.With_layout.t_or_comment->tendvalsexp_to_sexp_or_comment:Sexp.t->Sexplib.Sexp.With_layout.t_or_commentend