package sexplib

  1. Overview
  2. Docs
include module type of struct include Annot end
type pos = Annot.pos = {
  1. line : int;
  2. col : int;
  3. offset : int;
}
type range = Annot.range = {
  1. start_pos : pos;
  2. end_pos : pos;
}
type t = Annot.t =
  1. | Atom of range * Type.t
  2. | List of range * t list * Type.t
type 'a conv = [
  1. | `Result of 'a
  2. | `Error of exn * t
]
exception Conv_exn of string * exn
type stack = Annot.stack = {
  1. mutable positions : pos list;
  2. mutable stack : t list list;
}
val get_sexp : t -> Type.t
val get_range : t -> range
exception Annot_sexp of t
val find_sexp : t -> Type.t -> t option
val parse : ?parse_pos:Parse_pos.t -> ?len:int -> string -> (string, Annot.t) parse_result
val parse_bigstring : ?parse_pos:Parse_pos.t -> ?len:int -> bigstring -> (bigstring, Annot.t) parse_result
val input_rev_sexps : ?parse_pos:Parse_pos.t -> ?buf:bytes -> Pervasives.in_channel -> Annot.t list
val input_sexp : ?parse_pos:Parse_pos.t -> Pervasives.in_channel -> Annot.t
val input_sexps : ?parse_pos:Parse_pos.t -> ?buf:bytes -> Pervasives.in_channel -> Annot.t list
val of_string : string -> Annot.t
val of_bigstring : bigstring -> Annot.t
val load_rev_sexps : ?buf:bytes -> string -> Annot.t list
val load_sexps : ?buf:bytes -> string -> Annot.t list
val load_sexp : ?strict:bool -> ?buf:bytes -> string -> Annot.t
val conv : (Type.t -> 'a) -> t -> [> `Error of exn * t | `Result of 'a ]
val get_conv_exn : file:string -> exc:exn -> t -> exn
OCaml

Innovation. Community. Security.