Function setInputStr

  • Use this function in conjunction with the parseError combinator. Before running your parser, call this function, giving it the entire input. Then, if the parseError combinator throws an error, it will print out a nice message showing exactly what part of the string triggered the error.

    Parameters

    • s: string

      full string to parse

    Returns void