Grammar
import Grammar
import Grammar
enum Pattern
A namespace for structured parsing utilities.
enum UnicodeDigit
A generic context for unicode digit rules.
enum UnicodeEncoding
A generic context for unicode definitions.
struct DefaultDiagnostics
A debuggability-optimized diagnostic engine that maintains an internal call stack, and emits rich diagnostics.
struct NoDiagnostics
A performance-optimized diagnostic engine that maintains minimal internal state, and emits no diagnostics.
struct ParsingError
An error type that indicates the furthest-successful parse, and provides a stack trace detailing how the parser got there.
struct ParsingInput
A mutable interface for interacting with source input in a safe and structured manner.
protocol ASCIITerminal
A terminal type that can match an ASCII pattern.
protocol CharacterTerminal
A terminal type that can match a Character
pattern.
protocol DigitRule
A parsing rule that is applied to a single terminal at a time, and produces some BinaryInteger
as its output.
protocol LiteralRule
A parsing rule that matches terminals against a constant Sequence
.
protocol ParsingDiagnostics
An abstract interface used by ParsingInput
to emit (or not emit) debugging information to.
protocol ParsingRule
A structured parsing rule.
protocol TerminalRule
A parsing rule that is applied to a single terminal at a time.
protocol TraceableError
A link in a propogated error.
protocol TraceableErrorRoot
The root of a propogated error.
protocol UTF16Terminal
A terminal type that can match a UTF-16 code unit pattern.
protocol UTF8Terminal
A terminal type that can match a UTF-8 code unit pattern.
protocol UnicodeTerminal
enum Grammar
A namespace for structured parsing utilities.