type ('u, 's) mode = | Single | (** Parse a single s-expression *) | |||
| Many | (** Parse a list of s-expressions *) | |||
| Eager of {
} | (** Gives back s-expressions as soon as they are found. *) |
val empty_stack : stackval empty_stack_cst : stack_csttype ('u, 's) kind = | Positions : (Parsexp.Positions.Builder.t, unit) kind |
| Sexp : (unit, stack) kind |
| Sexp_with_positions : (Parsexp.Positions.Builder.t, stack) kind |
| Cst : (state_cst, stack_cst) kind |
val new_state : ?initial_pos:Parsexp.Positions.pos ‑> ('u, 's) mode ‑> ('u, 's) kind ‑> ('u, 's) stateval reset : ?pos:Parsexp.Positions.pos ‑> (_, _) state ‑> unitval positions : (Parsexp.Positions.Builder.t, _) state ‑> Parsexp.Positions.tval column : (_, _) state ‑> intval set_error_state : (_, _) state ‑> unitval sexp_of_stack : stack ‑> Parsexp__.Import.Ppx_sexp_conv_lib.Sexp.tval sexps_of_stack : stack ‑> Parsexp__.Import.Ppx_sexp_conv_lib.Sexp.t listval sexps_cst_of_stack : stack_cst ‑> Parsexp.Cst.t_or_comment listmodule Error : sig ... endexception Parse_error of Error.t