@bablr/helpers 0.25.0 → 0.25.2
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/lib/grammar.js +2 -7
- package/lib/trivia.js +0 -1
- package/package.json +6 -7
package/lib/grammar.js
CHANGED
|
@@ -263,7 +263,6 @@ export function resolveLanguage(languages, path) {
|
|
|
263
263
|
let languageIdx = BTree.getSize(languages) - 1;
|
|
264
264
|
let language = BTree.getAt(languageIdx, languages);
|
|
265
265
|
|
|
266
|
-
// TODO there may be more than one binding!
|
|
267
266
|
let path_ = Array.isArray(path)
|
|
268
267
|
? path
|
|
269
268
|
: reifyExpression(path.value).bindingMatchers.flatMap((m) => m.segments);
|
|
@@ -320,10 +319,6 @@ export function* exec(getState, matcher, value, getGrammar = (g) => g) {
|
|
|
320
319
|
enhancedProduction = productionEnhancer(enhancedProduction, nodeMatcher.name);
|
|
321
320
|
}
|
|
322
321
|
|
|
323
|
-
// if (rootProductionEnhancer && !m.depth) {
|
|
324
|
-
// enhancedProduction = rootProductionEnhancer(enhancedProduction, nodeMatcher.name);
|
|
325
|
-
// }
|
|
326
|
-
|
|
327
322
|
let generator = enhancedProduction(args);
|
|
328
323
|
|
|
329
324
|
yield* wrapGenerator(generator, matcher);
|
|
@@ -369,8 +364,8 @@ export const write = (value) => {
|
|
|
369
364
|
return __buildCall('write', value);
|
|
370
365
|
};
|
|
371
366
|
|
|
372
|
-
export const startSpan = (name, guard) => {
|
|
373
|
-
return __buildCall('startSpan', name, guard);
|
|
367
|
+
export const startSpan = (name, guard, props = {}) => {
|
|
368
|
+
return __buildCall('startSpan', name, guard, o(props));
|
|
374
369
|
};
|
|
375
370
|
|
|
376
371
|
export const endSpan = () => {
|
package/lib/trivia.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bablr/helpers",
|
|
3
3
|
"description": "Command helpers for use in writing BABLR grammars",
|
|
4
|
-
"version": "0.25.
|
|
4
|
+
"version": "0.25.2",
|
|
5
5
|
"author": "Conrad Buck<conartist6@gmail.com>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -24,14 +24,13 @@
|
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@bablr/language_enhancer-debug-log": "0.12.
|
|
28
|
-
"@bablr/strategy_enhancer-debug-log": "0.11.
|
|
27
|
+
"@bablr/language_enhancer-debug-log": "0.12.3",
|
|
28
|
+
"@bablr/strategy_enhancer-debug-log": "0.11.2",
|
|
29
29
|
"@bablr/stream-iterator": "2.0.0",
|
|
30
|
-
"@bablr/agast-helpers": "0.10.
|
|
31
|
-
"@bablr/agast-vm-helpers": "0.10.
|
|
32
|
-
"@bablr/boot": "0.11.
|
|
30
|
+
"@bablr/agast-helpers": "0.10.4",
|
|
31
|
+
"@bablr/agast-vm-helpers": "0.10.4",
|
|
32
|
+
"@bablr/boot": "0.11.3",
|
|
33
33
|
"@bablr/coroutine": "0.1.0",
|
|
34
|
-
"@iter-tools/imm-stack": "1.2.0",
|
|
35
34
|
"iter-tools-es": "^7.5.3"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|