package touist

  1. Overview
  2. Docs

Handles errors in Parse.parse produced by the menhir in incremental parser. report is the main function.

val debug : bool ref
type 'a buffer =
  1. | Zero
  2. | One of 'a
  3. | Two of 'a * 'a
val update : 'a buffer -> 'b -> 'c buffer
val show : ('a -> string) -> 'b buffer -> string
val exact_pos : (Lexing.position * 'a) buffer -> Lexing.position
val extract : string -> (Lexing.position * Lexing.position) -> string
val compress : string -> string
val sanitize : string -> string
val shorten : int -> string -> string
val drop : int -> 'a S.stream -> 'a0 S.stream
val width : int
val range : string -> Parser.MenhirInterpreter.element -> string
val fragment : string -> 'a Parser.MenhirInterpreter.checkpoint -> string -> string
val fragments : string -> 'a Parser.MenhirInterpreter.checkpoint -> string -> string
val report : string -> (Lexing.position * Lexing.position) buffer -> 'a Parser.MenhirInterpreter.checkpoint -> bool -> string