package sexplib

  1. Overview
  2. Docs

Module Pre_sexp.AnnotSource

Sourcetype pos = {
  1. line : int;
  2. col : int;
  3. offset : int;
}
Sourcetype 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
Sourceexception Annot_sexp of t
Sourceval find_sexp : t -> Type.t -> t option
OCaml

Innovation. Community. Security.