[][src]Module regex_syntax::hir

Defines a high-level intermediate representation for regular expressions.

Modules

literal

Provides routines for extracting literal prefixes and suffixes from an Hir.

print

This module provides a regular expression printer for Hir.

translate

Defines a translator that converts an Ast to an Hir.

Structs

ClassBytes

A set of characters represented by arbitrary bytes (where one byte corresponds to one character).

ClassBytesIter

An iterator over all ranges in a byte character class.

ClassBytesRange

A single range of characters represented by arbitrary bytes.

ClassUnicode

A set of characters represented by Unicode scalar values.

ClassUnicodeIter

An iterator over all ranges in a Unicode character class.

ClassUnicodeRange

A single range of characters represented by Unicode scalar values.

Error

An error that can occur while translating an Ast to a Hir.

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.

ErrorKind

The type of an error that occurred while building an Hir.

GroupKind

The kind of group.

HirKind

The kind of an arbitrary Hir expression.

Literal

The high-level intermediate representation of a literal.

RepetitionKind

The kind of a repetition operator.

RepetitionRange

The kind of a counted repetition operator.

WordBoundary

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.