StructureGrammar

    ParsingError

    An error type that indicates the furthest-successful parse, and provides a stack trace detailing how the parser got there.

    @frozen struct ParsingError<Index>

    Overview

    None of the structured parsers defined in swift-grammar throw this error directly. Instead, the DefaultDiagnostics engine computes it based on the diagnostic engine’s internal state when encountering invalid input.

    Custom ParsingRule implementations should not throw this error either.

    Members

    Initializers

    Type Properties

    Instance Properties

    Instance Methods

    Structures