type parsed_value = Sexplib0.Sexp.t list * Positions.tValues produced by the parser
module State : sig ... endmodule Stack : sig ... endval feed : State.t -> char -> Stack.t -> Stack.tFeed one character to the parser. In case of error, it raises
Parse_error
val feed_eoi : State.t -> Stack.t -> parsed_valueInstruct the parser that the end of input was reached. In case of error, it raises
Parse_error
Convenience functions
val feed_string : State.t -> string -> Stack.t -> Stack.tval feed_substring : State.t -> string -> pos:int -> len:int -> Stack.t -> Stack.tval feed_bytes : State.t -> bytes -> Stack.t -> Stack.tval feed_subbytes : State.t -> bytes -> pos:int -> len:int -> Stack.t -> Stack.t
High-level functions
val parse_string : string -> (parsed_value, Parse_error.t) Stdlib.resultval parse_string_exn : string -> parsed_value