Expand description
Defines an abstract syntax for regular expressions.
Modules§
- parse
 - This module provides a regular expression parser.
 - This module provides a regular expression printer for 
Ast. 
Structs§
- Alternation
 - An alternation of regular expressions.
 - Assertion
 - A single zero-width assertion.
 - Capture
Name  - A capture name.
 - Class
Ascii  - An ASCII character class.
 - Class
Bracketed  - A bracketed character class, e.g., 
[a-z0-9]. - Class
Perl  - A Perl character class.
 - Class
SetBinary Op  - A Unicode character class set operation.
 - Class
SetRange  - A single character class range in a set.
 - Class
SetUnion  - A union of items inside a character class set.
 - Class
Unicode  - A Unicode character class.
 - Comment
 - A comment from a regular expression with an associated span.
 - Concat
 - A concatenation of regular expressions.
 - Error
 - An error that occurred while parsing a regular expression into an abstract syntax tree.
 - Flags
 - A group of flags.
 - Flags
Item  - A single item in a group of flags.
 - Group
 - A grouped regular expression.
 - Literal
 - A single literal expression.
 - Position
 - A single position in a regular expression.
 - Repetition
 - A repetition operation applied to a regular expression.
 - Repetition
Op  - The repetition operator itself.
 - SetFlags
 - A group of flags that is not applied to a particular regular expression.
 - Span
 - Span represents the position information of a single AST item.
 - With
Comments  - An abstract syntax tree for a singular expression along with comments found.
 
Enums§
- Assertion
Kind  - An assertion kind.
 - Ast
 - An abstract syntax tree for a single regular expression.
 - Class
Ascii Kind  - The available ASCII character classes.
 - Class
Perl Kind  - The available Perl character classes.
 - Class
Set  - A character class set.
 - Class
SetBinary OpKind  - The type of a Unicode character class set operation.
 - Class
SetItem  - A single component of a character class set.
 - Class
Unicode Kind  - The available forms of Unicode character classes.
 - Class
Unicode OpKind  - The type of op used in a Unicode character class.
 - Error
Kind  - The type of an error that occurred while building an AST.
 - Flag
 - A single flag.
 - Flags
Item Kind  - The kind of an item in a group of flags.
 - Group
Kind  - The kind of a group.
 - HexLiteral
Kind  - The type of a Unicode hex literal.
 - Literal
Kind  - The kind of a single literal expression.
 - Repetition
Kind  - The kind of a repetition operator.
 - Repetition
Range  - A range repetition operator.
 - Special
Literal Kind  - The type of a special literal.
 
Traits§
- Visitor
 - A trait for visiting an abstract syntax tree (AST) in depth first order.
 
Functions§
- visit
 - Executes an implementation of 
Visitorin constant stack space.