Grammar
import GrammarModule information
- Declarations
- 515
- Symbols
- 1460
import Grammarprotocol ASCIITerminal : EquatableA terminal type that can match an ASCII pattern.
protocol AtomicRule<Terminal> : TerminalRule where Self.Construction == (), Self.Terminal : EquatableA parsing rule that matches terminals against a constant value.
protocol CharacterTerminal : UnicodeTerminalA terminal type that can match a Character pattern.
protocol DigitRule<Terminal, Construction> : TerminalRule where Self.Construction : BinaryIntegerA parsing rule that is applied to a single terminal at a time, and produces some BinaryInteger as its output.
protocol LiteralRule<Terminal> : ParsingRule where Self.Construction == (), Self.Terminal : EquatableA parsing rule that matches terminals against a constant Sequence.
protocol ParsingDiagnostics<Source>An abstract interface used by ParsingInput to emit (or not emit) debugging information to.
protocol ParsingRule<Terminal>A structured parsing rule.
protocol TerminalRule<Terminal, Construction> : ParsingRuleA parsing rule that is applied to a single terminal at a time.
protocol UTF16Terminal : ASCIITerminalA terminal type that can match a UTF-16 code unit pattern.
protocol UTF8Terminal : ASCIITerminalA terminal type that can match a UTF-8 code unit pattern.
protocol UnicodeTerminal : ASCIITerminalA terminal type that can match a Unicode.Scalar pattern.
@frozen struct DefaultDiagnostics<Source> where Source : CollectionA debuggability-optimized diagnostic engine that maintains an internal call stack, and emits rich diagnostics.
@frozen struct NoDiagnostics<Source> where Source : CollectionA performance-optimized diagnostic engine that maintains minimal internal state, and emits no diagnostics.
@frozen struct ParsingError<Index>An error type that indicates the furthest-successful parse, and provides a stack trace detailing how the parser got there.
@frozen struct ParsingInput<Diagnostics> where Diagnostics : ParsingDiagnosticsA mutable interface for interacting with source input in a safe and structured manner.
enum PatternA namespace for structured parsing utilities.
enum UnicodeDigit<Location, Terminal, Construction> where Construction : BinaryIntegerA generic context for unicode digit rules.
enum UnicodeEncoding<Location, Terminal>A generic context for unicode definitions.
enum GrammarA namespace for structured parsing utilities.
typealias _DefaultDiagnostics = DefaultDiagnosticstypealias _NoDiagnostics = NoDiagnosticsimport TraceableErrors