-
Notifications
You must be signed in to change notification settings - Fork 1
Literal
kareman edited this page Aug 23, 2020
·
5 revisions
Matches a sequence of elements.
public struct Literal<Input: BidirectionalCollection>: Pattern where Input.Element: HashableIf empty, it will always succeed without consuming any input.
ExpressibleByExtendedGraphemeClusterLiteral, ExpressibleByStringLiteral, ExpressibleByUnicodeScalarLiteral, Pattern, RegexConvertible
@inlinable public init(_ input: Input)Matches sequence.
@inlinable public init<S: Sequence>(_ sequence: S) where S.Element == Input.Element, Input == Stringlet elements: Inputvar description: String@inlinable public func createInstructions(_ instructions: inout ContiguousArray<Instruction<Input>>)Matches the following pattern without consuming any input.
@inlinable public static prefix func &&(me: Literal) -> AndPattern<Literal>Note: in standard PEG this operator is `&`, but that is not allowed in Swift.
Generated at 2020-08-23T12:56:49+0000 using swift-doc 1.0.0-beta.3.