package sedlex

  1. Overview
  2. Docs
An OCaml lexer generator for Unicode

Install

Dune Dependency

Authors

Maintainers

Sources

v3.4.tar.gz
md5=5c655398261226dd99b1231df3f729e1
sha512=7e5f6e93e7791058b54bcd66f0e28f8ff72e6ea759a172cf6d8d7055d352d3a4e5c23f15278e254870a0ff1caed8948e77c6fde997c2b8bd81d3484198ddd484

doc/sedlex_ppx/Sedlex_ppx/Sedlex_cset/index.html

Module Sedlex_ppx.Sedlex_csetSource

include module type of struct include Sedlex_utils.Cset end
type t = private (int * int) list

Character sets are represented as lists of intervals. The intervals must be non-overlapping and not collapsable, and the list must be ordered in increasing order.

val of_list : (int * int) list -> t
val to_list : t -> (int * int) list
val min_code : int
val max_code : int
val empty : t
val any : t
val union : t -> t -> t
val union_list : t list -> t
val difference : t -> t -> t
val intersection : t -> t -> t
val is_empty : t -> bool
val eof : t
val singleton : int -> t
val interval : int -> int -> t
val to_seq : t -> int Seq.t
OCaml

Innovation. Community. Security.