@bablr/language-en-bablr-vm-instruction 0.3.0 → 0.3.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.
@@ -1,72 +1,39 @@
1
1
  /* @macrome
2
2
  * @generatedby @bablr/macrome-generator-bablr
3
- * @generatedfrom ./cstml.grammar.macro.js#10132f22b5500f351e97e3312565792db348faa2
3
+ * @generatedfrom ./cstml.grammar.macro.js#b0eb210b04d6e0e9dad9fd4438ff62828a85b8eb
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 {
8
- interpolateArray as _interpolateArray,
9
- interpolateArrayChildren as _interpolateArrayChildren,
10
- interpolateString as _interpolateString,
11
- } from '@bablr/agast-helpers/template';
12
- import * as _l from '@bablr/agast-vm-helpers/languages';
13
- import * as _t from '@bablr/agast-helpers/shorthand';
7
+ import { interpolateArray as _interpolateArray, interpolateArrayChildren as _interpolateArrayChildren, interpolateString as _interpolateString } from "@bablr/agast-helpers/template";
8
+ import * as _l from "@bablr/agast-vm-helpers/languages";
9
+ import * as _t from "@bablr/agast-helpers/shorthand";
14
10
  import * as CSTML from '@bablr/language-en-cstml';
15
11
  import * as Instruction from './grammar.js';
16
12
  export const canonicalURL = 'https://bablr.org/languages/core/en/bablr-vm-cstml-instruction';
17
13
  export const dependencies = {
18
14
  ...Instruction.dependencies,
19
- CSTML,
15
+ CSTML
20
16
  };
21
17
  export const grammar = class BABLRVMSpamexInstructionGrammar extends Instruction.grammar {
22
18
  *Expression() {
23
- if (
24
- yield _t.node(
25
- _l.Instruction,
26
- 'Call',
27
- [_t.ref`verb`, _t.ref`arguments`],
28
- {
29
- verb: _t.s_node(_l.Instruction, 'Identifier', 'eatMatch'),
30
- arguments: _t.node(
31
- _l.Instruction,
32
- 'Tuple',
33
- [_t.ref`openToken`, _t.ref`values[]`, _t.ref`closeToken`],
34
- {
35
- openToken: _t.s_i_node(_l.Instruction, 'Punctuator', '('),
36
- values: [
37
- _t.node(
38
- _l.Spamex,
39
- 'NodeMatcher',
40
- [
41
- _t.ref`openToken`,
42
- _t.ref`flags`,
43
- _t.ref`language`,
44
- _t.ref`namespaceSeparatorToken`,
45
- _t.ref`type`,
46
- _t.ref`closeToken`,
47
- ],
48
- {
49
- openToken: _t.s_i_node(_l.Spamex, 'Punctuator', '<'),
50
- flags: _t.node(_l.CSTML, 'Flags', [], {}, {}),
51
- language: _t.s_node(_l.Spamex, 'Identifier', 'CSTML'),
52
- namespaceSeparatorToken: _t.s_i_node(_l.Spamex, 'Punctuator', ':'),
53
- type: _t.s_node(_l.Spamex, 'Identifier', 'Token'),
54
- closeToken: _t.s_i_node(_l.Spamex, 'Punctuator', '>'),
55
- },
56
- {},
57
- ),
58
- ],
59
- closeToken: _t.s_i_node(_l.Instruction, 'Punctuator', ')'),
60
- },
61
- {},
62
- ),
63
- },
64
- {},
65
- )
66
- ) {
19
+ if (yield _t.node(_l.Instruction, "Call", [_t.ref`verb`, _t.ref`arguments`], {
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`], {
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", ">")
30
+ }, {})],
31
+ closeToken: _t.s_i_node(_l.Instruction, "Punctuator", ")")
32
+ }, {})
33
+ }, {})) {
67
34
  // done
68
35
  } else {
69
36
  yield* super.Expression();
70
37
  }
71
38
  }
72
- };
39
+ };