@malloydata/malloy 0.0.78 → 0.0.79-dev230818134709

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.
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  return result;
25
25
  };
26
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;
27
+ exports.PropertiesContext = exports.ArrayValueContext = exports.ReferenceContext = exports.ArrayElementContext = exports.EqValueContext = exports.PropNameContext = exports.IdentifierContext = exports.StringContext = exports.TagDefContext = exports.TagUpdatePropertiesContext = exports.TagReplacePropertiesContext = exports.TagEqContext = exports.TagSpecContext = exports.TagLineContext = exports.MalloyTagParser = void 0;
28
28
  const ATN_1 = require("antlr4ts/atn/ATN");
29
29
  const ATNDeserializer_1 = require("antlr4ts/atn/ATNDeserializer");
30
30
  const FailedPredicateException_1 = require("antlr4ts/FailedPredicateException");
@@ -64,21 +64,21 @@ class MalloyTagParser extends Parser_1.Parser {
64
64
  try {
65
65
  this.enterOuterAlt(_localctx, 1);
66
66
  {
67
- this.state = 21;
67
+ this.state = 23;
68
68
  this._errHandler.sync(this);
69
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.NUMERIC_LITERAL) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
70
+ while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.MINUS) | (1 << MalloyTagParser.BQ_STRING) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
71
71
  {
72
72
  {
73
- this.state = 18;
73
+ this.state = 20;
74
74
  this.tagSpec();
75
75
  }
76
76
  }
77
- this.state = 23;
77
+ this.state = 25;
78
78
  this._errHandler.sync(this);
79
79
  _la = this._input.LA(1);
80
80
  }
81
- this.state = 24;
81
+ this.state = 26;
82
82
  this.match(MalloyTagParser.EOF);
83
83
  }
84
84
  }
@@ -103,25 +103,25 @@ class MalloyTagParser extends Parser_1.Parser {
103
103
  this.enterRule(_localctx, 2, MalloyTagParser.RULE_tagSpec);
104
104
  let _la;
105
105
  try {
106
- this.state = 46;
106
+ this.state = 48;
107
107
  this._errHandler.sync(this);
108
108
  switch (this.interpreter.adaptivePredict(this._input, 4, this._ctx)) {
109
109
  case 1:
110
110
  _localctx = new TagEqContext(_localctx);
111
111
  this.enterOuterAlt(_localctx, 1);
112
112
  {
113
- this.state = 26;
113
+ this.state = 28;
114
114
  this.propName();
115
- this.state = 27;
115
+ this.state = 29;
116
116
  this.match(MalloyTagParser.EQ);
117
- this.state = 28;
118
- this.eqValue();
119
117
  this.state = 30;
118
+ this.eqValue();
119
+ this.state = 32;
120
120
  this._errHandler.sync(this);
121
121
  _la = this._input.LA(1);
122
122
  if (_la === MalloyTagParser.PR_BEG) {
123
123
  {
124
- this.state = 29;
124
+ this.state = 31;
125
125
  this.properties();
126
126
  }
127
127
  }
@@ -131,20 +131,20 @@ class MalloyTagParser extends Parser_1.Parser {
131
131
  _localctx = new TagReplacePropertiesContext(_localctx);
132
132
  this.enterOuterAlt(_localctx, 2);
133
133
  {
134
- this.state = 32;
134
+ this.state = 34;
135
135
  this.propName();
136
- this.state = 33;
137
- this.match(MalloyTagParser.EQ);
138
136
  this.state = 35;
137
+ this.match(MalloyTagParser.EQ);
138
+ this.state = 37;
139
139
  this._errHandler.sync(this);
140
140
  _la = this._input.LA(1);
141
141
  if (_la === MalloyTagParser.DOTTY) {
142
142
  {
143
- this.state = 34;
143
+ this.state = 36;
144
144
  this.match(MalloyTagParser.DOTTY);
145
145
  }
146
146
  }
147
- this.state = 37;
147
+ this.state = 39;
148
148
  this.properties();
149
149
  }
150
150
  break;
@@ -152,9 +152,9 @@ class MalloyTagParser extends Parser_1.Parser {
152
152
  _localctx = new TagUpdatePropertiesContext(_localctx);
153
153
  this.enterOuterAlt(_localctx, 3);
154
154
  {
155
- this.state = 39;
155
+ this.state = 41;
156
156
  this.propName();
157
- this.state = 40;
157
+ this.state = 42;
158
158
  this.properties();
159
159
  }
160
160
  break;
@@ -162,16 +162,16 @@ class MalloyTagParser extends Parser_1.Parser {
162
162
  _localctx = new TagDefContext(_localctx);
163
163
  this.enterOuterAlt(_localctx, 4);
164
164
  {
165
- this.state = 43;
165
+ this.state = 45;
166
166
  this._errHandler.sync(this);
167
167
  _la = this._input.LA(1);
168
168
  if (_la === MalloyTagParser.MINUS) {
169
169
  {
170
- this.state = 42;
170
+ this.state = 44;
171
171
  this.match(MalloyTagParser.MINUS);
172
172
  }
173
173
  }
174
- this.state = 45;
174
+ this.state = 47;
175
175
  this.propName();
176
176
  }
177
177
  break;
@@ -200,7 +200,7 @@ class MalloyTagParser extends Parser_1.Parser {
200
200
  try {
201
201
  this.enterOuterAlt(_localctx, 1);
202
202
  {
203
- this.state = 48;
203
+ this.state = 50;
204
204
  _la = this._input.LA(1);
205
205
  if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.SQ_STRING) | (1 << MalloyTagParser.DQ_STRING) | (1 << MalloyTagParser.NUMERIC_LITERAL) | (1 << MalloyTagParser.BARE_STRING))) !== 0))) {
206
206
  this._errHandler.recoverInline(this);
@@ -230,28 +230,65 @@ class MalloyTagParser extends Parser_1.Parser {
230
230
  return _localctx;
231
231
  }
232
232
  // @RuleVersion(0)
233
+ identifier() {
234
+ let _localctx = new IdentifierContext(this._ctx, this.state);
235
+ this.enterRule(_localctx, 6, MalloyTagParser.RULE_identifier);
236
+ let _la;
237
+ try {
238
+ this.enterOuterAlt(_localctx, 1);
239
+ {
240
+ this.state = 52;
241
+ _la = this._input.LA(1);
242
+ if (!(_la === MalloyTagParser.BQ_STRING || _la === MalloyTagParser.BARE_STRING)) {
243
+ this._errHandler.recoverInline(this);
244
+ }
245
+ else {
246
+ if (this._input.LA(1) === Token_1.Token.EOF) {
247
+ this.matchedEOF = true;
248
+ }
249
+ this._errHandler.reportMatch(this);
250
+ this.consume();
251
+ }
252
+ }
253
+ }
254
+ catch (re) {
255
+ if (re instanceof RecognitionException_1.RecognitionException) {
256
+ _localctx.exception = re;
257
+ this._errHandler.reportError(this, re);
258
+ this._errHandler.recover(this, re);
259
+ }
260
+ else {
261
+ throw re;
262
+ }
263
+ }
264
+ finally {
265
+ this.exitRule();
266
+ }
267
+ return _localctx;
268
+ }
269
+ // @RuleVersion(0)
233
270
  propName() {
234
271
  let _localctx = new PropNameContext(this._ctx, this.state);
235
- this.enterRule(_localctx, 6, MalloyTagParser.RULE_propName);
272
+ this.enterRule(_localctx, 8, MalloyTagParser.RULE_propName);
236
273
  let _la;
237
274
  try {
238
275
  this.enterOuterAlt(_localctx, 1);
239
276
  {
240
- this.state = 50;
241
- this.string();
242
- this.state = 55;
277
+ this.state = 54;
278
+ this.identifier();
279
+ this.state = 59;
243
280
  this._errHandler.sync(this);
244
281
  _la = this._input.LA(1);
245
282
  while (_la === MalloyTagParser.DOT) {
246
283
  {
247
284
  {
248
- this.state = 51;
285
+ this.state = 55;
249
286
  this.match(MalloyTagParser.DOT);
250
- this.state = 52;
251
- this.string();
287
+ this.state = 56;
288
+ this.identifier();
252
289
  }
253
290
  }
254
- this.state = 57;
291
+ this.state = 61;
255
292
  this._errHandler.sync(this);
256
293
  _la = this._input.LA(1);
257
294
  }
@@ -275,9 +312,9 @@ class MalloyTagParser extends Parser_1.Parser {
275
312
  // @RuleVersion(0)
276
313
  eqValue() {
277
314
  let _localctx = new EqValueContext(this._ctx, this.state);
278
- this.enterRule(_localctx, 8, MalloyTagParser.RULE_eqValue);
315
+ this.enterRule(_localctx, 10, MalloyTagParser.RULE_eqValue);
279
316
  try {
280
- this.state = 61;
317
+ this.state = 65;
281
318
  this._errHandler.sync(this);
282
319
  switch (this._input.LA(1)) {
283
320
  case MalloyTagParser.SQ_STRING:
@@ -286,21 +323,21 @@ class MalloyTagParser extends Parser_1.Parser {
286
323
  case MalloyTagParser.BARE_STRING:
287
324
  this.enterOuterAlt(_localctx, 1);
288
325
  {
289
- this.state = 58;
326
+ this.state = 62;
290
327
  this.string();
291
328
  }
292
329
  break;
293
330
  case MalloyTagParser.AR_BEG:
294
331
  this.enterOuterAlt(_localctx, 2);
295
332
  {
296
- this.state = 59;
333
+ this.state = 63;
297
334
  this.arrayValue();
298
335
  }
299
336
  break;
300
337
  case MalloyTagParser.RF_BEG:
301
338
  this.enterOuterAlt(_localctx, 3);
302
339
  {
303
- this.state = 60;
340
+ this.state = 64;
304
341
  this.reference();
305
342
  }
306
343
  break;
@@ -326,10 +363,10 @@ class MalloyTagParser extends Parser_1.Parser {
326
363
  // @RuleVersion(0)
327
364
  arrayElement() {
328
365
  let _localctx = new ArrayElementContext(this._ctx, this.state);
329
- this.enterRule(_localctx, 10, MalloyTagParser.RULE_arrayElement);
366
+ this.enterRule(_localctx, 12, MalloyTagParser.RULE_arrayElement);
330
367
  let _la;
331
368
  try {
332
- this.state = 70;
369
+ this.state = 74;
333
370
  this._errHandler.sync(this);
334
371
  switch (this._input.LA(1)) {
335
372
  case MalloyTagParser.SQ_STRING:
@@ -338,14 +375,14 @@ class MalloyTagParser extends Parser_1.Parser {
338
375
  case MalloyTagParser.BARE_STRING:
339
376
  this.enterOuterAlt(_localctx, 1);
340
377
  {
341
- this.state = 63;
378
+ this.state = 67;
342
379
  this.string();
343
- this.state = 65;
380
+ this.state = 69;
344
381
  this._errHandler.sync(this);
345
382
  _la = this._input.LA(1);
346
383
  if (_la === MalloyTagParser.PR_BEG) {
347
384
  {
348
- this.state = 64;
385
+ this.state = 68;
349
386
  this.properties();
350
387
  }
351
388
  }
@@ -354,21 +391,21 @@ class MalloyTagParser extends Parser_1.Parser {
354
391
  case MalloyTagParser.PR_BEG:
355
392
  this.enterOuterAlt(_localctx, 2);
356
393
  {
357
- this.state = 67;
394
+ this.state = 71;
358
395
  this.properties();
359
396
  }
360
397
  break;
361
398
  case MalloyTagParser.AR_BEG:
362
399
  this.enterOuterAlt(_localctx, 3);
363
400
  {
364
- this.state = 68;
401
+ this.state = 72;
365
402
  this.arrayValue();
366
403
  }
367
404
  break;
368
405
  case MalloyTagParser.RF_BEG:
369
406
  this.enterOuterAlt(_localctx, 4);
370
407
  {
371
- this.state = 69;
408
+ this.state = 73;
372
409
  this.reference();
373
410
  }
374
411
  break;
@@ -394,15 +431,15 @@ class MalloyTagParser extends Parser_1.Parser {
394
431
  // @RuleVersion(0)
395
432
  reference() {
396
433
  let _localctx = new ReferenceContext(this._ctx, this.state);
397
- this.enterRule(_localctx, 12, MalloyTagParser.RULE_reference);
434
+ this.enterRule(_localctx, 14, MalloyTagParser.RULE_reference);
398
435
  try {
399
436
  this.enterOuterAlt(_localctx, 1);
400
437
  {
401
- this.state = 72;
438
+ this.state = 76;
402
439
  this.match(MalloyTagParser.RF_BEG);
403
- this.state = 73;
440
+ this.state = 77;
404
441
  this.propName();
405
- this.state = 74;
442
+ this.state = 78;
406
443
  this.match(MalloyTagParser.RF_END);
407
444
  }
408
445
  }
@@ -424,44 +461,44 @@ class MalloyTagParser extends Parser_1.Parser {
424
461
  // @RuleVersion(0)
425
462
  arrayValue() {
426
463
  let _localctx = new ArrayValueContext(this._ctx, this.state);
427
- this.enterRule(_localctx, 14, MalloyTagParser.RULE_arrayValue);
464
+ this.enterRule(_localctx, 16, MalloyTagParser.RULE_arrayValue);
428
465
  let _la;
429
466
  try {
430
467
  let _alt;
431
468
  this.enterOuterAlt(_localctx, 1);
432
469
  {
433
- this.state = 76;
470
+ this.state = 80;
434
471
  this.match(MalloyTagParser.AR_BEG);
435
- this.state = 77;
472
+ this.state = 81;
436
473
  this.arrayElement();
437
- this.state = 82;
474
+ this.state = 86;
438
475
  this._errHandler.sync(this);
439
476
  _alt = this.interpreter.adaptivePredict(this._input, 9, this._ctx);
440
477
  while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
441
478
  if (_alt === 1) {
442
479
  {
443
480
  {
444
- this.state = 78;
481
+ this.state = 82;
445
482
  this.match(MalloyTagParser.COMMA);
446
- this.state = 79;
483
+ this.state = 83;
447
484
  this.arrayElement();
448
485
  }
449
486
  }
450
487
  }
451
- this.state = 84;
488
+ this.state = 88;
452
489
  this._errHandler.sync(this);
453
490
  _alt = this.interpreter.adaptivePredict(this._input, 9, this._ctx);
454
491
  }
455
- this.state = 86;
492
+ this.state = 90;
456
493
  this._errHandler.sync(this);
457
494
  _la = this._input.LA(1);
458
495
  if (_la === MalloyTagParser.COMMA) {
459
496
  {
460
- this.state = 85;
497
+ this.state = 89;
461
498
  this.match(MalloyTagParser.COMMA);
462
499
  }
463
500
  }
464
- this.state = 88;
501
+ this.state = 92;
465
502
  this.match(MalloyTagParser.AR_END);
466
503
  }
467
504
  }
@@ -483,41 +520,39 @@ class MalloyTagParser extends Parser_1.Parser {
483
520
  // @RuleVersion(0)
484
521
  properties() {
485
522
  let _localctx = new PropertiesContext(this._ctx, this.state);
486
- this.enterRule(_localctx, 16, MalloyTagParser.RULE_properties);
523
+ this.enterRule(_localctx, 18, MalloyTagParser.RULE_properties);
487
524
  let _la;
488
525
  try {
489
526
  this.enterOuterAlt(_localctx, 1);
490
527
  {
491
- this.state = 90;
528
+ this.state = 94;
492
529
  this.match(MalloyTagParser.PR_BEG);
493
- this.state = 98;
530
+ this.state = 102;
494
531
  this._errHandler.sync(this);
495
532
  switch (this._input.LA(1)) {
496
533
  case MalloyTagParser.DOTTY:
497
534
  {
498
- this.state = 91;
535
+ this.state = 95;
499
536
  this.match(MalloyTagParser.DOTTY);
500
537
  }
501
538
  break;
502
539
  case MalloyTagParser.MINUS:
503
540
  case MalloyTagParser.PR_END:
504
- case MalloyTagParser.SQ_STRING:
505
- case MalloyTagParser.DQ_STRING:
506
- case MalloyTagParser.NUMERIC_LITERAL:
541
+ case MalloyTagParser.BQ_STRING:
507
542
  case MalloyTagParser.BARE_STRING:
508
543
  {
509
544
  {
510
- this.state = 95;
545
+ this.state = 99;
511
546
  this._errHandler.sync(this);
512
547
  _la = this._input.LA(1);
513
- while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.MINUS) | (1 << MalloyTagParser.SQ_STRING) | (1 << MalloyTagParser.DQ_STRING) | (1 << MalloyTagParser.NUMERIC_LITERAL) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
548
+ while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.MINUS) | (1 << MalloyTagParser.BQ_STRING) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
514
549
  {
515
550
  {
516
- this.state = 92;
551
+ this.state = 96;
517
552
  this.tagSpec();
518
553
  }
519
554
  }
520
- this.state = 97;
555
+ this.state = 101;
521
556
  this._errHandler.sync(this);
522
557
  _la = this._input.LA(1);
523
558
  }
@@ -527,7 +562,7 @@ class MalloyTagParser extends Parser_1.Parser {
527
562
  default:
528
563
  throw new NoViableAltException_1.NoViableAltException(this);
529
564
  }
530
- this.state = 100;
565
+ this.state = 104;
531
566
  this.match(MalloyTagParser.PR_END);
532
567
  }
533
568
  }
@@ -567,23 +602,25 @@ MalloyTagParser.COMMA = 10;
567
602
  MalloyTagParser.AR_END = 11;
568
603
  MalloyTagParser.SQ_STRING = 12;
569
604
  MalloyTagParser.DQ_STRING = 13;
570
- MalloyTagParser.NUMERIC_LITERAL = 14;
571
- MalloyTagParser.BARE_STRING = 15;
572
- MalloyTagParser.COMMENT = 16;
573
- MalloyTagParser.WHITE_SPACE = 17;
574
- MalloyTagParser.UNEXPECTED_CHAR = 18;
605
+ MalloyTagParser.BQ_STRING = 14;
606
+ MalloyTagParser.NUMERIC_LITERAL = 15;
607
+ MalloyTagParser.BARE_STRING = 16;
608
+ MalloyTagParser.COMMENT = 17;
609
+ MalloyTagParser.WHITE_SPACE = 18;
610
+ MalloyTagParser.UNEXPECTED_CHAR = 19;
575
611
  MalloyTagParser.RULE_tagLine = 0;
576
612
  MalloyTagParser.RULE_tagSpec = 1;
577
613
  MalloyTagParser.RULE_string = 2;
578
- MalloyTagParser.RULE_propName = 3;
579
- MalloyTagParser.RULE_eqValue = 4;
580
- MalloyTagParser.RULE_arrayElement = 5;
581
- MalloyTagParser.RULE_reference = 6;
582
- MalloyTagParser.RULE_arrayValue = 7;
583
- MalloyTagParser.RULE_properties = 8;
614
+ MalloyTagParser.RULE_identifier = 3;
615
+ MalloyTagParser.RULE_propName = 4;
616
+ MalloyTagParser.RULE_eqValue = 5;
617
+ MalloyTagParser.RULE_arrayElement = 6;
618
+ MalloyTagParser.RULE_reference = 7;
619
+ MalloyTagParser.RULE_arrayValue = 8;
620
+ MalloyTagParser.RULE_properties = 9;
584
621
  // tslint:disable:no-trailing-whitespace
585
622
  MalloyTagParser.ruleNames = [
586
- "tagLine", "tagSpec", "string", "propName", "eqValue", "arrayElement",
623
+ "tagLine", "tagSpec", "string", "identifier", "propName", "eqValue", "arrayElement",
587
624
  "reference", "arrayValue", "properties",
588
625
  ];
589
626
  MalloyTagParser._LITERAL_NAMES = [
@@ -592,53 +629,54 @@ MalloyTagParser._LITERAL_NAMES = [
592
629
  ];
593
630
  MalloyTagParser._SYMBOLIC_NAMES = [
594
631
  undefined, "DOTTY", "DOT", "MINUS", "EQ", "RF_BEG", "RF_END", "PR_BEG",
595
- "PR_END", "AR_BEG", "COMMA", "AR_END", "SQ_STRING", "DQ_STRING", "NUMERIC_LITERAL",
596
- "BARE_STRING", "COMMENT", "WHITE_SPACE", "UNEXPECTED_CHAR",
632
+ "PR_END", "AR_BEG", "COMMA", "AR_END", "SQ_STRING", "DQ_STRING", "BQ_STRING",
633
+ "NUMERIC_LITERAL", "BARE_STRING", "COMMENT", "WHITE_SPACE", "UNEXPECTED_CHAR",
597
634
  ];
598
635
  MalloyTagParser.VOCABULARY = new VocabularyImpl_1.VocabularyImpl(MalloyTagParser._LITERAL_NAMES, MalloyTagParser._SYMBOLIC_NAMES, []);
599
- MalloyTagParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x14i\x04\x02" +
636
+ MalloyTagParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x15m\x04\x02" +
600
637
  "\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07" +
601
- "\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x03\x02\x07\x02\x16\n\x02\f\x02\x0E" +
602
- "\x02\x19\v\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03\x03\x05\x03" +
603
- "!\n\x03\x03\x03\x03\x03\x03\x03\x05\x03&\n\x03\x03\x03\x03\x03\x03\x03" +
604
- "\x03\x03\x03\x03\x03\x03\x05\x03.\n\x03\x03\x03\x05\x031\n\x03\x03\x04" +
605
- "\x03\x04\x03\x05\x03\x05\x03\x05\x07\x058\n\x05\f\x05\x0E\x05;\v\x05\x03" +
606
- "\x06\x03\x06\x03\x06\x05\x06@\n\x06\x03\x07\x03\x07\x05\x07D\n\x07\x03" +
607
- "\x07\x03\x07\x03\x07\x05\x07I\n\x07\x03\b\x03\b\x03\b\x03\b\x03\t\x03" +
608
- "\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" +
609
- "\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" +
610
- "\n\x02\x02\x02\v\x02\x02\x04\x02\x06\x02\b\x02\n\x02\f\x02\x0E\x02\x10" +
611
- "\x02\x12\x02\x02\x03\x03\x02\x0E\x11\x02q\x02\x17\x03\x02\x02\x02\x04" +
612
- "0\x03\x02\x02\x02\x062\x03\x02\x02\x02\b4\x03\x02\x02\x02\n?\x03\x02\x02" +
613
- "\x02\fH\x03\x02\x02\x02\x0EJ\x03\x02\x02\x02\x10N\x03\x02\x02\x02\x12" +
614
- "\\\x03\x02\x02\x02\x14\x16\x05\x04\x03\x02\x15\x14\x03\x02\x02\x02\x16" +
615
- "\x19\x03\x02\x02\x02\x17\x15\x03\x02\x02\x02\x17\x18\x03\x02\x02\x02\x18" +
616
- "\x1A\x03\x02\x02\x02\x19\x17\x03\x02\x02\x02\x1A\x1B\x07\x02\x02\x03\x1B" +
617
- "\x03\x03\x02\x02\x02\x1C\x1D\x05\b\x05\x02\x1D\x1E\x07\x06\x02\x02\x1E" +
618
- " \x05\n\x06\x02\x1F!\x05\x12\n\x02 \x1F\x03\x02\x02\x02 !\x03\x02\x02" +
619
- "\x02!1\x03\x02\x02\x02\"#\x05\b\x05\x02#%\x07\x06\x02\x02$&\x07\x03\x02" +
620
- "\x02%$\x03\x02\x02\x02%&\x03\x02\x02\x02&\'\x03\x02\x02\x02\'(\x05\x12" +
621
- "\n\x02(1\x03\x02\x02\x02)*\x05\b\x05\x02*+\x05\x12\n\x02+1\x03\x02\x02" +
622
- "\x02,.\x07\x05\x02\x02-,\x03\x02\x02\x02-.\x03\x02\x02\x02./\x03\x02\x02" +
623
- "\x02/1\x05\b\x05\x020\x1C\x03\x02\x02\x020\"\x03\x02\x02\x020)\x03\x02" +
624
- "\x02\x020-\x03\x02\x02\x021\x05\x03\x02\x02\x0223\t\x02\x02\x023\x07\x03" +
625
- "\x02\x02\x0249\x05\x06\x04\x0256\x07\x04\x02\x0268\x05\x06\x04\x0275\x03" +
626
- "\x02\x02\x028;\x03\x02\x02\x0297\x03\x02\x02\x029:\x03\x02\x02\x02:\t" +
627
- "\x03\x02\x02\x02;9\x03\x02\x02\x02<@\x05\x06\x04\x02=@\x05\x10\t\x02>" +
628
- "@\x05\x0E\b\x02?<\x03\x02\x02\x02?=\x03\x02\x02\x02?>\x03\x02\x02\x02" +
629
- "@\v\x03\x02\x02\x02AC\x05\x06\x04\x02BD\x05\x12\n\x02CB\x03\x02\x02\x02" +
630
- "CD\x03\x02\x02\x02DI\x03\x02\x02\x02EI\x05\x12\n\x02FI\x05\x10\t\x02G" +
631
- "I\x05\x0E\b\x02HA\x03\x02\x02\x02HE\x03\x02\x02\x02HF\x03\x02\x02\x02" +
632
- "HG\x03\x02\x02\x02I\r\x03\x02\x02\x02JK\x07\x07\x02\x02KL\x05\b\x05\x02" +
633
- "LM\x07\b\x02\x02M\x0F\x03\x02\x02\x02NO\x07\v\x02\x02OT\x05\f\x07\x02" +
634
- "PQ\x07\f\x02\x02QS\x05\f\x07\x02RP\x03\x02\x02\x02SV\x03\x02\x02\x02T" +
635
- "R\x03\x02\x02\x02TU\x03\x02\x02\x02UX\x03\x02\x02\x02VT\x03\x02\x02\x02" +
636
- "WY\x07\f\x02\x02XW\x03\x02\x02\x02XY\x03\x02\x02\x02YZ\x03\x02\x02\x02" +
637
- "Z[\x07\r\x02\x02[\x11\x03\x02\x02\x02\\d\x07\t\x02\x02]e\x07\x03\x02\x02" +
638
- "^`\x05\x04\x03\x02_^\x03\x02\x02\x02`c\x03\x02\x02\x02a_\x03\x02\x02\x02" +
639
- "ab\x03\x02\x02\x02be\x03\x02\x02\x02ca\x03\x02\x02\x02d]\x03\x02\x02\x02" +
640
- "da\x03\x02\x02\x02ef\x03\x02\x02\x02fg\x07\n\x02\x02g\x13\x03\x02\x02" +
641
- "\x02\x0F\x17 %-09?CHTXad";
638
+ "\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x03\x02\x07\x02\x18\n\x02" +
639
+ "\f\x02\x0E\x02\x1B\v\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03\x03" +
640
+ "\x05\x03#\n\x03\x03\x03\x03\x03\x03\x03\x05\x03(\n\x03\x03\x03\x03\x03" +
641
+ "\x03\x03\x03\x03\x03\x03\x03\x03\x05\x030\n\x03\x03\x03\x05\x033\n\x03" +
642
+ "\x03\x04\x03\x04\x03\x05\x03\x05\x03\x06\x03\x06\x03\x06\x07\x06<\n\x06" +
643
+ "\f\x06\x0E\x06?\v\x06\x03\x07\x03\x07\x03\x07\x05\x07D\n\x07\x03\b\x03" +
644
+ "\b\x05\bH\n\b\x03\b\x03\b\x03\b\x05\bM\n\b\x03\t\x03\t\x03\t\x03\t\x03" +
645
+ "\n\x03\n\x03\n\x03\n\x07\nW\n\n\f\n\x0E\nZ\v\n\x03\n\x05\n]\n\n\x03\n" +
646
+ "\x03\n\x03\v\x03\v\x03\v\x07\vd\n\v\f\v\x0E\vg\v\v\x05\vi\n\v\x03\v\x03" +
647
+ "\v\x03\v\x02\x02\x02\f\x02\x02\x04\x02\x06\x02\b\x02\n\x02\f\x02\x0E\x02" +
648
+ "\x10\x02\x12\x02\x14\x02\x02\x04\x04\x02\x0E\x0F\x11\x12\x04\x02\x10\x10" +
649
+ "\x12\x12\x02t\x02\x19\x03\x02\x02\x02\x042\x03\x02\x02\x02\x064\x03\x02" +
650
+ "\x02\x02\b6\x03\x02\x02\x02\n8\x03\x02\x02\x02\fC\x03\x02\x02\x02\x0E" +
651
+ "L\x03\x02\x02\x02\x10N\x03\x02\x02\x02\x12R\x03\x02\x02\x02\x14`\x03\x02" +
652
+ "\x02\x02\x16\x18\x05\x04\x03\x02\x17\x16\x03\x02\x02\x02\x18\x1B\x03\x02" +
653
+ "\x02\x02\x19\x17\x03\x02\x02\x02\x19\x1A\x03\x02\x02\x02\x1A\x1C\x03\x02" +
654
+ "\x02\x02\x1B\x19\x03\x02\x02\x02\x1C\x1D\x07\x02\x02\x03\x1D\x03\x03\x02" +
655
+ "\x02\x02\x1E\x1F\x05\n\x06\x02\x1F \x07\x06\x02\x02 \"\x05\f\x07\x02!" +
656
+ "#\x05\x14\v\x02\"!\x03\x02\x02\x02\"#\x03\x02\x02\x02#3\x03\x02\x02\x02" +
657
+ "$%\x05\n\x06\x02%\'\x07\x06\x02\x02&(\x07\x03\x02\x02\'&\x03\x02\x02\x02" +
658
+ "\'(\x03\x02\x02\x02()\x03\x02\x02\x02)*\x05\x14\v\x02*3\x03\x02\x02\x02" +
659
+ "+,\x05\n\x06\x02,-\x05\x14\v\x02-3\x03\x02\x02\x02.0\x07\x05\x02\x02/" +
660
+ ".\x03\x02\x02\x02/0\x03\x02\x02\x0201\x03\x02\x02\x0213\x05\n\x06\x02" +
661
+ "2\x1E\x03\x02\x02\x022$\x03\x02\x02\x022+\x03\x02\x02\x022/\x03\x02\x02" +
662
+ "\x023\x05\x03\x02\x02\x0245\t\x02\x02\x025\x07\x03\x02\x02\x0267\t\x03" +
663
+ "\x02\x027\t\x03\x02\x02\x028=\x05\b\x05\x029:\x07\x04\x02\x02:<\x05\b" +
664
+ "\x05\x02;9\x03\x02\x02\x02<?\x03\x02\x02\x02=;\x03\x02\x02\x02=>\x03\x02" +
665
+ "\x02\x02>\v\x03\x02\x02\x02?=\x03\x02\x02\x02@D\x05\x06\x04\x02AD\x05" +
666
+ "\x12\n\x02BD\x05\x10\t\x02C@\x03\x02\x02\x02CA\x03\x02\x02\x02CB\x03\x02" +
667
+ "\x02\x02D\r\x03\x02\x02\x02EG\x05\x06\x04\x02FH\x05\x14\v\x02GF\x03\x02" +
668
+ "\x02\x02GH\x03\x02\x02\x02HM\x03\x02\x02\x02IM\x05\x14\v\x02JM\x05\x12" +
669
+ "\n\x02KM\x05\x10\t\x02LE\x03\x02\x02\x02LI\x03\x02\x02\x02LJ\x03\x02\x02" +
670
+ "\x02LK\x03\x02\x02\x02M\x0F\x03\x02\x02\x02NO\x07\x07\x02\x02OP\x05\n" +
671
+ "\x06\x02PQ\x07\b\x02\x02Q\x11\x03\x02\x02\x02RS\x07\v\x02\x02SX\x05\x0E" +
672
+ "\b\x02TU\x07\f\x02\x02UW\x05\x0E\b\x02VT\x03\x02\x02\x02WZ\x03\x02\x02" +
673
+ "\x02XV\x03\x02\x02\x02XY\x03\x02\x02\x02Y\\\x03\x02\x02\x02ZX\x03\x02" +
674
+ "\x02\x02[]\x07\f\x02\x02\\[\x03\x02\x02\x02\\]\x03\x02\x02\x02]^\x03\x02" +
675
+ "\x02\x02^_\x07\r\x02\x02_\x13\x03\x02\x02\x02`h\x07\t\x02\x02ai\x07\x03" +
676
+ "\x02\x02bd\x05\x04\x03\x02cb\x03\x02\x02\x02dg\x03\x02\x02\x02ec\x03\x02" +
677
+ "\x02\x02ef\x03\x02\x02\x02fi\x03\x02\x02\x02ge\x03\x02\x02\x02ha\x03\x02" +
678
+ "\x02\x02he\x03\x02\x02\x02ij\x03\x02\x02\x02jk\x07\n\x02\x02k\x15\x03" +
679
+ "\x02\x02\x02\x0F\x19\"\'/2=CGLX\\eh";
642
680
  class TagLineContext extends ParserRuleContext_1.ParserRuleContext {
643
681
  EOF() { return this.getToken(MalloyTagParser.EOF, 0); }
644
682
  tagSpec(i) {
@@ -770,9 +808,9 @@ class TagDefContext extends TagSpecContext {
770
808
  exports.TagDefContext = TagDefContext;
771
809
  class StringContext extends ParserRuleContext_1.ParserRuleContext {
772
810
  SQ_STRING() { return this.tryGetToken(MalloyTagParser.SQ_STRING, 0); }
773
- NUMERIC_LITERAL() { return this.tryGetToken(MalloyTagParser.NUMERIC_LITERAL, 0); }
774
811
  DQ_STRING() { return this.tryGetToken(MalloyTagParser.DQ_STRING, 0); }
775
812
  BARE_STRING() { return this.tryGetToken(MalloyTagParser.BARE_STRING, 0); }
813
+ NUMERIC_LITERAL() { return this.tryGetToken(MalloyTagParser.NUMERIC_LITERAL, 0); }
776
814
  constructor(parent, invokingState) {
777
815
  super(parent, invokingState);
778
816
  }
@@ -789,13 +827,32 @@ class StringContext extends ParserRuleContext_1.ParserRuleContext {
789
827
  }
790
828
  }
791
829
  exports.StringContext = StringContext;
830
+ class IdentifierContext extends ParserRuleContext_1.ParserRuleContext {
831
+ BQ_STRING() { return this.tryGetToken(MalloyTagParser.BQ_STRING, 0); }
832
+ BARE_STRING() { return this.tryGetToken(MalloyTagParser.BARE_STRING, 0); }
833
+ constructor(parent, invokingState) {
834
+ super(parent, invokingState);
835
+ }
836
+ // @Override
837
+ get ruleIndex() { return MalloyTagParser.RULE_identifier; }
838
+ // @Override
839
+ accept(visitor) {
840
+ if (visitor.visitIdentifier) {
841
+ return visitor.visitIdentifier(this);
842
+ }
843
+ else {
844
+ return visitor.visitChildren(this);
845
+ }
846
+ }
847
+ }
848
+ exports.IdentifierContext = IdentifierContext;
792
849
  class PropNameContext extends ParserRuleContext_1.ParserRuleContext {
793
- string(i) {
850
+ identifier(i) {
794
851
  if (i === undefined) {
795
- return this.getRuleContexts(StringContext);
852
+ return this.getRuleContexts(IdentifierContext);
796
853
  }
797
854
  else {
798
- return this.getRuleContext(i, StringContext);
855
+ return this.getRuleContext(i, IdentifierContext);
799
856
  }
800
857
  }
801
858
  DOT(i) {
@@ -6,6 +6,7 @@ import { TagDefContext } from "./MalloyTagParser";
6
6
  import { TagLineContext } from "./MalloyTagParser";
7
7
  import { TagSpecContext } from "./MalloyTagParser";
8
8
  import { StringContext } from "./MalloyTagParser";
9
+ import { IdentifierContext } from "./MalloyTagParser";
9
10
  import { PropNameContext } from "./MalloyTagParser";
10
11
  import { EqValueContext } from "./MalloyTagParser";
11
12
  import { ArrayElementContext } from "./MalloyTagParser";
@@ -66,6 +67,12 @@ export interface MalloyTagVisitor<Result> extends ParseTreeVisitor<Result> {
66
67
  * @return the visitor result
67
68
  */
68
69
  visitString?: (ctx: StringContext) => Result;
70
+ /**
71
+ * Visit a parse tree produced by `MalloyTagParser.identifier`.
72
+ * @param ctx the parse tree
73
+ * @return the visitor result
74
+ */
75
+ visitIdentifier?: (ctx: IdentifierContext) => Result;
69
76
  /**
70
77
  * Visit a parse tree produced by `MalloyTagParser.propName`.
71
78
  * @param ctx the parse tree