Skip to content

Pattern

kareman edited this page Aug 13, 2020 · 3 revisions

Pattern

Something that can create Instructions for the Parser.

public protocol Pattern: CustomStringConvertible

Inheritance

CustomStringConvertible

Requirements

Input

associatedtype Input

ParsedRange

typealias ParsedRange = Range<Input.Index>

Instructions

typealias Instructions = ContiguousArray<Instruction<Input>>

createInstructions(_:)

Appends Instructions for the Parser to instructions.

@inlinable func createInstructions(_ instructions: inout Instructions) throws

createInstructions()

Returns Instructions for the Parser.

@inlinable func createInstructions() throws -> Instructions
Clone this wiki locally