Function string

  • Returns a parser that will parse the string str and yield the text that was parsed. If it can't, it will fail softly without consuming input.

    Type Parameters

    • T extends string

    Parameters

    • str: T

      The string to parse.

    Returns Parjser<T>