@bablr/language-en-bablr-vm-instruction 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.
@@ -1,6 +1,6 @@
1
1
  /* @macrome
2
2
  * @generatedby @bablr/macrome-generator-bablr
3
- * @generatedfrom ./cstml.grammar.macro.js#b0eb210b04d6e0e9dad9fd4438ff62828a85b8eb
3
+ * @generatedfrom ./cstml.grammar.macro.js#0e9820643a50afc4f9566750d5a2f9f5ab0e8ffd
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
  */
@@ -18,15 +18,18 @@ export const grammar = class BABLRVMSpamexInstructionGrammar extends Instruction
18
18
  *Expression() {
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
- arguments: _t.node(_l.Instruction, "Tuple", [_t.ref`openToken`, _t.ref`values[]`, _t.ref`closeToken`], {
21
+ arguments: _t.node(_l.Instruction, "Tuple", [_t.ref`openToken`, _t.ref`values[]`, _t.arr(), _t.ref`values[]`, _t.ref`closeToken`], {
22
22
  openToken: _t.s_i_node(_l.Instruction, "Punctuator", "("),
23
- values: [_t.node(_l.Spamex, "NodeMatcher", [_t.ref`openToken`, _t.ref`flags`, _t.ref`language`, _t.ref`namespaceSeparatorToken`, _t.ref`type`, _t.ref`closeToken`], {
24
- openToken: _t.s_i_node(_l.Spamex, "Punctuator", "<"),
25
- flags: _t.node(_l.CSTML, "Flags", [], {}, {}),
26
- language: _t.s_node(_l.Spamex, "Identifier", "CSTML"),
27
- namespaceSeparatorToken: _t.s_i_node(_l.Spamex, "Punctuator", ":"),
28
- type: _t.s_node(_l.Spamex, "Identifier", "Token"),
29
- closeToken: _t.s_i_node(_l.Spamex, "Punctuator", ">")
23
+ values: [_t.node(_l.Spamex, "NodeMatcher", [_t.ref`open`], {
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.s_i_node(_l.Spamex, "Punctuator", "<"),
26
+ flags: _t.node(_l.CSTML, "Flags", [], {}, {}),
27
+ language: _t.s_node(_l.Spamex, "Identifier", "CSTML"),
28
+ namespaceSeparatorToken: _t.s_i_node(_l.Spamex, "Punctuator", ":"),
29
+ type: _t.s_node(_l.Spamex, "Identifier", "Tag"),
30
+ selfClosingTagToken: _t.s_i_node(_l.Spamex, "Punctuator", "/"),
31
+ closeToken: _t.s_i_node(_l.Spamex, "Punctuator", ">")
32
+ }, {})
30
33
  }, {})],
31
34
  closeToken: _t.s_i_node(_l.Instruction, "Punctuator", ")")
32
35
  }, {})
@@ -8,7 +8,7 @@ export const dependencies = { ...Instruction.dependencies, CSTML };
8
8
 
9
9
  export const grammar = class BABLRVMSpamexInstructionGrammar extends Instruction.grammar {
10
10
  *Expression() {
11
- if (yield i`eatMatch(<CSTML:Token>)`) {
11
+ if (yield i`eatMatch(<CSTML:Tag />)`) {
12
12
  // done
13
13
  } else {
14
14
  yield* super.Expression();