Structureswift 6.0.1_RegexParser
Reference
struct Reference
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (27) members.
Types
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 Trivia
Typealiases
Type members
Instance members
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.
Citizens in _RegexParser
Conformances
protocol Copyable
A type whose values can be implicitly or explicitly copied.
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 Escapable
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Types
Type members
Instance members
var innerLoc: SourceLocation
The location of the inner numeric or textual reference, e.g the location of ‘-2’ in ‘\g{-2}’. Note this includes the recursion level for e.g ‘\k<a+2>’.
var kind: AST.Reference.Kind
var recursesWholePattern: Bool
Whether this is a reference that recurses the whole pattern, rather than a group.
var recursionLevel: AST.Atom.Number?
An additional specifier supported by Oniguruma that specifies what recursion level the group being referenced belongs to.
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.