@malloydata/malloy 0.0.70-dev230810160240 → 0.0.70

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.
@@ -0,0 +1,1104 @@
1
+ "use strict";
2
+ // Generated from MalloyTag.g4 by ANTLR 4.9.0-SNAPSHOT
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.PropertiesContext = exports.ArrayValueContext = exports.ReferenceContext = exports.ArrayElementContext = exports.EqValueContext = exports.PropNameContext = exports.StringContext = exports.TagDefContext = exports.TagUpdatePropertiesContext = exports.TagReplacePropertiesContext = exports.TagEqContext = exports.TagSpecContext = exports.TagLineContext = exports.MalloyTagParser = void 0;
28
+ const ATN_1 = require("antlr4ts/atn/ATN");
29
+ const ATNDeserializer_1 = require("antlr4ts/atn/ATNDeserializer");
30
+ const FailedPredicateException_1 = require("antlr4ts/FailedPredicateException");
31
+ const NoViableAltException_1 = require("antlr4ts/NoViableAltException");
32
+ const Parser_1 = require("antlr4ts/Parser");
33
+ const ParserRuleContext_1 = require("antlr4ts/ParserRuleContext");
34
+ const ParserATNSimulator_1 = require("antlr4ts/atn/ParserATNSimulator");
35
+ const RecognitionException_1 = require("antlr4ts/RecognitionException");
36
+ const Token_1 = require("antlr4ts/Token");
37
+ const VocabularyImpl_1 = require("antlr4ts/VocabularyImpl");
38
+ const Utils = __importStar(require("antlr4ts/misc/Utils"));
39
+ class MalloyTagParser extends Parser_1.Parser {
40
+ constructor(input) {
41
+ super(input);
42
+ this._interp = new ParserATNSimulator_1.ParserATNSimulator(MalloyTagParser._ATN, this);
43
+ }
44
+ // @Override
45
+ // @NotNull
46
+ get vocabulary() {
47
+ return MalloyTagParser.VOCABULARY;
48
+ }
49
+ // tslint:enable:no-trailing-whitespace
50
+ // @Override
51
+ get grammarFileName() { return "MalloyTag.g4"; }
52
+ // @Override
53
+ get ruleNames() { return MalloyTagParser.ruleNames; }
54
+ // @Override
55
+ get serializedATN() { return MalloyTagParser._serializedATN; }
56
+ createFailedPredicateException(predicate, message) {
57
+ return new FailedPredicateException_1.FailedPredicateException(this, predicate, message);
58
+ }
59
+ // @RuleVersion(0)
60
+ tagLine() {
61
+ let _localctx = new TagLineContext(this._ctx, this.state);
62
+ this.enterRule(_localctx, 0, MalloyTagParser.RULE_tagLine);
63
+ let _la;
64
+ try {
65
+ this.enterOuterAlt(_localctx, 1);
66
+ {
67
+ this.state = 21;
68
+ this._errHandler.sync(this);
69
+ _la = this._input.LA(1);
70
+ while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.MINUS) | (1 << MalloyTagParser.SQ_STRING) | (1 << MalloyTagParser.DQ_STRING) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
71
+ {
72
+ {
73
+ this.state = 18;
74
+ this.tagSpec();
75
+ }
76
+ }
77
+ this.state = 23;
78
+ this._errHandler.sync(this);
79
+ _la = this._input.LA(1);
80
+ }
81
+ this.state = 24;
82
+ this.match(MalloyTagParser.EOF);
83
+ }
84
+ }
85
+ catch (re) {
86
+ if (re instanceof RecognitionException_1.RecognitionException) {
87
+ _localctx.exception = re;
88
+ this._errHandler.reportError(this, re);
89
+ this._errHandler.recover(this, re);
90
+ }
91
+ else {
92
+ throw re;
93
+ }
94
+ }
95
+ finally {
96
+ this.exitRule();
97
+ }
98
+ return _localctx;
99
+ }
100
+ // @RuleVersion(0)
101
+ tagSpec() {
102
+ let _localctx = new TagSpecContext(this._ctx, this.state);
103
+ this.enterRule(_localctx, 2, MalloyTagParser.RULE_tagSpec);
104
+ let _la;
105
+ try {
106
+ this.state = 46;
107
+ this._errHandler.sync(this);
108
+ switch (this.interpreter.adaptivePredict(this._input, 4, this._ctx)) {
109
+ case 1:
110
+ _localctx = new TagEqContext(_localctx);
111
+ this.enterOuterAlt(_localctx, 1);
112
+ {
113
+ this.state = 26;
114
+ this.propName();
115
+ this.state = 27;
116
+ this.match(MalloyTagParser.EQ);
117
+ this.state = 28;
118
+ this.eqValue();
119
+ this.state = 30;
120
+ this._errHandler.sync(this);
121
+ _la = this._input.LA(1);
122
+ if (_la === MalloyTagParser.PR_BEG) {
123
+ {
124
+ this.state = 29;
125
+ this.properties();
126
+ }
127
+ }
128
+ }
129
+ break;
130
+ case 2:
131
+ _localctx = new TagReplacePropertiesContext(_localctx);
132
+ this.enterOuterAlt(_localctx, 2);
133
+ {
134
+ this.state = 32;
135
+ this.propName();
136
+ this.state = 33;
137
+ this.match(MalloyTagParser.EQ);
138
+ this.state = 35;
139
+ this._errHandler.sync(this);
140
+ _la = this._input.LA(1);
141
+ if (_la === MalloyTagParser.DOTTY) {
142
+ {
143
+ this.state = 34;
144
+ this.match(MalloyTagParser.DOTTY);
145
+ }
146
+ }
147
+ this.state = 37;
148
+ this.properties();
149
+ }
150
+ break;
151
+ case 3:
152
+ _localctx = new TagUpdatePropertiesContext(_localctx);
153
+ this.enterOuterAlt(_localctx, 3);
154
+ {
155
+ this.state = 39;
156
+ this.propName();
157
+ this.state = 40;
158
+ this.properties();
159
+ }
160
+ break;
161
+ case 4:
162
+ _localctx = new TagDefContext(_localctx);
163
+ this.enterOuterAlt(_localctx, 4);
164
+ {
165
+ this.state = 43;
166
+ this._errHandler.sync(this);
167
+ _la = this._input.LA(1);
168
+ if (_la === MalloyTagParser.MINUS) {
169
+ {
170
+ this.state = 42;
171
+ this.match(MalloyTagParser.MINUS);
172
+ }
173
+ }
174
+ this.state = 45;
175
+ this.propName();
176
+ }
177
+ break;
178
+ }
179
+ }
180
+ catch (re) {
181
+ if (re instanceof RecognitionException_1.RecognitionException) {
182
+ _localctx.exception = re;
183
+ this._errHandler.reportError(this, re);
184
+ this._errHandler.recover(this, re);
185
+ }
186
+ else {
187
+ throw re;
188
+ }
189
+ }
190
+ finally {
191
+ this.exitRule();
192
+ }
193
+ return _localctx;
194
+ }
195
+ // @RuleVersion(0)
196
+ string() {
197
+ let _localctx = new StringContext(this._ctx, this.state);
198
+ this.enterRule(_localctx, 4, MalloyTagParser.RULE_string);
199
+ let _la;
200
+ try {
201
+ this.enterOuterAlt(_localctx, 1);
202
+ {
203
+ this.state = 48;
204
+ _la = this._input.LA(1);
205
+ if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.SQ_STRING) | (1 << MalloyTagParser.DQ_STRING) | (1 << MalloyTagParser.BARE_STRING))) !== 0))) {
206
+ this._errHandler.recoverInline(this);
207
+ }
208
+ else {
209
+ if (this._input.LA(1) === Token_1.Token.EOF) {
210
+ this.matchedEOF = true;
211
+ }
212
+ this._errHandler.reportMatch(this);
213
+ this.consume();
214
+ }
215
+ }
216
+ }
217
+ catch (re) {
218
+ if (re instanceof RecognitionException_1.RecognitionException) {
219
+ _localctx.exception = re;
220
+ this._errHandler.reportError(this, re);
221
+ this._errHandler.recover(this, re);
222
+ }
223
+ else {
224
+ throw re;
225
+ }
226
+ }
227
+ finally {
228
+ this.exitRule();
229
+ }
230
+ return _localctx;
231
+ }
232
+ // @RuleVersion(0)
233
+ propName() {
234
+ let _localctx = new PropNameContext(this._ctx, this.state);
235
+ this.enterRule(_localctx, 6, MalloyTagParser.RULE_propName);
236
+ let _la;
237
+ try {
238
+ this.enterOuterAlt(_localctx, 1);
239
+ {
240
+ this.state = 50;
241
+ this.string();
242
+ this.state = 55;
243
+ this._errHandler.sync(this);
244
+ _la = this._input.LA(1);
245
+ while (_la === MalloyTagParser.DOT) {
246
+ {
247
+ {
248
+ this.state = 51;
249
+ this.match(MalloyTagParser.DOT);
250
+ this.state = 52;
251
+ this.string();
252
+ }
253
+ }
254
+ this.state = 57;
255
+ this._errHandler.sync(this);
256
+ _la = this._input.LA(1);
257
+ }
258
+ }
259
+ }
260
+ catch (re) {
261
+ if (re instanceof RecognitionException_1.RecognitionException) {
262
+ _localctx.exception = re;
263
+ this._errHandler.reportError(this, re);
264
+ this._errHandler.recover(this, re);
265
+ }
266
+ else {
267
+ throw re;
268
+ }
269
+ }
270
+ finally {
271
+ this.exitRule();
272
+ }
273
+ return _localctx;
274
+ }
275
+ // @RuleVersion(0)
276
+ eqValue() {
277
+ let _localctx = new EqValueContext(this._ctx, this.state);
278
+ this.enterRule(_localctx, 8, MalloyTagParser.RULE_eqValue);
279
+ try {
280
+ this.state = 61;
281
+ this._errHandler.sync(this);
282
+ switch (this._input.LA(1)) {
283
+ case MalloyTagParser.SQ_STRING:
284
+ case MalloyTagParser.DQ_STRING:
285
+ case MalloyTagParser.BARE_STRING:
286
+ this.enterOuterAlt(_localctx, 1);
287
+ {
288
+ this.state = 58;
289
+ this.string();
290
+ }
291
+ break;
292
+ case MalloyTagParser.AR_BEG:
293
+ this.enterOuterAlt(_localctx, 2);
294
+ {
295
+ this.state = 59;
296
+ this.arrayValue();
297
+ }
298
+ break;
299
+ case MalloyTagParser.RF_BEG:
300
+ this.enterOuterAlt(_localctx, 3);
301
+ {
302
+ this.state = 60;
303
+ this.reference();
304
+ }
305
+ break;
306
+ default:
307
+ throw new NoViableAltException_1.NoViableAltException(this);
308
+ }
309
+ }
310
+ catch (re) {
311
+ if (re instanceof RecognitionException_1.RecognitionException) {
312
+ _localctx.exception = re;
313
+ this._errHandler.reportError(this, re);
314
+ this._errHandler.recover(this, re);
315
+ }
316
+ else {
317
+ throw re;
318
+ }
319
+ }
320
+ finally {
321
+ this.exitRule();
322
+ }
323
+ return _localctx;
324
+ }
325
+ // @RuleVersion(0)
326
+ arrayElement() {
327
+ let _localctx = new ArrayElementContext(this._ctx, this.state);
328
+ this.enterRule(_localctx, 10, MalloyTagParser.RULE_arrayElement);
329
+ let _la;
330
+ try {
331
+ this.state = 70;
332
+ this._errHandler.sync(this);
333
+ switch (this._input.LA(1)) {
334
+ case MalloyTagParser.SQ_STRING:
335
+ case MalloyTagParser.DQ_STRING:
336
+ case MalloyTagParser.BARE_STRING:
337
+ this.enterOuterAlt(_localctx, 1);
338
+ {
339
+ this.state = 63;
340
+ this.string();
341
+ this.state = 65;
342
+ this._errHandler.sync(this);
343
+ _la = this._input.LA(1);
344
+ if (_la === MalloyTagParser.PR_BEG) {
345
+ {
346
+ this.state = 64;
347
+ this.properties();
348
+ }
349
+ }
350
+ }
351
+ break;
352
+ case MalloyTagParser.PR_BEG:
353
+ this.enterOuterAlt(_localctx, 2);
354
+ {
355
+ this.state = 67;
356
+ this.properties();
357
+ }
358
+ break;
359
+ case MalloyTagParser.AR_BEG:
360
+ this.enterOuterAlt(_localctx, 3);
361
+ {
362
+ this.state = 68;
363
+ this.arrayValue();
364
+ }
365
+ break;
366
+ case MalloyTagParser.RF_BEG:
367
+ this.enterOuterAlt(_localctx, 4);
368
+ {
369
+ this.state = 69;
370
+ this.reference();
371
+ }
372
+ break;
373
+ default:
374
+ throw new NoViableAltException_1.NoViableAltException(this);
375
+ }
376
+ }
377
+ catch (re) {
378
+ if (re instanceof RecognitionException_1.RecognitionException) {
379
+ _localctx.exception = re;
380
+ this._errHandler.reportError(this, re);
381
+ this._errHandler.recover(this, re);
382
+ }
383
+ else {
384
+ throw re;
385
+ }
386
+ }
387
+ finally {
388
+ this.exitRule();
389
+ }
390
+ return _localctx;
391
+ }
392
+ // @RuleVersion(0)
393
+ reference() {
394
+ let _localctx = new ReferenceContext(this._ctx, this.state);
395
+ this.enterRule(_localctx, 12, MalloyTagParser.RULE_reference);
396
+ try {
397
+ this.enterOuterAlt(_localctx, 1);
398
+ {
399
+ this.state = 72;
400
+ this.match(MalloyTagParser.RF_BEG);
401
+ this.state = 73;
402
+ this.propName();
403
+ this.state = 74;
404
+ this.match(MalloyTagParser.RF_END);
405
+ }
406
+ }
407
+ catch (re) {
408
+ if (re instanceof RecognitionException_1.RecognitionException) {
409
+ _localctx.exception = re;
410
+ this._errHandler.reportError(this, re);
411
+ this._errHandler.recover(this, re);
412
+ }
413
+ else {
414
+ throw re;
415
+ }
416
+ }
417
+ finally {
418
+ this.exitRule();
419
+ }
420
+ return _localctx;
421
+ }
422
+ // @RuleVersion(0)
423
+ arrayValue() {
424
+ let _localctx = new ArrayValueContext(this._ctx, this.state);
425
+ this.enterRule(_localctx, 14, MalloyTagParser.RULE_arrayValue);
426
+ let _la;
427
+ try {
428
+ let _alt;
429
+ this.enterOuterAlt(_localctx, 1);
430
+ {
431
+ this.state = 76;
432
+ this.match(MalloyTagParser.AR_BEG);
433
+ this.state = 77;
434
+ this.arrayElement();
435
+ this.state = 82;
436
+ this._errHandler.sync(this);
437
+ _alt = this.interpreter.adaptivePredict(this._input, 9, this._ctx);
438
+ while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
439
+ if (_alt === 1) {
440
+ {
441
+ {
442
+ this.state = 78;
443
+ this.match(MalloyTagParser.COMMA);
444
+ this.state = 79;
445
+ this.arrayElement();
446
+ }
447
+ }
448
+ }
449
+ this.state = 84;
450
+ this._errHandler.sync(this);
451
+ _alt = this.interpreter.adaptivePredict(this._input, 9, this._ctx);
452
+ }
453
+ this.state = 86;
454
+ this._errHandler.sync(this);
455
+ _la = this._input.LA(1);
456
+ if (_la === MalloyTagParser.COMMA) {
457
+ {
458
+ this.state = 85;
459
+ this.match(MalloyTagParser.COMMA);
460
+ }
461
+ }
462
+ this.state = 88;
463
+ this.match(MalloyTagParser.AR_END);
464
+ }
465
+ }
466
+ catch (re) {
467
+ if (re instanceof RecognitionException_1.RecognitionException) {
468
+ _localctx.exception = re;
469
+ this._errHandler.reportError(this, re);
470
+ this._errHandler.recover(this, re);
471
+ }
472
+ else {
473
+ throw re;
474
+ }
475
+ }
476
+ finally {
477
+ this.exitRule();
478
+ }
479
+ return _localctx;
480
+ }
481
+ // @RuleVersion(0)
482
+ properties() {
483
+ let _localctx = new PropertiesContext(this._ctx, this.state);
484
+ this.enterRule(_localctx, 16, MalloyTagParser.RULE_properties);
485
+ let _la;
486
+ try {
487
+ this.enterOuterAlt(_localctx, 1);
488
+ {
489
+ this.state = 90;
490
+ this.match(MalloyTagParser.PR_BEG);
491
+ this.state = 98;
492
+ this._errHandler.sync(this);
493
+ switch (this._input.LA(1)) {
494
+ case MalloyTagParser.DOTTY:
495
+ {
496
+ this.state = 91;
497
+ this.match(MalloyTagParser.DOTTY);
498
+ }
499
+ break;
500
+ case MalloyTagParser.MINUS:
501
+ case MalloyTagParser.PR_END:
502
+ case MalloyTagParser.SQ_STRING:
503
+ case MalloyTagParser.DQ_STRING:
504
+ case MalloyTagParser.BARE_STRING:
505
+ {
506
+ {
507
+ this.state = 95;
508
+ this._errHandler.sync(this);
509
+ _la = this._input.LA(1);
510
+ while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.MINUS) | (1 << MalloyTagParser.SQ_STRING) | (1 << MalloyTagParser.DQ_STRING) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
511
+ {
512
+ {
513
+ this.state = 92;
514
+ this.tagSpec();
515
+ }
516
+ }
517
+ this.state = 97;
518
+ this._errHandler.sync(this);
519
+ _la = this._input.LA(1);
520
+ }
521
+ }
522
+ }
523
+ break;
524
+ default:
525
+ throw new NoViableAltException_1.NoViableAltException(this);
526
+ }
527
+ this.state = 100;
528
+ this.match(MalloyTagParser.PR_END);
529
+ }
530
+ }
531
+ catch (re) {
532
+ if (re instanceof RecognitionException_1.RecognitionException) {
533
+ _localctx.exception = re;
534
+ this._errHandler.reportError(this, re);
535
+ this._errHandler.recover(this, re);
536
+ }
537
+ else {
538
+ throw re;
539
+ }
540
+ }
541
+ finally {
542
+ this.exitRule();
543
+ }
544
+ return _localctx;
545
+ }
546
+ static get _ATN() {
547
+ if (!MalloyTagParser.__ATN) {
548
+ MalloyTagParser.__ATN = new ATNDeserializer_1.ATNDeserializer().deserialize(Utils.toCharArray(MalloyTagParser._serializedATN));
549
+ }
550
+ return MalloyTagParser.__ATN;
551
+ }
552
+ }
553
+ exports.MalloyTagParser = MalloyTagParser;
554
+ MalloyTagParser.DOTTY = 1;
555
+ MalloyTagParser.DOT = 2;
556
+ MalloyTagParser.MINUS = 3;
557
+ MalloyTagParser.EQ = 4;
558
+ MalloyTagParser.RF_BEG = 5;
559
+ MalloyTagParser.RF_END = 6;
560
+ MalloyTagParser.PR_BEG = 7;
561
+ MalloyTagParser.PR_END = 8;
562
+ MalloyTagParser.AR_BEG = 9;
563
+ MalloyTagParser.COMMA = 10;
564
+ MalloyTagParser.AR_END = 11;
565
+ MalloyTagParser.SQ_STRING = 12;
566
+ MalloyTagParser.DQ_STRING = 13;
567
+ MalloyTagParser.BARE_STRING = 14;
568
+ MalloyTagParser.COMMENT = 15;
569
+ MalloyTagParser.WHITE_SPACE = 16;
570
+ MalloyTagParser.UNEXPECTED_CHAR = 17;
571
+ MalloyTagParser.RULE_tagLine = 0;
572
+ MalloyTagParser.RULE_tagSpec = 1;
573
+ MalloyTagParser.RULE_string = 2;
574
+ MalloyTagParser.RULE_propName = 3;
575
+ MalloyTagParser.RULE_eqValue = 4;
576
+ MalloyTagParser.RULE_arrayElement = 5;
577
+ MalloyTagParser.RULE_reference = 6;
578
+ MalloyTagParser.RULE_arrayValue = 7;
579
+ MalloyTagParser.RULE_properties = 8;
580
+ // tslint:disable:no-trailing-whitespace
581
+ MalloyTagParser.ruleNames = [
582
+ "tagLine", "tagSpec", "string", "propName", "eqValue", "arrayElement",
583
+ "reference", "arrayValue", "properties",
584
+ ];
585
+ MalloyTagParser._LITERAL_NAMES = [
586
+ undefined, "'...'", "'.'", "'-'", "'='", "'$('", "')'", "'{'", "'}'",
587
+ "'['", "','", "']'",
588
+ ];
589
+ MalloyTagParser._SYMBOLIC_NAMES = [
590
+ undefined, "DOTTY", "DOT", "MINUS", "EQ", "RF_BEG", "RF_END", "PR_BEG",
591
+ "PR_END", "AR_BEG", "COMMA", "AR_END", "SQ_STRING", "DQ_STRING", "BARE_STRING",
592
+ "COMMENT", "WHITE_SPACE", "UNEXPECTED_CHAR",
593
+ ];
594
+ MalloyTagParser.VOCABULARY = new VocabularyImpl_1.VocabularyImpl(MalloyTagParser._LITERAL_NAMES, MalloyTagParser._SYMBOLIC_NAMES, []);
595
+ MalloyTagParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x13i\x04\x02" +
596
+ "\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07" +
597
+ "\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x03\x02\x07\x02\x16\n\x02\f\x02\x0E" +
598
+ "\x02\x19\v\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03\x03\x05\x03" +
599
+ "!\n\x03\x03\x03\x03\x03\x03\x03\x05\x03&\n\x03\x03\x03\x03\x03\x03\x03" +
600
+ "\x03\x03\x03\x03\x03\x03\x05\x03.\n\x03\x03\x03\x05\x031\n\x03\x03\x04" +
601
+ "\x03\x04\x03\x05\x03\x05\x03\x05\x07\x058\n\x05\f\x05\x0E\x05;\v\x05\x03" +
602
+ "\x06\x03\x06\x03\x06\x05\x06@\n\x06\x03\x07\x03\x07\x05\x07D\n\x07\x03" +
603
+ "\x07\x03\x07\x03\x07\x05\x07I\n\x07\x03\b\x03\b\x03\b\x03\b\x03\t\x03" +
604
+ "\t\x03\t\x03\t\x07\tS\n\t\f\t\x0E\tV\v\t\x03\t\x05\tY\n\t\x03\t\x03\t" +
605
+ "\x03\n\x03\n\x03\n\x07\n`\n\n\f\n\x0E\nc\v\n\x05\ne\n\n\x03\n\x03\n\x03" +
606
+ "\n\x02\x02\x02\v\x02\x02\x04\x02\x06\x02\b\x02\n\x02\f\x02\x0E\x02\x10" +
607
+ "\x02\x12\x02\x02\x03\x03\x02\x0E\x10\x02q\x02\x17\x03\x02\x02\x02\x04" +
608
+ "0\x03\x02\x02\x02\x062\x03\x02\x02\x02\b4\x03\x02\x02\x02\n?\x03\x02\x02" +
609
+ "\x02\fH\x03\x02\x02\x02\x0EJ\x03\x02\x02\x02\x10N\x03\x02\x02\x02\x12" +
610
+ "\\\x03\x02\x02\x02\x14\x16\x05\x04\x03\x02\x15\x14\x03\x02\x02\x02\x16" +
611
+ "\x19\x03\x02\x02\x02\x17\x15\x03\x02\x02\x02\x17\x18\x03\x02\x02\x02\x18" +
612
+ "\x1A\x03\x02\x02\x02\x19\x17\x03\x02\x02\x02\x1A\x1B\x07\x02\x02\x03\x1B" +
613
+ "\x03\x03\x02\x02\x02\x1C\x1D\x05\b\x05\x02\x1D\x1E\x07\x06\x02\x02\x1E" +
614
+ " \x05\n\x06\x02\x1F!\x05\x12\n\x02 \x1F\x03\x02\x02\x02 !\x03\x02\x02" +
615
+ "\x02!1\x03\x02\x02\x02\"#\x05\b\x05\x02#%\x07\x06\x02\x02$&\x07\x03\x02" +
616
+ "\x02%$\x03\x02\x02\x02%&\x03\x02\x02\x02&\'\x03\x02\x02\x02\'(\x05\x12" +
617
+ "\n\x02(1\x03\x02\x02\x02)*\x05\b\x05\x02*+\x05\x12\n\x02+1\x03\x02\x02" +
618
+ "\x02,.\x07\x05\x02\x02-,\x03\x02\x02\x02-.\x03\x02\x02\x02./\x03\x02\x02" +
619
+ "\x02/1\x05\b\x05\x020\x1C\x03\x02\x02\x020\"\x03\x02\x02\x020)\x03\x02" +
620
+ "\x02\x020-\x03\x02\x02\x021\x05\x03\x02\x02\x0223\t\x02\x02\x023\x07\x03" +
621
+ "\x02\x02\x0249\x05\x06\x04\x0256\x07\x04\x02\x0268\x05\x06\x04\x0275\x03" +
622
+ "\x02\x02\x028;\x03\x02\x02\x0297\x03\x02\x02\x029:\x03\x02\x02\x02:\t" +
623
+ "\x03\x02\x02\x02;9\x03\x02\x02\x02<@\x05\x06\x04\x02=@\x05\x10\t\x02>" +
624
+ "@\x05\x0E\b\x02?<\x03\x02\x02\x02?=\x03\x02\x02\x02?>\x03\x02\x02\x02" +
625
+ "@\v\x03\x02\x02\x02AC\x05\x06\x04\x02BD\x05\x12\n\x02CB\x03\x02\x02\x02" +
626
+ "CD\x03\x02\x02\x02DI\x03\x02\x02\x02EI\x05\x12\n\x02FI\x05\x10\t\x02G" +
627
+ "I\x05\x0E\b\x02HA\x03\x02\x02\x02HE\x03\x02\x02\x02HF\x03\x02\x02\x02" +
628
+ "HG\x03\x02\x02\x02I\r\x03\x02\x02\x02JK\x07\x07\x02\x02KL\x05\b\x05\x02" +
629
+ "LM\x07\b\x02\x02M\x0F\x03\x02\x02\x02NO\x07\v\x02\x02OT\x05\f\x07\x02" +
630
+ "PQ\x07\f\x02\x02QS\x05\f\x07\x02RP\x03\x02\x02\x02SV\x03\x02\x02\x02T" +
631
+ "R\x03\x02\x02\x02TU\x03\x02\x02\x02UX\x03\x02\x02\x02VT\x03\x02\x02\x02" +
632
+ "WY\x07\f\x02\x02XW\x03\x02\x02\x02XY\x03\x02\x02\x02YZ\x03\x02\x02\x02" +
633
+ "Z[\x07\r\x02\x02[\x11\x03\x02\x02\x02\\d\x07\t\x02\x02]e\x07\x03\x02\x02" +
634
+ "^`\x05\x04\x03\x02_^\x03\x02\x02\x02`c\x03\x02\x02\x02a_\x03\x02\x02\x02" +
635
+ "ab\x03\x02\x02\x02be\x03\x02\x02\x02ca\x03\x02\x02\x02d]\x03\x02\x02\x02" +
636
+ "da\x03\x02\x02\x02ef\x03\x02\x02\x02fg\x07\n\x02\x02g\x13\x03\x02\x02" +
637
+ "\x02\x0F\x17 %-09?CHTXad";
638
+ class TagLineContext extends ParserRuleContext_1.ParserRuleContext {
639
+ EOF() { return this.getToken(MalloyTagParser.EOF, 0); }
640
+ tagSpec(i) {
641
+ if (i === undefined) {
642
+ return this.getRuleContexts(TagSpecContext);
643
+ }
644
+ else {
645
+ return this.getRuleContext(i, TagSpecContext);
646
+ }
647
+ }
648
+ constructor(parent, invokingState) {
649
+ super(parent, invokingState);
650
+ }
651
+ // @Override
652
+ get ruleIndex() { return MalloyTagParser.RULE_tagLine; }
653
+ // @Override
654
+ enterRule(listener) {
655
+ if (listener.enterTagLine) {
656
+ listener.enterTagLine(this);
657
+ }
658
+ }
659
+ // @Override
660
+ exitRule(listener) {
661
+ if (listener.exitTagLine) {
662
+ listener.exitTagLine(this);
663
+ }
664
+ }
665
+ // @Override
666
+ accept(visitor) {
667
+ if (visitor.visitTagLine) {
668
+ return visitor.visitTagLine(this);
669
+ }
670
+ else {
671
+ return visitor.visitChildren(this);
672
+ }
673
+ }
674
+ }
675
+ exports.TagLineContext = TagLineContext;
676
+ class TagSpecContext extends ParserRuleContext_1.ParserRuleContext {
677
+ constructor(parent, invokingState) {
678
+ super(parent, invokingState);
679
+ }
680
+ // @Override
681
+ get ruleIndex() { return MalloyTagParser.RULE_tagSpec; }
682
+ copyFrom(ctx) {
683
+ super.copyFrom(ctx);
684
+ }
685
+ }
686
+ exports.TagSpecContext = TagSpecContext;
687
+ class TagEqContext extends TagSpecContext {
688
+ propName() {
689
+ return this.getRuleContext(0, PropNameContext);
690
+ }
691
+ EQ() { return this.getToken(MalloyTagParser.EQ, 0); }
692
+ eqValue() {
693
+ return this.getRuleContext(0, EqValueContext);
694
+ }
695
+ properties() {
696
+ return this.tryGetRuleContext(0, PropertiesContext);
697
+ }
698
+ constructor(ctx) {
699
+ super(ctx.parent, ctx.invokingState);
700
+ this.copyFrom(ctx);
701
+ }
702
+ // @Override
703
+ enterRule(listener) {
704
+ if (listener.enterTagEq) {
705
+ listener.enterTagEq(this);
706
+ }
707
+ }
708
+ // @Override
709
+ exitRule(listener) {
710
+ if (listener.exitTagEq) {
711
+ listener.exitTagEq(this);
712
+ }
713
+ }
714
+ // @Override
715
+ accept(visitor) {
716
+ if (visitor.visitTagEq) {
717
+ return visitor.visitTagEq(this);
718
+ }
719
+ else {
720
+ return visitor.visitChildren(this);
721
+ }
722
+ }
723
+ }
724
+ exports.TagEqContext = TagEqContext;
725
+ class TagReplacePropertiesContext extends TagSpecContext {
726
+ propName() {
727
+ return this.getRuleContext(0, PropNameContext);
728
+ }
729
+ EQ() { return this.getToken(MalloyTagParser.EQ, 0); }
730
+ properties() {
731
+ return this.getRuleContext(0, PropertiesContext);
732
+ }
733
+ DOTTY() { return this.tryGetToken(MalloyTagParser.DOTTY, 0); }
734
+ constructor(ctx) {
735
+ super(ctx.parent, ctx.invokingState);
736
+ this.copyFrom(ctx);
737
+ }
738
+ // @Override
739
+ enterRule(listener) {
740
+ if (listener.enterTagReplaceProperties) {
741
+ listener.enterTagReplaceProperties(this);
742
+ }
743
+ }
744
+ // @Override
745
+ exitRule(listener) {
746
+ if (listener.exitTagReplaceProperties) {
747
+ listener.exitTagReplaceProperties(this);
748
+ }
749
+ }
750
+ // @Override
751
+ accept(visitor) {
752
+ if (visitor.visitTagReplaceProperties) {
753
+ return visitor.visitTagReplaceProperties(this);
754
+ }
755
+ else {
756
+ return visitor.visitChildren(this);
757
+ }
758
+ }
759
+ }
760
+ exports.TagReplacePropertiesContext = TagReplacePropertiesContext;
761
+ class TagUpdatePropertiesContext extends TagSpecContext {
762
+ propName() {
763
+ return this.getRuleContext(0, PropNameContext);
764
+ }
765
+ properties() {
766
+ return this.getRuleContext(0, PropertiesContext);
767
+ }
768
+ constructor(ctx) {
769
+ super(ctx.parent, ctx.invokingState);
770
+ this.copyFrom(ctx);
771
+ }
772
+ // @Override
773
+ enterRule(listener) {
774
+ if (listener.enterTagUpdateProperties) {
775
+ listener.enterTagUpdateProperties(this);
776
+ }
777
+ }
778
+ // @Override
779
+ exitRule(listener) {
780
+ if (listener.exitTagUpdateProperties) {
781
+ listener.exitTagUpdateProperties(this);
782
+ }
783
+ }
784
+ // @Override
785
+ accept(visitor) {
786
+ if (visitor.visitTagUpdateProperties) {
787
+ return visitor.visitTagUpdateProperties(this);
788
+ }
789
+ else {
790
+ return visitor.visitChildren(this);
791
+ }
792
+ }
793
+ }
794
+ exports.TagUpdatePropertiesContext = TagUpdatePropertiesContext;
795
+ class TagDefContext extends TagSpecContext {
796
+ propName() {
797
+ return this.getRuleContext(0, PropNameContext);
798
+ }
799
+ MINUS() { return this.tryGetToken(MalloyTagParser.MINUS, 0); }
800
+ constructor(ctx) {
801
+ super(ctx.parent, ctx.invokingState);
802
+ this.copyFrom(ctx);
803
+ }
804
+ // @Override
805
+ enterRule(listener) {
806
+ if (listener.enterTagDef) {
807
+ listener.enterTagDef(this);
808
+ }
809
+ }
810
+ // @Override
811
+ exitRule(listener) {
812
+ if (listener.exitTagDef) {
813
+ listener.exitTagDef(this);
814
+ }
815
+ }
816
+ // @Override
817
+ accept(visitor) {
818
+ if (visitor.visitTagDef) {
819
+ return visitor.visitTagDef(this);
820
+ }
821
+ else {
822
+ return visitor.visitChildren(this);
823
+ }
824
+ }
825
+ }
826
+ exports.TagDefContext = TagDefContext;
827
+ class StringContext extends ParserRuleContext_1.ParserRuleContext {
828
+ SQ_STRING() { return this.tryGetToken(MalloyTagParser.SQ_STRING, 0); }
829
+ DQ_STRING() { return this.tryGetToken(MalloyTagParser.DQ_STRING, 0); }
830
+ BARE_STRING() { return this.tryGetToken(MalloyTagParser.BARE_STRING, 0); }
831
+ constructor(parent, invokingState) {
832
+ super(parent, invokingState);
833
+ }
834
+ // @Override
835
+ get ruleIndex() { return MalloyTagParser.RULE_string; }
836
+ // @Override
837
+ enterRule(listener) {
838
+ if (listener.enterString) {
839
+ listener.enterString(this);
840
+ }
841
+ }
842
+ // @Override
843
+ exitRule(listener) {
844
+ if (listener.exitString) {
845
+ listener.exitString(this);
846
+ }
847
+ }
848
+ // @Override
849
+ accept(visitor) {
850
+ if (visitor.visitString) {
851
+ return visitor.visitString(this);
852
+ }
853
+ else {
854
+ return visitor.visitChildren(this);
855
+ }
856
+ }
857
+ }
858
+ exports.StringContext = StringContext;
859
+ class PropNameContext extends ParserRuleContext_1.ParserRuleContext {
860
+ string(i) {
861
+ if (i === undefined) {
862
+ return this.getRuleContexts(StringContext);
863
+ }
864
+ else {
865
+ return this.getRuleContext(i, StringContext);
866
+ }
867
+ }
868
+ DOT(i) {
869
+ if (i === undefined) {
870
+ return this.getTokens(MalloyTagParser.DOT);
871
+ }
872
+ else {
873
+ return this.getToken(MalloyTagParser.DOT, i);
874
+ }
875
+ }
876
+ constructor(parent, invokingState) {
877
+ super(parent, invokingState);
878
+ }
879
+ // @Override
880
+ get ruleIndex() { return MalloyTagParser.RULE_propName; }
881
+ // @Override
882
+ enterRule(listener) {
883
+ if (listener.enterPropName) {
884
+ listener.enterPropName(this);
885
+ }
886
+ }
887
+ // @Override
888
+ exitRule(listener) {
889
+ if (listener.exitPropName) {
890
+ listener.exitPropName(this);
891
+ }
892
+ }
893
+ // @Override
894
+ accept(visitor) {
895
+ if (visitor.visitPropName) {
896
+ return visitor.visitPropName(this);
897
+ }
898
+ else {
899
+ return visitor.visitChildren(this);
900
+ }
901
+ }
902
+ }
903
+ exports.PropNameContext = PropNameContext;
904
+ class EqValueContext extends ParserRuleContext_1.ParserRuleContext {
905
+ string() {
906
+ return this.tryGetRuleContext(0, StringContext);
907
+ }
908
+ arrayValue() {
909
+ return this.tryGetRuleContext(0, ArrayValueContext);
910
+ }
911
+ reference() {
912
+ return this.tryGetRuleContext(0, ReferenceContext);
913
+ }
914
+ constructor(parent, invokingState) {
915
+ super(parent, invokingState);
916
+ }
917
+ // @Override
918
+ get ruleIndex() { return MalloyTagParser.RULE_eqValue; }
919
+ // @Override
920
+ enterRule(listener) {
921
+ if (listener.enterEqValue) {
922
+ listener.enterEqValue(this);
923
+ }
924
+ }
925
+ // @Override
926
+ exitRule(listener) {
927
+ if (listener.exitEqValue) {
928
+ listener.exitEqValue(this);
929
+ }
930
+ }
931
+ // @Override
932
+ accept(visitor) {
933
+ if (visitor.visitEqValue) {
934
+ return visitor.visitEqValue(this);
935
+ }
936
+ else {
937
+ return visitor.visitChildren(this);
938
+ }
939
+ }
940
+ }
941
+ exports.EqValueContext = EqValueContext;
942
+ class ArrayElementContext extends ParserRuleContext_1.ParserRuleContext {
943
+ string() {
944
+ return this.tryGetRuleContext(0, StringContext);
945
+ }
946
+ properties() {
947
+ return this.tryGetRuleContext(0, PropertiesContext);
948
+ }
949
+ arrayValue() {
950
+ return this.tryGetRuleContext(0, ArrayValueContext);
951
+ }
952
+ reference() {
953
+ return this.tryGetRuleContext(0, ReferenceContext);
954
+ }
955
+ constructor(parent, invokingState) {
956
+ super(parent, invokingState);
957
+ }
958
+ // @Override
959
+ get ruleIndex() { return MalloyTagParser.RULE_arrayElement; }
960
+ // @Override
961
+ enterRule(listener) {
962
+ if (listener.enterArrayElement) {
963
+ listener.enterArrayElement(this);
964
+ }
965
+ }
966
+ // @Override
967
+ exitRule(listener) {
968
+ if (listener.exitArrayElement) {
969
+ listener.exitArrayElement(this);
970
+ }
971
+ }
972
+ // @Override
973
+ accept(visitor) {
974
+ if (visitor.visitArrayElement) {
975
+ return visitor.visitArrayElement(this);
976
+ }
977
+ else {
978
+ return visitor.visitChildren(this);
979
+ }
980
+ }
981
+ }
982
+ exports.ArrayElementContext = ArrayElementContext;
983
+ class ReferenceContext extends ParserRuleContext_1.ParserRuleContext {
984
+ RF_BEG() { return this.getToken(MalloyTagParser.RF_BEG, 0); }
985
+ propName() {
986
+ return this.getRuleContext(0, PropNameContext);
987
+ }
988
+ RF_END() { return this.getToken(MalloyTagParser.RF_END, 0); }
989
+ constructor(parent, invokingState) {
990
+ super(parent, invokingState);
991
+ }
992
+ // @Override
993
+ get ruleIndex() { return MalloyTagParser.RULE_reference; }
994
+ // @Override
995
+ enterRule(listener) {
996
+ if (listener.enterReference) {
997
+ listener.enterReference(this);
998
+ }
999
+ }
1000
+ // @Override
1001
+ exitRule(listener) {
1002
+ if (listener.exitReference) {
1003
+ listener.exitReference(this);
1004
+ }
1005
+ }
1006
+ // @Override
1007
+ accept(visitor) {
1008
+ if (visitor.visitReference) {
1009
+ return visitor.visitReference(this);
1010
+ }
1011
+ else {
1012
+ return visitor.visitChildren(this);
1013
+ }
1014
+ }
1015
+ }
1016
+ exports.ReferenceContext = ReferenceContext;
1017
+ class ArrayValueContext extends ParserRuleContext_1.ParserRuleContext {
1018
+ AR_BEG() { return this.getToken(MalloyTagParser.AR_BEG, 0); }
1019
+ arrayElement(i) {
1020
+ if (i === undefined) {
1021
+ return this.getRuleContexts(ArrayElementContext);
1022
+ }
1023
+ else {
1024
+ return this.getRuleContext(i, ArrayElementContext);
1025
+ }
1026
+ }
1027
+ AR_END() { return this.getToken(MalloyTagParser.AR_END, 0); }
1028
+ COMMA(i) {
1029
+ if (i === undefined) {
1030
+ return this.getTokens(MalloyTagParser.COMMA);
1031
+ }
1032
+ else {
1033
+ return this.getToken(MalloyTagParser.COMMA, i);
1034
+ }
1035
+ }
1036
+ constructor(parent, invokingState) {
1037
+ super(parent, invokingState);
1038
+ }
1039
+ // @Override
1040
+ get ruleIndex() { return MalloyTagParser.RULE_arrayValue; }
1041
+ // @Override
1042
+ enterRule(listener) {
1043
+ if (listener.enterArrayValue) {
1044
+ listener.enterArrayValue(this);
1045
+ }
1046
+ }
1047
+ // @Override
1048
+ exitRule(listener) {
1049
+ if (listener.exitArrayValue) {
1050
+ listener.exitArrayValue(this);
1051
+ }
1052
+ }
1053
+ // @Override
1054
+ accept(visitor) {
1055
+ if (visitor.visitArrayValue) {
1056
+ return visitor.visitArrayValue(this);
1057
+ }
1058
+ else {
1059
+ return visitor.visitChildren(this);
1060
+ }
1061
+ }
1062
+ }
1063
+ exports.ArrayValueContext = ArrayValueContext;
1064
+ class PropertiesContext extends ParserRuleContext_1.ParserRuleContext {
1065
+ PR_BEG() { return this.getToken(MalloyTagParser.PR_BEG, 0); }
1066
+ PR_END() { return this.getToken(MalloyTagParser.PR_END, 0); }
1067
+ DOTTY() { return this.tryGetToken(MalloyTagParser.DOTTY, 0); }
1068
+ tagSpec(i) {
1069
+ if (i === undefined) {
1070
+ return this.getRuleContexts(TagSpecContext);
1071
+ }
1072
+ else {
1073
+ return this.getRuleContext(i, TagSpecContext);
1074
+ }
1075
+ }
1076
+ constructor(parent, invokingState) {
1077
+ super(parent, invokingState);
1078
+ }
1079
+ // @Override
1080
+ get ruleIndex() { return MalloyTagParser.RULE_properties; }
1081
+ // @Override
1082
+ enterRule(listener) {
1083
+ if (listener.enterProperties) {
1084
+ listener.enterProperties(this);
1085
+ }
1086
+ }
1087
+ // @Override
1088
+ exitRule(listener) {
1089
+ if (listener.exitProperties) {
1090
+ listener.exitProperties(this);
1091
+ }
1092
+ }
1093
+ // @Override
1094
+ accept(visitor) {
1095
+ if (visitor.visitProperties) {
1096
+ return visitor.visitProperties(this);
1097
+ }
1098
+ else {
1099
+ return visitor.visitChildren(this);
1100
+ }
1101
+ }
1102
+ }
1103
+ exports.PropertiesContext = PropertiesContext;
1104
+ //# sourceMappingURL=MalloyTagParser.js.map