@bablr/language-en-regex-vm-pattern 0.4.0 → 0.5.0
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 -2
- package/lib/grammar.macro.js +1 -4
- package/package.json +6 -6
package/lib/grammar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* @macrome
|
|
2
2
|
* @generatedby @bablr/macrome-generator-bablr
|
|
3
|
-
* @generatedfrom ./grammar.macro.js#
|
|
3
|
+
* @generatedfrom ./grammar.macro.js#0192cf3b558fb962d2a5953bdecaa0d4b13288a1
|
|
4
4
|
* This file is autogenerated. Please do not edit it directly.
|
|
5
5
|
* When editing run `npx macrome watch` then change the file this is generated from.
|
|
6
6
|
*/
|
|
@@ -2183,7 +2183,7 @@ export const grammar = class RegexGrammar {
|
|
|
2183
2183
|
closeToken: _t.s_i_node(_l.Instruction, "Punctuator", ")")
|
|
2184
2184
|
}, {})
|
|
2185
2185
|
}, {});
|
|
2186
|
-
cooked = parseInt(
|
|
2186
|
+
cooked = parseInt(codeNode.properties.digits.map(digit => ctx.sourceTextFor(digit)).join(''), 16);
|
|
2187
2187
|
} else {
|
|
2188
2188
|
yield _t.node(_l.Instruction, "Call", [_t.ref`verb`, _t.ref`arguments`], {
|
|
2189
2189
|
verb: _t.s_node(_l.Instruction, "Identifier", "fail"),
|
package/lib/grammar.macro.js
CHANGED
|
@@ -328,10 +328,7 @@ export const grammar = class RegexGrammar {
|
|
|
328
328
|
} else if (yield i`match(/[ux]/)`) {
|
|
329
329
|
const codeNode = yield i`eat(<EscapeCode closeSpan='Escape'> 'value')`;
|
|
330
330
|
cooked = parseInt(
|
|
331
|
-
ctx
|
|
332
|
-
.getProperty(codeNode, 'digits')
|
|
333
|
-
.map((digit) => ctx.sourceTextFor(digit))
|
|
334
|
-
.join(''),
|
|
331
|
+
codeNode.properties.digits.map((digit) => ctx.sourceTextFor(digit)).join(''),
|
|
335
332
|
16,
|
|
336
333
|
);
|
|
337
334
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bablr/language-en-regex-vm-pattern",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "A BABLR language for nonbacktracking JS-style regexes",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=12.0.0"
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/runtime": "^7.23.2",
|
|
25
|
-
"@bablr/helpers": "0.
|
|
26
|
-
"@bablr/agast-vm-helpers": "0.
|
|
25
|
+
"@bablr/helpers": "0.18.0",
|
|
26
|
+
"@bablr/agast-vm-helpers": "0.3.0",
|
|
27
27
|
"iter-tools-es": "^7.5.3"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@bablr/agast-helpers": "0.
|
|
31
|
-
"@bablr/boot": "0.
|
|
30
|
+
"@bablr/agast-helpers": "0.3.1",
|
|
31
|
+
"@bablr/boot": "0.4.0",
|
|
32
32
|
"@bablr/eslint-config-base": "github:bablr-lang/eslint-config-base#49f5952efed27f94ee9b94340eb1563c440bf64e",
|
|
33
33
|
"@bablr/macrome": "0.1.3",
|
|
34
34
|
"@bablr/macrome-generator-bablr": "0.3.1",
|
|
35
35
|
"@qnighy/dedent": "0.1.1",
|
|
36
|
-
"bablr": "0.
|
|
36
|
+
"bablr": "0.4.0",
|
|
37
37
|
"enhanced-resolve": "^5.12.0",
|
|
38
38
|
"eslint": "^8.47.0",
|
|
39
39
|
"eslint-import-resolver-enhanced-resolve": "^1.0.5",
|