@malloydata/malloy 0.0.237-dev250224215546 → 0.0.237-dev250225144145
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/annotation.d.ts +15 -0
- package/dist/annotation.js +86 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -3
- package/dist/lang/ast/types/annotation-elements.d.ts +1 -1
- package/dist/lang/ast/types/annotation-elements.js +2 -2
- package/dist/lang/ast/types/malloy-element.d.ts +1 -1
- package/dist/lang/ast/types/malloy-element.js +2 -2
- package/dist/lang/malloy-to-ast.d.ts +1 -1
- package/dist/lang/malloy-to-ast.js +2 -2
- package/dist/lang/parse-malloy.d.ts +1 -1
- package/dist/lang/parse-malloy.js +4 -3
- package/dist/lang/parse-utils.d.ts +0 -11
- package/dist/lang/parse-utils.js +4 -82
- package/dist/lang/test/literals.spec.js +0 -34
- package/dist/malloy.d.ts +13 -8
- package/dist/malloy.js +23 -23
- package/dist/model/malloy_query.d.ts +3 -1
- package/dist/model/malloy_query.js +18 -3
- package/dist/model/materialization/utils.js +2 -2
- package/dist/to_stable.d.ts +3 -0
- package/dist/to_stable.js +170 -0
- package/package.json +3 -1
- package/dist/lang/lib/Malloy/MalloyTagLexer.d.ts +0 -42
- package/dist/lang/lib/Malloy/MalloyTagLexer.js +0 -385
- package/dist/lang/lib/Malloy/MalloyTagParser.d.ts +0 -180
- package/dist/lang/lib/Malloy/MalloyTagParser.js +0 -1051
- package/dist/lang/lib/Malloy/MalloyTagVisitor.d.ts +0 -120
- package/dist/lang/lib/Malloy/MalloyTagVisitor.js +0 -4
- package/dist/tags.d.ts +0 -72
- package/dist/tags.js +0 -512
|
@@ -1,1051 +0,0 @@
|
|
|
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.IdentifierContext = exports.StringContext = exports.TagEmptyContext = 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
|
-
// @Override
|
|
41
|
-
// @NotNull
|
|
42
|
-
get vocabulary() {
|
|
43
|
-
return MalloyTagParser.VOCABULARY;
|
|
44
|
-
}
|
|
45
|
-
// tslint:enable:no-trailing-whitespace
|
|
46
|
-
// @Override
|
|
47
|
-
get grammarFileName() { return "MalloyTag.g4"; }
|
|
48
|
-
// @Override
|
|
49
|
-
get ruleNames() { return MalloyTagParser.ruleNames; }
|
|
50
|
-
// @Override
|
|
51
|
-
get serializedATN() { return MalloyTagParser._serializedATN; }
|
|
52
|
-
createFailedPredicateException(predicate, message) {
|
|
53
|
-
return new FailedPredicateException_1.FailedPredicateException(this, predicate, message);
|
|
54
|
-
}
|
|
55
|
-
constructor(input) {
|
|
56
|
-
super(input);
|
|
57
|
-
this._interp = new ParserATNSimulator_1.ParserATNSimulator(MalloyTagParser._ATN, this);
|
|
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 = 23;
|
|
68
|
-
this._errHandler.sync(this);
|
|
69
|
-
_la = this._input.LA(1);
|
|
70
|
-
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.MINUS_DOTTY) | (1 << MalloyTagParser.MINUS) | (1 << MalloyTagParser.BQ_STRING) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
|
|
71
|
-
{
|
|
72
|
-
{
|
|
73
|
-
this.state = 20;
|
|
74
|
-
this.tagSpec();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
this.state = 25;
|
|
78
|
-
this._errHandler.sync(this);
|
|
79
|
-
_la = this._input.LA(1);
|
|
80
|
-
}
|
|
81
|
-
this.state = 26;
|
|
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 = 49;
|
|
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 = 28;
|
|
114
|
-
this.propName();
|
|
115
|
-
this.state = 29;
|
|
116
|
-
this.match(MalloyTagParser.EQ);
|
|
117
|
-
this.state = 30;
|
|
118
|
-
this.eqValue();
|
|
119
|
-
this.state = 32;
|
|
120
|
-
this._errHandler.sync(this);
|
|
121
|
-
_la = this._input.LA(1);
|
|
122
|
-
if (_la === MalloyTagParser.PR_BEG) {
|
|
123
|
-
{
|
|
124
|
-
this.state = 31;
|
|
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 = 34;
|
|
135
|
-
this.propName();
|
|
136
|
-
this.state = 35;
|
|
137
|
-
this.match(MalloyTagParser.EQ);
|
|
138
|
-
this.state = 37;
|
|
139
|
-
this._errHandler.sync(this);
|
|
140
|
-
_la = this._input.LA(1);
|
|
141
|
-
if (_la === MalloyTagParser.DOTTY) {
|
|
142
|
-
{
|
|
143
|
-
this.state = 36;
|
|
144
|
-
this.match(MalloyTagParser.DOTTY);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
this.state = 39;
|
|
148
|
-
this.properties();
|
|
149
|
-
}
|
|
150
|
-
break;
|
|
151
|
-
case 3:
|
|
152
|
-
_localctx = new TagUpdatePropertiesContext(_localctx);
|
|
153
|
-
this.enterOuterAlt(_localctx, 3);
|
|
154
|
-
{
|
|
155
|
-
this.state = 41;
|
|
156
|
-
this.propName();
|
|
157
|
-
this.state = 42;
|
|
158
|
-
this.properties();
|
|
159
|
-
}
|
|
160
|
-
break;
|
|
161
|
-
case 4:
|
|
162
|
-
_localctx = new TagDefContext(_localctx);
|
|
163
|
-
this.enterOuterAlt(_localctx, 4);
|
|
164
|
-
{
|
|
165
|
-
this.state = 45;
|
|
166
|
-
this._errHandler.sync(this);
|
|
167
|
-
_la = this._input.LA(1);
|
|
168
|
-
if (_la === MalloyTagParser.MINUS) {
|
|
169
|
-
{
|
|
170
|
-
this.state = 44;
|
|
171
|
-
this.match(MalloyTagParser.MINUS);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
this.state = 47;
|
|
175
|
-
this.propName();
|
|
176
|
-
}
|
|
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;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
catch (re) {
|
|
189
|
-
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
190
|
-
_localctx.exception = re;
|
|
191
|
-
this._errHandler.reportError(this, re);
|
|
192
|
-
this._errHandler.recover(this, re);
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
throw re;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
finally {
|
|
199
|
-
this.exitRule();
|
|
200
|
-
}
|
|
201
|
-
return _localctx;
|
|
202
|
-
}
|
|
203
|
-
// @RuleVersion(0)
|
|
204
|
-
string() {
|
|
205
|
-
let _localctx = new StringContext(this._ctx, this.state);
|
|
206
|
-
this.enterRule(_localctx, 4, MalloyTagParser.RULE_string);
|
|
207
|
-
let _la;
|
|
208
|
-
try {
|
|
209
|
-
this.enterOuterAlt(_localctx, 1);
|
|
210
|
-
{
|
|
211
|
-
this.state = 51;
|
|
212
|
-
_la = this._input.LA(1);
|
|
213
|
-
if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.SQ_STRING) | (1 << MalloyTagParser.DQ_STRING) | (1 << MalloyTagParser.NUMERIC_LITERAL) | (1 << MalloyTagParser.BARE_STRING))) !== 0))) {
|
|
214
|
-
this._errHandler.recoverInline(this);
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
if (this._input.LA(1) === Token_1.Token.EOF) {
|
|
218
|
-
this.matchedEOF = true;
|
|
219
|
-
}
|
|
220
|
-
this._errHandler.reportMatch(this);
|
|
221
|
-
this.consume();
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
catch (re) {
|
|
226
|
-
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
227
|
-
_localctx.exception = re;
|
|
228
|
-
this._errHandler.reportError(this, re);
|
|
229
|
-
this._errHandler.recover(this, re);
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
throw re;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
finally {
|
|
236
|
-
this.exitRule();
|
|
237
|
-
}
|
|
238
|
-
return _localctx;
|
|
239
|
-
}
|
|
240
|
-
// @RuleVersion(0)
|
|
241
|
-
identifier() {
|
|
242
|
-
let _localctx = new IdentifierContext(this._ctx, this.state);
|
|
243
|
-
this.enterRule(_localctx, 6, MalloyTagParser.RULE_identifier);
|
|
244
|
-
let _la;
|
|
245
|
-
try {
|
|
246
|
-
this.enterOuterAlt(_localctx, 1);
|
|
247
|
-
{
|
|
248
|
-
this.state = 53;
|
|
249
|
-
_la = this._input.LA(1);
|
|
250
|
-
if (!(_la === MalloyTagParser.BQ_STRING || _la === MalloyTagParser.BARE_STRING)) {
|
|
251
|
-
this._errHandler.recoverInline(this);
|
|
252
|
-
}
|
|
253
|
-
else {
|
|
254
|
-
if (this._input.LA(1) === Token_1.Token.EOF) {
|
|
255
|
-
this.matchedEOF = true;
|
|
256
|
-
}
|
|
257
|
-
this._errHandler.reportMatch(this);
|
|
258
|
-
this.consume();
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
catch (re) {
|
|
263
|
-
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
264
|
-
_localctx.exception = re;
|
|
265
|
-
this._errHandler.reportError(this, re);
|
|
266
|
-
this._errHandler.recover(this, re);
|
|
267
|
-
}
|
|
268
|
-
else {
|
|
269
|
-
throw re;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
finally {
|
|
273
|
-
this.exitRule();
|
|
274
|
-
}
|
|
275
|
-
return _localctx;
|
|
276
|
-
}
|
|
277
|
-
// @RuleVersion(0)
|
|
278
|
-
propName() {
|
|
279
|
-
let _localctx = new PropNameContext(this._ctx, this.state);
|
|
280
|
-
this.enterRule(_localctx, 8, MalloyTagParser.RULE_propName);
|
|
281
|
-
let _la;
|
|
282
|
-
try {
|
|
283
|
-
this.enterOuterAlt(_localctx, 1);
|
|
284
|
-
{
|
|
285
|
-
this.state = 55;
|
|
286
|
-
this.identifier();
|
|
287
|
-
this.state = 60;
|
|
288
|
-
this._errHandler.sync(this);
|
|
289
|
-
_la = this._input.LA(1);
|
|
290
|
-
while (_la === MalloyTagParser.DOT) {
|
|
291
|
-
{
|
|
292
|
-
{
|
|
293
|
-
this.state = 56;
|
|
294
|
-
this.match(MalloyTagParser.DOT);
|
|
295
|
-
this.state = 57;
|
|
296
|
-
this.identifier();
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
this.state = 62;
|
|
300
|
-
this._errHandler.sync(this);
|
|
301
|
-
_la = this._input.LA(1);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
catch (re) {
|
|
306
|
-
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
307
|
-
_localctx.exception = re;
|
|
308
|
-
this._errHandler.reportError(this, re);
|
|
309
|
-
this._errHandler.recover(this, re);
|
|
310
|
-
}
|
|
311
|
-
else {
|
|
312
|
-
throw re;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
finally {
|
|
316
|
-
this.exitRule();
|
|
317
|
-
}
|
|
318
|
-
return _localctx;
|
|
319
|
-
}
|
|
320
|
-
// @RuleVersion(0)
|
|
321
|
-
eqValue() {
|
|
322
|
-
let _localctx = new EqValueContext(this._ctx, this.state);
|
|
323
|
-
this.enterRule(_localctx, 10, MalloyTagParser.RULE_eqValue);
|
|
324
|
-
try {
|
|
325
|
-
this.state = 66;
|
|
326
|
-
this._errHandler.sync(this);
|
|
327
|
-
switch (this._input.LA(1)) {
|
|
328
|
-
case MalloyTagParser.SQ_STRING:
|
|
329
|
-
case MalloyTagParser.DQ_STRING:
|
|
330
|
-
case MalloyTagParser.NUMERIC_LITERAL:
|
|
331
|
-
case MalloyTagParser.BARE_STRING:
|
|
332
|
-
this.enterOuterAlt(_localctx, 1);
|
|
333
|
-
{
|
|
334
|
-
this.state = 63;
|
|
335
|
-
this.string();
|
|
336
|
-
}
|
|
337
|
-
break;
|
|
338
|
-
case MalloyTagParser.AR_BEG:
|
|
339
|
-
this.enterOuterAlt(_localctx, 2);
|
|
340
|
-
{
|
|
341
|
-
this.state = 64;
|
|
342
|
-
this.arrayValue();
|
|
343
|
-
}
|
|
344
|
-
break;
|
|
345
|
-
case MalloyTagParser.RF_BEG:
|
|
346
|
-
this.enterOuterAlt(_localctx, 3);
|
|
347
|
-
{
|
|
348
|
-
this.state = 65;
|
|
349
|
-
this.reference();
|
|
350
|
-
}
|
|
351
|
-
break;
|
|
352
|
-
default:
|
|
353
|
-
throw new NoViableAltException_1.NoViableAltException(this);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
catch (re) {
|
|
357
|
-
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
358
|
-
_localctx.exception = re;
|
|
359
|
-
this._errHandler.reportError(this, re);
|
|
360
|
-
this._errHandler.recover(this, re);
|
|
361
|
-
}
|
|
362
|
-
else {
|
|
363
|
-
throw re;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
finally {
|
|
367
|
-
this.exitRule();
|
|
368
|
-
}
|
|
369
|
-
return _localctx;
|
|
370
|
-
}
|
|
371
|
-
// @RuleVersion(0)
|
|
372
|
-
arrayElement() {
|
|
373
|
-
let _localctx = new ArrayElementContext(this._ctx, this.state);
|
|
374
|
-
this.enterRule(_localctx, 12, MalloyTagParser.RULE_arrayElement);
|
|
375
|
-
let _la;
|
|
376
|
-
try {
|
|
377
|
-
this.state = 75;
|
|
378
|
-
this._errHandler.sync(this);
|
|
379
|
-
switch (this._input.LA(1)) {
|
|
380
|
-
case MalloyTagParser.SQ_STRING:
|
|
381
|
-
case MalloyTagParser.DQ_STRING:
|
|
382
|
-
case MalloyTagParser.NUMERIC_LITERAL:
|
|
383
|
-
case MalloyTagParser.BARE_STRING:
|
|
384
|
-
this.enterOuterAlt(_localctx, 1);
|
|
385
|
-
{
|
|
386
|
-
this.state = 68;
|
|
387
|
-
this.string();
|
|
388
|
-
this.state = 70;
|
|
389
|
-
this._errHandler.sync(this);
|
|
390
|
-
_la = this._input.LA(1);
|
|
391
|
-
if (_la === MalloyTagParser.PR_BEG) {
|
|
392
|
-
{
|
|
393
|
-
this.state = 69;
|
|
394
|
-
this.properties();
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
break;
|
|
399
|
-
case MalloyTagParser.PR_BEG:
|
|
400
|
-
this.enterOuterAlt(_localctx, 2);
|
|
401
|
-
{
|
|
402
|
-
this.state = 72;
|
|
403
|
-
this.properties();
|
|
404
|
-
}
|
|
405
|
-
break;
|
|
406
|
-
case MalloyTagParser.AR_BEG:
|
|
407
|
-
this.enterOuterAlt(_localctx, 3);
|
|
408
|
-
{
|
|
409
|
-
this.state = 73;
|
|
410
|
-
this.arrayValue();
|
|
411
|
-
}
|
|
412
|
-
break;
|
|
413
|
-
case MalloyTagParser.RF_BEG:
|
|
414
|
-
this.enterOuterAlt(_localctx, 4);
|
|
415
|
-
{
|
|
416
|
-
this.state = 74;
|
|
417
|
-
this.reference();
|
|
418
|
-
}
|
|
419
|
-
break;
|
|
420
|
-
default:
|
|
421
|
-
throw new NoViableAltException_1.NoViableAltException(this);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
catch (re) {
|
|
425
|
-
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
426
|
-
_localctx.exception = re;
|
|
427
|
-
this._errHandler.reportError(this, re);
|
|
428
|
-
this._errHandler.recover(this, re);
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
throw re;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
finally {
|
|
435
|
-
this.exitRule();
|
|
436
|
-
}
|
|
437
|
-
return _localctx;
|
|
438
|
-
}
|
|
439
|
-
// @RuleVersion(0)
|
|
440
|
-
reference() {
|
|
441
|
-
let _localctx = new ReferenceContext(this._ctx, this.state);
|
|
442
|
-
this.enterRule(_localctx, 14, MalloyTagParser.RULE_reference);
|
|
443
|
-
try {
|
|
444
|
-
this.enterOuterAlt(_localctx, 1);
|
|
445
|
-
{
|
|
446
|
-
this.state = 77;
|
|
447
|
-
this.match(MalloyTagParser.RF_BEG);
|
|
448
|
-
this.state = 78;
|
|
449
|
-
this.propName();
|
|
450
|
-
this.state = 79;
|
|
451
|
-
this.match(MalloyTagParser.RF_END);
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
catch (re) {
|
|
455
|
-
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
456
|
-
_localctx.exception = re;
|
|
457
|
-
this._errHandler.reportError(this, re);
|
|
458
|
-
this._errHandler.recover(this, re);
|
|
459
|
-
}
|
|
460
|
-
else {
|
|
461
|
-
throw re;
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
finally {
|
|
465
|
-
this.exitRule();
|
|
466
|
-
}
|
|
467
|
-
return _localctx;
|
|
468
|
-
}
|
|
469
|
-
// @RuleVersion(0)
|
|
470
|
-
arrayValue() {
|
|
471
|
-
let _localctx = new ArrayValueContext(this._ctx, this.state);
|
|
472
|
-
this.enterRule(_localctx, 16, MalloyTagParser.RULE_arrayValue);
|
|
473
|
-
let _la;
|
|
474
|
-
try {
|
|
475
|
-
let _alt;
|
|
476
|
-
this.enterOuterAlt(_localctx, 1);
|
|
477
|
-
{
|
|
478
|
-
this.state = 81;
|
|
479
|
-
this.match(MalloyTagParser.AR_BEG);
|
|
480
|
-
this.state = 82;
|
|
481
|
-
this.arrayElement();
|
|
482
|
-
this.state = 87;
|
|
483
|
-
this._errHandler.sync(this);
|
|
484
|
-
_alt = this.interpreter.adaptivePredict(this._input, 9, this._ctx);
|
|
485
|
-
while (_alt !== 2 && _alt !== ATN_1.ATN.INVALID_ALT_NUMBER) {
|
|
486
|
-
if (_alt === 1) {
|
|
487
|
-
{
|
|
488
|
-
{
|
|
489
|
-
this.state = 83;
|
|
490
|
-
this.match(MalloyTagParser.COMMA);
|
|
491
|
-
this.state = 84;
|
|
492
|
-
this.arrayElement();
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
this.state = 89;
|
|
497
|
-
this._errHandler.sync(this);
|
|
498
|
-
_alt = this.interpreter.adaptivePredict(this._input, 9, this._ctx);
|
|
499
|
-
}
|
|
500
|
-
this.state = 91;
|
|
501
|
-
this._errHandler.sync(this);
|
|
502
|
-
_la = this._input.LA(1);
|
|
503
|
-
if (_la === MalloyTagParser.COMMA) {
|
|
504
|
-
{
|
|
505
|
-
this.state = 90;
|
|
506
|
-
this.match(MalloyTagParser.COMMA);
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
this.state = 93;
|
|
510
|
-
this.match(MalloyTagParser.AR_END);
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
catch (re) {
|
|
514
|
-
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
515
|
-
_localctx.exception = re;
|
|
516
|
-
this._errHandler.reportError(this, re);
|
|
517
|
-
this._errHandler.recover(this, re);
|
|
518
|
-
}
|
|
519
|
-
else {
|
|
520
|
-
throw re;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
finally {
|
|
524
|
-
this.exitRule();
|
|
525
|
-
}
|
|
526
|
-
return _localctx;
|
|
527
|
-
}
|
|
528
|
-
// @RuleVersion(0)
|
|
529
|
-
properties() {
|
|
530
|
-
let _localctx = new PropertiesContext(this._ctx, this.state);
|
|
531
|
-
this.enterRule(_localctx, 18, MalloyTagParser.RULE_properties);
|
|
532
|
-
let _la;
|
|
533
|
-
try {
|
|
534
|
-
this.enterOuterAlt(_localctx, 1);
|
|
535
|
-
{
|
|
536
|
-
this.state = 95;
|
|
537
|
-
this.match(MalloyTagParser.PR_BEG);
|
|
538
|
-
this.state = 103;
|
|
539
|
-
this._errHandler.sync(this);
|
|
540
|
-
switch (this._input.LA(1)) {
|
|
541
|
-
case MalloyTagParser.DOTTY:
|
|
542
|
-
{
|
|
543
|
-
this.state = 96;
|
|
544
|
-
this.match(MalloyTagParser.DOTTY);
|
|
545
|
-
}
|
|
546
|
-
break;
|
|
547
|
-
case MalloyTagParser.MINUS_DOTTY:
|
|
548
|
-
case MalloyTagParser.MINUS:
|
|
549
|
-
case MalloyTagParser.PR_END:
|
|
550
|
-
case MalloyTagParser.BQ_STRING:
|
|
551
|
-
case MalloyTagParser.BARE_STRING:
|
|
552
|
-
{
|
|
553
|
-
{
|
|
554
|
-
this.state = 100;
|
|
555
|
-
this._errHandler.sync(this);
|
|
556
|
-
_la = this._input.LA(1);
|
|
557
|
-
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << MalloyTagParser.MINUS_DOTTY) | (1 << MalloyTagParser.MINUS) | (1 << MalloyTagParser.BQ_STRING) | (1 << MalloyTagParser.BARE_STRING))) !== 0)) {
|
|
558
|
-
{
|
|
559
|
-
{
|
|
560
|
-
this.state = 97;
|
|
561
|
-
this.tagSpec();
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
this.state = 102;
|
|
565
|
-
this._errHandler.sync(this);
|
|
566
|
-
_la = this._input.LA(1);
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
break;
|
|
571
|
-
default:
|
|
572
|
-
throw new NoViableAltException_1.NoViableAltException(this);
|
|
573
|
-
}
|
|
574
|
-
this.state = 105;
|
|
575
|
-
this.match(MalloyTagParser.PR_END);
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
catch (re) {
|
|
579
|
-
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
580
|
-
_localctx.exception = re;
|
|
581
|
-
this._errHandler.reportError(this, re);
|
|
582
|
-
this._errHandler.recover(this, re);
|
|
583
|
-
}
|
|
584
|
-
else {
|
|
585
|
-
throw re;
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
finally {
|
|
589
|
-
this.exitRule();
|
|
590
|
-
}
|
|
591
|
-
return _localctx;
|
|
592
|
-
}
|
|
593
|
-
static get _ATN() {
|
|
594
|
-
if (!MalloyTagParser.__ATN) {
|
|
595
|
-
MalloyTagParser.__ATN = new ATNDeserializer_1.ATNDeserializer().deserialize(Utils.toCharArray(MalloyTagParser._serializedATN));
|
|
596
|
-
}
|
|
597
|
-
return MalloyTagParser.__ATN;
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
exports.MalloyTagParser = 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;
|
|
621
|
-
MalloyTagParser.RULE_tagLine = 0;
|
|
622
|
-
MalloyTagParser.RULE_tagSpec = 1;
|
|
623
|
-
MalloyTagParser.RULE_string = 2;
|
|
624
|
-
MalloyTagParser.RULE_identifier = 3;
|
|
625
|
-
MalloyTagParser.RULE_propName = 4;
|
|
626
|
-
MalloyTagParser.RULE_eqValue = 5;
|
|
627
|
-
MalloyTagParser.RULE_arrayElement = 6;
|
|
628
|
-
MalloyTagParser.RULE_reference = 7;
|
|
629
|
-
MalloyTagParser.RULE_arrayValue = 8;
|
|
630
|
-
MalloyTagParser.RULE_properties = 9;
|
|
631
|
-
// tslint:disable:no-trailing-whitespace
|
|
632
|
-
MalloyTagParser.ruleNames = [
|
|
633
|
-
"tagLine", "tagSpec", "string", "identifier", "propName", "eqValue", "arrayElement",
|
|
634
|
-
"reference", "arrayValue", "properties",
|
|
635
|
-
];
|
|
636
|
-
MalloyTagParser._LITERAL_NAMES = [
|
|
637
|
-
undefined, "'-...'", "'...'", "'.'", "'-'", "'='", "'$('", "')'", "'{'",
|
|
638
|
-
"'}'", "'['", "','", "']'",
|
|
639
|
-
];
|
|
640
|
-
MalloyTagParser._SYMBOLIC_NAMES = [
|
|
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",
|
|
645
|
-
];
|
|
646
|
-
MalloyTagParser.VOCABULARY = new VocabularyImpl_1.VocabularyImpl(MalloyTagParser._LITERAL_NAMES, MalloyTagParser._SYMBOLIC_NAMES, []);
|
|
647
|
-
MalloyTagParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x16n\x04\x02" +
|
|
648
|
-
"\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07" +
|
|
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" +
|
|
650
|
-
"\f\x02\x0E\x02\x1B\v\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03\x03" +
|
|
651
|
-
"\x05\x03#\n\x03\x03\x03\x03\x03\x03\x03\x05\x03(\n\x03\x03\x03\x03\x03" +
|
|
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";
|
|
692
|
-
class TagLineContext extends ParserRuleContext_1.ParserRuleContext {
|
|
693
|
-
EOF() { return this.getToken(MalloyTagParser.EOF, 0); }
|
|
694
|
-
tagSpec(i) {
|
|
695
|
-
if (i === undefined) {
|
|
696
|
-
return this.getRuleContexts(TagSpecContext);
|
|
697
|
-
}
|
|
698
|
-
else {
|
|
699
|
-
return this.getRuleContext(i, TagSpecContext);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
constructor(parent, invokingState) {
|
|
703
|
-
super(parent, invokingState);
|
|
704
|
-
}
|
|
705
|
-
// @Override
|
|
706
|
-
get ruleIndex() { return MalloyTagParser.RULE_tagLine; }
|
|
707
|
-
// @Override
|
|
708
|
-
accept(visitor) {
|
|
709
|
-
if (visitor.visitTagLine) {
|
|
710
|
-
return visitor.visitTagLine(this);
|
|
711
|
-
}
|
|
712
|
-
else {
|
|
713
|
-
return visitor.visitChildren(this);
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
exports.TagLineContext = TagLineContext;
|
|
718
|
-
class TagSpecContext extends ParserRuleContext_1.ParserRuleContext {
|
|
719
|
-
constructor(parent, invokingState) {
|
|
720
|
-
super(parent, invokingState);
|
|
721
|
-
}
|
|
722
|
-
// @Override
|
|
723
|
-
get ruleIndex() { return MalloyTagParser.RULE_tagSpec; }
|
|
724
|
-
copyFrom(ctx) {
|
|
725
|
-
super.copyFrom(ctx);
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
exports.TagSpecContext = TagSpecContext;
|
|
729
|
-
class TagEqContext extends TagSpecContext {
|
|
730
|
-
propName() {
|
|
731
|
-
return this.getRuleContext(0, PropNameContext);
|
|
732
|
-
}
|
|
733
|
-
EQ() { return this.getToken(MalloyTagParser.EQ, 0); }
|
|
734
|
-
eqValue() {
|
|
735
|
-
return this.getRuleContext(0, EqValueContext);
|
|
736
|
-
}
|
|
737
|
-
properties() {
|
|
738
|
-
return this.tryGetRuleContext(0, PropertiesContext);
|
|
739
|
-
}
|
|
740
|
-
constructor(ctx) {
|
|
741
|
-
super(ctx.parent, ctx.invokingState);
|
|
742
|
-
this.copyFrom(ctx);
|
|
743
|
-
}
|
|
744
|
-
// @Override
|
|
745
|
-
accept(visitor) {
|
|
746
|
-
if (visitor.visitTagEq) {
|
|
747
|
-
return visitor.visitTagEq(this);
|
|
748
|
-
}
|
|
749
|
-
else {
|
|
750
|
-
return visitor.visitChildren(this);
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
exports.TagEqContext = TagEqContext;
|
|
755
|
-
class TagReplacePropertiesContext extends TagSpecContext {
|
|
756
|
-
propName() {
|
|
757
|
-
return this.getRuleContext(0, PropNameContext);
|
|
758
|
-
}
|
|
759
|
-
EQ() { return this.getToken(MalloyTagParser.EQ, 0); }
|
|
760
|
-
properties() {
|
|
761
|
-
return this.getRuleContext(0, PropertiesContext);
|
|
762
|
-
}
|
|
763
|
-
DOTTY() { return this.tryGetToken(MalloyTagParser.DOTTY, 0); }
|
|
764
|
-
constructor(ctx) {
|
|
765
|
-
super(ctx.parent, ctx.invokingState);
|
|
766
|
-
this.copyFrom(ctx);
|
|
767
|
-
}
|
|
768
|
-
// @Override
|
|
769
|
-
accept(visitor) {
|
|
770
|
-
if (visitor.visitTagReplaceProperties) {
|
|
771
|
-
return visitor.visitTagReplaceProperties(this);
|
|
772
|
-
}
|
|
773
|
-
else {
|
|
774
|
-
return visitor.visitChildren(this);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
exports.TagReplacePropertiesContext = TagReplacePropertiesContext;
|
|
779
|
-
class TagUpdatePropertiesContext extends TagSpecContext {
|
|
780
|
-
propName() {
|
|
781
|
-
return this.getRuleContext(0, PropNameContext);
|
|
782
|
-
}
|
|
783
|
-
properties() {
|
|
784
|
-
return this.getRuleContext(0, PropertiesContext);
|
|
785
|
-
}
|
|
786
|
-
constructor(ctx) {
|
|
787
|
-
super(ctx.parent, ctx.invokingState);
|
|
788
|
-
this.copyFrom(ctx);
|
|
789
|
-
}
|
|
790
|
-
// @Override
|
|
791
|
-
accept(visitor) {
|
|
792
|
-
if (visitor.visitTagUpdateProperties) {
|
|
793
|
-
return visitor.visitTagUpdateProperties(this);
|
|
794
|
-
}
|
|
795
|
-
else {
|
|
796
|
-
return visitor.visitChildren(this);
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
exports.TagUpdatePropertiesContext = TagUpdatePropertiesContext;
|
|
801
|
-
class TagDefContext extends TagSpecContext {
|
|
802
|
-
propName() {
|
|
803
|
-
return this.getRuleContext(0, PropNameContext);
|
|
804
|
-
}
|
|
805
|
-
MINUS() { return this.tryGetToken(MalloyTagParser.MINUS, 0); }
|
|
806
|
-
constructor(ctx) {
|
|
807
|
-
super(ctx.parent, ctx.invokingState);
|
|
808
|
-
this.copyFrom(ctx);
|
|
809
|
-
}
|
|
810
|
-
// @Override
|
|
811
|
-
accept(visitor) {
|
|
812
|
-
if (visitor.visitTagDef) {
|
|
813
|
-
return visitor.visitTagDef(this);
|
|
814
|
-
}
|
|
815
|
-
else {
|
|
816
|
-
return visitor.visitChildren(this);
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
}
|
|
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;
|
|
838
|
-
class StringContext extends ParserRuleContext_1.ParserRuleContext {
|
|
839
|
-
SQ_STRING() { return this.tryGetToken(MalloyTagParser.SQ_STRING, 0); }
|
|
840
|
-
DQ_STRING() { return this.tryGetToken(MalloyTagParser.DQ_STRING, 0); }
|
|
841
|
-
BARE_STRING() { return this.tryGetToken(MalloyTagParser.BARE_STRING, 0); }
|
|
842
|
-
NUMERIC_LITERAL() { return this.tryGetToken(MalloyTagParser.NUMERIC_LITERAL, 0); }
|
|
843
|
-
constructor(parent, invokingState) {
|
|
844
|
-
super(parent, invokingState);
|
|
845
|
-
}
|
|
846
|
-
// @Override
|
|
847
|
-
get ruleIndex() { return MalloyTagParser.RULE_string; }
|
|
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 IdentifierContext extends ParserRuleContext_1.ParserRuleContext {
|
|
860
|
-
BQ_STRING() { return this.tryGetToken(MalloyTagParser.BQ_STRING, 0); }
|
|
861
|
-
BARE_STRING() { return this.tryGetToken(MalloyTagParser.BARE_STRING, 0); }
|
|
862
|
-
constructor(parent, invokingState) {
|
|
863
|
-
super(parent, invokingState);
|
|
864
|
-
}
|
|
865
|
-
// @Override
|
|
866
|
-
get ruleIndex() { return MalloyTagParser.RULE_identifier; }
|
|
867
|
-
// @Override
|
|
868
|
-
accept(visitor) {
|
|
869
|
-
if (visitor.visitIdentifier) {
|
|
870
|
-
return visitor.visitIdentifier(this);
|
|
871
|
-
}
|
|
872
|
-
else {
|
|
873
|
-
return visitor.visitChildren(this);
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
exports.IdentifierContext = IdentifierContext;
|
|
878
|
-
class PropNameContext extends ParserRuleContext_1.ParserRuleContext {
|
|
879
|
-
identifier(i) {
|
|
880
|
-
if (i === undefined) {
|
|
881
|
-
return this.getRuleContexts(IdentifierContext);
|
|
882
|
-
}
|
|
883
|
-
else {
|
|
884
|
-
return this.getRuleContext(i, IdentifierContext);
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
DOT(i) {
|
|
888
|
-
if (i === undefined) {
|
|
889
|
-
return this.getTokens(MalloyTagParser.DOT);
|
|
890
|
-
}
|
|
891
|
-
else {
|
|
892
|
-
return this.getToken(MalloyTagParser.DOT, i);
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
constructor(parent, invokingState) {
|
|
896
|
-
super(parent, invokingState);
|
|
897
|
-
}
|
|
898
|
-
// @Override
|
|
899
|
-
get ruleIndex() { return MalloyTagParser.RULE_propName; }
|
|
900
|
-
// @Override
|
|
901
|
-
accept(visitor) {
|
|
902
|
-
if (visitor.visitPropName) {
|
|
903
|
-
return visitor.visitPropName(this);
|
|
904
|
-
}
|
|
905
|
-
else {
|
|
906
|
-
return visitor.visitChildren(this);
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
exports.PropNameContext = PropNameContext;
|
|
911
|
-
class EqValueContext extends ParserRuleContext_1.ParserRuleContext {
|
|
912
|
-
string() {
|
|
913
|
-
return this.tryGetRuleContext(0, StringContext);
|
|
914
|
-
}
|
|
915
|
-
arrayValue() {
|
|
916
|
-
return this.tryGetRuleContext(0, ArrayValueContext);
|
|
917
|
-
}
|
|
918
|
-
reference() {
|
|
919
|
-
return this.tryGetRuleContext(0, ReferenceContext);
|
|
920
|
-
}
|
|
921
|
-
constructor(parent, invokingState) {
|
|
922
|
-
super(parent, invokingState);
|
|
923
|
-
}
|
|
924
|
-
// @Override
|
|
925
|
-
get ruleIndex() { return MalloyTagParser.RULE_eqValue; }
|
|
926
|
-
// @Override
|
|
927
|
-
accept(visitor) {
|
|
928
|
-
if (visitor.visitEqValue) {
|
|
929
|
-
return visitor.visitEqValue(this);
|
|
930
|
-
}
|
|
931
|
-
else {
|
|
932
|
-
return visitor.visitChildren(this);
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
exports.EqValueContext = EqValueContext;
|
|
937
|
-
class ArrayElementContext extends ParserRuleContext_1.ParserRuleContext {
|
|
938
|
-
string() {
|
|
939
|
-
return this.tryGetRuleContext(0, StringContext);
|
|
940
|
-
}
|
|
941
|
-
properties() {
|
|
942
|
-
return this.tryGetRuleContext(0, PropertiesContext);
|
|
943
|
-
}
|
|
944
|
-
arrayValue() {
|
|
945
|
-
return this.tryGetRuleContext(0, ArrayValueContext);
|
|
946
|
-
}
|
|
947
|
-
reference() {
|
|
948
|
-
return this.tryGetRuleContext(0, ReferenceContext);
|
|
949
|
-
}
|
|
950
|
-
constructor(parent, invokingState) {
|
|
951
|
-
super(parent, invokingState);
|
|
952
|
-
}
|
|
953
|
-
// @Override
|
|
954
|
-
get ruleIndex() { return MalloyTagParser.RULE_arrayElement; }
|
|
955
|
-
// @Override
|
|
956
|
-
accept(visitor) {
|
|
957
|
-
if (visitor.visitArrayElement) {
|
|
958
|
-
return visitor.visitArrayElement(this);
|
|
959
|
-
}
|
|
960
|
-
else {
|
|
961
|
-
return visitor.visitChildren(this);
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
exports.ArrayElementContext = ArrayElementContext;
|
|
966
|
-
class ReferenceContext extends ParserRuleContext_1.ParserRuleContext {
|
|
967
|
-
RF_BEG() { return this.getToken(MalloyTagParser.RF_BEG, 0); }
|
|
968
|
-
propName() {
|
|
969
|
-
return this.getRuleContext(0, PropNameContext);
|
|
970
|
-
}
|
|
971
|
-
RF_END() { return this.getToken(MalloyTagParser.RF_END, 0); }
|
|
972
|
-
constructor(parent, invokingState) {
|
|
973
|
-
super(parent, invokingState);
|
|
974
|
-
}
|
|
975
|
-
// @Override
|
|
976
|
-
get ruleIndex() { return MalloyTagParser.RULE_reference; }
|
|
977
|
-
// @Override
|
|
978
|
-
accept(visitor) {
|
|
979
|
-
if (visitor.visitReference) {
|
|
980
|
-
return visitor.visitReference(this);
|
|
981
|
-
}
|
|
982
|
-
else {
|
|
983
|
-
return visitor.visitChildren(this);
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
exports.ReferenceContext = ReferenceContext;
|
|
988
|
-
class ArrayValueContext extends ParserRuleContext_1.ParserRuleContext {
|
|
989
|
-
AR_BEG() { return this.getToken(MalloyTagParser.AR_BEG, 0); }
|
|
990
|
-
arrayElement(i) {
|
|
991
|
-
if (i === undefined) {
|
|
992
|
-
return this.getRuleContexts(ArrayElementContext);
|
|
993
|
-
}
|
|
994
|
-
else {
|
|
995
|
-
return this.getRuleContext(i, ArrayElementContext);
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
AR_END() { return this.getToken(MalloyTagParser.AR_END, 0); }
|
|
999
|
-
COMMA(i) {
|
|
1000
|
-
if (i === undefined) {
|
|
1001
|
-
return this.getTokens(MalloyTagParser.COMMA);
|
|
1002
|
-
}
|
|
1003
|
-
else {
|
|
1004
|
-
return this.getToken(MalloyTagParser.COMMA, i);
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
constructor(parent, invokingState) {
|
|
1008
|
-
super(parent, invokingState);
|
|
1009
|
-
}
|
|
1010
|
-
// @Override
|
|
1011
|
-
get ruleIndex() { return MalloyTagParser.RULE_arrayValue; }
|
|
1012
|
-
// @Override
|
|
1013
|
-
accept(visitor) {
|
|
1014
|
-
if (visitor.visitArrayValue) {
|
|
1015
|
-
return visitor.visitArrayValue(this);
|
|
1016
|
-
}
|
|
1017
|
-
else {
|
|
1018
|
-
return visitor.visitChildren(this);
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
exports.ArrayValueContext = ArrayValueContext;
|
|
1023
|
-
class PropertiesContext extends ParserRuleContext_1.ParserRuleContext {
|
|
1024
|
-
PR_BEG() { return this.getToken(MalloyTagParser.PR_BEG, 0); }
|
|
1025
|
-
PR_END() { return this.getToken(MalloyTagParser.PR_END, 0); }
|
|
1026
|
-
DOTTY() { return this.tryGetToken(MalloyTagParser.DOTTY, 0); }
|
|
1027
|
-
tagSpec(i) {
|
|
1028
|
-
if (i === undefined) {
|
|
1029
|
-
return this.getRuleContexts(TagSpecContext);
|
|
1030
|
-
}
|
|
1031
|
-
else {
|
|
1032
|
-
return this.getRuleContext(i, TagSpecContext);
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
constructor(parent, invokingState) {
|
|
1036
|
-
super(parent, invokingState);
|
|
1037
|
-
}
|
|
1038
|
-
// @Override
|
|
1039
|
-
get ruleIndex() { return MalloyTagParser.RULE_properties; }
|
|
1040
|
-
// @Override
|
|
1041
|
-
accept(visitor) {
|
|
1042
|
-
if (visitor.visitProperties) {
|
|
1043
|
-
return visitor.visitProperties(this);
|
|
1044
|
-
}
|
|
1045
|
-
else {
|
|
1046
|
-
return visitor.visitChildren(this);
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
exports.PropertiesContext = PropertiesContext;
|
|
1051
|
-
//# sourceMappingURL=MalloyTagParser.js.map
|