Module regex_syntax::hir

source ·
Expand description

Defines a high-level intermediate representation for regular expressions.

Modules

  • Provides routines for extracting literal prefixes and suffixes from an Hir.
  • This module provides a regular expression printer for Hir.
  • Defines a translator that converts an Ast to an Hir.

Structs

  • An error that occurs when Unicode-aware simple case folding fails.
  • A set of characters represented by arbitrary bytes (where one byte corresponds to one character).
  • An iterator over all ranges in a byte character class.
  • A single range of characters represented by arbitrary bytes.
  • A set of characters represented by Unicode scalar values.
  • An iterator over all ranges in a Unicode character class.
  • A single range of characters represented by Unicode scalar values.
  • An error that can occur while translating an Ast to a Hir.
  • The high-level intermediate representation for a group.
  • A high-level intermediate representation (HIR) for a regular expression.
  • The high-level intermediate representation of a repetition operator.

Enums

  • The high-level intermediate representation for an anchor assertion.
  • The high-level intermediate representation of a character class.
  • The type of an error that occurred while building an Hir.
  • The kind of group.
  • The kind of an arbitrary Hir expression.
  • The high-level intermediate representation of a literal.
  • The kind of a repetition operator.
  • The kind of a counted repetition operator.
  • The high-level intermediate representation for a word-boundary assertion.

Traits

  • A trait for visiting the high-level IR (HIR) in depth first order.

Functions

  • Executes an implementation of Visitor in constant stack space.