• Make a parser that looks for the exact match for a given string, returns a match with that string and consumes an according number of tokens.

    Empty string matches without consuming input.

    Tokens expected to be individual characters/graphemes.

    Type Parameters

    • TOptions

    Parameters

    • str: string

      A string to look for.

    Returns Parser<string, TOptions, string>

Generated using TypeDoc