function parse(str, options = {}) {
  const tokeniser = new _tokeniser_js__WEBPACK_IMPORTED_MODULE_0__.Tokeniser(str);
  if (typeof options.sourceName !== "undefined") {
    // @ts-ignore (See Tokeniser.source in supplement.d.ts)
    tokeniser.source.name = options.sourceName;
  }
  return parseByTokens(tokeniser, options);
}
@param {string} str
@param {object} [options]
@param {*} [options.sourceName]
@param {boolean} [options.concrete]
@param {Function[]} [options.productions]
@return {import("./productions/base.js").Base[]}