Function match

  • Match takes an input string and a parser. If the parser matches the input string and consumes the entire input string, match returns true. Otherwise it returns false.

    Parameters

    • input: string

      input string

    • parser: GeneralParser<any, any>

      parser to match input against

    Returns boolean

    • true if the parser matches the input and consumes all input, false otherwise

Generated using TypeDoc