Module Pre_sexp.Annotated
type !'a conv = [
| `Error of exn * t
| `Result of 'a
]
exception Conv_exn of string * exn
type stack = Annot.stack = {
mutable positions : pos list;
mutable stack : t list list;
}
exception Annot_sexp of 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 :
(Sexplib.Type.t -> 'a) ->
t ->
[> `Error of exn * t | `Result of 'a ]
val get_conv_exn : file:string -> exc:exn -> t -> exn