Structure_RegexParser5.9.0
AST
A regex abstract syntax tree.
struct AST
This is a top-level type that stores the root node.
Citizens in _RegexParser
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Members
init(AST
.Node, globalOptions: AST.GlobalMatchingOptionSequence?, diags: Diagnostics) var captureList: CaptureList
The capture list (including the whole match) of this AST.
var diags: Diagnostics
var globalOptions: AST.GlobalMatchingOptionSequence?
var hasCapture: Bool
Whether this AST tree contains at least one capture nested inside of it.
var isInvalid: Bool
Whether this AST tree is either syntactically or semantically invalid.
var root: AST.Node
func ensureValid(
) throws -> AST If the AST is invalid, throws an error. Otherwise, returns self.
func renderAsCanonical(showDelimiters: Bool, terminateLine: Bool
) -> String Renders using Swift’s preferred regex literal syntax.
struct AbsentFunction
An Oniguruma absent function.
struct Alternation
struct Atom
struct Concatenation
struct Conditional
struct CustomCharacterClass
struct Empty
struct GlobalMatchingOption
Global matching option specifiers.
struct GlobalMatchingOptionSequence
A set of global matching options in a regular expression literal.
struct Group
struct Interpolation
struct MatchingOption
An option, written in source, that changes matching semantics.
struct MatchingOptionSequence
A sequence of matching options, written in source.
enum Node
A node in the regex AST.
struct Quantification
struct Quote
struct Reference
struct Trivia
typealias Located