package sexplib

  1. Overview
  2. Docs
Library for serializing OCaml values to and from S-expressions

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=da863b42b81235fdcf45eb32c04fb8bde22ff446a779cfb6f989730a35103160

doc/sexplib/Sexplib/Sexp/With_layout/index.html

Module Sexp.With_layoutSource

S-expressions annotated with relative source positions and comments

Sourcetype pos = Src_pos.Relative.t = {
  1. row : int;
  2. col : int;
}
Sourceval sexp_of_pos : pos -> Type.t
Sourcetype 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.

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 pos * string
  2. | Sexp_comment of pos * 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
Sourcemodule Forget : sig ... end
Sourcemodule Render : sig ... end
Sourcemodule Parser : sig ... end
Sourcemodule Lexer : sig ... end
OCaml

Innovation. Community. Security.