@thi.ng/parse 2.6.49 → 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 +1 -1
- 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
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.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.
|
|
44
|
-
"@thi.ng/checks": "^3.8.
|
|
45
|
-
"@thi.ng/defmulti": "^3.0.
|
|
46
|
-
"@thi.ng/errors": "^2.6.
|
|
47
|
-
"@thi.ng/strings": "^3.
|
|
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.
|
|
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": "a780d4a5f6f5fc595c9d28527686f63534927d32"
|
|
251
251
|
}
|
package/readers/array-reader.js
CHANGED