package touist

  1. Overview
  2. Docs

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

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

Innovation. Community. Security.