Module Touist.ParserReport

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

module S = MenhirLib.General
val debug : bool Pervasives.ref
type 'a buffer =
| Zero
| One of 'a
| Two of 'a * 'a
val update : 'a buffer ‑> 'a ‑> 'a buffer
val show : ('a ‑> string) ‑> 'a buffer ‑> string
val exact_pos : (Lexing.position * 'a) buffer ‑> Lexing.position
val area_pos : (Lexing.position * Lexing.position) buffer ‑> Lexing.position * Lexing.position
val extract : string ‑> (Lexing.position * Lexing.position) ‑> string
val compress : string ‑> string
val sanitize : string ‑> string
val shorten : int ‑> string ‑> string
val stack : 'a Parser.MenhirInterpreter.checkpoint ‑> Parser.MenhirInterpreter.stack
val state : 'a Parser.MenhirInterpreter.checkpoint ‑> int
val drop : int ‑> 'a S.stream ‑> 'a S.stream
val element : 'a Parser.MenhirInterpreter.checkpoint ‑> int ‑> Parser.MenhirInterpreter.element
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