package sexplib

  1. Overview
  2. Docs

Module Sexp_with_layout.RenderSource

Sourcemodule Rel_pos = Src_pos.Relative
Sourcemodule Abs_pos = Src_pos.Absolute
Sourcetype last_atom = {
  1. immed_after : Abs_pos.t;
  2. unescaped : bool;
}
Sourcetype state = {
  1. mutable row_shift : Rel_pos.t;
  2. mutable current : Abs_pos.t;
  3. mutable last_atom : last_atom option;
  4. mutable last_comment_row : int;
}
Sourcetype 'a t = (char -> unit) -> state -> 'a
Sourceval return : 'a -> 'b -> 'c -> 'a
Sourceval bind : ('a -> 'b -> 'c) -> f:('c -> 'a -> 'b -> 'd) -> 'a -> 'b -> 'd
Sourceval run : 'a -> ('a -> state -> 'b) -> 'b
Sourceval emit_char : (char -> 'a) -> state -> char -> unit
Sourceval emit_string : (char -> 'a) -> state -> string -> unit
Sourceval emit_chars : (char -> 'a) -> state -> char -> n:int -> unit
Sourceval advance : (char -> 'a) -> anchor:Abs_pos.t -> state -> by:Sexplib__Src_pos.Relative.t -> unescaped_atom:bool -> line_comment:bool -> unit
Sourceval render_t : (char -> 'a) -> anchor:Abs_pos.t -> state -> t -> unit
Sourceval render_toc : (char -> 'a) -> anchor:Abs_pos.t -> state -> t_or_comment -> unit
Sourceval render_c : (char -> 'a) -> anchor:Abs_pos.t -> state -> comment -> unit
Sourceval render : t_or_comment -> (char -> 'a) -> state -> unit
Sourceval sexp : t_or_comment -> (char -> 'a) -> state -> unit
OCaml

Innovation. Community. Security.