@thi.ng/parse 2.4.25 → 2.4.26

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-02-22T11:59:16Z
3
+ - **Last updated**: 2024-02-25T14:07:53Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -5,6 +5,8 @@ import type { DynamicParser } from "../api.js";
5
5
  *
6
6
  * @examples
7
7
  * ```ts
8
+ * import { defContext, dynamic } from "@thi.ng/parse";
9
+ *
8
10
  * const parser = dynamic<string>();
9
11
  * parser.set(lit("a"));
10
12
  *
@@ -26,6 +26,8 @@ import type { Parser } from "../api.js";
26
26
  *
27
27
  * @example
28
28
  * ```ts
29
+ * import { defContext, lookahead, oneOf, stringD } from "@thi.ng/parse";
30
+ *
29
31
  * const ctx = defContext("ababaaabbabba");
30
32
  *
31
33
  * // consume while 'a' or `b` and until 1st occurrence of "abba"...
@@ -44,6 +46,8 @@ import type { Parser } from "../api.js";
44
46
  *
45
47
  * @example
46
48
  * ```ts
49
+ * import { defContext, lookahead, oneOf, string } from "@thi.ng/parse";
50
+ *
47
51
  * const ctx = defContext("ababaaabbabba");
48
52
  *
49
53
  * // capturing lookahead
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/parse",
3
- "version": "2.4.25",
3
+ "version": "2.4.26",
4
4
  "description": "Purely functional parser combinators & AST generation for generic inputs",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,11 +35,11 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.25",
38
+ "@thi.ng/api": "^8.9.26",
39
39
  "@thi.ng/checks": "^3.5.0",
40
- "@thi.ng/defmulti": "^3.0.25",
40
+ "@thi.ng/defmulti": "^3.0.26",
41
41
  "@thi.ng/errors": "^2.4.18",
42
- "@thi.ng/strings": "^3.7.16"
42
+ "@thi.ng/strings": "^3.7.17"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.40.1",
@@ -241,5 +241,5 @@
241
241
  ],
242
242
  "year": 2020
243
243
  },
244
- "gitHead": "4513a1c703bdbf0f0867f03e547e47692e415fac\n"
244
+ "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
245
245
  }
package/prims/skip.d.ts CHANGED
@@ -8,6 +8,8 @@ import type { Parser } from "../api.js";
8
8
  *
9
9
  * @example
10
10
  * ```ts
11
+ * import { defContext, litD, noneOfP, seqD, skipWhile } from "@thi.ng/parse";
12
+ *
11
13
  * const comment = seqD([litD("#"), skipWhile(noneOfP("\n")), NL]);
12
14
  *
13
15
  * const ctx = defContext("# ignore more!\n");
package/xform/print.d.ts CHANGED
@@ -19,6 +19,8 @@ export declare const xfPrint: (fn?: Fn<string, void>) => ScopeTransform<any>;
19
19
  *
20
20
  * @example
21
21
  * ```ts
22
+ * import { defContext, lit, oneOrMore, seq, ALPHA } from "@thi.ng/parse";
23
+ *
22
24
  * print(seq([lit("["), oneOrMore(ALPHA), lit("]")]))(defContext("[abc]"))
23
25
  * // seq: null
24
26
  * // lit: "["