Type Aliasswift-grammar 0.5.0Grammar->Swift
Terminal
ParsingRule.swift:108typealias Terminal = Wrapped.Terminaltypealias Terminal = Wrapped.Terminalwhere Wrapped:ParsingRuleimport Swiftimport Grammar@frozen enum Optional<Wrapped> where Wrapped : ~CopyableA type that represents either a wrapped value or the absence of a value.
associatedtype TerminalThe element type of the ParsingInput.source this rule expects.
protocol ParsingRule<Terminal>A structured parsing rule.
static func parse<Source>(_ input: inout ParsingInput<some ParsingDiagnostics<Source>>) -> Wrapped.Construction? where Wrapped.Location == Source.Index, Wrapped.Terminal == Source.Element typealias Location = Wrapped.Location