@bablr/language-en-bablr-vm-instruction 0.5.0 → 0.6.1
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/cstml.grammar.js +11 -9
- package/lib/grammar.js +363 -373
- package/lib/grammar.macro.js +20 -20
- package/lib/spamex.grammar.js +16 -14
- package/lib/spamex.grammar.macro.js +1 -1
- package/package.json +10 -10
package/lib/cstml.grammar.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
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
|
*/
|
|
7
|
-
import { interpolateArray as _interpolateArray,
|
|
7
|
+
import { interpolateArray as _interpolateArray, interpolateFragmentChildren as _interpolateFragmentChildren, interpolateString as _interpolateString } from "@bablr/agast-helpers/template";
|
|
8
8
|
import * as _l from "@bablr/agast-vm-helpers/languages";
|
|
9
9
|
import * as _t from "@bablr/agast-helpers/shorthand";
|
|
10
10
|
import * as CSTML from '@bablr/language-en-cstml';
|
|
@@ -19,19 +19,21 @@ export const grammar = class BABLRVMSpamexInstructionGrammar extends Instruction
|
|
|
19
19
|
if (yield _t.node(_l.Instruction, "Call", [_t.ref`verb`, _t.ref`arguments`], {
|
|
20
20
|
verb: _t.s_node(_l.Instruction, "Identifier", "eatMatch"),
|
|
21
21
|
arguments: _t.node(_l.Instruction, "Tuple", [_t.ref`openToken`, _t.ref`values[]`, _t.arr(), _t.ref`values[]`, _t.ref`closeToken`], {
|
|
22
|
-
openToken: _t.
|
|
22
|
+
openToken: _t.s_node(_l.Instruction, "Punctuator", "("),
|
|
23
23
|
values: [_t.node(_l.Spamex, "NodeMatcher", [_t.ref`open`], {
|
|
24
24
|
open: _t.node(_l.Spamex, "OpenNodeMatcher", [_t.ref`openToken`, _t.ref`flags`, _t.ref`language`, _t.ref`namespaceSeparatorToken`, _t.ref`type`, _t.embedded(_t.node(_l.Spamex, "Space", [_t.lit(" ")], {}, {})), _t.ref`selfClosingTagToken`, _t.ref`closeToken`], {
|
|
25
|
-
openToken: _t.
|
|
25
|
+
openToken: _t.s_node(_l.Spamex, "Punctuator", "<"),
|
|
26
26
|
flags: _t.node(_l.CSTML, "Flags", [], {}, {}),
|
|
27
|
-
language: _t.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
language: _t.node(_l.CSTML, "IdentifierPath", [_t.ref`segments[]`, _t.arr(), _t.ref`segments[]`], {
|
|
28
|
+
segments: [_t.s_node(_l.CSTML, "Identifier", "CSTML")]
|
|
29
|
+
}, {}),
|
|
30
|
+
namespaceSeparatorToken: _t.s_node(_l.CSTML, "Punctuator", ":"),
|
|
31
|
+
type: _t.s_node(_l.CSTML, "Identifier", "Tag"),
|
|
32
|
+
selfClosingTagToken: _t.s_node(_l.Spamex, "Punctuator", "/"),
|
|
33
|
+
closeToken: _t.s_node(_l.Spamex, "Punctuator", ">")
|
|
32
34
|
}, {})
|
|
33
35
|
}, {})],
|
|
34
|
-
closeToken: _t.
|
|
36
|
+
closeToken: _t.s_node(_l.Instruction, "Punctuator", ")")
|
|
35
37
|
}, {})
|
|
36
38
|
}, {})) {
|
|
37
39
|
// done
|