• Make a Matcher that always succeeds with null value, and performs an action / side effect without consuming input.

    Use emit or make if you want to produce a result.

    Use peek if you want to wrap another parser.

    Type Parameters

    • TToken

    • TOptions

    Parameters

    • f: ((data: Data<TToken, TOptions>, i: number) => void)

      A function to produce a side effect (logging, etc).

        • (data: Data<TToken, TOptions>, i: number): void
        • Parameters

          • data: Data<TToken, TOptions>

            Data object (tokens and options).

          • i: number

            Parser position in the tokens array.

          Returns void

    Returns Matcher<TToken, TOptions, null>

Generated using TypeDoc