package sexplib

  1. Overview
  2. Docs

Module Sexplib.Sexp_with_layoutSource

Sourcemodule List : sig ... end
include module type of struct include Type_with_layout end

parsing produces absolute positions

include Make(Src_pos.Relative).S
Sourcetype t = Type_with_layout.t =
  1. | Atom of Src_pos.Relative.t * string * string option
  2. | List of Src_pos.Relative.t * t_or_comment list * Src_pos.Relative.t

S-expressions annotated with relative source positions and comments

Sourceand t_or_comment = Type_with_layout.t_or_comment =
  1. | Sexp of t
  2. | Comment of comment
Sourceand comment = Type_with_layout.comment =
  1. | Plain_comment of Src_pos.Relative.t * string
  2. | Sexp_comment of Src_pos.Relative.t * comment list * t
Sourceval sexp_of_t : t -> Type.t
Sourceval sexp_of_comment : comment -> Type.t
Sourceval sexp_of_t_or_comment : t_or_comment -> Type.t
Sourcetype pos = Src_pos.Relative.t = {
  1. row : int;
  2. col : int;
}
Sourceval sexp_of_pos : Src_pos.Relative.t -> Type.t
Sourcemodule Lexer : sig ... end
Sourcemodule Parser = Parser_with_layout
Sourcemodule Render : sig ... end
Sourcemodule Forget : sig ... end
OCaml

Innovation. Community. Security.