Module Sexplib__Sexp.With_layout

S-expressions annotated with relative source positions and comments

type pos = Sexplib.Src_pos.Relative.t = {
row : int;
col : int;
}
val sexp_of_pos : pos ‑> Sexplib.Type.t
type t =
| Atom of pos * string * string option
| List of pos * t_or_comment list * pos

S-expressions annotated with relative source positions and comments

type t_or_comment =
| Sexp of t
| Comment of comment
type comment =
| Plain_comment of pos * string
| Sexp_comment of pos * comment list * t
val sexp_of_t : t ‑> Sexplib.Type.t
val sexp_of_comment : comment ‑> Sexplib.Type.t
val sexp_of_t_or_comment : t_or_comment ‑> Sexplib.Type.t
module Forget : sig ... end
module Render : sig ... end with type asexp := t_or_comment
module Parser : sig ... end
module Lexer : sig ... end