code: function ParseError(input, message, index) {
    if (Error.captureStackTrace)
      Error.captureStackTrace(this, ParseError);
  
    this.input = input;
    this.message = message;
    if (index !== undefined) {
      this.message += ' at index ' + index;
    }
  }
docs: /--- Helpers