package tyre

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Internal types

exception ConverterFailure of string * string
type ('a, 'b) conv = {
  1. to_ : 'a -> 'b option;
  2. from_ : 'b -> 'a;
}
type 'a raw =
  1. | Regexp : Re.t * Re.re Stdlib.Lazy.t -> string raw
  2. | Conv : string * 'a raw * ('a, 'b) conv -> 'b raw
  3. | Opt : 'a raw -> 'a option raw
  4. | Alt : 'a raw * 'b raw -> [ `Left of 'a | `Right of 'b ] raw
  5. | Seq : 'a raw * 'b raw -> ('a * 'b) raw
  6. | Prefix : 'b raw * 'b * 'a raw -> 'a raw
  7. | Suffix : 'a raw * 'b * 'b raw -> 'a raw
  8. | Rep : 'a raw -> 'a gen raw
  9. | Mod : (Re.t -> Re.t) * 'a raw -> 'a raw
val from_t : 'a t -> 'a raw
val to_t : 'a raw -> 'a t
type _ wit =
  1. | Regexp : Re.t -> string wit
  2. | Conv : string * 'a wit * ('a, 'b) conv -> 'b wit
  3. | Opt : Re.markid * int * 'a wit -> 'a option wit
  4. | Alt : Re.markid * int * 'a wit * Re.markid * 'b wit -> [ `Left of 'a | `Right of 'b ] wit
  5. | Seq : 'a wit * 'b wit -> ('a * 'b) wit
  6. | Rep : 'a wit * Re.re -> 'a gen wit
val build : 'a raw -> int * 'a wit * Re.t
val extract : 'a wit -> int -> Re.substrings -> int * 'a
OCaml

Innovation. Community. Security.