@thi.ng/parse 2.6.50 → 2.6.51

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/README.md CHANGED
@@ -104,7 +104,7 @@ For Node.js REPL:
104
104
  const parse = await import("@thi.ng/parse");
105
105
  ```
106
106
 
107
- Package sizes (brotli'd, pre-treeshake): ESM: 5.41 KB
107
+ Package sizes (brotli'd, pre-treeshake): ESM: 5.45 KB
108
108
 
109
109
  ## Dependencies
110
110
 
package/context.js CHANGED
@@ -11,6 +11,10 @@ class ParseState {
11
11
  this.c = c;
12
12
  this.done = done;
13
13
  }
14
+ p;
15
+ l;
16
+ c;
17
+ done;
14
18
  copy() {
15
19
  return new ParseState(this.p, this.l, this.c, this.done);
16
20
  }
@@ -22,6 +26,10 @@ class ParseScope {
22
26
  this.children = children;
23
27
  this.result = result;
24
28
  }
29
+ id;
30
+ state;
31
+ children;
32
+ result;
25
33
  copy() {
26
34
  return new ParseScope(
27
35
  this.id,
@@ -40,6 +48,7 @@ class ParseContext {
40
48
  this._retain = this.opts.retain;
41
49
  this.reset();
42
50
  }
51
+ reader;
43
52
  opts;
44
53
  _scopes;
45
54
  _curr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/parse",
3
- "version": "2.6.50",
3
+ "version": "2.6.51",
4
4
  "description": "Purely functional parser combinators & AST generation for generic inputs",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,15 +40,15 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.12.18",
44
- "@thi.ng/checks": "^3.8.8",
45
- "@thi.ng/defmulti": "^3.0.95",
46
- "@thi.ng/errors": "^2.6.7",
47
- "@thi.ng/strings": "^3.12.0"
43
+ "@thi.ng/api": "^8.12.19",
44
+ "@thi.ng/checks": "^3.8.9",
45
+ "@thi.ng/defmulti": "^3.0.96",
46
+ "@thi.ng/errors": "^2.6.8",
47
+ "@thi.ng/strings": "^3.12.1"
48
48
  },
49
49
  "devDependencies": {
50
- "esbuild": "^0.27.2",
51
- "typedoc": "^0.28.16",
50
+ "esbuild": "^0.28.0",
51
+ "typedoc": "^0.28.18",
52
52
  "typescript": "^5.9.3"
53
53
  },
54
54
  "keywords": [
@@ -247,5 +247,5 @@
247
247
  ],
248
248
  "year": 2020
249
249
  },
250
- "gitHead": "929fb6590178a41cbb77cbb87e07c59c61381607\n"
250
+ "gitHead": "a780d4a5f6f5fc595c9d28527686f63534927d32"
251
251
  }
@@ -2,6 +2,7 @@ class ArrayReader {
2
2
  constructor(_src) {
3
3
  this._src = _src;
4
4
  }
5
+ _src;
5
6
  read(state) {
6
7
  return this._src[state.p];
7
8
  }
@@ -2,6 +2,7 @@ class StringReader {
2
2
  constructor(_src) {
3
3
  this._src = _src;
4
4
  }
5
+ _src;
5
6
  read(state) {
6
7
  return this._src[state.p];
7
8
  }