Module Earley_core.Regexp
type regexp=|Chr of char|Set of Charset.t|Seq of regexp list|Alt of regexp list|Opt of regexp|Str of regexp|Pls of regexp|Sav of regexp * string Stdlib.refType of a regular expression.
exceptionRegexp_error of Input.buffer * intException that is raised when a regexp cannot be read.
val print_regexp : Stdlib.out_channel -> regexp -> unitval accept_empty : regexp -> boolval accepted_first_chars : regexp -> Charset.tval regexp_from_string : string -> regexp * string Stdlib.ref arrayval read_regexp : regexp -> Input.buffer -> int -> Input.buffer * intread_regexp re buf posattempts to parse using the bufferbufat positionposusing the regular expressionre. The return value is a triple of the parsed string, the buffer after parsing and the position after parsing. The exceptionRegexp_error(err_buf, err_posis raised in case of failure at the given position.