blend-r 1.1.6

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.
Files changed (30) hide show
  1. package/README.md +213 -0
  2. package/dist/helper/ApiHelper.js +766 -0
  3. package/dist/helper/BasicHelper.js +43 -0
  4. package/dist/helper/DataHelper.js +231 -0
  5. package/dist/helper/FrontEndHelper.js +201 -0
  6. package/dist/helper/fileHelper.js +127 -0
  7. package/dist/helper/grammarHelper/BlendApiGrammarHelper.js +90 -0
  8. package/dist/helper/grammarHelper/BlendBasicGrammarHelper.js +135 -0
  9. package/dist/helper/grammarHelper/BlendDataGrammarHelper.js +47 -0
  10. package/dist/helper/grammarHelper/GrammarErrorHelper.js +16 -0
  11. package/dist/index.js +87 -0
  12. package/dist/parser/blendApi/src/grammar/BlendApiLexer.js +207 -0
  13. package/dist/parser/blendApi/src/grammar/BlendApiListener.js +3 -0
  14. package/dist/parser/blendApi/src/grammar/BlendApiParser.js +978 -0
  15. package/dist/parser/blendData/src/grammar/BlendDataLexer.js +154 -0
  16. package/dist/parser/blendData/src/grammar/BlendDataListener.js +3 -0
  17. package/dist/parser/blendData/src/grammar/BlendDataParser.js +642 -0
  18. package/dist/parser/blendRBasic/src/grammar/BlendRBasicListener.js +3 -0
  19. package/dist/parser/blendRBasic/src/grammar/blendRBasicLexer.js +184 -0
  20. package/dist/parser/blendRBasic/src/grammar/blendRBasicParser.js +993 -0
  21. package/dist/parser/blendRnBasic/src/grammar/BlendRnBasicLexer.js +214 -0
  22. package/dist/parser/blendRnBasic/src/grammar/BlendRnBasicListener.js +3 -0
  23. package/dist/parser/blendRnBasic/src/grammar/BlendRnBasicParser.js +1224 -0
  24. package/dist/types/apiOperationTypes.js +20 -0
  25. package/dist/types/basicOperationTypes.js +3 -0
  26. package/dist/types/dataOperationTypes.js +2 -0
  27. package/dist/types/frontendOperationTypes.js +4 -0
  28. package/dist/types/generalTypes.js +0 -0
  29. package/dist/types/mongoOperationTypes.js +12 -0
  30. package/package.json +36 -0
@@ -0,0 +1,993 @@
1
+ "use strict";
2
+ // Generated from src/grammar/BlendRBasic.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 () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.PageDefinitionContext = exports.LayoutDefinitionContext = exports.ComponentDefenitionContext = exports.ScreenDefenitionContext = exports.RoleDefenitionContext = exports.ProgramContext = exports.ApiModuleContext = exports.DataModuleContext = exports.ModuleContext = exports.SectionsContext = exports.BlendRBasicParser = void 0;
38
+ const ATNDeserializer_1 = require("antlr4ts/atn/ATNDeserializer");
39
+ const FailedPredicateException_1 = require("antlr4ts/FailedPredicateException");
40
+ const NoViableAltException_1 = require("antlr4ts/NoViableAltException");
41
+ const Parser_1 = require("antlr4ts/Parser");
42
+ const ParserRuleContext_1 = require("antlr4ts/ParserRuleContext");
43
+ const ParserATNSimulator_1 = require("antlr4ts/atn/ParserATNSimulator");
44
+ const RecognitionException_1 = require("antlr4ts/RecognitionException");
45
+ const VocabularyImpl_1 = require("antlr4ts/VocabularyImpl");
46
+ const Utils = __importStar(require("antlr4ts/misc/Utils"));
47
+ class BlendRBasicParser extends Parser_1.Parser {
48
+ // @Override
49
+ // @NotNull
50
+ get vocabulary() {
51
+ return BlendRBasicParser.VOCABULARY;
52
+ }
53
+ // tslint:enable:no-trailing-whitespace
54
+ // @Override
55
+ get grammarFileName() { return "BlendRBasic.g4"; }
56
+ // @Override
57
+ get ruleNames() { return BlendRBasicParser.ruleNames; }
58
+ // @Override
59
+ get serializedATN() { return BlendRBasicParser._serializedATN; }
60
+ createFailedPredicateException(predicate, message) {
61
+ return new FailedPredicateException_1.FailedPredicateException(this, predicate, message);
62
+ }
63
+ constructor(input) {
64
+ super(input);
65
+ this._interp = new ParserATNSimulator_1.ParserATNSimulator(BlendRBasicParser._ATN, this);
66
+ }
67
+ // @RuleVersion(0)
68
+ sections() {
69
+ let _localctx = new SectionsContext(this._ctx, this.state);
70
+ this.enterRule(_localctx, 0, BlendRBasicParser.RULE_sections);
71
+ let _la;
72
+ try {
73
+ this.enterOuterAlt(_localctx, 1);
74
+ {
75
+ this.state = 23;
76
+ this._errHandler.sync(this);
77
+ _la = this._input.LA(1);
78
+ while (_la === BlendRBasicParser.T__0 || _la === BlendRBasicParser.T__2) {
79
+ {
80
+ {
81
+ this.state = 20;
82
+ this.module();
83
+ }
84
+ }
85
+ this.state = 25;
86
+ this._errHandler.sync(this);
87
+ _la = this._input.LA(1);
88
+ }
89
+ this.state = 26;
90
+ this.program();
91
+ }
92
+ }
93
+ catch (re) {
94
+ if (re instanceof RecognitionException_1.RecognitionException) {
95
+ _localctx.exception = re;
96
+ this._errHandler.reportError(this, re);
97
+ this._errHandler.recover(this, re);
98
+ }
99
+ else {
100
+ throw re;
101
+ }
102
+ }
103
+ finally {
104
+ this.exitRule();
105
+ }
106
+ return _localctx;
107
+ }
108
+ // @RuleVersion(0)
109
+ module() {
110
+ let _localctx = new ModuleContext(this._ctx, this.state);
111
+ this.enterRule(_localctx, 2, BlendRBasicParser.RULE_module);
112
+ try {
113
+ this.state = 30;
114
+ this._errHandler.sync(this);
115
+ switch (this._input.LA(1)) {
116
+ case BlendRBasicParser.T__0:
117
+ this.enterOuterAlt(_localctx, 1);
118
+ {
119
+ this.state = 28;
120
+ this.dataModule();
121
+ }
122
+ break;
123
+ case BlendRBasicParser.T__2:
124
+ this.enterOuterAlt(_localctx, 2);
125
+ {
126
+ this.state = 29;
127
+ this.apiModule();
128
+ }
129
+ break;
130
+ default:
131
+ throw new NoViableAltException_1.NoViableAltException(this);
132
+ }
133
+ }
134
+ catch (re) {
135
+ if (re instanceof RecognitionException_1.RecognitionException) {
136
+ _localctx.exception = re;
137
+ this._errHandler.reportError(this, re);
138
+ this._errHandler.recover(this, re);
139
+ }
140
+ else {
141
+ throw re;
142
+ }
143
+ }
144
+ finally {
145
+ this.exitRule();
146
+ }
147
+ return _localctx;
148
+ }
149
+ // @RuleVersion(0)
150
+ dataModule() {
151
+ let _localctx = new DataModuleContext(this._ctx, this.state);
152
+ this.enterRule(_localctx, 4, BlendRBasicParser.RULE_dataModule);
153
+ let _la;
154
+ try {
155
+ this.enterOuterAlt(_localctx, 1);
156
+ {
157
+ this.state = 32;
158
+ this.match(BlendRBasicParser.T__0);
159
+ this.state = 33;
160
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
161
+ this.state = 38;
162
+ this._errHandler.sync(this);
163
+ _la = this._input.LA(1);
164
+ while (_la === BlendRBasicParser.T__1) {
165
+ {
166
+ {
167
+ this.state = 34;
168
+ this.match(BlendRBasicParser.T__1);
169
+ this.state = 35;
170
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
171
+ }
172
+ }
173
+ this.state = 40;
174
+ this._errHandler.sync(this);
175
+ _la = this._input.LA(1);
176
+ }
177
+ }
178
+ }
179
+ catch (re) {
180
+ if (re instanceof RecognitionException_1.RecognitionException) {
181
+ _localctx.exception = re;
182
+ this._errHandler.reportError(this, re);
183
+ this._errHandler.recover(this, re);
184
+ }
185
+ else {
186
+ throw re;
187
+ }
188
+ }
189
+ finally {
190
+ this.exitRule();
191
+ }
192
+ return _localctx;
193
+ }
194
+ // @RuleVersion(0)
195
+ apiModule() {
196
+ let _localctx = new ApiModuleContext(this._ctx, this.state);
197
+ this.enterRule(_localctx, 6, BlendRBasicParser.RULE_apiModule);
198
+ let _la;
199
+ try {
200
+ this.enterOuterAlt(_localctx, 1);
201
+ {
202
+ this.state = 41;
203
+ this.match(BlendRBasicParser.T__2);
204
+ this.state = 42;
205
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
206
+ this.state = 47;
207
+ this._errHandler.sync(this);
208
+ _la = this._input.LA(1);
209
+ while (_la === BlendRBasicParser.T__1) {
210
+ {
211
+ {
212
+ this.state = 43;
213
+ this.match(BlendRBasicParser.T__1);
214
+ this.state = 44;
215
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
216
+ }
217
+ }
218
+ this.state = 49;
219
+ this._errHandler.sync(this);
220
+ _la = this._input.LA(1);
221
+ }
222
+ }
223
+ }
224
+ catch (re) {
225
+ if (re instanceof RecognitionException_1.RecognitionException) {
226
+ _localctx.exception = re;
227
+ this._errHandler.reportError(this, re);
228
+ this._errHandler.recover(this, re);
229
+ }
230
+ else {
231
+ throw re;
232
+ }
233
+ }
234
+ finally {
235
+ this.exitRule();
236
+ }
237
+ return _localctx;
238
+ }
239
+ // @RuleVersion(0)
240
+ program() {
241
+ let _localctx = new ProgramContext(this._ctx, this.state);
242
+ this.enterRule(_localctx, 8, BlendRBasicParser.RULE_program);
243
+ let _la;
244
+ try {
245
+ this.enterOuterAlt(_localctx, 1);
246
+ {
247
+ this.state = 56;
248
+ this._errHandler.sync(this);
249
+ _la = this._input.LA(1);
250
+ while ((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << BlendRBasicParser.T__3) | (1 << BlendRBasicParser.T__4) | (1 << BlendRBasicParser.T__6) | (1 << BlendRBasicParser.T__7))) !== 0)) {
251
+ {
252
+ this.state = 54;
253
+ this._errHandler.sync(this);
254
+ switch (this._input.LA(1)) {
255
+ case BlendRBasicParser.T__3:
256
+ {
257
+ this.state = 50;
258
+ this.roleDefenition();
259
+ }
260
+ break;
261
+ case BlendRBasicParser.T__6:
262
+ {
263
+ this.state = 51;
264
+ this.componentDefenition();
265
+ }
266
+ break;
267
+ case BlendRBasicParser.T__4:
268
+ {
269
+ this.state = 52;
270
+ this.screenDefenition();
271
+ }
272
+ break;
273
+ case BlendRBasicParser.T__7:
274
+ {
275
+ this.state = 53;
276
+ this.layoutDefinition();
277
+ }
278
+ break;
279
+ default:
280
+ throw new NoViableAltException_1.NoViableAltException(this);
281
+ }
282
+ }
283
+ this.state = 58;
284
+ this._errHandler.sync(this);
285
+ _la = this._input.LA(1);
286
+ }
287
+ }
288
+ }
289
+ catch (re) {
290
+ if (re instanceof RecognitionException_1.RecognitionException) {
291
+ _localctx.exception = re;
292
+ this._errHandler.reportError(this, re);
293
+ this._errHandler.recover(this, re);
294
+ }
295
+ else {
296
+ throw re;
297
+ }
298
+ }
299
+ finally {
300
+ this.exitRule();
301
+ }
302
+ return _localctx;
303
+ }
304
+ // @RuleVersion(0)
305
+ roleDefenition() {
306
+ let _localctx = new RoleDefenitionContext(this._ctx, this.state);
307
+ this.enterRule(_localctx, 10, BlendRBasicParser.RULE_roleDefenition);
308
+ let _la;
309
+ try {
310
+ this.enterOuterAlt(_localctx, 1);
311
+ {
312
+ this.state = 59;
313
+ this.match(BlendRBasicParser.T__3);
314
+ this.state = 60;
315
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
316
+ this.state = 65;
317
+ this._errHandler.sync(this);
318
+ _la = this._input.LA(1);
319
+ while (_la === BlendRBasicParser.T__1) {
320
+ {
321
+ {
322
+ this.state = 61;
323
+ this.match(BlendRBasicParser.T__1);
324
+ this.state = 62;
325
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
326
+ }
327
+ }
328
+ this.state = 67;
329
+ this._errHandler.sync(this);
330
+ _la = this._input.LA(1);
331
+ }
332
+ }
333
+ }
334
+ catch (re) {
335
+ if (re instanceof RecognitionException_1.RecognitionException) {
336
+ _localctx.exception = re;
337
+ this._errHandler.reportError(this, re);
338
+ this._errHandler.recover(this, re);
339
+ }
340
+ else {
341
+ throw re;
342
+ }
343
+ }
344
+ finally {
345
+ this.exitRule();
346
+ }
347
+ return _localctx;
348
+ }
349
+ // @RuleVersion(0)
350
+ screenDefenition() {
351
+ let _localctx = new ScreenDefenitionContext(this._ctx, this.state);
352
+ this.enterRule(_localctx, 12, BlendRBasicParser.RULE_screenDefenition);
353
+ let _la;
354
+ try {
355
+ this.enterOuterAlt(_localctx, 1);
356
+ {
357
+ this.state = 68;
358
+ this.match(BlendRBasicParser.T__4);
359
+ this.state = 69;
360
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
361
+ this.state = 74;
362
+ this._errHandler.sync(this);
363
+ _la = this._input.LA(1);
364
+ while (_la === BlendRBasicParser.T__1) {
365
+ {
366
+ {
367
+ this.state = 70;
368
+ this.match(BlendRBasicParser.T__1);
369
+ this.state = 71;
370
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
371
+ }
372
+ }
373
+ this.state = 76;
374
+ this._errHandler.sync(this);
375
+ _la = this._input.LA(1);
376
+ }
377
+ this.state = 77;
378
+ this.match(BlendRBasicParser.T__5);
379
+ this.state = 78;
380
+ this.match(BlendRBasicParser.PATH_IDENTIFIER);
381
+ }
382
+ }
383
+ catch (re) {
384
+ if (re instanceof RecognitionException_1.RecognitionException) {
385
+ _localctx.exception = re;
386
+ this._errHandler.reportError(this, re);
387
+ this._errHandler.recover(this, re);
388
+ }
389
+ else {
390
+ throw re;
391
+ }
392
+ }
393
+ finally {
394
+ this.exitRule();
395
+ }
396
+ return _localctx;
397
+ }
398
+ // @RuleVersion(0)
399
+ componentDefenition() {
400
+ let _localctx = new ComponentDefenitionContext(this._ctx, this.state);
401
+ this.enterRule(_localctx, 14, BlendRBasicParser.RULE_componentDefenition);
402
+ let _la;
403
+ try {
404
+ this.enterOuterAlt(_localctx, 1);
405
+ {
406
+ this.state = 80;
407
+ this.match(BlendRBasicParser.T__6);
408
+ this.state = 81;
409
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
410
+ this.state = 86;
411
+ this._errHandler.sync(this);
412
+ _la = this._input.LA(1);
413
+ while (_la === BlendRBasicParser.T__1) {
414
+ {
415
+ {
416
+ this.state = 82;
417
+ this.match(BlendRBasicParser.T__1);
418
+ this.state = 83;
419
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
420
+ }
421
+ }
422
+ this.state = 88;
423
+ this._errHandler.sync(this);
424
+ _la = this._input.LA(1);
425
+ }
426
+ this.state = 89;
427
+ this.match(BlendRBasicParser.T__5);
428
+ this.state = 90;
429
+ this.match(BlendRBasicParser.PATH_IDENTIFIER);
430
+ }
431
+ }
432
+ catch (re) {
433
+ if (re instanceof RecognitionException_1.RecognitionException) {
434
+ _localctx.exception = re;
435
+ this._errHandler.reportError(this, re);
436
+ this._errHandler.recover(this, re);
437
+ }
438
+ else {
439
+ throw re;
440
+ }
441
+ }
442
+ finally {
443
+ this.exitRule();
444
+ }
445
+ return _localctx;
446
+ }
447
+ // @RuleVersion(0)
448
+ layoutDefinition() {
449
+ let _localctx = new LayoutDefinitionContext(this._ctx, this.state);
450
+ this.enterRule(_localctx, 16, BlendRBasicParser.RULE_layoutDefinition);
451
+ let _la;
452
+ try {
453
+ this.enterOuterAlt(_localctx, 1);
454
+ {
455
+ this.state = 92;
456
+ this.match(BlendRBasicParser.T__7);
457
+ this.state = 93;
458
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
459
+ this.state = 94;
460
+ this.match(BlendRBasicParser.T__8);
461
+ this.state = 95;
462
+ this.match(BlendRBasicParser.PATH_IDENTIFIER);
463
+ this.state = 96;
464
+ this.match(BlendRBasicParser.T__9);
465
+ this.state = 97;
466
+ this.match(BlendRBasicParser.T__10);
467
+ this.state = 101;
468
+ this._errHandler.sync(this);
469
+ _la = this._input.LA(1);
470
+ while (_la === BlendRBasicParser.T__12) {
471
+ {
472
+ {
473
+ this.state = 98;
474
+ this.pageDefinition();
475
+ }
476
+ }
477
+ this.state = 103;
478
+ this._errHandler.sync(this);
479
+ _la = this._input.LA(1);
480
+ }
481
+ this.state = 107;
482
+ this._errHandler.sync(this);
483
+ _la = this._input.LA(1);
484
+ while (_la === BlendRBasicParser.T__7) {
485
+ {
486
+ {
487
+ this.state = 104;
488
+ this.layoutDefinition();
489
+ }
490
+ }
491
+ this.state = 109;
492
+ this._errHandler.sync(this);
493
+ _la = this._input.LA(1);
494
+ }
495
+ this.state = 110;
496
+ this.match(BlendRBasicParser.T__11);
497
+ }
498
+ }
499
+ catch (re) {
500
+ if (re instanceof RecognitionException_1.RecognitionException) {
501
+ _localctx.exception = re;
502
+ this._errHandler.reportError(this, re);
503
+ this._errHandler.recover(this, re);
504
+ }
505
+ else {
506
+ throw re;
507
+ }
508
+ }
509
+ finally {
510
+ this.exitRule();
511
+ }
512
+ return _localctx;
513
+ }
514
+ // @RuleVersion(0)
515
+ pageDefinition() {
516
+ let _localctx = new PageDefinitionContext(this._ctx, this.state);
517
+ this.enterRule(_localctx, 18, BlendRBasicParser.RULE_pageDefinition);
518
+ let _la;
519
+ try {
520
+ this.enterOuterAlt(_localctx, 1);
521
+ {
522
+ this.state = 112;
523
+ this.match(BlendRBasicParser.T__12);
524
+ this.state = 113;
525
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
526
+ this.state = 114;
527
+ this.match(BlendRBasicParser.T__8);
528
+ this.state = 115;
529
+ this.match(BlendRBasicParser.PATH_IDENTIFIER);
530
+ this.state = 116;
531
+ this.match(BlendRBasicParser.T__9);
532
+ this.state = 117;
533
+ this.match(BlendRBasicParser.T__13);
534
+ this.state = 118;
535
+ this.match(BlendRBasicParser.T__8);
536
+ this.state = 119;
537
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
538
+ this.state = 120;
539
+ this.match(BlendRBasicParser.T__9);
540
+ this.state = 125;
541
+ this._errHandler.sync(this);
542
+ _la = this._input.LA(1);
543
+ if (_la === BlendRBasicParser.T__14) {
544
+ {
545
+ this.state = 121;
546
+ this.match(BlendRBasicParser.T__14);
547
+ this.state = 122;
548
+ this.match(BlendRBasicParser.T__8);
549
+ this.state = 123;
550
+ this.match(BlendRBasicParser.CAPITAL_IDENTIFIER);
551
+ this.state = 124;
552
+ this.match(BlendRBasicParser.T__9);
553
+ }
554
+ }
555
+ }
556
+ }
557
+ catch (re) {
558
+ if (re instanceof RecognitionException_1.RecognitionException) {
559
+ _localctx.exception = re;
560
+ this._errHandler.reportError(this, re);
561
+ this._errHandler.recover(this, re);
562
+ }
563
+ else {
564
+ throw re;
565
+ }
566
+ }
567
+ finally {
568
+ this.exitRule();
569
+ }
570
+ return _localctx;
571
+ }
572
+ static get _ATN() {
573
+ if (!BlendRBasicParser.__ATN) {
574
+ BlendRBasicParser.__ATN = new ATNDeserializer_1.ATNDeserializer().deserialize(Utils.toCharArray(BlendRBasicParser._serializedATN));
575
+ }
576
+ return BlendRBasicParser.__ATN;
577
+ }
578
+ }
579
+ exports.BlendRBasicParser = BlendRBasicParser;
580
+ BlendRBasicParser.T__0 = 1;
581
+ BlendRBasicParser.T__1 = 2;
582
+ BlendRBasicParser.T__2 = 3;
583
+ BlendRBasicParser.T__3 = 4;
584
+ BlendRBasicParser.T__4 = 5;
585
+ BlendRBasicParser.T__5 = 6;
586
+ BlendRBasicParser.T__6 = 7;
587
+ BlendRBasicParser.T__7 = 8;
588
+ BlendRBasicParser.T__8 = 9;
589
+ BlendRBasicParser.T__9 = 10;
590
+ BlendRBasicParser.T__10 = 11;
591
+ BlendRBasicParser.T__11 = 12;
592
+ BlendRBasicParser.T__12 = 13;
593
+ BlendRBasicParser.T__13 = 14;
594
+ BlendRBasicParser.T__14 = 15;
595
+ BlendRBasicParser.PATH_IDENTIFIER = 16;
596
+ BlendRBasicParser.IDENTIFIER = 17;
597
+ BlendRBasicParser.CAPITAL_IDENTIFIER = 18;
598
+ BlendRBasicParser.WS = 19;
599
+ BlendRBasicParser.RULE_sections = 0;
600
+ BlendRBasicParser.RULE_module = 1;
601
+ BlendRBasicParser.RULE_dataModule = 2;
602
+ BlendRBasicParser.RULE_apiModule = 3;
603
+ BlendRBasicParser.RULE_program = 4;
604
+ BlendRBasicParser.RULE_roleDefenition = 5;
605
+ BlendRBasicParser.RULE_screenDefenition = 6;
606
+ BlendRBasicParser.RULE_componentDefenition = 7;
607
+ BlendRBasicParser.RULE_layoutDefinition = 8;
608
+ BlendRBasicParser.RULE_pageDefinition = 9;
609
+ // tslint:disable:no-trailing-whitespace
610
+ BlendRBasicParser.ruleNames = [
611
+ "sections", "module", "dataModule", "apiModule", "program", "roleDefenition",
612
+ "screenDefenition", "componentDefenition", "layoutDefinition", "pageDefinition",
613
+ ];
614
+ BlendRBasicParser._LITERAL_NAMES = [
615
+ undefined, "'data-module'", "','", "'api-module'", "'role'", "'screen'",
616
+ "'under'", "'component'", "'layout'", "'('", "')'", "'{'", "'}'", "'page'",
617
+ "'view'", "'authenticated'",
618
+ ];
619
+ BlendRBasicParser._SYMBOLIC_NAMES = [
620
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
621
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
622
+ undefined, undefined, "PATH_IDENTIFIER", "IDENTIFIER", "CAPITAL_IDENTIFIER",
623
+ "WS",
624
+ ];
625
+ BlendRBasicParser.VOCABULARY = new VocabularyImpl_1.VocabularyImpl(BlendRBasicParser._LITERAL_NAMES, BlendRBasicParser._SYMBOLIC_NAMES, []);
626
+ BlendRBasicParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x15\x82\x04\x02" +
627
+ "\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07" +
628
+ "\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" +
629
+ "\f\x02\x0E\x02\x1B\v\x02\x03\x02\x03\x02\x03\x03\x03\x03\x05\x03!\n\x03" +
630
+ "\x03\x04\x03\x04\x03\x04\x03\x04\x07\x04\'\n\x04\f\x04\x0E\x04*\v\x04" +
631
+ "\x03\x05\x03\x05\x03\x05\x03\x05\x07\x050\n\x05\f\x05\x0E\x053\v\x05\x03" +
632
+ "\x06\x03\x06\x03\x06\x03\x06\x07\x069\n\x06\f\x06\x0E\x06<\v\x06\x03\x07" +
633
+ "\x03\x07\x03\x07\x03\x07\x07\x07B\n\x07\f\x07\x0E\x07E\v\x07\x03\b\x03" +
634
+ "\b\x03\b\x03\b\x07\bK\n\b\f\b\x0E\bN\v\b\x03\b\x03\b\x03\b\x03\t\x03\t" +
635
+ "\x03\t\x03\t\x07\tW\n\t\f\t\x0E\tZ\v\t\x03\t\x03\t\x03\t\x03\n\x03\n\x03" +
636
+ "\n\x03\n\x03\n\x03\n\x03\n\x07\nf\n\n\f\n\x0E\ni\v\n\x03\n\x07\nl\n\n" +
637
+ "\f\n\x0E\no\v\n\x03\n\x03\n\x03\v\x03\v\x03\v\x03\v\x03\v\x03\v\x03\v" +
638
+ "\x03\v\x03\v\x03\v\x03\v\x03\v\x03\v\x05\v\x80\n\v\x03\v\x02\x02\x02\f" +
639
+ "\x02\x02\x04\x02\x06\x02\b\x02\n\x02\f\x02\x0E\x02\x10\x02\x12\x02\x14" +
640
+ "\x02\x02\x02\x02\x85\x02\x19\x03\x02\x02\x02\x04 \x03\x02\x02\x02\x06" +
641
+ "\"\x03\x02\x02\x02\b+\x03\x02\x02\x02\n:\x03\x02\x02\x02\f=\x03\x02\x02" +
642
+ "\x02\x0EF\x03\x02\x02\x02\x10R\x03\x02\x02\x02\x12^\x03\x02\x02\x02\x14" +
643
+ "r\x03\x02\x02\x02\x16\x18\x05\x04\x03\x02\x17\x16\x03\x02\x02\x02\x18" +
644
+ "\x1B\x03\x02\x02\x02\x19\x17\x03\x02\x02\x02\x19\x1A\x03\x02\x02\x02\x1A" +
645
+ "\x1C\x03\x02\x02\x02\x1B\x19\x03\x02\x02\x02\x1C\x1D\x05\n\x06\x02\x1D" +
646
+ "\x03\x03\x02\x02\x02\x1E!\x05\x06\x04\x02\x1F!\x05\b\x05\x02 \x1E\x03" +
647
+ "\x02\x02\x02 \x1F\x03\x02\x02\x02!\x05\x03\x02\x02\x02\"#\x07\x03\x02" +
648
+ "\x02#(\x07\x14\x02\x02$%\x07\x04\x02\x02%\'\x07\x14\x02\x02&$\x03\x02" +
649
+ "\x02\x02\'*\x03\x02\x02\x02(&\x03\x02\x02\x02()\x03\x02\x02\x02)\x07\x03" +
650
+ "\x02\x02\x02*(\x03\x02\x02\x02+,\x07\x05\x02\x02,1\x07\x14\x02\x02-.\x07" +
651
+ "\x04\x02\x02.0\x07\x14\x02\x02/-\x03\x02\x02\x0203\x03\x02\x02\x021/\x03" +
652
+ "\x02\x02\x0212\x03\x02\x02\x022\t\x03\x02\x02\x0231\x03\x02\x02\x0249" +
653
+ "\x05\f\x07\x0259\x05\x10\t\x0269\x05\x0E\b\x0279\x05\x12\n\x0284\x03\x02" +
654
+ "\x02\x0285\x03\x02\x02\x0286\x03\x02\x02\x0287\x03\x02\x02\x029<\x03\x02" +
655
+ "\x02\x02:8\x03\x02\x02\x02:;\x03\x02\x02\x02;\v\x03\x02\x02\x02<:\x03" +
656
+ "\x02\x02\x02=>\x07\x06\x02\x02>C\x07\x14\x02\x02?@\x07\x04\x02\x02@B\x07" +
657
+ "\x14\x02\x02A?\x03\x02\x02\x02BE\x03\x02\x02\x02CA\x03\x02\x02\x02CD\x03" +
658
+ "\x02\x02\x02D\r\x03\x02\x02\x02EC\x03\x02\x02\x02FG\x07\x07\x02\x02GL" +
659
+ "\x07\x14\x02\x02HI\x07\x04\x02\x02IK\x07\x14\x02\x02JH\x03\x02\x02\x02" +
660
+ "KN\x03\x02\x02\x02LJ\x03\x02\x02\x02LM\x03\x02\x02\x02MO\x03\x02\x02\x02" +
661
+ "NL\x03\x02\x02\x02OP\x07\b\x02\x02PQ\x07\x12\x02\x02Q\x0F\x03\x02\x02" +
662
+ "\x02RS\x07\t\x02\x02SX\x07\x14\x02\x02TU\x07\x04\x02\x02UW\x07\x14\x02" +
663
+ "\x02VT\x03\x02\x02\x02WZ\x03\x02\x02\x02XV\x03\x02\x02\x02XY\x03\x02\x02" +
664
+ "\x02Y[\x03\x02\x02\x02ZX\x03\x02\x02\x02[\\\x07\b\x02\x02\\]\x07\x12\x02" +
665
+ "\x02]\x11\x03\x02\x02\x02^_\x07\n\x02\x02_`\x07\x14\x02\x02`a\x07\v\x02" +
666
+ "\x02ab\x07\x12\x02\x02bc\x07\f\x02\x02cg\x07\r\x02\x02df\x05\x14\v\x02" +
667
+ "ed\x03\x02\x02\x02fi\x03\x02\x02\x02ge\x03\x02\x02\x02gh\x03\x02\x02\x02" +
668
+ "hm\x03\x02\x02\x02ig\x03\x02\x02\x02jl\x05\x12\n\x02kj\x03\x02\x02\x02" +
669
+ "lo\x03\x02\x02\x02mk\x03\x02\x02\x02mn\x03\x02\x02\x02np\x03\x02\x02\x02" +
670
+ "om\x03\x02\x02\x02pq\x07\x0E\x02\x02q\x13\x03\x02\x02\x02rs\x07\x0F\x02" +
671
+ "\x02st\x07\x14\x02\x02tu\x07\v\x02\x02uv\x07\x12\x02\x02vw\x07\f\x02\x02" +
672
+ "wx\x07\x10\x02\x02xy\x07\v\x02\x02yz\x07\x14\x02\x02z\x7F\x07\f\x02\x02" +
673
+ "{|\x07\x11\x02\x02|}\x07\v\x02\x02}~\x07\x14\x02\x02~\x80\x07\f\x02\x02" +
674
+ "\x7F{\x03\x02\x02\x02\x7F\x80\x03\x02\x02\x02\x80\x15\x03\x02\x02\x02" +
675
+ "\x0E\x19 (18:CLXgm\x7F";
676
+ class SectionsContext extends ParserRuleContext_1.ParserRuleContext {
677
+ program() {
678
+ return this.getRuleContext(0, ProgramContext);
679
+ }
680
+ module(i) {
681
+ if (i === undefined) {
682
+ return this.getRuleContexts(ModuleContext);
683
+ }
684
+ else {
685
+ return this.getRuleContext(i, ModuleContext);
686
+ }
687
+ }
688
+ constructor(parent, invokingState) {
689
+ super(parent, invokingState);
690
+ }
691
+ // @Override
692
+ get ruleIndex() { return BlendRBasicParser.RULE_sections; }
693
+ // @Override
694
+ enterRule(listener) {
695
+ if (listener.enterSections) {
696
+ listener.enterSections(this);
697
+ }
698
+ }
699
+ // @Override
700
+ exitRule(listener) {
701
+ if (listener.exitSections) {
702
+ listener.exitSections(this);
703
+ }
704
+ }
705
+ }
706
+ exports.SectionsContext = SectionsContext;
707
+ class ModuleContext extends ParserRuleContext_1.ParserRuleContext {
708
+ dataModule() {
709
+ return this.tryGetRuleContext(0, DataModuleContext);
710
+ }
711
+ apiModule() {
712
+ return this.tryGetRuleContext(0, ApiModuleContext);
713
+ }
714
+ constructor(parent, invokingState) {
715
+ super(parent, invokingState);
716
+ }
717
+ // @Override
718
+ get ruleIndex() { return BlendRBasicParser.RULE_module; }
719
+ // @Override
720
+ enterRule(listener) {
721
+ if (listener.enterModule) {
722
+ listener.enterModule(this);
723
+ }
724
+ }
725
+ // @Override
726
+ exitRule(listener) {
727
+ if (listener.exitModule) {
728
+ listener.exitModule(this);
729
+ }
730
+ }
731
+ }
732
+ exports.ModuleContext = ModuleContext;
733
+ class DataModuleContext extends ParserRuleContext_1.ParserRuleContext {
734
+ CAPITAL_IDENTIFIER(i) {
735
+ if (i === undefined) {
736
+ return this.getTokens(BlendRBasicParser.CAPITAL_IDENTIFIER);
737
+ }
738
+ else {
739
+ return this.getToken(BlendRBasicParser.CAPITAL_IDENTIFIER, i);
740
+ }
741
+ }
742
+ constructor(parent, invokingState) {
743
+ super(parent, invokingState);
744
+ }
745
+ // @Override
746
+ get ruleIndex() { return BlendRBasicParser.RULE_dataModule; }
747
+ // @Override
748
+ enterRule(listener) {
749
+ if (listener.enterDataModule) {
750
+ listener.enterDataModule(this);
751
+ }
752
+ }
753
+ // @Override
754
+ exitRule(listener) {
755
+ if (listener.exitDataModule) {
756
+ listener.exitDataModule(this);
757
+ }
758
+ }
759
+ }
760
+ exports.DataModuleContext = DataModuleContext;
761
+ class ApiModuleContext extends ParserRuleContext_1.ParserRuleContext {
762
+ CAPITAL_IDENTIFIER(i) {
763
+ if (i === undefined) {
764
+ return this.getTokens(BlendRBasicParser.CAPITAL_IDENTIFIER);
765
+ }
766
+ else {
767
+ return this.getToken(BlendRBasicParser.CAPITAL_IDENTIFIER, i);
768
+ }
769
+ }
770
+ constructor(parent, invokingState) {
771
+ super(parent, invokingState);
772
+ }
773
+ // @Override
774
+ get ruleIndex() { return BlendRBasicParser.RULE_apiModule; }
775
+ // @Override
776
+ enterRule(listener) {
777
+ if (listener.enterApiModule) {
778
+ listener.enterApiModule(this);
779
+ }
780
+ }
781
+ // @Override
782
+ exitRule(listener) {
783
+ if (listener.exitApiModule) {
784
+ listener.exitApiModule(this);
785
+ }
786
+ }
787
+ }
788
+ exports.ApiModuleContext = ApiModuleContext;
789
+ class ProgramContext extends ParserRuleContext_1.ParserRuleContext {
790
+ roleDefenition(i) {
791
+ if (i === undefined) {
792
+ return this.getRuleContexts(RoleDefenitionContext);
793
+ }
794
+ else {
795
+ return this.getRuleContext(i, RoleDefenitionContext);
796
+ }
797
+ }
798
+ componentDefenition(i) {
799
+ if (i === undefined) {
800
+ return this.getRuleContexts(ComponentDefenitionContext);
801
+ }
802
+ else {
803
+ return this.getRuleContext(i, ComponentDefenitionContext);
804
+ }
805
+ }
806
+ screenDefenition(i) {
807
+ if (i === undefined) {
808
+ return this.getRuleContexts(ScreenDefenitionContext);
809
+ }
810
+ else {
811
+ return this.getRuleContext(i, ScreenDefenitionContext);
812
+ }
813
+ }
814
+ layoutDefinition(i) {
815
+ if (i === undefined) {
816
+ return this.getRuleContexts(LayoutDefinitionContext);
817
+ }
818
+ else {
819
+ return this.getRuleContext(i, LayoutDefinitionContext);
820
+ }
821
+ }
822
+ constructor(parent, invokingState) {
823
+ super(parent, invokingState);
824
+ }
825
+ // @Override
826
+ get ruleIndex() { return BlendRBasicParser.RULE_program; }
827
+ // @Override
828
+ enterRule(listener) {
829
+ if (listener.enterProgram) {
830
+ listener.enterProgram(this);
831
+ }
832
+ }
833
+ // @Override
834
+ exitRule(listener) {
835
+ if (listener.exitProgram) {
836
+ listener.exitProgram(this);
837
+ }
838
+ }
839
+ }
840
+ exports.ProgramContext = ProgramContext;
841
+ class RoleDefenitionContext extends ParserRuleContext_1.ParserRuleContext {
842
+ CAPITAL_IDENTIFIER(i) {
843
+ if (i === undefined) {
844
+ return this.getTokens(BlendRBasicParser.CAPITAL_IDENTIFIER);
845
+ }
846
+ else {
847
+ return this.getToken(BlendRBasicParser.CAPITAL_IDENTIFIER, i);
848
+ }
849
+ }
850
+ constructor(parent, invokingState) {
851
+ super(parent, invokingState);
852
+ }
853
+ // @Override
854
+ get ruleIndex() { return BlendRBasicParser.RULE_roleDefenition; }
855
+ // @Override
856
+ enterRule(listener) {
857
+ if (listener.enterRoleDefenition) {
858
+ listener.enterRoleDefenition(this);
859
+ }
860
+ }
861
+ // @Override
862
+ exitRule(listener) {
863
+ if (listener.exitRoleDefenition) {
864
+ listener.exitRoleDefenition(this);
865
+ }
866
+ }
867
+ }
868
+ exports.RoleDefenitionContext = RoleDefenitionContext;
869
+ class ScreenDefenitionContext extends ParserRuleContext_1.ParserRuleContext {
870
+ CAPITAL_IDENTIFIER(i) {
871
+ if (i === undefined) {
872
+ return this.getTokens(BlendRBasicParser.CAPITAL_IDENTIFIER);
873
+ }
874
+ else {
875
+ return this.getToken(BlendRBasicParser.CAPITAL_IDENTIFIER, i);
876
+ }
877
+ }
878
+ PATH_IDENTIFIER() { return this.getToken(BlendRBasicParser.PATH_IDENTIFIER, 0); }
879
+ constructor(parent, invokingState) {
880
+ super(parent, invokingState);
881
+ }
882
+ // @Override
883
+ get ruleIndex() { return BlendRBasicParser.RULE_screenDefenition; }
884
+ // @Override
885
+ enterRule(listener) {
886
+ if (listener.enterScreenDefenition) {
887
+ listener.enterScreenDefenition(this);
888
+ }
889
+ }
890
+ // @Override
891
+ exitRule(listener) {
892
+ if (listener.exitScreenDefenition) {
893
+ listener.exitScreenDefenition(this);
894
+ }
895
+ }
896
+ }
897
+ exports.ScreenDefenitionContext = ScreenDefenitionContext;
898
+ class ComponentDefenitionContext extends ParserRuleContext_1.ParserRuleContext {
899
+ CAPITAL_IDENTIFIER(i) {
900
+ if (i === undefined) {
901
+ return this.getTokens(BlendRBasicParser.CAPITAL_IDENTIFIER);
902
+ }
903
+ else {
904
+ return this.getToken(BlendRBasicParser.CAPITAL_IDENTIFIER, i);
905
+ }
906
+ }
907
+ PATH_IDENTIFIER() { return this.getToken(BlendRBasicParser.PATH_IDENTIFIER, 0); }
908
+ constructor(parent, invokingState) {
909
+ super(parent, invokingState);
910
+ }
911
+ // @Override
912
+ get ruleIndex() { return BlendRBasicParser.RULE_componentDefenition; }
913
+ // @Override
914
+ enterRule(listener) {
915
+ if (listener.enterComponentDefenition) {
916
+ listener.enterComponentDefenition(this);
917
+ }
918
+ }
919
+ // @Override
920
+ exitRule(listener) {
921
+ if (listener.exitComponentDefenition) {
922
+ listener.exitComponentDefenition(this);
923
+ }
924
+ }
925
+ }
926
+ exports.ComponentDefenitionContext = ComponentDefenitionContext;
927
+ class LayoutDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
928
+ CAPITAL_IDENTIFIER() { return this.getToken(BlendRBasicParser.CAPITAL_IDENTIFIER, 0); }
929
+ PATH_IDENTIFIER() { return this.getToken(BlendRBasicParser.PATH_IDENTIFIER, 0); }
930
+ pageDefinition(i) {
931
+ if (i === undefined) {
932
+ return this.getRuleContexts(PageDefinitionContext);
933
+ }
934
+ else {
935
+ return this.getRuleContext(i, PageDefinitionContext);
936
+ }
937
+ }
938
+ layoutDefinition(i) {
939
+ if (i === undefined) {
940
+ return this.getRuleContexts(LayoutDefinitionContext);
941
+ }
942
+ else {
943
+ return this.getRuleContext(i, LayoutDefinitionContext);
944
+ }
945
+ }
946
+ constructor(parent, invokingState) {
947
+ super(parent, invokingState);
948
+ }
949
+ // @Override
950
+ get ruleIndex() { return BlendRBasicParser.RULE_layoutDefinition; }
951
+ // @Override
952
+ enterRule(listener) {
953
+ if (listener.enterLayoutDefinition) {
954
+ listener.enterLayoutDefinition(this);
955
+ }
956
+ }
957
+ // @Override
958
+ exitRule(listener) {
959
+ if (listener.exitLayoutDefinition) {
960
+ listener.exitLayoutDefinition(this);
961
+ }
962
+ }
963
+ }
964
+ exports.LayoutDefinitionContext = LayoutDefinitionContext;
965
+ class PageDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
966
+ CAPITAL_IDENTIFIER(i) {
967
+ if (i === undefined) {
968
+ return this.getTokens(BlendRBasicParser.CAPITAL_IDENTIFIER);
969
+ }
970
+ else {
971
+ return this.getToken(BlendRBasicParser.CAPITAL_IDENTIFIER, i);
972
+ }
973
+ }
974
+ PATH_IDENTIFIER() { return this.getToken(BlendRBasicParser.PATH_IDENTIFIER, 0); }
975
+ constructor(parent, invokingState) {
976
+ super(parent, invokingState);
977
+ }
978
+ // @Override
979
+ get ruleIndex() { return BlendRBasicParser.RULE_pageDefinition; }
980
+ // @Override
981
+ enterRule(listener) {
982
+ if (listener.enterPageDefinition) {
983
+ listener.enterPageDefinition(this);
984
+ }
985
+ }
986
+ // @Override
987
+ exitRule(listener) {
988
+ if (listener.exitPageDefinition) {
989
+ listener.exitPageDefinition(this);
990
+ }
991
+ }
992
+ }
993
+ exports.PageDefinitionContext = PageDefinitionContext;