cariboujs 2.0.5 → 2.0.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.
Files changed (54) hide show
  1. package/README.md +7 -2
  2. package/abnf/AbnfLexer.js +51 -50
  3. package/c/CLexer.js +332 -333
  4. package/c/CParser.js +4 -4
  5. package/c/CParserBase.js +27 -1
  6. package/c/SymbolTable.js +6 -1
  7. package/cpp/CPP14Parser.js +415 -404
  8. package/csharp/v8-spec/CSharpParser.js +3943 -3932
  9. package/csharp/v8-spec/CSharpParserBase.js +19 -1
  10. package/cypher/CypherParser.js +1171 -780
  11. package/cypher/CypherParserListener.js +27 -0
  12. package/cypher/CypherParserVisitor.js +18 -0
  13. package/gql/GQLLexer.js +2203 -0
  14. package/gql/GQLListener.js +5499 -0
  15. package/gql/GQLParser.js +58653 -0
  16. package/gql/GQLVisitor.js +3670 -0
  17. package/maml/MAMLLexer.js +116 -0
  18. package/maml/MAMLListener.js +72 -0
  19. package/maml/MAMLParser.js +935 -0
  20. package/maml/MAMLVisitor.js +52 -0
  21. package/miniscript/MiniscriptLexer.js +199 -0
  22. package/miniscript/MiniscriptListener.js +180 -0
  23. package/miniscript/MiniscriptParser.js +2620 -0
  24. package/miniscript/MiniscriptVisitor.js +124 -0
  25. package/odin/odinLexer.js +739 -0
  26. package/odin/odinListener.js +882 -0
  27. package/odin/odinParser.js +12189 -0
  28. package/odin/odinVisitor.js +592 -0
  29. package/package.json +1 -1
  30. package/sql/mysql/Oracle/MySQLLexer.js +3689 -3668
  31. package/sql/mysql/Oracle/MySQLParser.js +4383 -4399
  32. package/sql/plsql/PlSqlLexer.js +13604 -13587
  33. package/sql/plsql/PlSqlParser.js +43442 -40169
  34. package/sql/plsql/PlSqlParserListener.js +36 -0
  35. package/sql/plsql/PlSqlParserVisitor.js +24 -0
  36. package/sql/postgresql/PostgreSQLParser.js +91 -91
  37. package/sql/snowflake/SnowflakeParser.js +1556 -1536
  38. package/sql/sqlite/SQLiteParser.js +2074 -1737
  39. package/turtle/TURTLELexer.js +155 -156
  40. package/vba/vba7_1/vbaLexer.js +1689 -0
  41. package/vba/vba7_1/vbaParser.js +42797 -0
  42. package/vba/vba7_1/vbaParserListener.js +3267 -0
  43. package/vba/vba7_1/vbaParserVisitor.js +2182 -0
  44. package/vhdl/vhdl2008/vhdl2008Listener.js +9 -0
  45. package/vhdl/vhdl2008/vhdl2008Parser.js +2840 -2705
  46. package/vhdl/vhdl2008/vhdl2008Visitor.js +6 -0
  47. package/wkt/wktLexer.js +177 -148
  48. package/wkt/wktListener.js +123 -60
  49. package/wkt/wktParser.js +1802 -1125
  50. package/wkt/wktVisitor.js +72 -30
  51. /package/scala/{ScalaLexer.js → scala2/ScalaLexer.js} +0 -0
  52. /package/scala/{ScalaListener.js → scala2/ScalaListener.js} +0 -0
  53. /package/scala/{ScalaParser.js → scala2/ScalaParser.js} +0 -0
  54. /package/scala/{ScalaVisitor.js → scala2/ScalaVisitor.js} +0 -0
@@ -0,0 +1,935 @@
1
+ // Generated from MAML.g4 by ANTLR 4.13.2
2
+ // jshint ignore: start
3
+ import antlr4 from 'antlr4';
4
+ import MAMLListener from './MAMLListener.js';
5
+ import MAMLVisitor from './MAMLVisitor.js';
6
+
7
+ const serializedATN = [4,1,16,118,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,
8
+ 4,2,5,7,5,2,6,7,6,1,0,5,0,16,8,0,10,0,12,0,19,9,0,1,0,1,0,5,0,23,8,0,10,
9
+ 0,12,0,26,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,38,8,1,1,2,1,2,
10
+ 5,2,42,8,2,10,2,12,2,45,9,2,1,2,1,2,1,2,1,2,5,2,51,8,2,10,2,12,2,54,9,2,
11
+ 1,2,3,2,57,8,2,3,2,59,8,2,1,2,1,2,1,3,1,3,5,3,65,8,3,10,3,12,3,68,9,3,1,
12
+ 3,1,3,5,3,72,8,3,10,3,12,3,75,9,3,1,3,1,3,1,4,1,4,1,5,1,5,5,5,83,8,5,10,
13
+ 5,12,5,86,9,5,1,5,1,5,1,5,1,5,5,5,92,8,5,10,5,12,5,95,9,5,1,5,3,5,98,8,5,
14
+ 3,5,100,8,5,1,5,1,5,1,6,1,6,5,6,106,8,6,10,6,12,6,109,9,6,1,6,4,6,112,8,
15
+ 6,11,6,12,6,113,3,6,116,8,6,1,6,0,0,7,0,2,4,6,8,10,12,0,1,2,0,7,9,12,14,
16
+ 132,0,17,1,0,0,0,2,37,1,0,0,0,4,39,1,0,0,0,6,62,1,0,0,0,8,78,1,0,0,0,10,
17
+ 80,1,0,0,0,12,115,1,0,0,0,14,16,5,15,0,0,15,14,1,0,0,0,16,19,1,0,0,0,17,
18
+ 15,1,0,0,0,17,18,1,0,0,0,18,20,1,0,0,0,19,17,1,0,0,0,20,24,3,2,1,0,21,23,
19
+ 5,15,0,0,22,21,1,0,0,0,23,26,1,0,0,0,24,22,1,0,0,0,24,25,1,0,0,0,25,27,1,
20
+ 0,0,0,26,24,1,0,0,0,27,28,5,0,0,1,28,1,1,0,0,0,29,38,3,4,2,0,30,38,3,10,
21
+ 5,0,31,38,5,12,0,0,32,38,5,11,0,0,33,38,5,13,0,0,34,38,5,7,0,0,35,38,5,8,
22
+ 0,0,36,38,5,9,0,0,37,29,1,0,0,0,37,30,1,0,0,0,37,31,1,0,0,0,37,32,1,0,0,
23
+ 0,37,33,1,0,0,0,37,34,1,0,0,0,37,35,1,0,0,0,37,36,1,0,0,0,38,3,1,0,0,0,39,
24
+ 43,5,1,0,0,40,42,5,15,0,0,41,40,1,0,0,0,42,45,1,0,0,0,43,41,1,0,0,0,43,44,
25
+ 1,0,0,0,44,58,1,0,0,0,45,43,1,0,0,0,46,52,3,6,3,0,47,48,3,12,6,0,48,49,3,
26
+ 6,3,0,49,51,1,0,0,0,50,47,1,0,0,0,51,54,1,0,0,0,52,50,1,0,0,0,52,53,1,0,
27
+ 0,0,53,56,1,0,0,0,54,52,1,0,0,0,55,57,3,12,6,0,56,55,1,0,0,0,56,57,1,0,0,
28
+ 0,57,59,1,0,0,0,58,46,1,0,0,0,58,59,1,0,0,0,59,60,1,0,0,0,60,61,5,2,0,0,
29
+ 61,5,1,0,0,0,62,66,3,8,4,0,63,65,5,15,0,0,64,63,1,0,0,0,65,68,1,0,0,0,66,
30
+ 64,1,0,0,0,66,67,1,0,0,0,67,69,1,0,0,0,68,66,1,0,0,0,69,73,5,3,0,0,70,72,
31
+ 5,15,0,0,71,70,1,0,0,0,72,75,1,0,0,0,73,71,1,0,0,0,73,74,1,0,0,0,74,76,1,
32
+ 0,0,0,75,73,1,0,0,0,76,77,3,2,1,0,77,7,1,0,0,0,78,79,7,0,0,0,79,9,1,0,0,
33
+ 0,80,84,5,4,0,0,81,83,5,15,0,0,82,81,1,0,0,0,83,86,1,0,0,0,84,82,1,0,0,0,
34
+ 84,85,1,0,0,0,85,99,1,0,0,0,86,84,1,0,0,0,87,93,3,2,1,0,88,89,3,12,6,0,89,
35
+ 90,3,2,1,0,90,92,1,0,0,0,91,88,1,0,0,0,92,95,1,0,0,0,93,91,1,0,0,0,93,94,
36
+ 1,0,0,0,94,97,1,0,0,0,95,93,1,0,0,0,96,98,3,12,6,0,97,96,1,0,0,0,97,98,1,
37
+ 0,0,0,98,100,1,0,0,0,99,87,1,0,0,0,99,100,1,0,0,0,100,101,1,0,0,0,101,102,
38
+ 5,5,0,0,102,11,1,0,0,0,103,107,5,6,0,0,104,106,5,15,0,0,105,104,1,0,0,0,
39
+ 106,109,1,0,0,0,107,105,1,0,0,0,107,108,1,0,0,0,108,116,1,0,0,0,109,107,
40
+ 1,0,0,0,110,112,5,15,0,0,111,110,1,0,0,0,112,113,1,0,0,0,113,111,1,0,0,0,
41
+ 113,114,1,0,0,0,114,116,1,0,0,0,115,103,1,0,0,0,115,111,1,0,0,0,116,13,1,
42
+ 0,0,0,16,17,24,37,43,52,56,58,66,73,84,93,97,99,107,113,115];
43
+
44
+
45
+ const atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
46
+
47
+ const decisionsToDFA = atn.decisionToState.map( (ds, index) => new antlr4.dfa.DFA(ds, index) );
48
+
49
+ const sharedContextCache = new antlr4.atn.PredictionContextCache();
50
+
51
+ export default class MAMLParser extends antlr4.Parser {
52
+
53
+ static grammarFileName = "MAML.g4";
54
+ static literalNames = [ null, "'{'", "'}'", "':'", "'['", "']'", "','",
55
+ "'true'", "'false'", "'null'" ];
56
+ static symbolicNames = [ null, null, null, null, null, null, null, "TRUE",
57
+ "FALSE", "NULL", "COMMENT", "RAW_STRING", "STRING",
58
+ "NUMBER", "IDENTIFIER", "NL", "WS" ];
59
+ static ruleNames = [ "maml", "value", "object", "member", "key", "array",
60
+ "separator" ];
61
+
62
+ constructor(input) {
63
+ super(input);
64
+ this._interp = new antlr4.atn.ParserATNSimulator(this, atn, decisionsToDFA, sharedContextCache);
65
+ this.ruleNames = MAMLParser.ruleNames;
66
+ this.literalNames = MAMLParser.literalNames;
67
+ this.symbolicNames = MAMLParser.symbolicNames;
68
+ }
69
+
70
+
71
+
72
+ maml() {
73
+ let localctx = new MamlContext(this, this._ctx, this.state);
74
+ this.enterRule(localctx, 0, MAMLParser.RULE_maml);
75
+ var _la = 0;
76
+ try {
77
+ this.enterOuterAlt(localctx, 1);
78
+ this.state = 17;
79
+ this._errHandler.sync(this);
80
+ _la = this._input.LA(1);
81
+ while(_la===15) {
82
+ this.state = 14;
83
+ this.match(MAMLParser.NL);
84
+ this.state = 19;
85
+ this._errHandler.sync(this);
86
+ _la = this._input.LA(1);
87
+ }
88
+ this.state = 20;
89
+ this.value();
90
+ this.state = 24;
91
+ this._errHandler.sync(this);
92
+ _la = this._input.LA(1);
93
+ while(_la===15) {
94
+ this.state = 21;
95
+ this.match(MAMLParser.NL);
96
+ this.state = 26;
97
+ this._errHandler.sync(this);
98
+ _la = this._input.LA(1);
99
+ }
100
+ this.state = 27;
101
+ this.match(MAMLParser.EOF);
102
+ } catch (re) {
103
+ if(re instanceof antlr4.error.RecognitionException) {
104
+ localctx.exception = re;
105
+ this._errHandler.reportError(this, re);
106
+ this._errHandler.recover(this, re);
107
+ } else {
108
+ throw re;
109
+ }
110
+ } finally {
111
+ this.exitRule();
112
+ }
113
+ return localctx;
114
+ }
115
+
116
+
117
+
118
+ value() {
119
+ let localctx = new ValueContext(this, this._ctx, this.state);
120
+ this.enterRule(localctx, 2, MAMLParser.RULE_value);
121
+ try {
122
+ this.state = 37;
123
+ this._errHandler.sync(this);
124
+ switch(this._input.LA(1)) {
125
+ case 1:
126
+ this.enterOuterAlt(localctx, 1);
127
+ this.state = 29;
128
+ this.object();
129
+ break;
130
+ case 4:
131
+ this.enterOuterAlt(localctx, 2);
132
+ this.state = 30;
133
+ this.array();
134
+ break;
135
+ case 12:
136
+ this.enterOuterAlt(localctx, 3);
137
+ this.state = 31;
138
+ this.match(MAMLParser.STRING);
139
+ break;
140
+ case 11:
141
+ this.enterOuterAlt(localctx, 4);
142
+ this.state = 32;
143
+ this.match(MAMLParser.RAW_STRING);
144
+ break;
145
+ case 13:
146
+ this.enterOuterAlt(localctx, 5);
147
+ this.state = 33;
148
+ this.match(MAMLParser.NUMBER);
149
+ break;
150
+ case 7:
151
+ this.enterOuterAlt(localctx, 6);
152
+ this.state = 34;
153
+ this.match(MAMLParser.TRUE);
154
+ break;
155
+ case 8:
156
+ this.enterOuterAlt(localctx, 7);
157
+ this.state = 35;
158
+ this.match(MAMLParser.FALSE);
159
+ break;
160
+ case 9:
161
+ this.enterOuterAlt(localctx, 8);
162
+ this.state = 36;
163
+ this.match(MAMLParser.NULL);
164
+ break;
165
+ default:
166
+ throw new antlr4.error.NoViableAltException(this);
167
+ }
168
+ } catch (re) {
169
+ if(re instanceof antlr4.error.RecognitionException) {
170
+ localctx.exception = re;
171
+ this._errHandler.reportError(this, re);
172
+ this._errHandler.recover(this, re);
173
+ } else {
174
+ throw re;
175
+ }
176
+ } finally {
177
+ this.exitRule();
178
+ }
179
+ return localctx;
180
+ }
181
+
182
+
183
+
184
+ object() {
185
+ let localctx = new ObjectContext(this, this._ctx, this.state);
186
+ this.enterRule(localctx, 4, MAMLParser.RULE_object);
187
+ var _la = 0;
188
+ try {
189
+ this.enterOuterAlt(localctx, 1);
190
+ this.state = 39;
191
+ this.match(MAMLParser.T__0);
192
+ this.state = 43;
193
+ this._errHandler.sync(this);
194
+ _la = this._input.LA(1);
195
+ while(_la===15) {
196
+ this.state = 40;
197
+ this.match(MAMLParser.NL);
198
+ this.state = 45;
199
+ this._errHandler.sync(this);
200
+ _la = this._input.LA(1);
201
+ }
202
+ this.state = 58;
203
+ this._errHandler.sync(this);
204
+ _la = this._input.LA(1);
205
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 29568) !== 0)) {
206
+ this.state = 46;
207
+ this.member();
208
+ this.state = 52;
209
+ this._errHandler.sync(this);
210
+ var _alt = this._interp.adaptivePredict(this._input,4,this._ctx)
211
+ while(_alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER) {
212
+ if(_alt===1) {
213
+ this.state = 47;
214
+ this.separator();
215
+ this.state = 48;
216
+ this.member();
217
+ }
218
+ this.state = 54;
219
+ this._errHandler.sync(this);
220
+ _alt = this._interp.adaptivePredict(this._input,4,this._ctx);
221
+ }
222
+
223
+ this.state = 56;
224
+ this._errHandler.sync(this);
225
+ _la = this._input.LA(1);
226
+ if(_la===6 || _la===15) {
227
+ this.state = 55;
228
+ this.separator();
229
+ }
230
+
231
+ }
232
+
233
+ this.state = 60;
234
+ this.match(MAMLParser.T__1);
235
+ } catch (re) {
236
+ if(re instanceof antlr4.error.RecognitionException) {
237
+ localctx.exception = re;
238
+ this._errHandler.reportError(this, re);
239
+ this._errHandler.recover(this, re);
240
+ } else {
241
+ throw re;
242
+ }
243
+ } finally {
244
+ this.exitRule();
245
+ }
246
+ return localctx;
247
+ }
248
+
249
+
250
+
251
+ member() {
252
+ let localctx = new MemberContext(this, this._ctx, this.state);
253
+ this.enterRule(localctx, 6, MAMLParser.RULE_member);
254
+ var _la = 0;
255
+ try {
256
+ this.enterOuterAlt(localctx, 1);
257
+ this.state = 62;
258
+ this.key();
259
+ this.state = 66;
260
+ this._errHandler.sync(this);
261
+ _la = this._input.LA(1);
262
+ while(_la===15) {
263
+ this.state = 63;
264
+ this.match(MAMLParser.NL);
265
+ this.state = 68;
266
+ this._errHandler.sync(this);
267
+ _la = this._input.LA(1);
268
+ }
269
+ this.state = 69;
270
+ this.match(MAMLParser.T__2);
271
+ this.state = 73;
272
+ this._errHandler.sync(this);
273
+ _la = this._input.LA(1);
274
+ while(_la===15) {
275
+ this.state = 70;
276
+ this.match(MAMLParser.NL);
277
+ this.state = 75;
278
+ this._errHandler.sync(this);
279
+ _la = this._input.LA(1);
280
+ }
281
+ this.state = 76;
282
+ this.value();
283
+ } catch (re) {
284
+ if(re instanceof antlr4.error.RecognitionException) {
285
+ localctx.exception = re;
286
+ this._errHandler.reportError(this, re);
287
+ this._errHandler.recover(this, re);
288
+ } else {
289
+ throw re;
290
+ }
291
+ } finally {
292
+ this.exitRule();
293
+ }
294
+ return localctx;
295
+ }
296
+
297
+
298
+
299
+ key() {
300
+ let localctx = new KeyContext(this, this._ctx, this.state);
301
+ this.enterRule(localctx, 8, MAMLParser.RULE_key);
302
+ var _la = 0;
303
+ try {
304
+ this.enterOuterAlt(localctx, 1);
305
+ this.state = 78;
306
+ _la = this._input.LA(1);
307
+ if(!((((_la) & ~0x1f) === 0 && ((1 << _la) & 29568) !== 0))) {
308
+ this._errHandler.recoverInline(this);
309
+ }
310
+ else {
311
+ this._errHandler.reportMatch(this);
312
+ this.consume();
313
+ }
314
+ } catch (re) {
315
+ if(re instanceof antlr4.error.RecognitionException) {
316
+ localctx.exception = re;
317
+ this._errHandler.reportError(this, re);
318
+ this._errHandler.recover(this, re);
319
+ } else {
320
+ throw re;
321
+ }
322
+ } finally {
323
+ this.exitRule();
324
+ }
325
+ return localctx;
326
+ }
327
+
328
+
329
+
330
+ array() {
331
+ let localctx = new ArrayContext(this, this._ctx, this.state);
332
+ this.enterRule(localctx, 10, MAMLParser.RULE_array);
333
+ var _la = 0;
334
+ try {
335
+ this.enterOuterAlt(localctx, 1);
336
+ this.state = 80;
337
+ this.match(MAMLParser.T__3);
338
+ this.state = 84;
339
+ this._errHandler.sync(this);
340
+ _la = this._input.LA(1);
341
+ while(_la===15) {
342
+ this.state = 81;
343
+ this.match(MAMLParser.NL);
344
+ this.state = 86;
345
+ this._errHandler.sync(this);
346
+ _la = this._input.LA(1);
347
+ }
348
+ this.state = 99;
349
+ this._errHandler.sync(this);
350
+ _la = this._input.LA(1);
351
+ if((((_la) & ~0x1f) === 0 && ((1 << _la) & 15250) !== 0)) {
352
+ this.state = 87;
353
+ this.value();
354
+ this.state = 93;
355
+ this._errHandler.sync(this);
356
+ var _alt = this._interp.adaptivePredict(this._input,10,this._ctx)
357
+ while(_alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER) {
358
+ if(_alt===1) {
359
+ this.state = 88;
360
+ this.separator();
361
+ this.state = 89;
362
+ this.value();
363
+ }
364
+ this.state = 95;
365
+ this._errHandler.sync(this);
366
+ _alt = this._interp.adaptivePredict(this._input,10,this._ctx);
367
+ }
368
+
369
+ this.state = 97;
370
+ this._errHandler.sync(this);
371
+ _la = this._input.LA(1);
372
+ if(_la===6 || _la===15) {
373
+ this.state = 96;
374
+ this.separator();
375
+ }
376
+
377
+ }
378
+
379
+ this.state = 101;
380
+ this.match(MAMLParser.T__4);
381
+ } catch (re) {
382
+ if(re instanceof antlr4.error.RecognitionException) {
383
+ localctx.exception = re;
384
+ this._errHandler.reportError(this, re);
385
+ this._errHandler.recover(this, re);
386
+ } else {
387
+ throw re;
388
+ }
389
+ } finally {
390
+ this.exitRule();
391
+ }
392
+ return localctx;
393
+ }
394
+
395
+
396
+
397
+ separator() {
398
+ let localctx = new SeparatorContext(this, this._ctx, this.state);
399
+ this.enterRule(localctx, 12, MAMLParser.RULE_separator);
400
+ var _la = 0;
401
+ try {
402
+ this.state = 115;
403
+ this._errHandler.sync(this);
404
+ switch(this._input.LA(1)) {
405
+ case 6:
406
+ this.enterOuterAlt(localctx, 1);
407
+ this.state = 103;
408
+ this.match(MAMLParser.T__5);
409
+ this.state = 107;
410
+ this._errHandler.sync(this);
411
+ _la = this._input.LA(1);
412
+ while(_la===15) {
413
+ this.state = 104;
414
+ this.match(MAMLParser.NL);
415
+ this.state = 109;
416
+ this._errHandler.sync(this);
417
+ _la = this._input.LA(1);
418
+ }
419
+ break;
420
+ case 15:
421
+ this.enterOuterAlt(localctx, 2);
422
+ this.state = 111;
423
+ this._errHandler.sync(this);
424
+ _la = this._input.LA(1);
425
+ do {
426
+ this.state = 110;
427
+ this.match(MAMLParser.NL);
428
+ this.state = 113;
429
+ this._errHandler.sync(this);
430
+ _la = this._input.LA(1);
431
+ } while(_la===15);
432
+ break;
433
+ default:
434
+ throw new antlr4.error.NoViableAltException(this);
435
+ }
436
+ } catch (re) {
437
+ if(re instanceof antlr4.error.RecognitionException) {
438
+ localctx.exception = re;
439
+ this._errHandler.reportError(this, re);
440
+ this._errHandler.recover(this, re);
441
+ } else {
442
+ throw re;
443
+ }
444
+ } finally {
445
+ this.exitRule();
446
+ }
447
+ return localctx;
448
+ }
449
+
450
+
451
+ }
452
+
453
+ MAMLParser.EOF = antlr4.Token.EOF;
454
+ MAMLParser.T__0 = 1;
455
+ MAMLParser.T__1 = 2;
456
+ MAMLParser.T__2 = 3;
457
+ MAMLParser.T__3 = 4;
458
+ MAMLParser.T__4 = 5;
459
+ MAMLParser.T__5 = 6;
460
+ MAMLParser.TRUE = 7;
461
+ MAMLParser.FALSE = 8;
462
+ MAMLParser.NULL = 9;
463
+ MAMLParser.COMMENT = 10;
464
+ MAMLParser.RAW_STRING = 11;
465
+ MAMLParser.STRING = 12;
466
+ MAMLParser.NUMBER = 13;
467
+ MAMLParser.IDENTIFIER = 14;
468
+ MAMLParser.NL = 15;
469
+ MAMLParser.WS = 16;
470
+
471
+ MAMLParser.RULE_maml = 0;
472
+ MAMLParser.RULE_value = 1;
473
+ MAMLParser.RULE_object = 2;
474
+ MAMLParser.RULE_member = 3;
475
+ MAMLParser.RULE_key = 4;
476
+ MAMLParser.RULE_array = 5;
477
+ MAMLParser.RULE_separator = 6;
478
+
479
+ class MamlContext extends antlr4.ParserRuleContext {
480
+
481
+ constructor(parser, parent, invokingState) {
482
+ if(parent===undefined) {
483
+ parent = null;
484
+ }
485
+ if(invokingState===undefined || invokingState===null) {
486
+ invokingState = -1;
487
+ }
488
+ super(parent, invokingState);
489
+ this.parser = parser;
490
+ this.ruleIndex = MAMLParser.RULE_maml;
491
+ }
492
+
493
+ value() {
494
+ return this.getTypedRuleContext(ValueContext,0);
495
+ };
496
+
497
+ EOF() {
498
+ return this.getToken(MAMLParser.EOF, 0);
499
+ };
500
+
501
+ NL = function(i) {
502
+ if(i===undefined) {
503
+ i = null;
504
+ }
505
+ if(i===null) {
506
+ return this.getTokens(MAMLParser.NL);
507
+ } else {
508
+ return this.getToken(MAMLParser.NL, i);
509
+ }
510
+ };
511
+
512
+
513
+ enterRule(listener) {
514
+ if(listener instanceof MAMLListener ) {
515
+ listener.enterMaml(this);
516
+ }
517
+ }
518
+
519
+ exitRule(listener) {
520
+ if(listener instanceof MAMLListener ) {
521
+ listener.exitMaml(this);
522
+ }
523
+ }
524
+
525
+ accept(visitor) {
526
+ if ( visitor instanceof MAMLVisitor ) {
527
+ return visitor.visitMaml(this);
528
+ } else {
529
+ return visitor.visitChildren(this);
530
+ }
531
+ }
532
+
533
+
534
+ }
535
+
536
+
537
+
538
+ class ValueContext extends antlr4.ParserRuleContext {
539
+
540
+ constructor(parser, parent, invokingState) {
541
+ if(parent===undefined) {
542
+ parent = null;
543
+ }
544
+ if(invokingState===undefined || invokingState===null) {
545
+ invokingState = -1;
546
+ }
547
+ super(parent, invokingState);
548
+ this.parser = parser;
549
+ this.ruleIndex = MAMLParser.RULE_value;
550
+ }
551
+
552
+ object() {
553
+ return this.getTypedRuleContext(ObjectContext,0);
554
+ };
555
+
556
+ array() {
557
+ return this.getTypedRuleContext(ArrayContext,0);
558
+ };
559
+
560
+ STRING() {
561
+ return this.getToken(MAMLParser.STRING, 0);
562
+ };
563
+
564
+ RAW_STRING() {
565
+ return this.getToken(MAMLParser.RAW_STRING, 0);
566
+ };
567
+
568
+ NUMBER() {
569
+ return this.getToken(MAMLParser.NUMBER, 0);
570
+ };
571
+
572
+ TRUE() {
573
+ return this.getToken(MAMLParser.TRUE, 0);
574
+ };
575
+
576
+ FALSE() {
577
+ return this.getToken(MAMLParser.FALSE, 0);
578
+ };
579
+
580
+ NULL() {
581
+ return this.getToken(MAMLParser.NULL, 0);
582
+ };
583
+
584
+ enterRule(listener) {
585
+ if(listener instanceof MAMLListener ) {
586
+ listener.enterValue(this);
587
+ }
588
+ }
589
+
590
+ exitRule(listener) {
591
+ if(listener instanceof MAMLListener ) {
592
+ listener.exitValue(this);
593
+ }
594
+ }
595
+
596
+ accept(visitor) {
597
+ if ( visitor instanceof MAMLVisitor ) {
598
+ return visitor.visitValue(this);
599
+ } else {
600
+ return visitor.visitChildren(this);
601
+ }
602
+ }
603
+
604
+
605
+ }
606
+
607
+
608
+
609
+ class ObjectContext extends antlr4.ParserRuleContext {
610
+
611
+ constructor(parser, parent, invokingState) {
612
+ if(parent===undefined) {
613
+ parent = null;
614
+ }
615
+ if(invokingState===undefined || invokingState===null) {
616
+ invokingState = -1;
617
+ }
618
+ super(parent, invokingState);
619
+ this.parser = parser;
620
+ this.ruleIndex = MAMLParser.RULE_object;
621
+ }
622
+
623
+ NL = function(i) {
624
+ if(i===undefined) {
625
+ i = null;
626
+ }
627
+ if(i===null) {
628
+ return this.getTokens(MAMLParser.NL);
629
+ } else {
630
+ return this.getToken(MAMLParser.NL, i);
631
+ }
632
+ };
633
+
634
+
635
+ member = function(i) {
636
+ if(i===undefined) {
637
+ i = null;
638
+ }
639
+ if(i===null) {
640
+ return this.getTypedRuleContexts(MemberContext);
641
+ } else {
642
+ return this.getTypedRuleContext(MemberContext,i);
643
+ }
644
+ };
645
+
646
+ separator = function(i) {
647
+ if(i===undefined) {
648
+ i = null;
649
+ }
650
+ if(i===null) {
651
+ return this.getTypedRuleContexts(SeparatorContext);
652
+ } else {
653
+ return this.getTypedRuleContext(SeparatorContext,i);
654
+ }
655
+ };
656
+
657
+ enterRule(listener) {
658
+ if(listener instanceof MAMLListener ) {
659
+ listener.enterObject(this);
660
+ }
661
+ }
662
+
663
+ exitRule(listener) {
664
+ if(listener instanceof MAMLListener ) {
665
+ listener.exitObject(this);
666
+ }
667
+ }
668
+
669
+ accept(visitor) {
670
+ if ( visitor instanceof MAMLVisitor ) {
671
+ return visitor.visitObject(this);
672
+ } else {
673
+ return visitor.visitChildren(this);
674
+ }
675
+ }
676
+
677
+
678
+ }
679
+
680
+
681
+
682
+ class MemberContext extends antlr4.ParserRuleContext {
683
+
684
+ constructor(parser, parent, invokingState) {
685
+ if(parent===undefined) {
686
+ parent = null;
687
+ }
688
+ if(invokingState===undefined || invokingState===null) {
689
+ invokingState = -1;
690
+ }
691
+ super(parent, invokingState);
692
+ this.parser = parser;
693
+ this.ruleIndex = MAMLParser.RULE_member;
694
+ }
695
+
696
+ key() {
697
+ return this.getTypedRuleContext(KeyContext,0);
698
+ };
699
+
700
+ value() {
701
+ return this.getTypedRuleContext(ValueContext,0);
702
+ };
703
+
704
+ NL = function(i) {
705
+ if(i===undefined) {
706
+ i = null;
707
+ }
708
+ if(i===null) {
709
+ return this.getTokens(MAMLParser.NL);
710
+ } else {
711
+ return this.getToken(MAMLParser.NL, i);
712
+ }
713
+ };
714
+
715
+
716
+ enterRule(listener) {
717
+ if(listener instanceof MAMLListener ) {
718
+ listener.enterMember(this);
719
+ }
720
+ }
721
+
722
+ exitRule(listener) {
723
+ if(listener instanceof MAMLListener ) {
724
+ listener.exitMember(this);
725
+ }
726
+ }
727
+
728
+ accept(visitor) {
729
+ if ( visitor instanceof MAMLVisitor ) {
730
+ return visitor.visitMember(this);
731
+ } else {
732
+ return visitor.visitChildren(this);
733
+ }
734
+ }
735
+
736
+
737
+ }
738
+
739
+
740
+
741
+ class KeyContext extends antlr4.ParserRuleContext {
742
+
743
+ constructor(parser, parent, invokingState) {
744
+ if(parent===undefined) {
745
+ parent = null;
746
+ }
747
+ if(invokingState===undefined || invokingState===null) {
748
+ invokingState = -1;
749
+ }
750
+ super(parent, invokingState);
751
+ this.parser = parser;
752
+ this.ruleIndex = MAMLParser.RULE_key;
753
+ }
754
+
755
+ IDENTIFIER() {
756
+ return this.getToken(MAMLParser.IDENTIFIER, 0);
757
+ };
758
+
759
+ STRING() {
760
+ return this.getToken(MAMLParser.STRING, 0);
761
+ };
762
+
763
+ NUMBER() {
764
+ return this.getToken(MAMLParser.NUMBER, 0);
765
+ };
766
+
767
+ TRUE() {
768
+ return this.getToken(MAMLParser.TRUE, 0);
769
+ };
770
+
771
+ FALSE() {
772
+ return this.getToken(MAMLParser.FALSE, 0);
773
+ };
774
+
775
+ NULL() {
776
+ return this.getToken(MAMLParser.NULL, 0);
777
+ };
778
+
779
+ enterRule(listener) {
780
+ if(listener instanceof MAMLListener ) {
781
+ listener.enterKey(this);
782
+ }
783
+ }
784
+
785
+ exitRule(listener) {
786
+ if(listener instanceof MAMLListener ) {
787
+ listener.exitKey(this);
788
+ }
789
+ }
790
+
791
+ accept(visitor) {
792
+ if ( visitor instanceof MAMLVisitor ) {
793
+ return visitor.visitKey(this);
794
+ } else {
795
+ return visitor.visitChildren(this);
796
+ }
797
+ }
798
+
799
+
800
+ }
801
+
802
+
803
+
804
+ class ArrayContext extends antlr4.ParserRuleContext {
805
+
806
+ constructor(parser, parent, invokingState) {
807
+ if(parent===undefined) {
808
+ parent = null;
809
+ }
810
+ if(invokingState===undefined || invokingState===null) {
811
+ invokingState = -1;
812
+ }
813
+ super(parent, invokingState);
814
+ this.parser = parser;
815
+ this.ruleIndex = MAMLParser.RULE_array;
816
+ }
817
+
818
+ NL = function(i) {
819
+ if(i===undefined) {
820
+ i = null;
821
+ }
822
+ if(i===null) {
823
+ return this.getTokens(MAMLParser.NL);
824
+ } else {
825
+ return this.getToken(MAMLParser.NL, i);
826
+ }
827
+ };
828
+
829
+
830
+ value = function(i) {
831
+ if(i===undefined) {
832
+ i = null;
833
+ }
834
+ if(i===null) {
835
+ return this.getTypedRuleContexts(ValueContext);
836
+ } else {
837
+ return this.getTypedRuleContext(ValueContext,i);
838
+ }
839
+ };
840
+
841
+ separator = function(i) {
842
+ if(i===undefined) {
843
+ i = null;
844
+ }
845
+ if(i===null) {
846
+ return this.getTypedRuleContexts(SeparatorContext);
847
+ } else {
848
+ return this.getTypedRuleContext(SeparatorContext,i);
849
+ }
850
+ };
851
+
852
+ enterRule(listener) {
853
+ if(listener instanceof MAMLListener ) {
854
+ listener.enterArray(this);
855
+ }
856
+ }
857
+
858
+ exitRule(listener) {
859
+ if(listener instanceof MAMLListener ) {
860
+ listener.exitArray(this);
861
+ }
862
+ }
863
+
864
+ accept(visitor) {
865
+ if ( visitor instanceof MAMLVisitor ) {
866
+ return visitor.visitArray(this);
867
+ } else {
868
+ return visitor.visitChildren(this);
869
+ }
870
+ }
871
+
872
+
873
+ }
874
+
875
+
876
+
877
+ class SeparatorContext extends antlr4.ParserRuleContext {
878
+
879
+ constructor(parser, parent, invokingState) {
880
+ if(parent===undefined) {
881
+ parent = null;
882
+ }
883
+ if(invokingState===undefined || invokingState===null) {
884
+ invokingState = -1;
885
+ }
886
+ super(parent, invokingState);
887
+ this.parser = parser;
888
+ this.ruleIndex = MAMLParser.RULE_separator;
889
+ }
890
+
891
+ NL = function(i) {
892
+ if(i===undefined) {
893
+ i = null;
894
+ }
895
+ if(i===null) {
896
+ return this.getTokens(MAMLParser.NL);
897
+ } else {
898
+ return this.getToken(MAMLParser.NL, i);
899
+ }
900
+ };
901
+
902
+
903
+ enterRule(listener) {
904
+ if(listener instanceof MAMLListener ) {
905
+ listener.enterSeparator(this);
906
+ }
907
+ }
908
+
909
+ exitRule(listener) {
910
+ if(listener instanceof MAMLListener ) {
911
+ listener.exitSeparator(this);
912
+ }
913
+ }
914
+
915
+ accept(visitor) {
916
+ if ( visitor instanceof MAMLVisitor ) {
917
+ return visitor.visitSeparator(this);
918
+ } else {
919
+ return visitor.visitChildren(this);
920
+ }
921
+ }
922
+
923
+
924
+ }
925
+
926
+
927
+
928
+
929
+ MAMLParser.MamlContext = MamlContext;
930
+ MAMLParser.ValueContext = ValueContext;
931
+ MAMLParser.ObjectContext = ObjectContext;
932
+ MAMLParser.MemberContext = MemberContext;
933
+ MAMLParser.KeyContext = KeyContext;
934
+ MAMLParser.ArrayContext = ArrayContext;
935
+ MAMLParser.SeparatorContext = SeparatorContext;