Function eof

  • Returns a parser that succeeds if there is no more input.

    Type Parameters

    • T = undefined

    Parameters

    • Optional result: T

      Optionally, the result the parser will yield. Defaults to undefined.

    Returns Parjser<T>