blend-r 1.1.6 → 1.1.7
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/helper/ApiHelper.js +69 -41
- package/dist/helper/DataHelper.js +0 -1
- package/dist/helper/FrontEndHelper.js +3 -8
- package/dist/helper/fileHelper.js +0 -2
- package/dist/helper/grammarHelper/BlendApiGrammarHelper.js +6 -7
- package/dist/helper/grammarHelper/BlendBasicGrammarHelper.js +1 -3
- package/dist/helper/grammarHelper/BlendDataGrammarHelper.js +2 -2
- package/dist/helper/grammarHelper/GrammarErrorHelper.js +0 -1
- package/dist/index.js +38 -27
- package/dist/parser/blendApi/src/grammar/BlendApiLexer.js +95 -90
- package/dist/parser/blendApi/src/grammar/BlendApiParser.js +220 -157
- package/dist/parser/blendApi/src/grammar/src/grammar/BlendApiLexer.js +212 -0
- package/dist/parser/blendApi/src/grammar/src/grammar/BlendApiListener.js +3 -0
- package/dist/parser/blendApi/src/grammar/src/grammar/BlendApiParser.js +1149 -0
- package/dist/parser/blendApi/src/grammar/src/grammar/BlendApiVisitor.js +3 -0
- package/dist/parser/blendRBasic/src/grammar/blendRBasicLexer.js +2 -2
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.PrimitiveTypeContext = exports.TypeContext = exports.FieldContext = exports.DirectOutputDefenitionContext = exports.OutputDefinitionContext = exports.InputDefinitionContext = exports.AuthenticatedContext = exports.ApiDefinitionContext = exports.ModuleDefinitionContext = exports.SectionDefinitionContext = exports.ProgramContext = exports.BlendApiParser = void 0;
|
|
37
|
+
exports.PrimitiveTypeContext = exports.TypeContext = exports.FieldContext = exports.DirectOutputDefenitionContext = exports.OutputDefinitionContext = exports.InputDefinitionContext = exports.StoreContext = exports.AuthenticatedContext = exports.ApiDefinitionContext = exports.ModuleDefinitionContext = exports.SectionDefinitionContext = exports.ProgramContext = exports.BlendApiParser = void 0;
|
|
38
38
|
const ATNDeserializer_1 = require("antlr4ts/atn/ATNDeserializer");
|
|
39
39
|
const FailedPredicateException_1 = require("antlr4ts/FailedPredicateException");
|
|
40
40
|
const Parser_1 = require("antlr4ts/Parser");
|
|
@@ -72,19 +72,19 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
72
72
|
try {
|
|
73
73
|
this.enterOuterAlt(_localctx, 1);
|
|
74
74
|
{
|
|
75
|
-
this.state =
|
|
75
|
+
this.state = 24;
|
|
76
76
|
this.moduleDefinition();
|
|
77
|
-
this.state =
|
|
77
|
+
this.state = 28;
|
|
78
78
|
this._errHandler.sync(this);
|
|
79
79
|
_la = this._input.LA(1);
|
|
80
80
|
while (_la === BlendApiParser.T__0) {
|
|
81
81
|
{
|
|
82
82
|
{
|
|
83
|
-
this.state =
|
|
83
|
+
this.state = 25;
|
|
84
84
|
this.sectionDefinition();
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
this.state =
|
|
87
|
+
this.state = 30;
|
|
88
88
|
this._errHandler.sync(this);
|
|
89
89
|
_la = this._input.LA(1);
|
|
90
90
|
}
|
|
@@ -113,27 +113,27 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
113
113
|
try {
|
|
114
114
|
this.enterOuterAlt(_localctx, 1);
|
|
115
115
|
{
|
|
116
|
-
this.state =
|
|
116
|
+
this.state = 31;
|
|
117
117
|
this.match(BlendApiParser.T__0);
|
|
118
|
-
this.state =
|
|
118
|
+
this.state = 32;
|
|
119
119
|
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
120
|
-
this.state =
|
|
120
|
+
this.state = 33;
|
|
121
121
|
this.match(BlendApiParser.T__1);
|
|
122
|
-
this.state =
|
|
122
|
+
this.state = 37;
|
|
123
123
|
this._errHandler.sync(this);
|
|
124
124
|
_la = this._input.LA(1);
|
|
125
125
|
while (_la === BlendApiParser.T__4) {
|
|
126
126
|
{
|
|
127
127
|
{
|
|
128
|
-
this.state =
|
|
128
|
+
this.state = 34;
|
|
129
129
|
this.apiDefinition();
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
this.state =
|
|
132
|
+
this.state = 39;
|
|
133
133
|
this._errHandler.sync(this);
|
|
134
134
|
_la = this._input.LA(1);
|
|
135
135
|
}
|
|
136
|
-
this.state =
|
|
136
|
+
this.state = 40;
|
|
137
137
|
this.match(BlendApiParser.T__2);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -159,9 +159,9 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
159
159
|
try {
|
|
160
160
|
this.enterOuterAlt(_localctx, 1);
|
|
161
161
|
{
|
|
162
|
-
this.state =
|
|
162
|
+
this.state = 42;
|
|
163
163
|
this.match(BlendApiParser.T__3);
|
|
164
|
-
this.state =
|
|
164
|
+
this.state = 43;
|
|
165
165
|
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -188,48 +188,48 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
188
188
|
try {
|
|
189
189
|
this.enterOuterAlt(_localctx, 1);
|
|
190
190
|
{
|
|
191
|
-
this.state =
|
|
191
|
+
this.state = 45;
|
|
192
192
|
this.match(BlendApiParser.T__4);
|
|
193
|
-
this.state =
|
|
193
|
+
this.state = 46;
|
|
194
194
|
this.match(BlendApiParser.IDENTIFIER);
|
|
195
|
-
this.state =
|
|
195
|
+
this.state = 47;
|
|
196
196
|
this.match(BlendApiParser.T__5);
|
|
197
|
-
this.state =
|
|
197
|
+
this.state = 48;
|
|
198
198
|
this.match(BlendApiParser.HTTP_METHOD);
|
|
199
|
-
this.state =
|
|
199
|
+
this.state = 49;
|
|
200
200
|
this.match(BlendApiParser.T__6);
|
|
201
|
-
this.state =
|
|
201
|
+
this.state = 50;
|
|
202
202
|
this.match(BlendApiParser.URL_IDENTIFIER);
|
|
203
|
-
this.state = 49;
|
|
204
|
-
this.match(BlendApiParser.T__1);
|
|
205
203
|
this.state = 51;
|
|
204
|
+
this.match(BlendApiParser.T__1);
|
|
205
|
+
this.state = 53;
|
|
206
206
|
this._errHandler.sync(this);
|
|
207
207
|
_la = this._input.LA(1);
|
|
208
208
|
if (_la === BlendApiParser.T__7) {
|
|
209
209
|
{
|
|
210
|
-
this.state =
|
|
210
|
+
this.state = 52;
|
|
211
211
|
this.authenticated();
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
this.state =
|
|
214
|
+
this.state = 56;
|
|
215
215
|
this._errHandler.sync(this);
|
|
216
216
|
_la = this._input.LA(1);
|
|
217
|
-
if (_la === BlendApiParser.
|
|
217
|
+
if (_la === BlendApiParser.T__9) {
|
|
218
218
|
{
|
|
219
|
-
this.state =
|
|
219
|
+
this.state = 55;
|
|
220
220
|
this.inputDefinition();
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
this.state =
|
|
223
|
+
this.state = 59;
|
|
224
224
|
this._errHandler.sync(this);
|
|
225
225
|
_la = this._input.LA(1);
|
|
226
|
-
if (_la === BlendApiParser.
|
|
226
|
+
if (_la === BlendApiParser.T__11) {
|
|
227
227
|
{
|
|
228
|
-
this.state =
|
|
228
|
+
this.state = 58;
|
|
229
229
|
this.outputDefinition();
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
this.state =
|
|
232
|
+
this.state = 61;
|
|
233
233
|
this.match(BlendApiParser.T__2);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
@@ -255,7 +255,7 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
255
255
|
try {
|
|
256
256
|
this.enterOuterAlt(_localctx, 1);
|
|
257
257
|
{
|
|
258
|
-
this.state =
|
|
258
|
+
this.state = 63;
|
|
259
259
|
this.match(BlendApiParser.T__7);
|
|
260
260
|
}
|
|
261
261
|
}
|
|
@@ -275,35 +275,70 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
275
275
|
return _localctx;
|
|
276
276
|
}
|
|
277
277
|
// @RuleVersion(0)
|
|
278
|
+
store() {
|
|
279
|
+
let _localctx = new StoreContext(this._ctx, this.state);
|
|
280
|
+
this.enterRule(_localctx, 10, BlendApiParser.RULE_store);
|
|
281
|
+
try {
|
|
282
|
+
this.enterOuterAlt(_localctx, 1);
|
|
283
|
+
{
|
|
284
|
+
this.state = 65;
|
|
285
|
+
this.match(BlendApiParser.T__8);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
catch (re) {
|
|
289
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
290
|
+
_localctx.exception = re;
|
|
291
|
+
this._errHandler.reportError(this, re);
|
|
292
|
+
this._errHandler.recover(this, re);
|
|
293
|
+
}
|
|
294
|
+
else {
|
|
295
|
+
throw re;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
finally {
|
|
299
|
+
this.exitRule();
|
|
300
|
+
}
|
|
301
|
+
return _localctx;
|
|
302
|
+
}
|
|
303
|
+
// @RuleVersion(0)
|
|
278
304
|
inputDefinition() {
|
|
279
305
|
let _localctx = new InputDefinitionContext(this._ctx, this.state);
|
|
280
|
-
this.enterRule(_localctx,
|
|
306
|
+
this.enterRule(_localctx, 12, BlendApiParser.RULE_inputDefinition);
|
|
281
307
|
let _la;
|
|
282
308
|
try {
|
|
283
309
|
this.enterOuterAlt(_localctx, 1);
|
|
284
310
|
{
|
|
285
|
-
this.state =
|
|
286
|
-
this.match(BlendApiParser.
|
|
287
|
-
this.state =
|
|
311
|
+
this.state = 67;
|
|
312
|
+
this.match(BlendApiParser.T__9);
|
|
313
|
+
this.state = 68;
|
|
288
314
|
this.field();
|
|
289
|
-
this.state =
|
|
315
|
+
this.state = 73;
|
|
290
316
|
this._errHandler.sync(this);
|
|
291
317
|
_la = this._input.LA(1);
|
|
292
|
-
while (_la === BlendApiParser.
|
|
318
|
+
while (_la === BlendApiParser.T__10) {
|
|
293
319
|
{
|
|
294
320
|
{
|
|
295
|
-
this.state =
|
|
296
|
-
this.match(BlendApiParser.
|
|
297
|
-
this.state =
|
|
321
|
+
this.state = 69;
|
|
322
|
+
this.match(BlendApiParser.T__10);
|
|
323
|
+
this.state = 70;
|
|
298
324
|
this.field();
|
|
299
325
|
}
|
|
300
326
|
}
|
|
301
|
-
this.state =
|
|
327
|
+
this.state = 75;
|
|
302
328
|
this._errHandler.sync(this);
|
|
303
329
|
_la = this._input.LA(1);
|
|
304
330
|
}
|
|
305
|
-
this.state =
|
|
331
|
+
this.state = 76;
|
|
306
332
|
this.match(BlendApiParser.T__6);
|
|
333
|
+
this.state = 78;
|
|
334
|
+
this._errHandler.sync(this);
|
|
335
|
+
_la = this._input.LA(1);
|
|
336
|
+
if (_la === BlendApiParser.T__8) {
|
|
337
|
+
{
|
|
338
|
+
this.state = 77;
|
|
339
|
+
this.store();
|
|
340
|
+
}
|
|
341
|
+
}
|
|
307
342
|
}
|
|
308
343
|
}
|
|
309
344
|
catch (re) {
|
|
@@ -324,47 +359,47 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
324
359
|
// @RuleVersion(0)
|
|
325
360
|
outputDefinition() {
|
|
326
361
|
let _localctx = new OutputDefinitionContext(this._ctx, this.state);
|
|
327
|
-
this.enterRule(_localctx,
|
|
362
|
+
this.enterRule(_localctx, 14, BlendApiParser.RULE_outputDefinition);
|
|
328
363
|
let _la;
|
|
329
364
|
try {
|
|
330
|
-
this.state =
|
|
365
|
+
this.state = 95;
|
|
331
366
|
this._errHandler.sync(this);
|
|
332
|
-
switch (this.interpreter.adaptivePredict(this._input,
|
|
367
|
+
switch (this.interpreter.adaptivePredict(this._input, 8, this._ctx)) {
|
|
333
368
|
case 1:
|
|
334
369
|
this.enterOuterAlt(_localctx, 1);
|
|
335
370
|
{
|
|
336
|
-
this.state = 74;
|
|
337
|
-
this.match(BlendApiParser.T__10);
|
|
338
|
-
this.state = 75;
|
|
339
|
-
this.field();
|
|
340
371
|
this.state = 80;
|
|
372
|
+
this.match(BlendApiParser.T__11);
|
|
373
|
+
this.state = 81;
|
|
374
|
+
this.field();
|
|
375
|
+
this.state = 86;
|
|
341
376
|
this._errHandler.sync(this);
|
|
342
377
|
_la = this._input.LA(1);
|
|
343
|
-
while (_la === BlendApiParser.
|
|
378
|
+
while (_la === BlendApiParser.T__10) {
|
|
344
379
|
{
|
|
345
380
|
{
|
|
346
|
-
this.state =
|
|
347
|
-
this.match(BlendApiParser.
|
|
348
|
-
this.state =
|
|
381
|
+
this.state = 82;
|
|
382
|
+
this.match(BlendApiParser.T__10);
|
|
383
|
+
this.state = 83;
|
|
349
384
|
this.field();
|
|
350
385
|
}
|
|
351
386
|
}
|
|
352
|
-
this.state =
|
|
387
|
+
this.state = 88;
|
|
353
388
|
this._errHandler.sync(this);
|
|
354
389
|
_la = this._input.LA(1);
|
|
355
390
|
}
|
|
356
|
-
this.state =
|
|
391
|
+
this.state = 89;
|
|
357
392
|
this.match(BlendApiParser.T__6);
|
|
358
393
|
}
|
|
359
394
|
break;
|
|
360
395
|
case 2:
|
|
361
396
|
this.enterOuterAlt(_localctx, 2);
|
|
362
397
|
{
|
|
363
|
-
this.state =
|
|
364
|
-
this.match(BlendApiParser.
|
|
365
|
-
this.state =
|
|
398
|
+
this.state = 91;
|
|
399
|
+
this.match(BlendApiParser.T__11);
|
|
400
|
+
this.state = 92;
|
|
366
401
|
this.directOutputDefenition();
|
|
367
|
-
this.state =
|
|
402
|
+
this.state = 93;
|
|
368
403
|
this.match(BlendApiParser.T__6);
|
|
369
404
|
}
|
|
370
405
|
break;
|
|
@@ -388,11 +423,11 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
388
423
|
// @RuleVersion(0)
|
|
389
424
|
directOutputDefenition() {
|
|
390
425
|
let _localctx = new DirectOutputDefenitionContext(this._ctx, this.state);
|
|
391
|
-
this.enterRule(_localctx,
|
|
426
|
+
this.enterRule(_localctx, 16, BlendApiParser.RULE_directOutputDefenition);
|
|
392
427
|
try {
|
|
393
428
|
this.enterOuterAlt(_localctx, 1);
|
|
394
429
|
{
|
|
395
|
-
this.state =
|
|
430
|
+
this.state = 97;
|
|
396
431
|
this.type();
|
|
397
432
|
}
|
|
398
433
|
}
|
|
@@ -414,12 +449,12 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
414
449
|
// @RuleVersion(0)
|
|
415
450
|
field() {
|
|
416
451
|
let _localctx = new FieldContext(this._ctx, this.state);
|
|
417
|
-
this.enterRule(_localctx,
|
|
452
|
+
this.enterRule(_localctx, 18, BlendApiParser.RULE_field);
|
|
418
453
|
let _la;
|
|
419
454
|
try {
|
|
420
455
|
this.enterOuterAlt(_localctx, 1);
|
|
421
456
|
{
|
|
422
|
-
this.state =
|
|
457
|
+
this.state = 99;
|
|
423
458
|
_la = this._input.LA(1);
|
|
424
459
|
if (!(_la === BlendApiParser.IDENTIFIER || _la === BlendApiParser.CAPITAL_IDENTIFIER)) {
|
|
425
460
|
this._errHandler.recoverInline(this);
|
|
@@ -431,9 +466,9 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
431
466
|
this._errHandler.reportMatch(this);
|
|
432
467
|
this.consume();
|
|
433
468
|
}
|
|
434
|
-
this.state =
|
|
435
|
-
this.match(BlendApiParser.
|
|
436
|
-
this.state =
|
|
469
|
+
this.state = 100;
|
|
470
|
+
this.match(BlendApiParser.T__12);
|
|
471
|
+
this.state = 101;
|
|
437
472
|
this.type();
|
|
438
473
|
}
|
|
439
474
|
}
|
|
@@ -455,71 +490,71 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
455
490
|
// @RuleVersion(0)
|
|
456
491
|
type() {
|
|
457
492
|
let _localctx = new TypeContext(this._ctx, this.state);
|
|
458
|
-
this.enterRule(_localctx,
|
|
493
|
+
this.enterRule(_localctx, 20, BlendApiParser.RULE_type);
|
|
459
494
|
try {
|
|
460
|
-
this.state =
|
|
495
|
+
this.state = 121;
|
|
461
496
|
this._errHandler.sync(this);
|
|
462
|
-
switch (this.interpreter.adaptivePredict(this._input,
|
|
497
|
+
switch (this.interpreter.adaptivePredict(this._input, 9, this._ctx)) {
|
|
463
498
|
case 1:
|
|
464
499
|
this.enterOuterAlt(_localctx, 1);
|
|
465
500
|
{
|
|
466
|
-
this.state =
|
|
501
|
+
this.state = 103;
|
|
467
502
|
this.primitiveType();
|
|
468
503
|
}
|
|
469
504
|
break;
|
|
470
505
|
case 2:
|
|
471
506
|
this.enterOuterAlt(_localctx, 2);
|
|
472
507
|
{
|
|
473
|
-
this.state =
|
|
508
|
+
this.state = 104;
|
|
474
509
|
this.primitiveType();
|
|
475
|
-
this.state =
|
|
476
|
-
this.match(BlendApiParser.
|
|
510
|
+
this.state = 105;
|
|
511
|
+
this.match(BlendApiParser.T__13);
|
|
477
512
|
}
|
|
478
513
|
break;
|
|
479
514
|
case 3:
|
|
480
515
|
this.enterOuterAlt(_localctx, 3);
|
|
481
516
|
{
|
|
482
|
-
this.state =
|
|
517
|
+
this.state = 107;
|
|
483
518
|
this.primitiveType();
|
|
484
|
-
this.state =
|
|
485
|
-
this.match(BlendApiParser.
|
|
519
|
+
this.state = 108;
|
|
520
|
+
this.match(BlendApiParser.T__14);
|
|
486
521
|
}
|
|
487
522
|
break;
|
|
488
523
|
case 4:
|
|
489
524
|
this.enterOuterAlt(_localctx, 4);
|
|
490
525
|
{
|
|
491
|
-
this.state =
|
|
526
|
+
this.state = 110;
|
|
492
527
|
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
493
|
-
this.state =
|
|
494
|
-
this.match(BlendApiParser.
|
|
495
|
-
this.state =
|
|
528
|
+
this.state = 111;
|
|
529
|
+
this.match(BlendApiParser.T__15);
|
|
530
|
+
this.state = 112;
|
|
496
531
|
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
497
532
|
}
|
|
498
533
|
break;
|
|
499
534
|
case 5:
|
|
500
535
|
this.enterOuterAlt(_localctx, 5);
|
|
501
536
|
{
|
|
502
|
-
this.state =
|
|
537
|
+
this.state = 113;
|
|
503
538
|
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
504
|
-
this.state =
|
|
505
|
-
this.match(BlendApiParser.
|
|
506
|
-
this.state =
|
|
539
|
+
this.state = 114;
|
|
540
|
+
this.match(BlendApiParser.T__15);
|
|
541
|
+
this.state = 115;
|
|
507
542
|
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
508
|
-
this.state =
|
|
509
|
-
this.match(BlendApiParser.
|
|
543
|
+
this.state = 116;
|
|
544
|
+
this.match(BlendApiParser.T__14);
|
|
510
545
|
}
|
|
511
546
|
break;
|
|
512
547
|
case 6:
|
|
513
548
|
this.enterOuterAlt(_localctx, 6);
|
|
514
549
|
{
|
|
515
|
-
this.state =
|
|
550
|
+
this.state = 117;
|
|
516
551
|
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
517
|
-
this.state =
|
|
518
|
-
this.match(BlendApiParser.
|
|
519
|
-
this.state =
|
|
552
|
+
this.state = 118;
|
|
553
|
+
this.match(BlendApiParser.T__15);
|
|
554
|
+
this.state = 119;
|
|
520
555
|
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
521
|
-
this.state =
|
|
522
|
-
this.match(BlendApiParser.
|
|
556
|
+
this.state = 120;
|
|
557
|
+
this.match(BlendApiParser.T__13);
|
|
523
558
|
}
|
|
524
559
|
break;
|
|
525
560
|
}
|
|
@@ -542,14 +577,14 @@ class BlendApiParser extends Parser_1.Parser {
|
|
|
542
577
|
// @RuleVersion(0)
|
|
543
578
|
primitiveType() {
|
|
544
579
|
let _localctx = new PrimitiveTypeContext(this._ctx, this.state);
|
|
545
|
-
this.enterRule(_localctx,
|
|
580
|
+
this.enterRule(_localctx, 22, BlendApiParser.RULE_primitiveType);
|
|
546
581
|
let _la;
|
|
547
582
|
try {
|
|
548
583
|
this.enterOuterAlt(_localctx, 1);
|
|
549
584
|
{
|
|
550
|
-
this.state =
|
|
585
|
+
this.state = 123;
|
|
551
586
|
_la = this._input.LA(1);
|
|
552
|
-
if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << BlendApiParser.
|
|
587
|
+
if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << BlendApiParser.T__16) | (1 << BlendApiParser.T__17) | (1 << BlendApiParser.T__18) | (1 << BlendApiParser.T__19) | (1 << BlendApiParser.T__20))) !== 0))) {
|
|
553
588
|
this._errHandler.recoverInline(this);
|
|
554
589
|
}
|
|
555
590
|
else {
|
|
@@ -604,87 +639,92 @@ BlendApiParser.T__16 = 17;
|
|
|
604
639
|
BlendApiParser.T__17 = 18;
|
|
605
640
|
BlendApiParser.T__18 = 19;
|
|
606
641
|
BlendApiParser.T__19 = 20;
|
|
607
|
-
BlendApiParser.
|
|
608
|
-
BlendApiParser.
|
|
609
|
-
BlendApiParser.
|
|
610
|
-
BlendApiParser.
|
|
611
|
-
BlendApiParser.
|
|
642
|
+
BlendApiParser.T__20 = 21;
|
|
643
|
+
BlendApiParser.HTTP_METHOD = 22;
|
|
644
|
+
BlendApiParser.IDENTIFIER = 23;
|
|
645
|
+
BlendApiParser.CAPITAL_IDENTIFIER = 24;
|
|
646
|
+
BlendApiParser.URL_IDENTIFIER = 25;
|
|
647
|
+
BlendApiParser.WS = 26;
|
|
612
648
|
BlendApiParser.RULE_program = 0;
|
|
613
649
|
BlendApiParser.RULE_sectionDefinition = 1;
|
|
614
650
|
BlendApiParser.RULE_moduleDefinition = 2;
|
|
615
651
|
BlendApiParser.RULE_apiDefinition = 3;
|
|
616
652
|
BlendApiParser.RULE_authenticated = 4;
|
|
617
|
-
BlendApiParser.
|
|
618
|
-
BlendApiParser.
|
|
619
|
-
BlendApiParser.
|
|
620
|
-
BlendApiParser.
|
|
621
|
-
BlendApiParser.
|
|
622
|
-
BlendApiParser.
|
|
653
|
+
BlendApiParser.RULE_store = 5;
|
|
654
|
+
BlendApiParser.RULE_inputDefinition = 6;
|
|
655
|
+
BlendApiParser.RULE_outputDefinition = 7;
|
|
656
|
+
BlendApiParser.RULE_directOutputDefenition = 8;
|
|
657
|
+
BlendApiParser.RULE_field = 9;
|
|
658
|
+
BlendApiParser.RULE_type = 10;
|
|
659
|
+
BlendApiParser.RULE_primitiveType = 11;
|
|
623
660
|
// tslint:disable:no-trailing-whitespace
|
|
624
661
|
BlendApiParser.ruleNames = [
|
|
625
662
|
"program", "sectionDefinition", "moduleDefinition", "apiDefinition", "authenticated",
|
|
626
|
-
"
|
|
627
|
-
"type", "primitiveType",
|
|
663
|
+
"store", "inputDefinition", "outputDefinition", "directOutputDefenition",
|
|
664
|
+
"field", "type", "primitiveType",
|
|
628
665
|
];
|
|
629
666
|
BlendApiParser._LITERAL_NAMES = [
|
|
630
667
|
undefined, "'section'", "'{'", "'}'", "'module'", "'api'", "'('", "')'",
|
|
631
|
-
"'authenticated'", "'input('", "','", "'output('", "':'", "'[]'",
|
|
632
|
-
"'->'", "'string'", "'number'", "'boolean'", "'any'", "'object'",
|
|
668
|
+
"'authenticated'", "'store'", "'input('", "','", "'output('", "':'", "'[]'",
|
|
669
|
+
"'?'", "'->'", "'string'", "'number'", "'boolean'", "'any'", "'object'",
|
|
633
670
|
];
|
|
634
671
|
BlendApiParser._SYMBOLIC_NAMES = [
|
|
635
672
|
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
|
|
636
673
|
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
|
|
637
674
|
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
|
|
638
|
-
"HTTP_METHOD", "IDENTIFIER", "CAPITAL_IDENTIFIER", "URL_IDENTIFIER",
|
|
675
|
+
undefined, "HTTP_METHOD", "IDENTIFIER", "CAPITAL_IDENTIFIER", "URL_IDENTIFIER",
|
|
676
|
+
"WS",
|
|
639
677
|
];
|
|
640
678
|
BlendApiParser.VOCABULARY = new VocabularyImpl_1.VocabularyImpl(BlendApiParser._LITERAL_NAMES, BlendApiParser._SYMBOLIC_NAMES, []);
|
|
641
|
-
BlendApiParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\
|
|
679
|
+
BlendApiParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x1C\x80\x04\x02" +
|
|
642
680
|
"\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07" +
|
|
643
|
-
"\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f\
|
|
644
|
-
"\x07\x02\
|
|
645
|
-
"\x03\x07\x03
|
|
646
|
-
"\x04\x03\x04\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05
|
|
647
|
-
"\x05\x05\
|
|
648
|
-
"\x05\x03\x05\x03\x06\x03\x06\x03\x07\x03\x07\x03\
|
|
649
|
-
"\
|
|
650
|
-
"\
|
|
651
|
-
"\
|
|
652
|
-
"\
|
|
653
|
-
"\
|
|
654
|
-
"\b\x02\n\x02\f\x02\x0E\x02\x10\x02\x12\x02\x14\x02\x16\x02\
|
|
655
|
-
"\x02\
|
|
656
|
-
"\x02\x02\x02\x06
|
|
657
|
-
"\
|
|
658
|
-
"\x02\x02\x02\
|
|
659
|
-
"\
|
|
660
|
-
"\x02\x02\
|
|
661
|
-
"\x02\x02\
|
|
662
|
-
"
|
|
663
|
-
"\x02
|
|
664
|
-
"\x02\x02
|
|
665
|
-
"\
|
|
666
|
-
"
|
|
667
|
-
"
|
|
668
|
-
"
|
|
669
|
-
"
|
|
670
|
-
"
|
|
671
|
-
"
|
|
672
|
-
"\
|
|
673
|
-
"
|
|
674
|
-
"
|
|
675
|
-
"\
|
|
676
|
-
"
|
|
677
|
-
"
|
|
678
|
-
"\x03\x02\x02\x02[
|
|
679
|
-
"\
|
|
680
|
-
"\
|
|
681
|
-
"\x02ef\
|
|
682
|
-
"\
|
|
683
|
-
"\
|
|
684
|
-
"\
|
|
685
|
-
"\
|
|
686
|
-
"\
|
|
687
|
-
"\x02\
|
|
681
|
+
"\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f\x04\r\t\r\x03" +
|
|
682
|
+
"\x02\x03\x02\x07\x02\x1D\n\x02\f\x02\x0E\x02 \v\x02\x03\x03\x03\x03\x03" +
|
|
683
|
+
"\x03\x03\x03\x07\x03&\n\x03\f\x03\x0E\x03)\v\x03\x03\x03\x03\x03\x03\x04" +
|
|
684
|
+
"\x03\x04\x03\x04\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05" +
|
|
685
|
+
"\x03\x05\x05\x058\n\x05\x03\x05\x05\x05;\n\x05\x03\x05\x05\x05>\n\x05" +
|
|
686
|
+
"\x03\x05\x03\x05\x03\x06\x03\x06\x03\x07\x03\x07\x03\b\x03\b\x03\b\x03" +
|
|
687
|
+
"\b\x07\bJ\n\b\f\b\x0E\bM\v\b\x03\b\x03\b\x05\bQ\n\b\x03\t\x03\t\x03\t" +
|
|
688
|
+
"\x03\t\x07\tW\n\t\f\t\x0E\tZ\v\t\x03\t\x03\t\x03\t\x03\t\x03\t\x03\t\x05" +
|
|
689
|
+
"\tb\n\t\x03\n\x03\n\x03\v\x03\v\x03\v\x03\v\x03\f\x03\f\x03\f\x03\f\x03" +
|
|
690
|
+
"\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03" +
|
|
691
|
+
"\f\x03\f\x05\f|\n\f\x03\r\x03\r\x03\r\x02\x02\x02\x0E\x02\x02\x04\x02" +
|
|
692
|
+
"\x06\x02\b\x02\n\x02\f\x02\x0E\x02\x10\x02\x12\x02\x14\x02\x16\x02\x18" +
|
|
693
|
+
"\x02\x02\x04\x03\x02\x19\x1A\x03\x02\x13\x17\x02\x81\x02\x1A\x03\x02\x02" +
|
|
694
|
+
"\x02\x04!\x03\x02\x02\x02\x06,\x03\x02\x02\x02\b/\x03\x02\x02\x02\nA\x03" +
|
|
695
|
+
"\x02\x02\x02\fC\x03\x02\x02\x02\x0EE\x03\x02\x02\x02\x10a\x03\x02\x02" +
|
|
696
|
+
"\x02\x12c\x03\x02\x02\x02\x14e\x03\x02\x02\x02\x16{\x03\x02\x02\x02\x18" +
|
|
697
|
+
"}\x03\x02\x02\x02\x1A\x1E\x05\x06\x04\x02\x1B\x1D\x05\x04\x03\x02\x1C" +
|
|
698
|
+
"\x1B\x03\x02\x02\x02\x1D \x03\x02\x02\x02\x1E\x1C\x03\x02\x02\x02\x1E" +
|
|
699
|
+
"\x1F\x03\x02\x02\x02\x1F\x03\x03\x02\x02\x02 \x1E\x03\x02\x02\x02!\"\x07" +
|
|
700
|
+
"\x03\x02\x02\"#\x07\x1A\x02\x02#\'\x07\x04\x02\x02$&\x05\b\x05\x02%$\x03" +
|
|
701
|
+
"\x02\x02\x02&)\x03\x02\x02\x02\'%\x03\x02\x02\x02\'(\x03\x02\x02\x02(" +
|
|
702
|
+
"*\x03\x02\x02\x02)\'\x03\x02\x02\x02*+\x07\x05\x02\x02+\x05\x03\x02\x02" +
|
|
703
|
+
"\x02,-\x07\x06\x02\x02-.\x07\x1A\x02\x02.\x07\x03\x02\x02\x02/0\x07\x07" +
|
|
704
|
+
"\x02\x0201\x07\x19\x02\x0212\x07\b\x02\x0223\x07\x18\x02\x0234\x07\t\x02" +
|
|
705
|
+
"\x0245\x07\x1B\x02\x0257\x07\x04\x02\x0268\x05\n\x06\x0276\x03\x02\x02" +
|
|
706
|
+
"\x0278\x03\x02\x02\x028:\x03\x02\x02\x029;\x05\x0E\b\x02:9\x03\x02\x02" +
|
|
707
|
+
"\x02:;\x03\x02\x02\x02;=\x03\x02\x02\x02<>\x05\x10\t\x02=<\x03\x02\x02" +
|
|
708
|
+
"\x02=>\x03\x02\x02\x02>?\x03\x02\x02\x02?@\x07\x05\x02\x02@\t\x03\x02" +
|
|
709
|
+
"\x02\x02AB\x07\n\x02\x02B\v\x03\x02\x02\x02CD\x07\v\x02\x02D\r\x03\x02" +
|
|
710
|
+
"\x02\x02EF\x07\f\x02\x02FK\x05\x14\v\x02GH\x07\r\x02\x02HJ\x05\x14\v\x02" +
|
|
711
|
+
"IG\x03\x02\x02\x02JM\x03\x02\x02\x02KI\x03\x02\x02\x02KL\x03\x02\x02\x02" +
|
|
712
|
+
"LN\x03\x02\x02\x02MK\x03\x02\x02\x02NP\x07\t\x02\x02OQ\x05\f\x07\x02P" +
|
|
713
|
+
"O\x03\x02\x02\x02PQ\x03\x02\x02\x02Q\x0F\x03\x02\x02\x02RS\x07\x0E\x02" +
|
|
714
|
+
"\x02SX\x05\x14\v\x02TU\x07\r\x02\x02UW\x05\x14\v\x02VT\x03\x02\x02\x02" +
|
|
715
|
+
"WZ\x03\x02\x02\x02XV\x03\x02\x02\x02XY\x03\x02\x02\x02Y[\x03\x02\x02\x02" +
|
|
716
|
+
"ZX\x03\x02\x02\x02[\\\x07\t\x02\x02\\b\x03\x02\x02\x02]^\x07\x0E\x02\x02" +
|
|
717
|
+
"^_\x05\x12\n\x02_`\x07\t\x02\x02`b\x03\x02\x02\x02aR\x03\x02\x02\x02a" +
|
|
718
|
+
"]\x03\x02\x02\x02b\x11\x03\x02\x02\x02cd\x05\x16\f\x02d\x13\x03\x02\x02" +
|
|
719
|
+
"\x02ef\t\x02\x02\x02fg\x07\x0F\x02\x02gh\x05\x16\f\x02h\x15\x03\x02\x02" +
|
|
720
|
+
"\x02i|\x05\x18\r\x02jk\x05\x18\r\x02kl\x07\x10\x02\x02l|\x03\x02\x02\x02" +
|
|
721
|
+
"mn\x05\x18\r\x02no\x07\x11\x02\x02o|\x03\x02\x02\x02pq\x07\x1A\x02\x02" +
|
|
722
|
+
"qr\x07\x12\x02\x02r|\x07\x1A\x02\x02st\x07\x1A\x02\x02tu\x07\x12\x02\x02" +
|
|
723
|
+
"uv\x07\x1A\x02\x02v|\x07\x11\x02\x02wx\x07\x1A\x02\x02xy\x07\x12\x02\x02" +
|
|
724
|
+
"yz\x07\x1A\x02\x02z|\x07\x10\x02\x02{i\x03\x02\x02\x02{j\x03\x02\x02\x02" +
|
|
725
|
+
"{m\x03\x02\x02\x02{p\x03\x02\x02\x02{s\x03\x02\x02\x02{w\x03\x02\x02\x02" +
|
|
726
|
+
"|\x17\x03\x02\x02\x02}~\t\x03\x02\x02~\x19\x03\x02\x02\x02\f\x1E\'7:=" +
|
|
727
|
+
"KPXa{";
|
|
688
728
|
class ProgramContext extends ParserRuleContext_1.ParserRuleContext {
|
|
689
729
|
moduleDefinition() {
|
|
690
730
|
return this.getRuleContext(0, ModuleDefinitionContext);
|
|
@@ -818,6 +858,26 @@ class AuthenticatedContext extends ParserRuleContext_1.ParserRuleContext {
|
|
|
818
858
|
}
|
|
819
859
|
}
|
|
820
860
|
exports.AuthenticatedContext = AuthenticatedContext;
|
|
861
|
+
class StoreContext extends ParserRuleContext_1.ParserRuleContext {
|
|
862
|
+
constructor(parent, invokingState) {
|
|
863
|
+
super(parent, invokingState);
|
|
864
|
+
}
|
|
865
|
+
// @Override
|
|
866
|
+
get ruleIndex() { return BlendApiParser.RULE_store; }
|
|
867
|
+
// @Override
|
|
868
|
+
enterRule(listener) {
|
|
869
|
+
if (listener.enterStore) {
|
|
870
|
+
listener.enterStore(this);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
// @Override
|
|
874
|
+
exitRule(listener) {
|
|
875
|
+
if (listener.exitStore) {
|
|
876
|
+
listener.exitStore(this);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
exports.StoreContext = StoreContext;
|
|
821
881
|
class InputDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
|
|
822
882
|
field(i) {
|
|
823
883
|
if (i === undefined) {
|
|
@@ -827,6 +887,9 @@ class InputDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
|
|
|
827
887
|
return this.getRuleContext(i, FieldContext);
|
|
828
888
|
}
|
|
829
889
|
}
|
|
890
|
+
store() {
|
|
891
|
+
return this.tryGetRuleContext(0, StoreContext);
|
|
892
|
+
}
|
|
830
893
|
constructor(parent, invokingState) {
|
|
831
894
|
super(parent, invokingState);
|
|
832
895
|
}
|