Module regex_syntax::ast::parse[][src]

This module provides a regular expression parser.

Structs

NestLimiter

A type that traverses a fully parsed Ast and checks whether its depth exceeds the specified nesting limit. If it does, then an error is returned.

Parser

A regular expression parser.

ParserBuilder

A builder for a regular expression parser.

ParserI

ParserI is the internal parser implementation.

Enums

ClassState

ClassState represents a single stack frame while parsing character classes. Each frame records the state up to an intersection, difference, symmetric difference or nested class.

GroupState

GroupState represents a single stack frame while parsing nested groups and alternations. Each frame records the state up to an opening parenthesis or a alternating bracket |.

Primitive

A primitive is an expression with no sub-expressions. This includes literals, assertions and non-set character classes. This representation is used as intermediate state in the parser.

Functions

is_capture_char

Returns true if the given character is a valid in a capture group name.

is_hex

Returns true if the given character is a hexadecimal digit.

Type Definitions

Result