package pacomb
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=863207bf0718a124f2d09222e7d14641cb065a50c4708d7fdda4aada43ab640e
md5=56207945b70db43e8ef4ed9d1a34c131
doc/pacomb/Pacomb/Regexp/index.html
Module Pacomb.Regexp
Source
A small module for efficient regular expressions.
Type of a regular expression.
pp ff re
outputs the regexp re
to the formatter ff
.
accepts_empty re
tells whether the empty input is valid for re
.
accepted_first_chars re
returns the set of characters that are possible, valid first characters for matching re
.
Exception raised when a regexp does not match. Note that the given buffer and position correspond to the first character that cannot be matched.
from_string s
convert a string into a regexp following Str
syntax.
create a terminal from a regexp. Returns the whole matched string
create a terminal from a regexp. Returns the groups list, last to finish to be parsed is first in the result. The optional argument grps allows selection of the produced groups. As usual, 0 means the whole regexp and n > 0 the sub string corresponding to the nth opening parenthesis.