@malloydata/malloy 0.0.233 → 0.0.234-dev250202180101
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/dist/lang/lib/Malloy/MalloyTagLexer.d.ts +20 -19
- package/dist/lang/lib/Malloy/MalloyTagLexer.js +303 -297
- package/dist/lang/lib/Malloy/MalloyTagParser.d.ts +25 -19
- package/dist/lang/lib/Malloy/MalloyTagParser.js +134 -105
- package/dist/lang/lib/Malloy/MalloyTagVisitor.d.ts +8 -0
- package/dist/tags.js +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -7,25 +7,26 @@ import { TokenStream } from "antlr4ts/TokenStream";
|
|
|
7
7
|
import { Vocabulary } from "antlr4ts/Vocabulary";
|
|
8
8
|
import { MalloyTagVisitor } from "./MalloyTagVisitor";
|
|
9
9
|
export declare class MalloyTagParser extends Parser {
|
|
10
|
-
static readonly
|
|
11
|
-
static readonly
|
|
12
|
-
static readonly
|
|
13
|
-
static readonly
|
|
14
|
-
static readonly
|
|
15
|
-
static readonly
|
|
16
|
-
static readonly
|
|
17
|
-
static readonly
|
|
18
|
-
static readonly
|
|
19
|
-
static readonly
|
|
20
|
-
static readonly
|
|
21
|
-
static readonly
|
|
22
|
-
static readonly
|
|
23
|
-
static readonly
|
|
24
|
-
static readonly
|
|
25
|
-
static readonly
|
|
26
|
-
static readonly
|
|
27
|
-
static readonly
|
|
28
|
-
static readonly
|
|
10
|
+
static readonly MINUS_DOTTY = 1;
|
|
11
|
+
static readonly DOTTY = 2;
|
|
12
|
+
static readonly DOT = 3;
|
|
13
|
+
static readonly MINUS = 4;
|
|
14
|
+
static readonly EQ = 5;
|
|
15
|
+
static readonly RF_BEG = 6;
|
|
16
|
+
static readonly RF_END = 7;
|
|
17
|
+
static readonly PR_BEG = 8;
|
|
18
|
+
static readonly PR_END = 9;
|
|
19
|
+
static readonly AR_BEG = 10;
|
|
20
|
+
static readonly COMMA = 11;
|
|
21
|
+
static readonly AR_END = 12;
|
|
22
|
+
static readonly SQ_STRING = 13;
|
|
23
|
+
static readonly DQ_STRING = 14;
|
|
24
|
+
static readonly BQ_STRING = 15;
|
|
25
|
+
static readonly NUMERIC_LITERAL = 16;
|
|
26
|
+
static readonly BARE_STRING = 17;
|
|
27
|
+
static readonly COMMENT = 18;
|
|
28
|
+
static readonly WHITE_SPACE = 19;
|
|
29
|
+
static readonly UNEXPECTED_CHAR = 20;
|
|
29
30
|
static readonly RULE_tagLine = 0;
|
|
30
31
|
static readonly RULE_tagSpec = 1;
|
|
31
32
|
static readonly RULE_string = 2;
|
|
@@ -101,6 +102,11 @@ export declare class TagDefContext extends TagSpecContext {
|
|
|
101
102
|
constructor(ctx: TagSpecContext);
|
|
102
103
|
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
103
104
|
}
|
|
105
|
+
export declare class TagEmptyContext extends TagSpecContext {
|
|
106
|
+
MINUS_DOTTY(): TerminalNode;
|
|
107
|
+
constructor(ctx: TagSpecContext);
|
|
108
|
+
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
109
|
+
}
|
|
104
110
|
export declare class StringContext extends ParserRuleContext {
|
|
105
111
|
SQ_STRING(): TerminalNode | undefined;
|
|
106
112
|
DQ_STRING(): TerminalNode | undefined;
|
|
@@ -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.IdentifierContext = 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.TagEmptyContext = 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");
|
|
@@ -67,7 +67,7 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
67
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.BQ_STRING) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
|
|
70
|
+
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.MINUS_DOTTY) | (1 << MalloyTagParser.MINUS) | (1 << MalloyTagParser.BQ_STRING) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
|
|
71
71
|
{
|
|
72
72
|
{
|
|
73
73
|
this.state = 20;
|
|
@@ -103,7 +103,7 @@ 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 =
|
|
106
|
+
this.state = 49;
|
|
107
107
|
this._errHandler.sync(this);
|
|
108
108
|
switch (this.interpreter.adaptivePredict(this._input, 4, this._ctx)) {
|
|
109
109
|
case 1:
|
|
@@ -175,6 +175,14 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
175
175
|
this.propName();
|
|
176
176
|
}
|
|
177
177
|
break;
|
|
178
|
+
case 5:
|
|
179
|
+
_localctx = new TagEmptyContext(_localctx);
|
|
180
|
+
this.enterOuterAlt(_localctx, 5);
|
|
181
|
+
{
|
|
182
|
+
this.state = 48;
|
|
183
|
+
this.match(MalloyTagParser.MINUS_DOTTY);
|
|
184
|
+
}
|
|
185
|
+
break;
|
|
178
186
|
}
|
|
179
187
|
}
|
|
180
188
|
catch (re) {
|
|
@@ -200,7 +208,7 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
200
208
|
try {
|
|
201
209
|
this.enterOuterAlt(_localctx, 1);
|
|
202
210
|
{
|
|
203
|
-
this.state =
|
|
211
|
+
this.state = 51;
|
|
204
212
|
_la = this._input.LA(1);
|
|
205
213
|
if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.SQ_STRING) | (1 << MalloyTagParser.DQ_STRING) | (1 << MalloyTagParser.NUMERIC_LITERAL) | (1 << MalloyTagParser.BARE_STRING))) !== 0))) {
|
|
206
214
|
this._errHandler.recoverInline(this);
|
|
@@ -237,7 +245,7 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
237
245
|
try {
|
|
238
246
|
this.enterOuterAlt(_localctx, 1);
|
|
239
247
|
{
|
|
240
|
-
this.state =
|
|
248
|
+
this.state = 53;
|
|
241
249
|
_la = this._input.LA(1);
|
|
242
250
|
if (!(_la === MalloyTagParser.BQ_STRING || _la === MalloyTagParser.BARE_STRING)) {
|
|
243
251
|
this._errHandler.recoverInline(this);
|
|
@@ -274,21 +282,21 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
274
282
|
try {
|
|
275
283
|
this.enterOuterAlt(_localctx, 1);
|
|
276
284
|
{
|
|
277
|
-
this.state =
|
|
285
|
+
this.state = 55;
|
|
278
286
|
this.identifier();
|
|
279
|
-
this.state =
|
|
287
|
+
this.state = 60;
|
|
280
288
|
this._errHandler.sync(this);
|
|
281
289
|
_la = this._input.LA(1);
|
|
282
290
|
while (_la === MalloyTagParser.DOT) {
|
|
283
291
|
{
|
|
284
292
|
{
|
|
285
|
-
this.state = 55;
|
|
286
|
-
this.match(MalloyTagParser.DOT);
|
|
287
293
|
this.state = 56;
|
|
294
|
+
this.match(MalloyTagParser.DOT);
|
|
295
|
+
this.state = 57;
|
|
288
296
|
this.identifier();
|
|
289
297
|
}
|
|
290
298
|
}
|
|
291
|
-
this.state =
|
|
299
|
+
this.state = 62;
|
|
292
300
|
this._errHandler.sync(this);
|
|
293
301
|
_la = this._input.LA(1);
|
|
294
302
|
}
|
|
@@ -314,7 +322,7 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
314
322
|
let _localctx = new EqValueContext(this._ctx, this.state);
|
|
315
323
|
this.enterRule(_localctx, 10, MalloyTagParser.RULE_eqValue);
|
|
316
324
|
try {
|
|
317
|
-
this.state =
|
|
325
|
+
this.state = 66;
|
|
318
326
|
this._errHandler.sync(this);
|
|
319
327
|
switch (this._input.LA(1)) {
|
|
320
328
|
case MalloyTagParser.SQ_STRING:
|
|
@@ -323,21 +331,21 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
323
331
|
case MalloyTagParser.BARE_STRING:
|
|
324
332
|
this.enterOuterAlt(_localctx, 1);
|
|
325
333
|
{
|
|
326
|
-
this.state =
|
|
334
|
+
this.state = 63;
|
|
327
335
|
this.string();
|
|
328
336
|
}
|
|
329
337
|
break;
|
|
330
338
|
case MalloyTagParser.AR_BEG:
|
|
331
339
|
this.enterOuterAlt(_localctx, 2);
|
|
332
340
|
{
|
|
333
|
-
this.state =
|
|
341
|
+
this.state = 64;
|
|
334
342
|
this.arrayValue();
|
|
335
343
|
}
|
|
336
344
|
break;
|
|
337
345
|
case MalloyTagParser.RF_BEG:
|
|
338
346
|
this.enterOuterAlt(_localctx, 3);
|
|
339
347
|
{
|
|
340
|
-
this.state =
|
|
348
|
+
this.state = 65;
|
|
341
349
|
this.reference();
|
|
342
350
|
}
|
|
343
351
|
break;
|
|
@@ -366,7 +374,7 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
366
374
|
this.enterRule(_localctx, 12, MalloyTagParser.RULE_arrayElement);
|
|
367
375
|
let _la;
|
|
368
376
|
try {
|
|
369
|
-
this.state =
|
|
377
|
+
this.state = 75;
|
|
370
378
|
this._errHandler.sync(this);
|
|
371
379
|
switch (this._input.LA(1)) {
|
|
372
380
|
case MalloyTagParser.SQ_STRING:
|
|
@@ -375,14 +383,14 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
375
383
|
case MalloyTagParser.BARE_STRING:
|
|
376
384
|
this.enterOuterAlt(_localctx, 1);
|
|
377
385
|
{
|
|
378
|
-
this.state =
|
|
386
|
+
this.state = 68;
|
|
379
387
|
this.string();
|
|
380
|
-
this.state =
|
|
388
|
+
this.state = 70;
|
|
381
389
|
this._errHandler.sync(this);
|
|
382
390
|
_la = this._input.LA(1);
|
|
383
391
|
if (_la === MalloyTagParser.PR_BEG) {
|
|
384
392
|
{
|
|
385
|
-
this.state =
|
|
393
|
+
this.state = 69;
|
|
386
394
|
this.properties();
|
|
387
395
|
}
|
|
388
396
|
}
|
|
@@ -391,21 +399,21 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
391
399
|
case MalloyTagParser.PR_BEG:
|
|
392
400
|
this.enterOuterAlt(_localctx, 2);
|
|
393
401
|
{
|
|
394
|
-
this.state =
|
|
402
|
+
this.state = 72;
|
|
395
403
|
this.properties();
|
|
396
404
|
}
|
|
397
405
|
break;
|
|
398
406
|
case MalloyTagParser.AR_BEG:
|
|
399
407
|
this.enterOuterAlt(_localctx, 3);
|
|
400
408
|
{
|
|
401
|
-
this.state =
|
|
409
|
+
this.state = 73;
|
|
402
410
|
this.arrayValue();
|
|
403
411
|
}
|
|
404
412
|
break;
|
|
405
413
|
case MalloyTagParser.RF_BEG:
|
|
406
414
|
this.enterOuterAlt(_localctx, 4);
|
|
407
415
|
{
|
|
408
|
-
this.state =
|
|
416
|
+
this.state = 74;
|
|
409
417
|
this.reference();
|
|
410
418
|
}
|
|
411
419
|
break;
|
|
@@ -435,11 +443,11 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
435
443
|
try {
|
|
436
444
|
this.enterOuterAlt(_localctx, 1);
|
|
437
445
|
{
|
|
438
|
-
this.state = 76;
|
|
439
|
-
this.match(MalloyTagParser.RF_BEG);
|
|
440
446
|
this.state = 77;
|
|
441
|
-
this.
|
|
447
|
+
this.match(MalloyTagParser.RF_BEG);
|
|
442
448
|
this.state = 78;
|
|
449
|
+
this.propName();
|
|
450
|
+
this.state = 79;
|
|
443
451
|
this.match(MalloyTagParser.RF_END);
|
|
444
452
|
}
|
|
445
453
|
}
|
|
@@ -467,38 +475,38 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
467
475
|
let _alt;
|
|
468
476
|
this.enterOuterAlt(_localctx, 1);
|
|
469
477
|
{
|
|
470
|
-
this.state = 80;
|
|
471
|
-
this.match(MalloyTagParser.AR_BEG);
|
|
472
478
|
this.state = 81;
|
|
479
|
+
this.match(MalloyTagParser.AR_BEG);
|
|
480
|
+
this.state = 82;
|
|
473
481
|
this.arrayElement();
|
|
474
|
-
this.state =
|
|
482
|
+
this.state = 87;
|
|
475
483
|
this._errHandler.sync(this);
|
|
476
484
|
_alt = this.interpreter.adaptivePredict(this._input, 9, this._ctx);
|
|
477
485
|
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
|
|
478
486
|
if (_alt === 1) {
|
|
479
487
|
{
|
|
480
488
|
{
|
|
481
|
-
this.state = 82;
|
|
482
|
-
this.match(MalloyTagParser.COMMA);
|
|
483
489
|
this.state = 83;
|
|
490
|
+
this.match(MalloyTagParser.COMMA);
|
|
491
|
+
this.state = 84;
|
|
484
492
|
this.arrayElement();
|
|
485
493
|
}
|
|
486
494
|
}
|
|
487
495
|
}
|
|
488
|
-
this.state =
|
|
496
|
+
this.state = 89;
|
|
489
497
|
this._errHandler.sync(this);
|
|
490
498
|
_alt = this.interpreter.adaptivePredict(this._input, 9, this._ctx);
|
|
491
499
|
}
|
|
492
|
-
this.state =
|
|
500
|
+
this.state = 91;
|
|
493
501
|
this._errHandler.sync(this);
|
|
494
502
|
_la = this._input.LA(1);
|
|
495
503
|
if (_la === MalloyTagParser.COMMA) {
|
|
496
504
|
{
|
|
497
|
-
this.state =
|
|
505
|
+
this.state = 90;
|
|
498
506
|
this.match(MalloyTagParser.COMMA);
|
|
499
507
|
}
|
|
500
508
|
}
|
|
501
|
-
this.state =
|
|
509
|
+
this.state = 93;
|
|
502
510
|
this.match(MalloyTagParser.AR_END);
|
|
503
511
|
}
|
|
504
512
|
}
|
|
@@ -525,34 +533,35 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
525
533
|
try {
|
|
526
534
|
this.enterOuterAlt(_localctx, 1);
|
|
527
535
|
{
|
|
528
|
-
this.state =
|
|
536
|
+
this.state = 95;
|
|
529
537
|
this.match(MalloyTagParser.PR_BEG);
|
|
530
|
-
this.state =
|
|
538
|
+
this.state = 103;
|
|
531
539
|
this._errHandler.sync(this);
|
|
532
540
|
switch (this._input.LA(1)) {
|
|
533
541
|
case MalloyTagParser.DOTTY:
|
|
534
542
|
{
|
|
535
|
-
this.state =
|
|
543
|
+
this.state = 96;
|
|
536
544
|
this.match(MalloyTagParser.DOTTY);
|
|
537
545
|
}
|
|
538
546
|
break;
|
|
547
|
+
case MalloyTagParser.MINUS_DOTTY:
|
|
539
548
|
case MalloyTagParser.MINUS:
|
|
540
549
|
case MalloyTagParser.PR_END:
|
|
541
550
|
case MalloyTagParser.BQ_STRING:
|
|
542
551
|
case MalloyTagParser.BARE_STRING:
|
|
543
552
|
{
|
|
544
553
|
{
|
|
545
|
-
this.state =
|
|
554
|
+
this.state = 100;
|
|
546
555
|
this._errHandler.sync(this);
|
|
547
556
|
_la = this._input.LA(1);
|
|
548
|
-
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.MINUS) | (1 << MalloyTagParser.BQ_STRING) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
|
|
557
|
+
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.MINUS_DOTTY) | (1 << MalloyTagParser.MINUS) | (1 << MalloyTagParser.BQ_STRING) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
|
|
549
558
|
{
|
|
550
559
|
{
|
|
551
|
-
this.state =
|
|
560
|
+
this.state = 97;
|
|
552
561
|
this.tagSpec();
|
|
553
562
|
}
|
|
554
563
|
}
|
|
555
|
-
this.state =
|
|
564
|
+
this.state = 102;
|
|
556
565
|
this._errHandler.sync(this);
|
|
557
566
|
_la = this._input.LA(1);
|
|
558
567
|
}
|
|
@@ -562,7 +571,7 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
562
571
|
default:
|
|
563
572
|
throw new NoViableAltException_1.NoViableAltException(this);
|
|
564
573
|
}
|
|
565
|
-
this.state =
|
|
574
|
+
this.state = 105;
|
|
566
575
|
this.match(MalloyTagParser.PR_END);
|
|
567
576
|
}
|
|
568
577
|
}
|
|
@@ -589,25 +598,26 @@ class MalloyTagParser extends Parser_1.Parser {
|
|
|
589
598
|
}
|
|
590
599
|
}
|
|
591
600
|
exports.MalloyTagParser = MalloyTagParser;
|
|
592
|
-
MalloyTagParser.
|
|
593
|
-
MalloyTagParser.
|
|
594
|
-
MalloyTagParser.
|
|
595
|
-
MalloyTagParser.
|
|
596
|
-
MalloyTagParser.
|
|
597
|
-
MalloyTagParser.
|
|
598
|
-
MalloyTagParser.
|
|
599
|
-
MalloyTagParser.
|
|
600
|
-
MalloyTagParser.
|
|
601
|
-
MalloyTagParser.
|
|
602
|
-
MalloyTagParser.
|
|
603
|
-
MalloyTagParser.
|
|
604
|
-
MalloyTagParser.
|
|
605
|
-
MalloyTagParser.
|
|
606
|
-
MalloyTagParser.
|
|
607
|
-
MalloyTagParser.
|
|
608
|
-
MalloyTagParser.
|
|
609
|
-
MalloyTagParser.
|
|
610
|
-
MalloyTagParser.
|
|
601
|
+
MalloyTagParser.MINUS_DOTTY = 1;
|
|
602
|
+
MalloyTagParser.DOTTY = 2;
|
|
603
|
+
MalloyTagParser.DOT = 3;
|
|
604
|
+
MalloyTagParser.MINUS = 4;
|
|
605
|
+
MalloyTagParser.EQ = 5;
|
|
606
|
+
MalloyTagParser.RF_BEG = 6;
|
|
607
|
+
MalloyTagParser.RF_END = 7;
|
|
608
|
+
MalloyTagParser.PR_BEG = 8;
|
|
609
|
+
MalloyTagParser.PR_END = 9;
|
|
610
|
+
MalloyTagParser.AR_BEG = 10;
|
|
611
|
+
MalloyTagParser.COMMA = 11;
|
|
612
|
+
MalloyTagParser.AR_END = 12;
|
|
613
|
+
MalloyTagParser.SQ_STRING = 13;
|
|
614
|
+
MalloyTagParser.DQ_STRING = 14;
|
|
615
|
+
MalloyTagParser.BQ_STRING = 15;
|
|
616
|
+
MalloyTagParser.NUMERIC_LITERAL = 16;
|
|
617
|
+
MalloyTagParser.BARE_STRING = 17;
|
|
618
|
+
MalloyTagParser.COMMENT = 18;
|
|
619
|
+
MalloyTagParser.WHITE_SPACE = 19;
|
|
620
|
+
MalloyTagParser.UNEXPECTED_CHAR = 20;
|
|
611
621
|
MalloyTagParser.RULE_tagLine = 0;
|
|
612
622
|
MalloyTagParser.RULE_tagSpec = 1;
|
|
613
623
|
MalloyTagParser.RULE_string = 2;
|
|
@@ -624,59 +634,61 @@ MalloyTagParser.ruleNames = [
|
|
|
624
634
|
"reference", "arrayValue", "properties",
|
|
625
635
|
];
|
|
626
636
|
MalloyTagParser._LITERAL_NAMES = [
|
|
627
|
-
undefined, "'...'", "'.'", "'-'", "'='", "'$('", "')'", "'{'",
|
|
628
|
-
"'['", "','", "']'",
|
|
637
|
+
undefined, "'-...'", "'...'", "'.'", "'-'", "'='", "'$('", "')'", "'{'",
|
|
638
|
+
"'}'", "'['", "','", "']'",
|
|
629
639
|
];
|
|
630
640
|
MalloyTagParser._SYMBOLIC_NAMES = [
|
|
631
|
-
undefined, "DOTTY", "DOT", "MINUS", "EQ", "RF_BEG", "RF_END",
|
|
632
|
-
"PR_END", "AR_BEG", "COMMA", "AR_END", "SQ_STRING", "DQ_STRING",
|
|
633
|
-
"NUMERIC_LITERAL", "BARE_STRING", "COMMENT", "WHITE_SPACE",
|
|
641
|
+
undefined, "MINUS_DOTTY", "DOTTY", "DOT", "MINUS", "EQ", "RF_BEG", "RF_END",
|
|
642
|
+
"PR_BEG", "PR_END", "AR_BEG", "COMMA", "AR_END", "SQ_STRING", "DQ_STRING",
|
|
643
|
+
"BQ_STRING", "NUMERIC_LITERAL", "BARE_STRING", "COMMENT", "WHITE_SPACE",
|
|
644
|
+
"UNEXPECTED_CHAR",
|
|
634
645
|
];
|
|
635
646
|
MalloyTagParser.VOCABULARY = new VocabularyImpl_1.VocabularyImpl(MalloyTagParser._LITERAL_NAMES, MalloyTagParser._SYMBOLIC_NAMES, []);
|
|
636
|
-
MalloyTagParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\
|
|
647
|
+
MalloyTagParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x16n\x04\x02" +
|
|
637
648
|
"\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07" +
|
|
638
649
|
"\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
650
|
"\f\x02\x0E\x02\x1B\v\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03\x03" +
|
|
640
651
|
"\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\
|
|
642
|
-
"\x03\x04\x03\x04\x03\x05\x03\x05\x03\x06\x03\x06\x03\x06\x07\x06
|
|
643
|
-
"\f\x06\x0E\x06
|
|
644
|
-
"\b\x05\
|
|
645
|
-
"\n\x03\n\x03\n\x03\n\x07\
|
|
646
|
-
"\x03\n\x03\v\x03\v\x03\v\x07\
|
|
647
|
-
"\v\x03\v\x02\x02\x02\f\x02\x02\x04\x02\x06\x02\b\x02\n\x02\f\x02
|
|
648
|
-
"\x10\x02\x12\x02\x14\x02\x02\x04\x04\x02\
|
|
649
|
-
"\
|
|
650
|
-
"\x02\x02\
|
|
651
|
-
"
|
|
652
|
-
"\x02\x02\x16\x18\x05\x04\x03\x02\x17\x16\x03\x02\x02\x02\x18
|
|
653
|
-
"\x02\x02\x19\x17\x03\x02\x02\x02\x19\x1A\x03\x02\x02\x02\x1A
|
|
654
|
-
"\x02\x02\x1B\x19\x03\x02\x02\x02\x1C\x1D\x07\x02\x02\x03\x1D
|
|
655
|
-
"\x02\x02\x1E\x1F\x05\n\x06\x02\x1F \x07\
|
|
656
|
-
"
|
|
657
|
-
"$%\x05\n\x06\x02%\'\x07\
|
|
658
|
-
"\'(\x03\x02\x02\x02()\x03\x02\x02\x02)*\x05\x14\v\x02*
|
|
659
|
-
"+,\x05\n\x06\x02,-\x05\x14\v\x02-
|
|
660
|
-
"
|
|
661
|
-
"
|
|
662
|
-
"\
|
|
663
|
-
"\x02\
|
|
664
|
-
"\x05\x02
|
|
665
|
-
"\x02\x02
|
|
666
|
-
"\
|
|
667
|
-
"\x02\
|
|
668
|
-
"\
|
|
669
|
-
"\
|
|
670
|
-
"\
|
|
671
|
-
"\
|
|
672
|
-
"\
|
|
673
|
-
"\
|
|
674
|
-
"\x02\x02
|
|
675
|
-
"\x02\x02
|
|
676
|
-
"\x02\
|
|
677
|
-
"\
|
|
678
|
-
"\x02\
|
|
679
|
-
"\x02\x02\x02\x0F\x19\"\'/
|
|
652
|
+
"\x03\x03\x03\x03\x03\x03\x03\x03\x05\x030\n\x03\x03\x03\x03\x03\x05\x03" +
|
|
653
|
+
"4\n\x03\x03\x04\x03\x04\x03\x05\x03\x05\x03\x06\x03\x06\x03\x06\x07\x06" +
|
|
654
|
+
"=\n\x06\f\x06\x0E\x06@\v\x06\x03\x07\x03\x07\x03\x07\x05\x07E\n\x07\x03" +
|
|
655
|
+
"\b\x03\b\x05\bI\n\b\x03\b\x03\b\x03\b\x05\bN\n\b\x03\t\x03\t\x03\t\x03" +
|
|
656
|
+
"\t\x03\n\x03\n\x03\n\x03\n\x07\nX\n\n\f\n\x0E\n[\v\n\x03\n\x05\n^\n\n" +
|
|
657
|
+
"\x03\n\x03\n\x03\v\x03\v\x03\v\x07\ve\n\v\f\v\x0E\vh\v\v\x05\vj\n\v\x03" +
|
|
658
|
+
"\v\x03\v\x03\v\x02\x02\x02\f\x02\x02\x04\x02\x06\x02\b\x02\n\x02\f\x02" +
|
|
659
|
+
"\x0E\x02\x10\x02\x12\x02\x14\x02\x02\x04\x04\x02\x0F\x10\x12\x13\x04\x02" +
|
|
660
|
+
"\x11\x11\x13\x13\x02v\x02\x19\x03\x02\x02\x02\x043\x03\x02\x02\x02\x06" +
|
|
661
|
+
"5\x03\x02\x02\x02\b7\x03\x02\x02\x02\n9\x03\x02\x02\x02\fD\x03\x02\x02" +
|
|
662
|
+
"\x02\x0EM\x03\x02\x02\x02\x10O\x03\x02\x02\x02\x12S\x03\x02\x02\x02\x14" +
|
|
663
|
+
"a\x03\x02\x02\x02\x16\x18\x05\x04\x03\x02\x17\x16\x03\x02\x02\x02\x18" +
|
|
664
|
+
"\x1B\x03\x02\x02\x02\x19\x17\x03\x02\x02\x02\x19\x1A\x03\x02\x02\x02\x1A" +
|
|
665
|
+
"\x1C\x03\x02\x02\x02\x1B\x19\x03\x02\x02\x02\x1C\x1D\x07\x02\x02\x03\x1D" +
|
|
666
|
+
"\x03\x03\x02\x02\x02\x1E\x1F\x05\n\x06\x02\x1F \x07\x07\x02\x02 \"\x05" +
|
|
667
|
+
"\f\x07\x02!#\x05\x14\v\x02\"!\x03\x02\x02\x02\"#\x03\x02\x02\x02#4\x03" +
|
|
668
|
+
"\x02\x02\x02$%\x05\n\x06\x02%\'\x07\x07\x02\x02&(\x07\x04\x02\x02\'&\x03" +
|
|
669
|
+
"\x02\x02\x02\'(\x03\x02\x02\x02()\x03\x02\x02\x02)*\x05\x14\v\x02*4\x03" +
|
|
670
|
+
"\x02\x02\x02+,\x05\n\x06\x02,-\x05\x14\v\x02-4\x03\x02\x02\x02.0\x07\x06" +
|
|
671
|
+
"\x02\x02/.\x03\x02\x02\x02/0\x03\x02\x02\x0201\x03\x02\x02\x0214\x05\n" +
|
|
672
|
+
"\x06\x0224\x07\x03\x02\x023\x1E\x03\x02\x02\x023$\x03\x02\x02\x023+\x03" +
|
|
673
|
+
"\x02\x02\x023/\x03\x02\x02\x0232\x03\x02\x02\x024\x05\x03\x02\x02\x02" +
|
|
674
|
+
"56\t\x02\x02\x026\x07\x03\x02\x02\x0278\t\x03\x02\x028\t\x03\x02\x02\x02" +
|
|
675
|
+
"9>\x05\b\x05\x02:;\x07\x05\x02\x02;=\x05\b\x05\x02<:\x03\x02\x02\x02=" +
|
|
676
|
+
"@\x03\x02\x02\x02><\x03\x02\x02\x02>?\x03\x02\x02\x02?\v\x03\x02\x02\x02" +
|
|
677
|
+
"@>\x03\x02\x02\x02AE\x05\x06\x04\x02BE\x05\x12\n\x02CE\x05\x10\t\x02D" +
|
|
678
|
+
"A\x03\x02\x02\x02DB\x03\x02\x02\x02DC\x03\x02\x02\x02E\r\x03\x02\x02\x02" +
|
|
679
|
+
"FH\x05\x06\x04\x02GI\x05\x14\v\x02HG\x03\x02\x02\x02HI\x03\x02\x02\x02" +
|
|
680
|
+
"IN\x03\x02\x02\x02JN\x05\x14\v\x02KN\x05\x12\n\x02LN\x05\x10\t\x02MF\x03" +
|
|
681
|
+
"\x02\x02\x02MJ\x03\x02\x02\x02MK\x03\x02\x02\x02ML\x03\x02\x02\x02N\x0F" +
|
|
682
|
+
"\x03\x02\x02\x02OP\x07\b\x02\x02PQ\x05\n\x06\x02QR\x07\t\x02\x02R\x11" +
|
|
683
|
+
"\x03\x02\x02\x02ST\x07\f\x02\x02TY\x05\x0E\b\x02UV\x07\r\x02\x02VX\x05" +
|
|
684
|
+
"\x0E\b\x02WU\x03\x02\x02\x02X[\x03\x02\x02\x02YW\x03\x02\x02\x02YZ\x03" +
|
|
685
|
+
"\x02\x02\x02Z]\x03\x02\x02\x02[Y\x03\x02\x02\x02\\^\x07\r\x02\x02]\\\x03" +
|
|
686
|
+
"\x02\x02\x02]^\x03\x02\x02\x02^_\x03\x02\x02\x02_`\x07\x0E\x02\x02`\x13" +
|
|
687
|
+
"\x03\x02\x02\x02ai\x07\n\x02\x02bj\x07\x04\x02\x02ce\x05\x04\x03\x02d" +
|
|
688
|
+
"c\x03\x02\x02\x02eh\x03\x02\x02\x02fd\x03\x02\x02\x02fg\x03\x02\x02\x02" +
|
|
689
|
+
"gj\x03\x02\x02\x02hf\x03\x02\x02\x02ib\x03\x02\x02\x02if\x03\x02\x02\x02" +
|
|
690
|
+
"jk\x03\x02\x02\x02kl\x07\v\x02\x02l\x15\x03\x02\x02\x02\x0F\x19\"\'/3" +
|
|
691
|
+
">DHMY]fi";
|
|
680
692
|
class TagLineContext extends ParserRuleContext_1.ParserRuleContext {
|
|
681
693
|
EOF() { return this.getToken(MalloyTagParser.EOF, 0); }
|
|
682
694
|
tagSpec(i) {
|
|
@@ -806,6 +818,23 @@ class TagDefContext extends TagSpecContext {
|
|
|
806
818
|
}
|
|
807
819
|
}
|
|
808
820
|
exports.TagDefContext = TagDefContext;
|
|
821
|
+
class TagEmptyContext extends TagSpecContext {
|
|
822
|
+
MINUS_DOTTY() { return this.getToken(MalloyTagParser.MINUS_DOTTY, 0); }
|
|
823
|
+
constructor(ctx) {
|
|
824
|
+
super(ctx.parent, ctx.invokingState);
|
|
825
|
+
this.copyFrom(ctx);
|
|
826
|
+
}
|
|
827
|
+
// @Override
|
|
828
|
+
accept(visitor) {
|
|
829
|
+
if (visitor.visitTagEmpty) {
|
|
830
|
+
return visitor.visitTagEmpty(this);
|
|
831
|
+
}
|
|
832
|
+
else {
|
|
833
|
+
return visitor.visitChildren(this);
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
exports.TagEmptyContext = TagEmptyContext;
|
|
809
838
|
class StringContext extends ParserRuleContext_1.ParserRuleContext {
|
|
810
839
|
SQ_STRING() { return this.tryGetToken(MalloyTagParser.SQ_STRING, 0); }
|
|
811
840
|
DQ_STRING() { return this.tryGetToken(MalloyTagParser.DQ_STRING, 0); }
|
|
@@ -3,6 +3,7 @@ import { TagEqContext } from "./MalloyTagParser";
|
|
|
3
3
|
import { TagReplacePropertiesContext } from "./MalloyTagParser";
|
|
4
4
|
import { TagUpdatePropertiesContext } from "./MalloyTagParser";
|
|
5
5
|
import { TagDefContext } from "./MalloyTagParser";
|
|
6
|
+
import { TagEmptyContext } from "./MalloyTagParser";
|
|
6
7
|
import { TagLineContext } from "./MalloyTagParser";
|
|
7
8
|
import { TagSpecContext } from "./MalloyTagParser";
|
|
8
9
|
import { StringContext } from "./MalloyTagParser";
|
|
@@ -49,6 +50,13 @@ export interface MalloyTagVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
49
50
|
* @return the visitor result
|
|
50
51
|
*/
|
|
51
52
|
visitTagDef?: (ctx: TagDefContext) => Result;
|
|
53
|
+
/**
|
|
54
|
+
* Visit a parse tree produced by the `tagEmpty`
|
|
55
|
+
* labeled alternative in `MalloyTagParser.tagSpec`.
|
|
56
|
+
* @param ctx the parse tree
|
|
57
|
+
* @return the visitor result
|
|
58
|
+
*/
|
|
59
|
+
visitTagEmpty?: (ctx: TagEmptyContext) => Result;
|
|
52
60
|
/**
|
|
53
61
|
* Visit a parse tree produced by `MalloyTagParser.tagLine`.
|
|
54
62
|
* @param ctx the parse tree
|
package/dist/tags.js
CHANGED
|
@@ -503,5 +503,10 @@ class TaglineParser extends tree_1.AbstractParseTreeVisitor {
|
|
|
503
503
|
}
|
|
504
504
|
return buildOn;
|
|
505
505
|
}
|
|
506
|
+
visitTagEmpty(ctx) {
|
|
507
|
+
const tagList = ctx['buildOn'];
|
|
508
|
+
tagList.properties = {};
|
|
509
|
+
return tagList;
|
|
510
|
+
}
|
|
506
511
|
}
|
|
507
512
|
//# sourceMappingURL=tags.js.map
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const MALLOY_VERSION = "0.0.
|
|
1
|
+
export declare const MALLOY_VERSION = "0.0.234";
|
package/dist/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MALLOY_VERSION = void 0;
|
|
4
4
|
// generated with 'generate-version-file' script; do not edit manually
|
|
5
|
-
exports.MALLOY_VERSION = '0.0.
|
|
5
|
+
exports.MALLOY_VERSION = '0.0.234';
|
|
6
6
|
//# sourceMappingURL=version.js.map
|