invoke

abstract operator fun invoke(input: ParserInput<@UnsafeVariance I, U>): ParseResult<@UnsafeVariance I, O, U>

Runs this parser against input.

Return

Success containing the parsed value and the next position, or Failure with a diagnostic message and the position at which parsing failed.

Parameters

input

the current parse position, including the token sequence and user context.