Module Parser.Char

module Char: sig .. end

val any : char Parser.t
any, unlike "." by default, matches newline.

(However, note that of_re2 (Re2.create_exn ".") will match newline. See the comment on of_re2 for more information.)

val one_of : char list -> char Parser.t
Duplicates in the lists given to one_of and not_one_of are ignored.
val not_one_of : char list -> char Parser.t

The following 6 values match the Re2 character classes with the same name.
val upper : char Parser.t
A character matching Char.is_uppercase
val lower : char Parser.t
A character matching Char.is_lowercase
val alpha : char Parser.t
A character matching Char.is_alpha
val digit : char Parser.t
A character matching Char.is_digit
val alnum : char Parser.t
A character matching Char.is_alphanum
val space : char Parser.t
A character matching Char.is_whitespace