Expand description
Defines a high-level intermediate representation for regular expressions.
Modules§
- literal
- Provides routines for extracting literal prefixes and suffixes from an
Hir
. - This module provides a regular expression printer for
Hir
. - translate
- Defines a translator that converts an
Ast
to anHir
.
Structs§
- Case
Fold Error - An error that occurs when Unicode-aware simple case folding fails.
- Class
Bytes - A set of characters represented by arbitrary bytes (where one byte corresponds to one character).
- Class
Bytes Iter - An iterator over all ranges in a byte character class.
- Class
Bytes Range - A single range of characters represented by arbitrary bytes.
- Class
Unicode - A set of characters represented by Unicode scalar values.
- Class
Unicode Iter - An iterator over all ranges in a Unicode character class.
- Class
Unicode Range - A single range of characters represented by Unicode scalar values.
- Error
- An error that can occur while translating an
Ast
to aHir
. - Group
- The high-level intermediate representation for a group.
- Hir
- A high-level intermediate representation (HIR) for a regular expression.
- Repetition
- The high-level intermediate representation of a repetition operator.
Enums§
- Anchor
- The high-level intermediate representation for an anchor assertion.
- Class
- The high-level intermediate representation of a character class.
- Error
Kind - The type of an error that occurred while building an
Hir
. - Group
Kind - The kind of group.
- HirKind
- The kind of an arbitrary
Hir
expression. - Literal
- The high-level intermediate representation of a literal.
- Repetition
Kind - The kind of a repetition operator.
- Repetition
Range - The kind of a counted repetition operator.
- Word
Boundary - The high-level intermediate representation for a word-boundary assertion.
Traits§
- Visitor
- A trait for visiting the high-level IR (HIR) in depth first order.
Functions§
- visit
- Executes an implementation of
Visitor
in constant stack space.