Module ast

Module ast 

Source
Expand description

AST definitions. Because of const-ness, we support only very primitive AST spanning.

Structs§

GroupName
Information about a group / capture name.
Span
Range of chars. Similar to Range<usize>, but implements Copy.
Spanned
Spanned syntax node.

Enums§

CountedRepetition
Information about a counted repetition, e.g. {2}, {2,3}, or {2,}.
Node
Syntax node of a regular expression.

Type Aliases§

Syntax
Linearized syntax tree.