@thi.ng/parse 2.6.50 → 2.6.52
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 +2 -2
- package/context.js +9 -0
- package/package.json +9 -9
- package/readers/array-reader.js +1 -0
- package/readers/string-reader.js +1 -0
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 215 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -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.
|
|
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.
|
|
3
|
+
"version": "2.6.52",
|
|
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.
|
|
44
|
-
"@thi.ng/checks": "^3.
|
|
45
|
-
"@thi.ng/defmulti": "^3.0.
|
|
46
|
-
"@thi.ng/errors": "^2.6.
|
|
47
|
-
"@thi.ng/strings": "^3.12.
|
|
43
|
+
"@thi.ng/api": "^8.12.20",
|
|
44
|
+
"@thi.ng/checks": "^3.9.0",
|
|
45
|
+
"@thi.ng/defmulti": "^3.0.97",
|
|
46
|
+
"@thi.ng/errors": "^2.6.9",
|
|
47
|
+
"@thi.ng/strings": "^3.12.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"esbuild": "^0.
|
|
51
|
-
"typedoc": "^0.28.
|
|
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": "
|
|
250
|
+
"gitHead": "92be63f24030506f09d6d156804da2798c381dc4"
|
|
251
251
|
}
|
package/readers/array-reader.js
CHANGED