peberminta - v0.10.0
    Preparing search index...

    Function str

    • 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
      • const TString extends string

      Parameters

      Returns Parser<string, TOptions, TString>