@configuredthings/rdp.js - v0.7.0
    Preparing search index...

    Accumulates a full parse trace as an array of ParseEvent objects.

    Attach to an ObservableRDParser via withObserver(new TraceObserver()), then inspect observer.events after parsing.

    Implements

    Index

    Constructors

    Properties

    events: ParseEvent[] = []

    All events emitted during parsing, in order.

    Methods

    • Called when the parser enters a production method.

      Parameters

      • production: string

        Name of the production rule.

      • position: number

        Current position in the source.

      Returns void

    • Called when the parser throws a parse error.

      Parameters

      • message: string

        The error message.

      • position: number

        Current position at the time of failure.

      Returns void

    • Called when the parser exits a production method.

      Parameters

      • production: string

        Name of the production rule.

      • position: number

        Current position after the attempt.

      • matched: boolean

        Whether the production successfully matched input.

      Returns void