parseman 0.58.0 → 0.58.1
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.
- package/dist/analysis/diagnostics.js +4 -3
- package/dist/analysis/diagnostics.js.map +1 -1
- package/dist/cli/index.js +4 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/plugin/index.js +5 -4
- package/dist/plugin/index.js.map +1 -1
- package/dist/run/index.d.ts +2 -0
- package/dist/run/index.d.ts.map +1 -1
- package/dist/run/index.js +9 -0
- package/dist/run/index.js.map +1 -1
- package/dist/table/encode.d.ts.map +1 -1
- package/dist/table/index.js +4 -3
- package/dist/table/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/run/index.ts +5 -0
- package/src/table/encode.ts +11 -8
- package/src/version.ts +1 -1
package/dist/plugin/index.js
CHANGED
|
@@ -8047,12 +8047,13 @@ var Encoder = class {
|
|
|
8047
8047
|
const rr = this.refResolver();
|
|
8048
8048
|
const { next, boundary } = follow;
|
|
8049
8049
|
if (matchesEmpty(next, /* @__PURE__ */ new Set(), rr) || mayCommitFailure(next, rr, this.commitFailureMemo)) return void 0;
|
|
8050
|
-
const
|
|
8051
|
-
if (
|
|
8050
|
+
const nextDef = next._def;
|
|
8051
|
+
if (nextDef.tag !== "literal" && nextDef.tag !== "regex" && nextDef.tag !== "keywords" && nextDef.tag !== "label") return void 0;
|
|
8052
8052
|
const first = firstSetOf(next, /* @__PURE__ */ new Set(), rr, boundary);
|
|
8053
8053
|
const cls = this.charClass(boundary === void 0 ? first : union(first, firstSetOf(boundary, /* @__PURE__ */ new Set(), rr)));
|
|
8054
8054
|
if (cls < 0) return void 0;
|
|
8055
|
-
|
|
8055
|
+
const miss = nextDef.tag === "label" ? deriveExpected(next) : directTerminalFailureExpected(nextDef);
|
|
8056
|
+
return { cls, fx: this.expected(miss) };
|
|
8056
8057
|
}
|
|
8057
8058
|
node(p) {
|
|
8058
8059
|
const lazyRef = p._def.tag === "lazy";
|
|
@@ -18855,7 +18856,7 @@ function fieldOptionsSrc(def) {
|
|
|
18855
18856
|
}
|
|
18856
18857
|
|
|
18857
18858
|
// src/version.ts
|
|
18858
|
-
var PARSEMAN_VERSION = "0.58.
|
|
18859
|
+
var PARSEMAN_VERSION = "0.58.1";
|
|
18859
18860
|
|
|
18860
18861
|
// src/compiler/compile-linkable-table.ts
|
|
18861
18862
|
function isLocal(rule) {
|