package sexplib

  1. Overview
  2. Docs

Module Pre_sexp.AnnotSource

Sourcetype pos = Parsexp.Positions.pos = {
  1. line : int;
  2. col : int;
  3. offset : int;
}
Sourcetype range = Parsexp.Positions.range = {
  1. start_pos : pos;
  2. end_pos : pos;
}
Sourcetype t =
  1. | Atom of range * Type.t
  2. | List of range * t list * Type.t
Sourcetype 'a conv = [
  1. | `Result of 'a
  2. | `Error of exn * t
]
Sourceexception Conv_exn of string * exn
Sourcetype stack = {
  1. mutable positions : pos list;
  2. mutable stack : t list list;
}
Sourceval get_sexp : t -> Type.t
Sourceval get_range : t -> range
Sourceval sexp_of_conv : ('a -> Type.t) -> [< `Error of exn * t | `Result of 'a ] -> Type.t
Sourceexception Annot_sexp of t
Sourceval find_sexp : t -> Type.t -> t option
OCaml

Innovation. Community. Security.