Module Parsexp.Many_and_positions

type parsed_value = Base.Sexp.t Base.list * Positions.t

Values produced by the parser

module State : Parsexp__.Parsexp_intf.Parser_state
module Stack : Parsexp__.Parsexp_intf.Parser_stack
val feed : State.t ‑> Base.char ‑> Stack.t ‑> Stack.t

Feed one character to the parser. In case of error, it raises Parse_error

val feed_eoi : State.t ‑> Stack.t ‑> parsed_value

Instruct the parser that the end of input was reached. In case of error, it raises Parse_error

Convenience functions

val feed_string : State.t ‑> Base.string ‑> Stack.t ‑> Stack.t
val feed_substring : State.t ‑> Base.string ‑> pos:Base.int ‑> len:Base.int ‑> Stack.t ‑> Stack.t
val feed_bytes : State.t ‑> Base.bytes ‑> Stack.t ‑> Stack.t
val feed_subbytes : State.t ‑> Base.bytes ‑> pos:Base.int ‑> len:Base.int ‑> Stack.t ‑> Stack.t

High-level functions

module Error : sig ... end
val parse_string : Base.string ‑> (parsed_valueError.tBase.Result.t
val parse_string_exn : Base.string ‑> parsed_value