package sexplib

  1. Overview
  2. Docs

S-expressions annotated with relative source positions and comments

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

S-expressions annotated with relative source positions and comments. All the positions are relative to the opening paren of the enclosing list, or the first character of the file.

and t_or_comment = Type_with_layout.t_or_comment =
  1. | Sexp of t
  2. | Comment of comment
and comment = Type_with_layout.comment =
  1. | Plain_comment of pos * string
  2. | Sexp_comment of pos * comment list * t
val sexp_of_t : t -> Type.t
val sexp_of_comment : comment -> Type.t
val sexp_of_t_or_comment : t_or_comment -> Type.t
module Forget : sig ... end
module Render : sig ... end
module Parser : sig ... end
module Lexer : sig ... end
OCaml

Innovation. Community. Security.