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,1224 @@
1
+ "use strict";
2
+ // Generated from src/grammar/BlendRnBasic.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.PrimitiveTypeContext = exports.TypeContext = exports.FieldContext = exports.ParamsDefinitionContext = exports.ParamsSectionContext = exports.PageDefinitionContext = exports.LayoutDefinitionContext = exports.ComponentDefenitionContext = exports.ScreenDefenitionContext = exports.ProgramContext = exports.ApiModuleContext = exports.DataModuleContext = exports.ModuleContext = exports.SectionsContext = exports.BlendRnBasicParser = 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 Token_1 = require("antlr4ts/Token");
46
+ const VocabularyImpl_1 = require("antlr4ts/VocabularyImpl");
47
+ const Utils = __importStar(require("antlr4ts/misc/Utils"));
48
+ class BlendRnBasicParser extends Parser_1.Parser {
49
+ // @Override
50
+ // @NotNull
51
+ get vocabulary() {
52
+ return BlendRnBasicParser.VOCABULARY;
53
+ }
54
+ // tslint:enable:no-trailing-whitespace
55
+ // @Override
56
+ get grammarFileName() { return "BlendRnBasic.g4"; }
57
+ // @Override
58
+ get ruleNames() { return BlendRnBasicParser.ruleNames; }
59
+ // @Override
60
+ get serializedATN() { return BlendRnBasicParser._serializedATN; }
61
+ createFailedPredicateException(predicate, message) {
62
+ return new FailedPredicateException_1.FailedPredicateException(this, predicate, message);
63
+ }
64
+ constructor(input) {
65
+ super(input);
66
+ this._interp = new ParserATNSimulator_1.ParserATNSimulator(BlendRnBasicParser._ATN, this);
67
+ }
68
+ // @RuleVersion(0)
69
+ sections() {
70
+ let _localctx = new SectionsContext(this._ctx, this.state);
71
+ this.enterRule(_localctx, 0, BlendRnBasicParser.RULE_sections);
72
+ let _la;
73
+ try {
74
+ this.enterOuterAlt(_localctx, 1);
75
+ {
76
+ this.state = 31;
77
+ this._errHandler.sync(this);
78
+ _la = this._input.LA(1);
79
+ while (_la === BlendRnBasicParser.T__0 || _la === BlendRnBasicParser.T__2) {
80
+ {
81
+ {
82
+ this.state = 28;
83
+ this.module();
84
+ }
85
+ }
86
+ this.state = 33;
87
+ this._errHandler.sync(this);
88
+ _la = this._input.LA(1);
89
+ }
90
+ this.state = 34;
91
+ this.program();
92
+ }
93
+ }
94
+ catch (re) {
95
+ if (re instanceof RecognitionException_1.RecognitionException) {
96
+ _localctx.exception = re;
97
+ this._errHandler.reportError(this, re);
98
+ this._errHandler.recover(this, re);
99
+ }
100
+ else {
101
+ throw re;
102
+ }
103
+ }
104
+ finally {
105
+ this.exitRule();
106
+ }
107
+ return _localctx;
108
+ }
109
+ // @RuleVersion(0)
110
+ module() {
111
+ let _localctx = new ModuleContext(this._ctx, this.state);
112
+ this.enterRule(_localctx, 2, BlendRnBasicParser.RULE_module);
113
+ try {
114
+ this.state = 38;
115
+ this._errHandler.sync(this);
116
+ switch (this._input.LA(1)) {
117
+ case BlendRnBasicParser.T__0:
118
+ this.enterOuterAlt(_localctx, 1);
119
+ {
120
+ this.state = 36;
121
+ this.dataModule();
122
+ }
123
+ break;
124
+ case BlendRnBasicParser.T__2:
125
+ this.enterOuterAlt(_localctx, 2);
126
+ {
127
+ this.state = 37;
128
+ this.apiModule();
129
+ }
130
+ break;
131
+ default:
132
+ throw new NoViableAltException_1.NoViableAltException(this);
133
+ }
134
+ }
135
+ catch (re) {
136
+ if (re instanceof RecognitionException_1.RecognitionException) {
137
+ _localctx.exception = re;
138
+ this._errHandler.reportError(this, re);
139
+ this._errHandler.recover(this, re);
140
+ }
141
+ else {
142
+ throw re;
143
+ }
144
+ }
145
+ finally {
146
+ this.exitRule();
147
+ }
148
+ return _localctx;
149
+ }
150
+ // @RuleVersion(0)
151
+ dataModule() {
152
+ let _localctx = new DataModuleContext(this._ctx, this.state);
153
+ this.enterRule(_localctx, 4, BlendRnBasicParser.RULE_dataModule);
154
+ let _la;
155
+ try {
156
+ this.enterOuterAlt(_localctx, 1);
157
+ {
158
+ this.state = 40;
159
+ this.match(BlendRnBasicParser.T__0);
160
+ this.state = 41;
161
+ this.match(BlendRnBasicParser.CAPITAL_IDENTIFIER);
162
+ this.state = 46;
163
+ this._errHandler.sync(this);
164
+ _la = this._input.LA(1);
165
+ while (_la === BlendRnBasicParser.T__1) {
166
+ {
167
+ {
168
+ this.state = 42;
169
+ this.match(BlendRnBasicParser.T__1);
170
+ this.state = 43;
171
+ this.match(BlendRnBasicParser.CAPITAL_IDENTIFIER);
172
+ }
173
+ }
174
+ this.state = 48;
175
+ this._errHandler.sync(this);
176
+ _la = this._input.LA(1);
177
+ }
178
+ }
179
+ }
180
+ catch (re) {
181
+ if (re instanceof RecognitionException_1.RecognitionException) {
182
+ _localctx.exception = re;
183
+ this._errHandler.reportError(this, re);
184
+ this._errHandler.recover(this, re);
185
+ }
186
+ else {
187
+ throw re;
188
+ }
189
+ }
190
+ finally {
191
+ this.exitRule();
192
+ }
193
+ return _localctx;
194
+ }
195
+ // @RuleVersion(0)
196
+ apiModule() {
197
+ let _localctx = new ApiModuleContext(this._ctx, this.state);
198
+ this.enterRule(_localctx, 6, BlendRnBasicParser.RULE_apiModule);
199
+ let _la;
200
+ try {
201
+ this.enterOuterAlt(_localctx, 1);
202
+ {
203
+ this.state = 49;
204
+ this.match(BlendRnBasicParser.T__2);
205
+ this.state = 50;
206
+ this.match(BlendRnBasicParser.CAPITAL_IDENTIFIER);
207
+ this.state = 55;
208
+ this._errHandler.sync(this);
209
+ _la = this._input.LA(1);
210
+ while (_la === BlendRnBasicParser.T__1) {
211
+ {
212
+ {
213
+ this.state = 51;
214
+ this.match(BlendRnBasicParser.T__1);
215
+ this.state = 52;
216
+ this.match(BlendRnBasicParser.CAPITAL_IDENTIFIER);
217
+ }
218
+ }
219
+ this.state = 57;
220
+ this._errHandler.sync(this);
221
+ _la = this._input.LA(1);
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
+ program() {
242
+ let _localctx = new ProgramContext(this._ctx, this.state);
243
+ this.enterRule(_localctx, 8, BlendRnBasicParser.RULE_program);
244
+ let _la;
245
+ try {
246
+ this.enterOuterAlt(_localctx, 1);
247
+ {
248
+ this.state = 61;
249
+ this._errHandler.sync(this);
250
+ _la = this._input.LA(1);
251
+ while (_la === BlendRnBasicParser.T__5) {
252
+ {
253
+ {
254
+ this.state = 58;
255
+ this.componentDefenition();
256
+ }
257
+ }
258
+ this.state = 63;
259
+ this._errHandler.sync(this);
260
+ _la = this._input.LA(1);
261
+ }
262
+ this.state = 67;
263
+ this._errHandler.sync(this);
264
+ _la = this._input.LA(1);
265
+ while (_la === BlendRnBasicParser.T__3) {
266
+ {
267
+ {
268
+ this.state = 64;
269
+ this.screenDefenition();
270
+ }
271
+ }
272
+ this.state = 69;
273
+ this._errHandler.sync(this);
274
+ _la = this._input.LA(1);
275
+ }
276
+ this.state = 73;
277
+ this._errHandler.sync(this);
278
+ _la = this._input.LA(1);
279
+ while (_la === BlendRnBasicParser.T__6) {
280
+ {
281
+ {
282
+ this.state = 70;
283
+ this.layoutDefinition();
284
+ }
285
+ }
286
+ this.state = 75;
287
+ this._errHandler.sync(this);
288
+ _la = this._input.LA(1);
289
+ }
290
+ }
291
+ }
292
+ catch (re) {
293
+ if (re instanceof RecognitionException_1.RecognitionException) {
294
+ _localctx.exception = re;
295
+ this._errHandler.reportError(this, re);
296
+ this._errHandler.recover(this, re);
297
+ }
298
+ else {
299
+ throw re;
300
+ }
301
+ }
302
+ finally {
303
+ this.exitRule();
304
+ }
305
+ return _localctx;
306
+ }
307
+ // @RuleVersion(0)
308
+ screenDefenition() {
309
+ let _localctx = new ScreenDefenitionContext(this._ctx, this.state);
310
+ this.enterRule(_localctx, 10, BlendRnBasicParser.RULE_screenDefenition);
311
+ let _la;
312
+ try {
313
+ this.enterOuterAlt(_localctx, 1);
314
+ {
315
+ this.state = 76;
316
+ this.match(BlendRnBasicParser.T__3);
317
+ this.state = 77;
318
+ this.match(BlendRnBasicParser.CAPITAL_IDENTIFIER);
319
+ this.state = 82;
320
+ this._errHandler.sync(this);
321
+ _la = this._input.LA(1);
322
+ while (_la === BlendRnBasicParser.T__1) {
323
+ {
324
+ {
325
+ this.state = 78;
326
+ this.match(BlendRnBasicParser.T__1);
327
+ this.state = 79;
328
+ this.match(BlendRnBasicParser.CAPITAL_IDENTIFIER);
329
+ }
330
+ }
331
+ this.state = 84;
332
+ this._errHandler.sync(this);
333
+ _la = this._input.LA(1);
334
+ }
335
+ this.state = 85;
336
+ this.match(BlendRnBasicParser.T__4);
337
+ this.state = 86;
338
+ this.match(BlendRnBasicParser.PATH_IDENTIFIER);
339
+ }
340
+ }
341
+ catch (re) {
342
+ if (re instanceof RecognitionException_1.RecognitionException) {
343
+ _localctx.exception = re;
344
+ this._errHandler.reportError(this, re);
345
+ this._errHandler.recover(this, re);
346
+ }
347
+ else {
348
+ throw re;
349
+ }
350
+ }
351
+ finally {
352
+ this.exitRule();
353
+ }
354
+ return _localctx;
355
+ }
356
+ // @RuleVersion(0)
357
+ componentDefenition() {
358
+ let _localctx = new ComponentDefenitionContext(this._ctx, this.state);
359
+ this.enterRule(_localctx, 12, BlendRnBasicParser.RULE_componentDefenition);
360
+ let _la;
361
+ try {
362
+ this.enterOuterAlt(_localctx, 1);
363
+ {
364
+ this.state = 88;
365
+ this.match(BlendRnBasicParser.T__5);
366
+ this.state = 89;
367
+ this.match(BlendRnBasicParser.CAPITAL_IDENTIFIER);
368
+ this.state = 94;
369
+ this._errHandler.sync(this);
370
+ _la = this._input.LA(1);
371
+ while (_la === BlendRnBasicParser.T__1) {
372
+ {
373
+ {
374
+ this.state = 90;
375
+ this.match(BlendRnBasicParser.T__1);
376
+ this.state = 91;
377
+ this.match(BlendRnBasicParser.CAPITAL_IDENTIFIER);
378
+ }
379
+ }
380
+ this.state = 96;
381
+ this._errHandler.sync(this);
382
+ _la = this._input.LA(1);
383
+ }
384
+ this.state = 97;
385
+ this.match(BlendRnBasicParser.T__4);
386
+ this.state = 98;
387
+ this.match(BlendRnBasicParser.PATH_IDENTIFIER);
388
+ }
389
+ }
390
+ catch (re) {
391
+ if (re instanceof RecognitionException_1.RecognitionException) {
392
+ _localctx.exception = re;
393
+ this._errHandler.reportError(this, re);
394
+ this._errHandler.recover(this, re);
395
+ }
396
+ else {
397
+ throw re;
398
+ }
399
+ }
400
+ finally {
401
+ this.exitRule();
402
+ }
403
+ return _localctx;
404
+ }
405
+ // @RuleVersion(0)
406
+ layoutDefinition() {
407
+ let _localctx = new LayoutDefinitionContext(this._ctx, this.state);
408
+ this.enterRule(_localctx, 14, BlendRnBasicParser.RULE_layoutDefinition);
409
+ let _la;
410
+ try {
411
+ this.enterOuterAlt(_localctx, 1);
412
+ {
413
+ this.state = 100;
414
+ this.match(BlendRnBasicParser.T__6);
415
+ this.state = 101;
416
+ this.match(BlendRnBasicParser.CAPITAL_IDENTIFIER);
417
+ this.state = 103;
418
+ this._errHandler.sync(this);
419
+ _la = this._input.LA(1);
420
+ if (_la === BlendRnBasicParser.T__8) {
421
+ {
422
+ this.state = 102;
423
+ this.paramsSection();
424
+ }
425
+ }
426
+ this.state = 105;
427
+ this.match(BlendRnBasicParser.T__7);
428
+ this.state = 106;
429
+ this.match(BlendRnBasicParser.T__8);
430
+ this.state = 107;
431
+ this.match(BlendRnBasicParser.LAYOUT_TYPE);
432
+ this.state = 108;
433
+ this.match(BlendRnBasicParser.T__9);
434
+ this.state = 109;
435
+ this.match(BlendRnBasicParser.T__10);
436
+ this.state = 114;
437
+ this._errHandler.sync(this);
438
+ _la = this._input.LA(1);
439
+ while (_la === BlendRnBasicParser.T__6 || _la === BlendRnBasicParser.T__12) {
440
+ {
441
+ this.state = 112;
442
+ this._errHandler.sync(this);
443
+ switch (this._input.LA(1)) {
444
+ case BlendRnBasicParser.T__12:
445
+ {
446
+ this.state = 110;
447
+ this.pageDefinition();
448
+ }
449
+ break;
450
+ case BlendRnBasicParser.T__6:
451
+ {
452
+ this.state = 111;
453
+ this.layoutDefinition();
454
+ }
455
+ break;
456
+ default:
457
+ throw new NoViableAltException_1.NoViableAltException(this);
458
+ }
459
+ }
460
+ this.state = 116;
461
+ this._errHandler.sync(this);
462
+ _la = this._input.LA(1);
463
+ }
464
+ this.state = 117;
465
+ this.match(BlendRnBasicParser.T__11);
466
+ }
467
+ }
468
+ catch (re) {
469
+ if (re instanceof RecognitionException_1.RecognitionException) {
470
+ _localctx.exception = re;
471
+ this._errHandler.reportError(this, re);
472
+ this._errHandler.recover(this, re);
473
+ }
474
+ else {
475
+ throw re;
476
+ }
477
+ }
478
+ finally {
479
+ this.exitRule();
480
+ }
481
+ return _localctx;
482
+ }
483
+ // @RuleVersion(0)
484
+ pageDefinition() {
485
+ let _localctx = new PageDefinitionContext(this._ctx, this.state);
486
+ this.enterRule(_localctx, 16, BlendRnBasicParser.RULE_pageDefinition);
487
+ let _la;
488
+ try {
489
+ this.enterOuterAlt(_localctx, 1);
490
+ {
491
+ this.state = 119;
492
+ this.match(BlendRnBasicParser.T__12);
493
+ this.state = 120;
494
+ this.match(BlendRnBasicParser.CAPITAL_IDENTIFIER);
495
+ this.state = 122;
496
+ this._errHandler.sync(this);
497
+ _la = this._input.LA(1);
498
+ if (_la === BlendRnBasicParser.T__8) {
499
+ {
500
+ this.state = 121;
501
+ this.paramsSection();
502
+ }
503
+ }
504
+ }
505
+ }
506
+ catch (re) {
507
+ if (re instanceof RecognitionException_1.RecognitionException) {
508
+ _localctx.exception = re;
509
+ this._errHandler.reportError(this, re);
510
+ this._errHandler.recover(this, re);
511
+ }
512
+ else {
513
+ throw re;
514
+ }
515
+ }
516
+ finally {
517
+ this.exitRule();
518
+ }
519
+ return _localctx;
520
+ }
521
+ // @RuleVersion(0)
522
+ paramsSection() {
523
+ let _localctx = new ParamsSectionContext(this._ctx, this.state);
524
+ this.enterRule(_localctx, 18, BlendRnBasicParser.RULE_paramsSection);
525
+ try {
526
+ this.enterOuterAlt(_localctx, 1);
527
+ {
528
+ this.state = 124;
529
+ this.match(BlendRnBasicParser.T__8);
530
+ this.state = 125;
531
+ this.paramsDefinition();
532
+ this.state = 126;
533
+ this.match(BlendRnBasicParser.T__9);
534
+ }
535
+ }
536
+ catch (re) {
537
+ if (re instanceof RecognitionException_1.RecognitionException) {
538
+ _localctx.exception = re;
539
+ this._errHandler.reportError(this, re);
540
+ this._errHandler.recover(this, re);
541
+ }
542
+ else {
543
+ throw re;
544
+ }
545
+ }
546
+ finally {
547
+ this.exitRule();
548
+ }
549
+ return _localctx;
550
+ }
551
+ // @RuleVersion(0)
552
+ paramsDefinition() {
553
+ let _localctx = new ParamsDefinitionContext(this._ctx, this.state);
554
+ this.enterRule(_localctx, 20, BlendRnBasicParser.RULE_paramsDefinition);
555
+ let _la;
556
+ try {
557
+ this.enterOuterAlt(_localctx, 1);
558
+ {
559
+ this.state = 128;
560
+ this.field();
561
+ this.state = 133;
562
+ this._errHandler.sync(this);
563
+ _la = this._input.LA(1);
564
+ while (_la === BlendRnBasicParser.T__1) {
565
+ {
566
+ {
567
+ this.state = 129;
568
+ this.match(BlendRnBasicParser.T__1);
569
+ this.state = 130;
570
+ this.field();
571
+ }
572
+ }
573
+ this.state = 135;
574
+ this._errHandler.sync(this);
575
+ _la = this._input.LA(1);
576
+ }
577
+ }
578
+ }
579
+ catch (re) {
580
+ if (re instanceof RecognitionException_1.RecognitionException) {
581
+ _localctx.exception = re;
582
+ this._errHandler.reportError(this, re);
583
+ this._errHandler.recover(this, re);
584
+ }
585
+ else {
586
+ throw re;
587
+ }
588
+ }
589
+ finally {
590
+ this.exitRule();
591
+ }
592
+ return _localctx;
593
+ }
594
+ // @RuleVersion(0)
595
+ field() {
596
+ let _localctx = new FieldContext(this._ctx, this.state);
597
+ this.enterRule(_localctx, 22, BlendRnBasicParser.RULE_field);
598
+ try {
599
+ this.enterOuterAlt(_localctx, 1);
600
+ {
601
+ this.state = 136;
602
+ this.match(BlendRnBasicParser.IDENTIFIER);
603
+ this.state = 137;
604
+ this.match(BlendRnBasicParser.T__13);
605
+ this.state = 138;
606
+ this.type();
607
+ }
608
+ }
609
+ catch (re) {
610
+ if (re instanceof RecognitionException_1.RecognitionException) {
611
+ _localctx.exception = re;
612
+ this._errHandler.reportError(this, re);
613
+ this._errHandler.recover(this, re);
614
+ }
615
+ else {
616
+ throw re;
617
+ }
618
+ }
619
+ finally {
620
+ this.exitRule();
621
+ }
622
+ return _localctx;
623
+ }
624
+ // @RuleVersion(0)
625
+ type() {
626
+ let _localctx = new TypeContext(this._ctx, this.state);
627
+ this.enterRule(_localctx, 24, BlendRnBasicParser.RULE_type);
628
+ try {
629
+ this.state = 144;
630
+ this._errHandler.sync(this);
631
+ switch (this.interpreter.adaptivePredict(this._input, 14, this._ctx)) {
632
+ case 1:
633
+ this.enterOuterAlt(_localctx, 1);
634
+ {
635
+ this.state = 140;
636
+ this.primitiveType();
637
+ }
638
+ break;
639
+ case 2:
640
+ this.enterOuterAlt(_localctx, 2);
641
+ {
642
+ this.state = 141;
643
+ this.primitiveType();
644
+ this.state = 142;
645
+ this.match(BlendRnBasicParser.T__14);
646
+ }
647
+ break;
648
+ }
649
+ }
650
+ catch (re) {
651
+ if (re instanceof RecognitionException_1.RecognitionException) {
652
+ _localctx.exception = re;
653
+ this._errHandler.reportError(this, re);
654
+ this._errHandler.recover(this, re);
655
+ }
656
+ else {
657
+ throw re;
658
+ }
659
+ }
660
+ finally {
661
+ this.exitRule();
662
+ }
663
+ return _localctx;
664
+ }
665
+ // @RuleVersion(0)
666
+ primitiveType() {
667
+ let _localctx = new PrimitiveTypeContext(this._ctx, this.state);
668
+ this.enterRule(_localctx, 26, BlendRnBasicParser.RULE_primitiveType);
669
+ let _la;
670
+ try {
671
+ this.enterOuterAlt(_localctx, 1);
672
+ {
673
+ this.state = 146;
674
+ _la = this._input.LA(1);
675
+ if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << BlendRnBasicParser.T__15) | (1 << BlendRnBasicParser.T__16) | (1 << BlendRnBasicParser.T__17) | (1 << BlendRnBasicParser.T__18) | (1 << BlendRnBasicParser.T__19))) !== 0))) {
676
+ this._errHandler.recoverInline(this);
677
+ }
678
+ else {
679
+ if (this._input.LA(1) === Token_1.Token.EOF) {
680
+ this.matchedEOF = true;
681
+ }
682
+ this._errHandler.reportMatch(this);
683
+ this.consume();
684
+ }
685
+ }
686
+ }
687
+ catch (re) {
688
+ if (re instanceof RecognitionException_1.RecognitionException) {
689
+ _localctx.exception = re;
690
+ this._errHandler.reportError(this, re);
691
+ this._errHandler.recover(this, re);
692
+ }
693
+ else {
694
+ throw re;
695
+ }
696
+ }
697
+ finally {
698
+ this.exitRule();
699
+ }
700
+ return _localctx;
701
+ }
702
+ static get _ATN() {
703
+ if (!BlendRnBasicParser.__ATN) {
704
+ BlendRnBasicParser.__ATN = new ATNDeserializer_1.ATNDeserializer().deserialize(Utils.toCharArray(BlendRnBasicParser._serializedATN));
705
+ }
706
+ return BlendRnBasicParser.__ATN;
707
+ }
708
+ }
709
+ exports.BlendRnBasicParser = BlendRnBasicParser;
710
+ BlendRnBasicParser.T__0 = 1;
711
+ BlendRnBasicParser.T__1 = 2;
712
+ BlendRnBasicParser.T__2 = 3;
713
+ BlendRnBasicParser.T__3 = 4;
714
+ BlendRnBasicParser.T__4 = 5;
715
+ BlendRnBasicParser.T__5 = 6;
716
+ BlendRnBasicParser.T__6 = 7;
717
+ BlendRnBasicParser.T__7 = 8;
718
+ BlendRnBasicParser.T__8 = 9;
719
+ BlendRnBasicParser.T__9 = 10;
720
+ BlendRnBasicParser.T__10 = 11;
721
+ BlendRnBasicParser.T__11 = 12;
722
+ BlendRnBasicParser.T__12 = 13;
723
+ BlendRnBasicParser.T__13 = 14;
724
+ BlendRnBasicParser.T__14 = 15;
725
+ BlendRnBasicParser.T__15 = 16;
726
+ BlendRnBasicParser.T__16 = 17;
727
+ BlendRnBasicParser.T__17 = 18;
728
+ BlendRnBasicParser.T__18 = 19;
729
+ BlendRnBasicParser.T__19 = 20;
730
+ BlendRnBasicParser.LAYOUT_TYPE = 21;
731
+ BlendRnBasicParser.PATH_IDENTIFIER = 22;
732
+ BlendRnBasicParser.IDENTIFIER = 23;
733
+ BlendRnBasicParser.CAPITAL_IDENTIFIER = 24;
734
+ BlendRnBasicParser.WS = 25;
735
+ BlendRnBasicParser.RULE_sections = 0;
736
+ BlendRnBasicParser.RULE_module = 1;
737
+ BlendRnBasicParser.RULE_dataModule = 2;
738
+ BlendRnBasicParser.RULE_apiModule = 3;
739
+ BlendRnBasicParser.RULE_program = 4;
740
+ BlendRnBasicParser.RULE_screenDefenition = 5;
741
+ BlendRnBasicParser.RULE_componentDefenition = 6;
742
+ BlendRnBasicParser.RULE_layoutDefinition = 7;
743
+ BlendRnBasicParser.RULE_pageDefinition = 8;
744
+ BlendRnBasicParser.RULE_paramsSection = 9;
745
+ BlendRnBasicParser.RULE_paramsDefinition = 10;
746
+ BlendRnBasicParser.RULE_field = 11;
747
+ BlendRnBasicParser.RULE_type = 12;
748
+ BlendRnBasicParser.RULE_primitiveType = 13;
749
+ // tslint:disable:no-trailing-whitespace
750
+ BlendRnBasicParser.ruleNames = [
751
+ "sections", "module", "dataModule", "apiModule", "program", "screenDefenition",
752
+ "componentDefenition", "layoutDefinition", "pageDefinition", "paramsSection",
753
+ "paramsDefinition", "field", "type", "primitiveType",
754
+ ];
755
+ BlendRnBasicParser._LITERAL_NAMES = [
756
+ undefined, "'data-module'", "','", "'api-module'", "'screen'", "'under'",
757
+ "'component'", "'layout'", "'type'", "'('", "')'", "'{'", "'}'", "'page'",
758
+ "':'", "'?'", "'string'", "'number'", "'boolean'", "'any'", "'object'",
759
+ ];
760
+ BlendRnBasicParser._SYMBOLIC_NAMES = [
761
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
762
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
763
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
764
+ "LAYOUT_TYPE", "PATH_IDENTIFIER", "IDENTIFIER", "CAPITAL_IDENTIFIER",
765
+ "WS",
766
+ ];
767
+ BlendRnBasicParser.VOCABULARY = new VocabularyImpl_1.VocabularyImpl(BlendRnBasicParser._LITERAL_NAMES, BlendRnBasicParser._SYMBOLIC_NAMES, []);
768
+ BlendRnBasicParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x1B\x97\x04\x02" +
769
+ "\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07" +
770
+ "\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\x04" +
771
+ "\x0E\t\x0E\x04\x0F\t\x0F\x03\x02\x07\x02 \n\x02\f\x02\x0E\x02#\v\x02\x03" +
772
+ "\x02\x03\x02\x03\x03\x03\x03\x05\x03)\n\x03\x03\x04\x03\x04\x03\x04\x03" +
773
+ "\x04\x07\x04/\n\x04\f\x04\x0E\x042\v\x04\x03\x05\x03\x05\x03\x05\x03\x05" +
774
+ "\x07\x058\n\x05\f\x05\x0E\x05;\v\x05\x03\x06\x07\x06>\n\x06\f\x06\x0E" +
775
+ "\x06A\v\x06\x03\x06\x07\x06D\n\x06\f\x06\x0E\x06G\v\x06\x03\x06\x07\x06" +
776
+ "J\n\x06\f\x06\x0E\x06M\v\x06\x03\x07\x03\x07\x03\x07\x03\x07\x07\x07S" +
777
+ "\n\x07\f\x07\x0E\x07V\v\x07\x03\x07\x03\x07\x03\x07\x03\b\x03\b\x03\b" +
778
+ "\x03\b\x07\b_\n\b\f\b\x0E\bb\v\b\x03\b\x03\b\x03\b\x03\t\x03\t\x03\t\x05" +
779
+ "\tj\n\t\x03\t\x03\t\x03\t\x03\t\x03\t\x03\t\x03\t\x07\ts\n\t\f\t\x0E\t" +
780
+ "v\v\t\x03\t\x03\t\x03\n\x03\n\x03\n\x05\n}\n\n\x03\v\x03\v\x03\v\x03\v" +
781
+ "\x03\f\x03\f\x03\f\x07\f\x86\n\f\f\f\x0E\f\x89\v\f\x03\r\x03\r\x03\r\x03" +
782
+ "\r\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x05\x0E\x93\n\x0E\x03\x0F\x03\x0F\x03" +
783
+ "\x0F\x02\x02\x02\x10\x02\x02\x04\x02\x06\x02\b\x02\n\x02\f\x02\x0E\x02" +
784
+ "\x10\x02\x12\x02\x14\x02\x16\x02\x18\x02\x1A\x02\x1C\x02\x02\x03\x03\x02" +
785
+ "\x12\x16\x02\x97\x02!\x03\x02\x02\x02\x04(\x03\x02\x02\x02\x06*\x03\x02" +
786
+ "\x02\x02\b3\x03\x02\x02\x02\n?\x03\x02\x02\x02\fN\x03\x02\x02\x02\x0E" +
787
+ "Z\x03\x02\x02\x02\x10f\x03\x02\x02\x02\x12y\x03\x02\x02\x02\x14~\x03\x02" +
788
+ "\x02\x02\x16\x82\x03\x02\x02\x02\x18\x8A\x03\x02\x02\x02\x1A\x92\x03\x02" +
789
+ "\x02\x02\x1C\x94\x03\x02\x02\x02\x1E \x05\x04\x03\x02\x1F\x1E\x03\x02" +
790
+ "\x02\x02 #\x03\x02\x02\x02!\x1F\x03\x02\x02\x02!\"\x03\x02\x02\x02\"$" +
791
+ "\x03\x02\x02\x02#!\x03\x02\x02\x02$%\x05\n\x06\x02%\x03\x03\x02\x02\x02" +
792
+ "&)\x05\x06\x04\x02\')\x05\b\x05\x02(&\x03\x02\x02\x02(\'\x03\x02\x02\x02" +
793
+ ")\x05\x03\x02\x02\x02*+\x07\x03\x02\x02+0\x07\x1A\x02\x02,-\x07\x04\x02" +
794
+ "\x02-/\x07\x1A\x02\x02.,\x03\x02\x02\x02/2\x03\x02\x02\x020.\x03\x02\x02" +
795
+ "\x0201\x03\x02\x02\x021\x07\x03\x02\x02\x0220\x03\x02\x02\x0234\x07\x05" +
796
+ "\x02\x0249\x07\x1A\x02\x0256\x07\x04\x02\x0268\x07\x1A\x02\x0275\x03\x02" +
797
+ "\x02\x028;\x03\x02\x02\x0297\x03\x02\x02\x029:\x03\x02\x02\x02:\t\x03" +
798
+ "\x02\x02\x02;9\x03\x02\x02\x02<>\x05\x0E\b\x02=<\x03\x02\x02\x02>A\x03" +
799
+ "\x02\x02\x02?=\x03\x02\x02\x02?@\x03\x02\x02\x02@E\x03\x02\x02\x02A?\x03" +
800
+ "\x02\x02\x02BD\x05\f\x07\x02CB\x03\x02\x02\x02DG\x03\x02\x02\x02EC\x03" +
801
+ "\x02\x02\x02EF\x03\x02\x02\x02FK\x03\x02\x02\x02GE\x03\x02\x02\x02HJ\x05" +
802
+ "\x10\t\x02IH\x03\x02\x02\x02JM\x03\x02\x02\x02KI\x03\x02\x02\x02KL\x03" +
803
+ "\x02\x02\x02L\v\x03\x02\x02\x02MK\x03\x02\x02\x02NO\x07\x06\x02\x02OT" +
804
+ "\x07\x1A\x02\x02PQ\x07\x04\x02\x02QS\x07\x1A\x02\x02RP\x03\x02\x02\x02" +
805
+ "SV\x03\x02\x02\x02TR\x03\x02\x02\x02TU\x03\x02\x02\x02UW\x03\x02\x02\x02" +
806
+ "VT\x03\x02\x02\x02WX\x07\x07\x02\x02XY\x07\x18\x02\x02Y\r\x03\x02\x02" +
807
+ "\x02Z[\x07\b\x02\x02[`\x07\x1A\x02\x02\\]\x07\x04\x02\x02]_\x07\x1A\x02" +
808
+ "\x02^\\\x03\x02\x02\x02_b\x03\x02\x02\x02`^\x03\x02\x02\x02`a\x03\x02" +
809
+ "\x02\x02ac\x03\x02\x02\x02b`\x03\x02\x02\x02cd\x07\x07\x02\x02de\x07\x18" +
810
+ "\x02\x02e\x0F\x03\x02\x02\x02fg\x07\t\x02\x02gi\x07\x1A\x02\x02hj\x05" +
811
+ "\x14\v\x02ih\x03\x02\x02\x02ij\x03\x02\x02\x02jk\x03\x02\x02\x02kl\x07" +
812
+ "\n\x02\x02lm\x07\v\x02\x02mn\x07\x17\x02\x02no\x07\f\x02\x02ot\x07\r\x02" +
813
+ "\x02ps\x05\x12\n\x02qs\x05\x10\t\x02rp\x03\x02\x02\x02rq\x03\x02\x02\x02" +
814
+ "sv\x03\x02\x02\x02tr\x03\x02\x02\x02tu\x03\x02\x02\x02uw\x03\x02\x02\x02" +
815
+ "vt\x03\x02\x02\x02wx\x07\x0E\x02\x02x\x11\x03\x02\x02\x02yz\x07\x0F\x02" +
816
+ "\x02z|\x07\x1A\x02\x02{}\x05\x14\v\x02|{\x03\x02\x02\x02|}\x03\x02\x02" +
817
+ "\x02}\x13\x03\x02\x02\x02~\x7F\x07\v\x02\x02\x7F\x80\x05\x16\f\x02\x80" +
818
+ "\x81\x07\f\x02\x02\x81\x15\x03\x02\x02\x02\x82\x87\x05\x18\r\x02\x83\x84" +
819
+ "\x07\x04\x02\x02\x84\x86\x05\x18\r\x02\x85\x83\x03\x02\x02\x02\x86\x89" +
820
+ "\x03\x02\x02\x02\x87\x85\x03\x02\x02\x02\x87\x88\x03\x02\x02\x02\x88\x17" +
821
+ "\x03\x02\x02\x02\x89\x87\x03\x02\x02\x02\x8A\x8B\x07\x19\x02\x02\x8B\x8C" +
822
+ "\x07\x10\x02\x02\x8C\x8D\x05\x1A\x0E\x02\x8D\x19\x03\x02\x02\x02\x8E\x93" +
823
+ "\x05\x1C\x0F\x02\x8F\x90\x05\x1C\x0F\x02\x90\x91\x07\x11\x02\x02\x91\x93" +
824
+ "\x03\x02\x02\x02\x92\x8E\x03\x02\x02\x02\x92\x8F\x03\x02\x02\x02\x93\x1B" +
825
+ "\x03\x02\x02\x02\x94\x95\t\x02\x02\x02\x95\x1D\x03\x02\x02\x02\x11!(0" +
826
+ "9?EKT`irt|\x87\x92";
827
+ class SectionsContext extends ParserRuleContext_1.ParserRuleContext {
828
+ program() {
829
+ return this.getRuleContext(0, ProgramContext);
830
+ }
831
+ module(i) {
832
+ if (i === undefined) {
833
+ return this.getRuleContexts(ModuleContext);
834
+ }
835
+ else {
836
+ return this.getRuleContext(i, ModuleContext);
837
+ }
838
+ }
839
+ constructor(parent, invokingState) {
840
+ super(parent, invokingState);
841
+ }
842
+ // @Override
843
+ get ruleIndex() { return BlendRnBasicParser.RULE_sections; }
844
+ // @Override
845
+ enterRule(listener) {
846
+ if (listener.enterSections) {
847
+ listener.enterSections(this);
848
+ }
849
+ }
850
+ // @Override
851
+ exitRule(listener) {
852
+ if (listener.exitSections) {
853
+ listener.exitSections(this);
854
+ }
855
+ }
856
+ }
857
+ exports.SectionsContext = SectionsContext;
858
+ class ModuleContext extends ParserRuleContext_1.ParserRuleContext {
859
+ dataModule() {
860
+ return this.tryGetRuleContext(0, DataModuleContext);
861
+ }
862
+ apiModule() {
863
+ return this.tryGetRuleContext(0, ApiModuleContext);
864
+ }
865
+ constructor(parent, invokingState) {
866
+ super(parent, invokingState);
867
+ }
868
+ // @Override
869
+ get ruleIndex() { return BlendRnBasicParser.RULE_module; }
870
+ // @Override
871
+ enterRule(listener) {
872
+ if (listener.enterModule) {
873
+ listener.enterModule(this);
874
+ }
875
+ }
876
+ // @Override
877
+ exitRule(listener) {
878
+ if (listener.exitModule) {
879
+ listener.exitModule(this);
880
+ }
881
+ }
882
+ }
883
+ exports.ModuleContext = ModuleContext;
884
+ class DataModuleContext extends ParserRuleContext_1.ParserRuleContext {
885
+ CAPITAL_IDENTIFIER(i) {
886
+ if (i === undefined) {
887
+ return this.getTokens(BlendRnBasicParser.CAPITAL_IDENTIFIER);
888
+ }
889
+ else {
890
+ return this.getToken(BlendRnBasicParser.CAPITAL_IDENTIFIER, i);
891
+ }
892
+ }
893
+ constructor(parent, invokingState) {
894
+ super(parent, invokingState);
895
+ }
896
+ // @Override
897
+ get ruleIndex() { return BlendRnBasicParser.RULE_dataModule; }
898
+ // @Override
899
+ enterRule(listener) {
900
+ if (listener.enterDataModule) {
901
+ listener.enterDataModule(this);
902
+ }
903
+ }
904
+ // @Override
905
+ exitRule(listener) {
906
+ if (listener.exitDataModule) {
907
+ listener.exitDataModule(this);
908
+ }
909
+ }
910
+ }
911
+ exports.DataModuleContext = DataModuleContext;
912
+ class ApiModuleContext extends ParserRuleContext_1.ParserRuleContext {
913
+ CAPITAL_IDENTIFIER(i) {
914
+ if (i === undefined) {
915
+ return this.getTokens(BlendRnBasicParser.CAPITAL_IDENTIFIER);
916
+ }
917
+ else {
918
+ return this.getToken(BlendRnBasicParser.CAPITAL_IDENTIFIER, i);
919
+ }
920
+ }
921
+ constructor(parent, invokingState) {
922
+ super(parent, invokingState);
923
+ }
924
+ // @Override
925
+ get ruleIndex() { return BlendRnBasicParser.RULE_apiModule; }
926
+ // @Override
927
+ enterRule(listener) {
928
+ if (listener.enterApiModule) {
929
+ listener.enterApiModule(this);
930
+ }
931
+ }
932
+ // @Override
933
+ exitRule(listener) {
934
+ if (listener.exitApiModule) {
935
+ listener.exitApiModule(this);
936
+ }
937
+ }
938
+ }
939
+ exports.ApiModuleContext = ApiModuleContext;
940
+ class ProgramContext extends ParserRuleContext_1.ParserRuleContext {
941
+ componentDefenition(i) {
942
+ if (i === undefined) {
943
+ return this.getRuleContexts(ComponentDefenitionContext);
944
+ }
945
+ else {
946
+ return this.getRuleContext(i, ComponentDefenitionContext);
947
+ }
948
+ }
949
+ screenDefenition(i) {
950
+ if (i === undefined) {
951
+ return this.getRuleContexts(ScreenDefenitionContext);
952
+ }
953
+ else {
954
+ return this.getRuleContext(i, ScreenDefenitionContext);
955
+ }
956
+ }
957
+ layoutDefinition(i) {
958
+ if (i === undefined) {
959
+ return this.getRuleContexts(LayoutDefinitionContext);
960
+ }
961
+ else {
962
+ return this.getRuleContext(i, LayoutDefinitionContext);
963
+ }
964
+ }
965
+ constructor(parent, invokingState) {
966
+ super(parent, invokingState);
967
+ }
968
+ // @Override
969
+ get ruleIndex() { return BlendRnBasicParser.RULE_program; }
970
+ // @Override
971
+ enterRule(listener) {
972
+ if (listener.enterProgram) {
973
+ listener.enterProgram(this);
974
+ }
975
+ }
976
+ // @Override
977
+ exitRule(listener) {
978
+ if (listener.exitProgram) {
979
+ listener.exitProgram(this);
980
+ }
981
+ }
982
+ }
983
+ exports.ProgramContext = ProgramContext;
984
+ class ScreenDefenitionContext extends ParserRuleContext_1.ParserRuleContext {
985
+ CAPITAL_IDENTIFIER(i) {
986
+ if (i === undefined) {
987
+ return this.getTokens(BlendRnBasicParser.CAPITAL_IDENTIFIER);
988
+ }
989
+ else {
990
+ return this.getToken(BlendRnBasicParser.CAPITAL_IDENTIFIER, i);
991
+ }
992
+ }
993
+ PATH_IDENTIFIER() { return this.getToken(BlendRnBasicParser.PATH_IDENTIFIER, 0); }
994
+ constructor(parent, invokingState) {
995
+ super(parent, invokingState);
996
+ }
997
+ // @Override
998
+ get ruleIndex() { return BlendRnBasicParser.RULE_screenDefenition; }
999
+ // @Override
1000
+ enterRule(listener) {
1001
+ if (listener.enterScreenDefenition) {
1002
+ listener.enterScreenDefenition(this);
1003
+ }
1004
+ }
1005
+ // @Override
1006
+ exitRule(listener) {
1007
+ if (listener.exitScreenDefenition) {
1008
+ listener.exitScreenDefenition(this);
1009
+ }
1010
+ }
1011
+ }
1012
+ exports.ScreenDefenitionContext = ScreenDefenitionContext;
1013
+ class ComponentDefenitionContext extends ParserRuleContext_1.ParserRuleContext {
1014
+ CAPITAL_IDENTIFIER(i) {
1015
+ if (i === undefined) {
1016
+ return this.getTokens(BlendRnBasicParser.CAPITAL_IDENTIFIER);
1017
+ }
1018
+ else {
1019
+ return this.getToken(BlendRnBasicParser.CAPITAL_IDENTIFIER, i);
1020
+ }
1021
+ }
1022
+ PATH_IDENTIFIER() { return this.getToken(BlendRnBasicParser.PATH_IDENTIFIER, 0); }
1023
+ constructor(parent, invokingState) {
1024
+ super(parent, invokingState);
1025
+ }
1026
+ // @Override
1027
+ get ruleIndex() { return BlendRnBasicParser.RULE_componentDefenition; }
1028
+ // @Override
1029
+ enterRule(listener) {
1030
+ if (listener.enterComponentDefenition) {
1031
+ listener.enterComponentDefenition(this);
1032
+ }
1033
+ }
1034
+ // @Override
1035
+ exitRule(listener) {
1036
+ if (listener.exitComponentDefenition) {
1037
+ listener.exitComponentDefenition(this);
1038
+ }
1039
+ }
1040
+ }
1041
+ exports.ComponentDefenitionContext = ComponentDefenitionContext;
1042
+ class LayoutDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
1043
+ CAPITAL_IDENTIFIER() { return this.getToken(BlendRnBasicParser.CAPITAL_IDENTIFIER, 0); }
1044
+ LAYOUT_TYPE() { return this.getToken(BlendRnBasicParser.LAYOUT_TYPE, 0); }
1045
+ paramsSection() {
1046
+ return this.tryGetRuleContext(0, ParamsSectionContext);
1047
+ }
1048
+ pageDefinition(i) {
1049
+ if (i === undefined) {
1050
+ return this.getRuleContexts(PageDefinitionContext);
1051
+ }
1052
+ else {
1053
+ return this.getRuleContext(i, PageDefinitionContext);
1054
+ }
1055
+ }
1056
+ layoutDefinition(i) {
1057
+ if (i === undefined) {
1058
+ return this.getRuleContexts(LayoutDefinitionContext);
1059
+ }
1060
+ else {
1061
+ return this.getRuleContext(i, LayoutDefinitionContext);
1062
+ }
1063
+ }
1064
+ constructor(parent, invokingState) {
1065
+ super(parent, invokingState);
1066
+ }
1067
+ // @Override
1068
+ get ruleIndex() { return BlendRnBasicParser.RULE_layoutDefinition; }
1069
+ // @Override
1070
+ enterRule(listener) {
1071
+ if (listener.enterLayoutDefinition) {
1072
+ listener.enterLayoutDefinition(this);
1073
+ }
1074
+ }
1075
+ // @Override
1076
+ exitRule(listener) {
1077
+ if (listener.exitLayoutDefinition) {
1078
+ listener.exitLayoutDefinition(this);
1079
+ }
1080
+ }
1081
+ }
1082
+ exports.LayoutDefinitionContext = LayoutDefinitionContext;
1083
+ class PageDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
1084
+ CAPITAL_IDENTIFIER() { return this.getToken(BlendRnBasicParser.CAPITAL_IDENTIFIER, 0); }
1085
+ paramsSection() {
1086
+ return this.tryGetRuleContext(0, ParamsSectionContext);
1087
+ }
1088
+ constructor(parent, invokingState) {
1089
+ super(parent, invokingState);
1090
+ }
1091
+ // @Override
1092
+ get ruleIndex() { return BlendRnBasicParser.RULE_pageDefinition; }
1093
+ // @Override
1094
+ enterRule(listener) {
1095
+ if (listener.enterPageDefinition) {
1096
+ listener.enterPageDefinition(this);
1097
+ }
1098
+ }
1099
+ // @Override
1100
+ exitRule(listener) {
1101
+ if (listener.exitPageDefinition) {
1102
+ listener.exitPageDefinition(this);
1103
+ }
1104
+ }
1105
+ }
1106
+ exports.PageDefinitionContext = PageDefinitionContext;
1107
+ class ParamsSectionContext extends ParserRuleContext_1.ParserRuleContext {
1108
+ paramsDefinition() {
1109
+ return this.getRuleContext(0, ParamsDefinitionContext);
1110
+ }
1111
+ constructor(parent, invokingState) {
1112
+ super(parent, invokingState);
1113
+ }
1114
+ // @Override
1115
+ get ruleIndex() { return BlendRnBasicParser.RULE_paramsSection; }
1116
+ // @Override
1117
+ enterRule(listener) {
1118
+ if (listener.enterParamsSection) {
1119
+ listener.enterParamsSection(this);
1120
+ }
1121
+ }
1122
+ // @Override
1123
+ exitRule(listener) {
1124
+ if (listener.exitParamsSection) {
1125
+ listener.exitParamsSection(this);
1126
+ }
1127
+ }
1128
+ }
1129
+ exports.ParamsSectionContext = ParamsSectionContext;
1130
+ class ParamsDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
1131
+ field(i) {
1132
+ if (i === undefined) {
1133
+ return this.getRuleContexts(FieldContext);
1134
+ }
1135
+ else {
1136
+ return this.getRuleContext(i, FieldContext);
1137
+ }
1138
+ }
1139
+ constructor(parent, invokingState) {
1140
+ super(parent, invokingState);
1141
+ }
1142
+ // @Override
1143
+ get ruleIndex() { return BlendRnBasicParser.RULE_paramsDefinition; }
1144
+ // @Override
1145
+ enterRule(listener) {
1146
+ if (listener.enterParamsDefinition) {
1147
+ listener.enterParamsDefinition(this);
1148
+ }
1149
+ }
1150
+ // @Override
1151
+ exitRule(listener) {
1152
+ if (listener.exitParamsDefinition) {
1153
+ listener.exitParamsDefinition(this);
1154
+ }
1155
+ }
1156
+ }
1157
+ exports.ParamsDefinitionContext = ParamsDefinitionContext;
1158
+ class FieldContext extends ParserRuleContext_1.ParserRuleContext {
1159
+ IDENTIFIER() { return this.getToken(BlendRnBasicParser.IDENTIFIER, 0); }
1160
+ type() {
1161
+ return this.getRuleContext(0, TypeContext);
1162
+ }
1163
+ constructor(parent, invokingState) {
1164
+ super(parent, invokingState);
1165
+ }
1166
+ // @Override
1167
+ get ruleIndex() { return BlendRnBasicParser.RULE_field; }
1168
+ // @Override
1169
+ enterRule(listener) {
1170
+ if (listener.enterField) {
1171
+ listener.enterField(this);
1172
+ }
1173
+ }
1174
+ // @Override
1175
+ exitRule(listener) {
1176
+ if (listener.exitField) {
1177
+ listener.exitField(this);
1178
+ }
1179
+ }
1180
+ }
1181
+ exports.FieldContext = FieldContext;
1182
+ class TypeContext extends ParserRuleContext_1.ParserRuleContext {
1183
+ primitiveType() {
1184
+ return this.getRuleContext(0, PrimitiveTypeContext);
1185
+ }
1186
+ constructor(parent, invokingState) {
1187
+ super(parent, invokingState);
1188
+ }
1189
+ // @Override
1190
+ get ruleIndex() { return BlendRnBasicParser.RULE_type; }
1191
+ // @Override
1192
+ enterRule(listener) {
1193
+ if (listener.enterType) {
1194
+ listener.enterType(this);
1195
+ }
1196
+ }
1197
+ // @Override
1198
+ exitRule(listener) {
1199
+ if (listener.exitType) {
1200
+ listener.exitType(this);
1201
+ }
1202
+ }
1203
+ }
1204
+ exports.TypeContext = TypeContext;
1205
+ class PrimitiveTypeContext extends ParserRuleContext_1.ParserRuleContext {
1206
+ constructor(parent, invokingState) {
1207
+ super(parent, invokingState);
1208
+ }
1209
+ // @Override
1210
+ get ruleIndex() { return BlendRnBasicParser.RULE_primitiveType; }
1211
+ // @Override
1212
+ enterRule(listener) {
1213
+ if (listener.enterPrimitiveType) {
1214
+ listener.enterPrimitiveType(this);
1215
+ }
1216
+ }
1217
+ // @Override
1218
+ exitRule(listener) {
1219
+ if (listener.exitPrimitiveType) {
1220
+ listener.exitPrimitiveType(this);
1221
+ }
1222
+ }
1223
+ }
1224
+ exports.PrimitiveTypeContext = PrimitiveTypeContext;