Module B00_serialk_text.Tdec

type t
val create : ?file:Tloc.fpath -> string -> t
val file : t -> Tloc.fpath
val pos : t -> Tloc.pos
val line : t -> Tloc.line_pos
val loc : t -> sbyte:Tloc.pos -> ebyte:Tloc.pos -> sline:Tloc.line_pos -> eline:Tloc.line_pos -> Tloc.t
val loc_to_here : t -> sbyte:Tloc.pos -> sline:Tloc.line_pos -> Tloc.t
val loc_here : t -> Tloc.t
exception Err of Tloc.t * string
val err : Tloc.t -> string -> 'b
val err_to_here : t -> sbyte:Tloc.pos -> sline:Tloc.line_pos -> ('a, Format.formatter, unit, 'b) format4 -> 'a
val err_here : t -> ('a, Format.formatter, unit, 'b) format4 -> 'a
val err_suggest : ?dist:int -> string list -> string -> string list
type !'a fmt = Format.formatter -> 'a -> unit
val pp_and_enum : ?empty:unit fmt -> 'a fmt -> 'a list fmt
val pp_or_enum : ?empty:unit fmt -> 'a fmt -> 'a list fmt
val pp_did_you_mean : 'a fmt -> 'a list fmt
val pp_must_be : 'a fmt -> 'a list fmt
val pp_unknown : kind:unit fmt -> 'a fmt -> 'a fmt
val pp_unknown' : kind:unit fmt -> 'a fmt -> hint:('a fmt -> 'a list fmt) -> ('a * 'a list) fmt
val eoi : t -> bool
val byte : t -> int
val accept_uchar : t -> unit
val accept_byte : t -> unit
val tok_reset : t -> unit
val tok_pop : t -> string
val tok_accept_uchar : t -> unit
val tok_accept_byte : t -> unit
val tok_add_byte : t -> int -> unit
val tok_add_bytes : t -> string -> unit
val tok_add_char : t -> char -> unit
val tok_add_uchar : t -> Uchar.t -> unit
val buffer_add_uchar : Buffer.t -> Uchar.t -> unit