parseman 0.55.3 → 0.55.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14986,7 +14986,8 @@ function tableRules(source, metadataOrEntry = {}) {
14986
14986
  scanSkipFor: (ri, ctx) => {
14987
14987
  const a = cache.forCtx(ctx);
14988
14988
  selected = a;
14989
- return a.scanSkip[skipOf?.[ri] ?? -1];
14989
+ const slot = skipOf?.[ri];
14990
+ return slot === void 0 || slot < 0 ? void 0 : a.scanSkip[slot];
14990
14991
  }
14991
14992
  }, artifactMetadata, resolved);
14992
14993
  if (entry === void 0) return map;
@@ -16895,8 +16896,11 @@ function compileImpl(combinator, mapFnSources, opts = {}) {
16895
16896
  // falls back to regex-scanning generated hooks; a table has no hooks to scan,
16896
16897
  // so this is the channel.
16897
16898
  ...plan === void 0 ? {} : { coverageDefinitions: plan.definitions },
16898
- parse(input, pos = 0) {
16899
- return runOnce(input, pos, createParseContext());
16899
+ // The same three arguments as a combinator's own `parse`, so a compiled
16900
+ // parser runs where a combinator does. A caller probing many positions
16901
+ // passes one context and pays for none per call.
16902
+ parse(input, pos = 0, ctx) {
16903
+ return runOnce(input, pos, ctx ?? createParseContext());
16900
16904
  },
16901
16905
  parseWithContext(input, parseCtx, pos = 0) {
16902
16906
  return runOnce(input, pos, parseCtx);
@@ -17351,7 +17355,7 @@ function fieldOptionsSrc(def) {
17351
17355
  }
17352
17356
 
17353
17357
  // src/version.ts
17354
- var PARSEMAN_VERSION = "0.55.3";
17358
+ var PARSEMAN_VERSION = "0.55.4";
17355
17359
 
17356
17360
  // src/compiler/compile-linkable-table.ts
17357
17361
  function isLocal(rule) {