@plurnk/plurnk-mimetypes-text-clojure 0.2.0

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.
@@ -0,0 +1,2475 @@
1
+ import * as antlr from "antlr4ng";
2
+ export class ClojureParser extends antlr.Parser {
3
+ static T__0 = 1;
4
+ static T__1 = 2;
5
+ static T__2 = 3;
6
+ static T__3 = 4;
7
+ static T__4 = 5;
8
+ static T__5 = 6;
9
+ static T__6 = 7;
10
+ static T__7 = 8;
11
+ static T__8 = 9;
12
+ static T__9 = 10;
13
+ static T__10 = 11;
14
+ static T__11 = 12;
15
+ static T__12 = 13;
16
+ static T__13 = 14;
17
+ static T__14 = 15;
18
+ static T__15 = 16;
19
+ static T__16 = 17;
20
+ static T__17 = 18;
21
+ static T__18 = 19;
22
+ static T__19 = 20;
23
+ static STRING = 21;
24
+ static FLOAT = 22;
25
+ static HEX = 23;
26
+ static BIN = 24;
27
+ static LONG = 25;
28
+ static BIGN = 26;
29
+ static CHAR_U = 27;
30
+ static CHAR_NAMED = 28;
31
+ static CHAR_ANY = 29;
32
+ static NIL = 30;
33
+ static BOOLEAN = 31;
34
+ static SYMBOL = 32;
35
+ static NS_SYMBOL = 33;
36
+ static PARAM_NAME = 34;
37
+ static TRASH = 35;
38
+ static RULE_file_ = 0;
39
+ static RULE_form = 1;
40
+ static RULE_forms = 2;
41
+ static RULE_list_ = 3;
42
+ static RULE_vector = 4;
43
+ static RULE_map_ = 5;
44
+ static RULE_set_ = 6;
45
+ static RULE_reader_macro = 7;
46
+ static RULE_quote = 8;
47
+ static RULE_backtick = 9;
48
+ static RULE_unquote = 10;
49
+ static RULE_unquote_splicing = 11;
50
+ static RULE_tag = 12;
51
+ static RULE_deref = 13;
52
+ static RULE_gensym = 14;
53
+ static RULE_lambda_ = 15;
54
+ static RULE_meta_data = 16;
55
+ static RULE_var_quote = 17;
56
+ static RULE_host_expr = 18;
57
+ static RULE_discard = 19;
58
+ static RULE_dispatch = 20;
59
+ static RULE_regex = 21;
60
+ static RULE_literal = 22;
61
+ static RULE_string_ = 23;
62
+ static RULE_hex_ = 24;
63
+ static RULE_bin_ = 25;
64
+ static RULE_bign = 26;
65
+ static RULE_number = 27;
66
+ static RULE_character = 28;
67
+ static RULE_named_char = 29;
68
+ static RULE_any_char = 30;
69
+ static RULE_u_hex_quad = 31;
70
+ static RULE_nil_ = 32;
71
+ static RULE_keyword = 33;
72
+ static RULE_simple_keyword = 34;
73
+ static RULE_macro_keyword = 35;
74
+ static RULE_symbol = 36;
75
+ static RULE_simple_sym = 37;
76
+ static RULE_ns_symbol = 38;
77
+ static RULE_param_name = 39;
78
+ static literalNames = [
79
+ null, "'('", "')'", "'['", "']'", "'{'", "'}'", "'#{'", "'''", "'`'",
80
+ "'~'", "'~@'", "'^'", "'@'", "'#'", "'#('", "'#^'", "'#''", "'#+'",
81
+ "'#_'", "':'", null, null, null, null, null, null, null, null, null,
82
+ "'nil'"
83
+ ];
84
+ static symbolicNames = [
85
+ null, null, null, null, null, null, null, null, null, null, null,
86
+ null, null, null, null, null, null, null, null, null, null, "STRING",
87
+ "FLOAT", "HEX", "BIN", "LONG", "BIGN", "CHAR_U", "CHAR_NAMED", "CHAR_ANY",
88
+ "NIL", "BOOLEAN", "SYMBOL", "NS_SYMBOL", "PARAM_NAME", "TRASH"
89
+ ];
90
+ static ruleNames = [
91
+ "file_", "form", "forms", "list_", "vector", "map_", "set_", "reader_macro",
92
+ "quote", "backtick", "unquote", "unquote_splicing", "tag", "deref",
93
+ "gensym", "lambda_", "meta_data", "var_quote", "host_expr", "discard",
94
+ "dispatch", "regex", "literal", "string_", "hex_", "bin_", "bign",
95
+ "number", "character", "named_char", "any_char", "u_hex_quad", "nil_",
96
+ "keyword", "simple_keyword", "macro_keyword", "symbol", "simple_sym",
97
+ "ns_symbol", "param_name",
98
+ ];
99
+ get grammarFileName() { return "Clojure.g4"; }
100
+ get literalNames() { return ClojureParser.literalNames; }
101
+ get symbolicNames() { return ClojureParser.symbolicNames; }
102
+ get ruleNames() { return ClojureParser.ruleNames; }
103
+ get serializedATN() { return ClojureParser._serializedATN; }
104
+ createFailedPredicateException(predicate, message) {
105
+ return new antlr.FailedPredicateException(this, predicate, message);
106
+ }
107
+ constructor(input) {
108
+ super(input);
109
+ this.interpreter = new antlr.ParserATNSimulator(this, ClojureParser._ATN, ClojureParser.decisionsToDFA, new antlr.PredictionContextCache());
110
+ }
111
+ file_() {
112
+ let localContext = new File_Context(this.context, this.state);
113
+ this.enterRule(localContext, 0, ClojureParser.RULE_file_);
114
+ let _la;
115
+ try {
116
+ this.enterOuterAlt(localContext, 1);
117
+ {
118
+ this.state = 83;
119
+ this.errorHandler.sync(this);
120
+ _la = this.tokenStream.LA(1);
121
+ while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294967210) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 7) !== 0)) {
122
+ {
123
+ {
124
+ this.state = 80;
125
+ this.form();
126
+ }
127
+ }
128
+ this.state = 85;
129
+ this.errorHandler.sync(this);
130
+ _la = this.tokenStream.LA(1);
131
+ }
132
+ this.state = 86;
133
+ this.match(ClojureParser.EOF);
134
+ }
135
+ }
136
+ catch (re) {
137
+ if (re instanceof antlr.RecognitionException) {
138
+ this.errorHandler.reportError(this, re);
139
+ this.errorHandler.recover(this, re);
140
+ }
141
+ else {
142
+ throw re;
143
+ }
144
+ }
145
+ finally {
146
+ this.exitRule();
147
+ }
148
+ return localContext;
149
+ }
150
+ form() {
151
+ let localContext = new FormContext(this.context, this.state);
152
+ this.enterRule(localContext, 2, ClojureParser.RULE_form);
153
+ try {
154
+ this.state = 93;
155
+ this.errorHandler.sync(this);
156
+ switch (this.interpreter.adaptivePredict(this.tokenStream, 1, this.context)) {
157
+ case 1:
158
+ this.enterOuterAlt(localContext, 1);
159
+ {
160
+ this.state = 88;
161
+ this.literal();
162
+ }
163
+ break;
164
+ case 2:
165
+ this.enterOuterAlt(localContext, 2);
166
+ {
167
+ this.state = 89;
168
+ this.list_();
169
+ }
170
+ break;
171
+ case 3:
172
+ this.enterOuterAlt(localContext, 3);
173
+ {
174
+ this.state = 90;
175
+ this.vector();
176
+ }
177
+ break;
178
+ case 4:
179
+ this.enterOuterAlt(localContext, 4);
180
+ {
181
+ this.state = 91;
182
+ this.map_();
183
+ }
184
+ break;
185
+ case 5:
186
+ this.enterOuterAlt(localContext, 5);
187
+ {
188
+ this.state = 92;
189
+ this.reader_macro();
190
+ }
191
+ break;
192
+ }
193
+ }
194
+ catch (re) {
195
+ if (re instanceof antlr.RecognitionException) {
196
+ this.errorHandler.reportError(this, re);
197
+ this.errorHandler.recover(this, re);
198
+ }
199
+ else {
200
+ throw re;
201
+ }
202
+ }
203
+ finally {
204
+ this.exitRule();
205
+ }
206
+ return localContext;
207
+ }
208
+ forms() {
209
+ let localContext = new FormsContext(this.context, this.state);
210
+ this.enterRule(localContext, 4, ClojureParser.RULE_forms);
211
+ let _la;
212
+ try {
213
+ this.enterOuterAlt(localContext, 1);
214
+ {
215
+ this.state = 98;
216
+ this.errorHandler.sync(this);
217
+ _la = this.tokenStream.LA(1);
218
+ while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294967210) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 7) !== 0)) {
219
+ {
220
+ {
221
+ this.state = 95;
222
+ this.form();
223
+ }
224
+ }
225
+ this.state = 100;
226
+ this.errorHandler.sync(this);
227
+ _la = this.tokenStream.LA(1);
228
+ }
229
+ }
230
+ }
231
+ catch (re) {
232
+ if (re instanceof antlr.RecognitionException) {
233
+ this.errorHandler.reportError(this, re);
234
+ this.errorHandler.recover(this, re);
235
+ }
236
+ else {
237
+ throw re;
238
+ }
239
+ }
240
+ finally {
241
+ this.exitRule();
242
+ }
243
+ return localContext;
244
+ }
245
+ list_() {
246
+ let localContext = new List_Context(this.context, this.state);
247
+ this.enterRule(localContext, 6, ClojureParser.RULE_list_);
248
+ try {
249
+ this.enterOuterAlt(localContext, 1);
250
+ {
251
+ this.state = 101;
252
+ this.match(ClojureParser.T__0);
253
+ this.state = 102;
254
+ this.forms();
255
+ this.state = 103;
256
+ this.match(ClojureParser.T__1);
257
+ }
258
+ }
259
+ catch (re) {
260
+ if (re instanceof antlr.RecognitionException) {
261
+ this.errorHandler.reportError(this, re);
262
+ this.errorHandler.recover(this, re);
263
+ }
264
+ else {
265
+ throw re;
266
+ }
267
+ }
268
+ finally {
269
+ this.exitRule();
270
+ }
271
+ return localContext;
272
+ }
273
+ vector() {
274
+ let localContext = new VectorContext(this.context, this.state);
275
+ this.enterRule(localContext, 8, ClojureParser.RULE_vector);
276
+ try {
277
+ this.enterOuterAlt(localContext, 1);
278
+ {
279
+ this.state = 105;
280
+ this.match(ClojureParser.T__2);
281
+ this.state = 106;
282
+ this.forms();
283
+ this.state = 107;
284
+ this.match(ClojureParser.T__3);
285
+ }
286
+ }
287
+ catch (re) {
288
+ if (re instanceof antlr.RecognitionException) {
289
+ this.errorHandler.reportError(this, re);
290
+ this.errorHandler.recover(this, re);
291
+ }
292
+ else {
293
+ throw re;
294
+ }
295
+ }
296
+ finally {
297
+ this.exitRule();
298
+ }
299
+ return localContext;
300
+ }
301
+ map_() {
302
+ let localContext = new Map_Context(this.context, this.state);
303
+ this.enterRule(localContext, 10, ClojureParser.RULE_map_);
304
+ let _la;
305
+ try {
306
+ this.enterOuterAlt(localContext, 1);
307
+ {
308
+ this.state = 109;
309
+ this.match(ClojureParser.T__4);
310
+ this.state = 115;
311
+ this.errorHandler.sync(this);
312
+ _la = this.tokenStream.LA(1);
313
+ while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294967210) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 7) !== 0)) {
314
+ {
315
+ {
316
+ this.state = 110;
317
+ this.form();
318
+ this.state = 111;
319
+ this.form();
320
+ }
321
+ }
322
+ this.state = 117;
323
+ this.errorHandler.sync(this);
324
+ _la = this.tokenStream.LA(1);
325
+ }
326
+ this.state = 118;
327
+ this.match(ClojureParser.T__5);
328
+ }
329
+ }
330
+ catch (re) {
331
+ if (re instanceof antlr.RecognitionException) {
332
+ this.errorHandler.reportError(this, re);
333
+ this.errorHandler.recover(this, re);
334
+ }
335
+ else {
336
+ throw re;
337
+ }
338
+ }
339
+ finally {
340
+ this.exitRule();
341
+ }
342
+ return localContext;
343
+ }
344
+ set_() {
345
+ let localContext = new Set_Context(this.context, this.state);
346
+ this.enterRule(localContext, 12, ClojureParser.RULE_set_);
347
+ try {
348
+ this.enterOuterAlt(localContext, 1);
349
+ {
350
+ this.state = 120;
351
+ this.match(ClojureParser.T__6);
352
+ this.state = 121;
353
+ this.forms();
354
+ this.state = 122;
355
+ this.match(ClojureParser.T__5);
356
+ }
357
+ }
358
+ catch (re) {
359
+ if (re instanceof antlr.RecognitionException) {
360
+ this.errorHandler.reportError(this, re);
361
+ this.errorHandler.recover(this, re);
362
+ }
363
+ else {
364
+ throw re;
365
+ }
366
+ }
367
+ finally {
368
+ this.exitRule();
369
+ }
370
+ return localContext;
371
+ }
372
+ reader_macro() {
373
+ let localContext = new Reader_macroContext(this.context, this.state);
374
+ this.enterRule(localContext, 14, ClojureParser.RULE_reader_macro);
375
+ try {
376
+ this.state = 139;
377
+ this.errorHandler.sync(this);
378
+ switch (this.interpreter.adaptivePredict(this.tokenStream, 4, this.context)) {
379
+ case 1:
380
+ this.enterOuterAlt(localContext, 1);
381
+ {
382
+ this.state = 124;
383
+ this.lambda_();
384
+ }
385
+ break;
386
+ case 2:
387
+ this.enterOuterAlt(localContext, 2);
388
+ {
389
+ this.state = 125;
390
+ this.meta_data();
391
+ }
392
+ break;
393
+ case 3:
394
+ this.enterOuterAlt(localContext, 3);
395
+ {
396
+ this.state = 126;
397
+ this.regex();
398
+ }
399
+ break;
400
+ case 4:
401
+ this.enterOuterAlt(localContext, 4);
402
+ {
403
+ this.state = 127;
404
+ this.var_quote();
405
+ }
406
+ break;
407
+ case 5:
408
+ this.enterOuterAlt(localContext, 5);
409
+ {
410
+ this.state = 128;
411
+ this.host_expr();
412
+ }
413
+ break;
414
+ case 6:
415
+ this.enterOuterAlt(localContext, 6);
416
+ {
417
+ this.state = 129;
418
+ this.set_();
419
+ }
420
+ break;
421
+ case 7:
422
+ this.enterOuterAlt(localContext, 7);
423
+ {
424
+ this.state = 130;
425
+ this.tag();
426
+ }
427
+ break;
428
+ case 8:
429
+ this.enterOuterAlt(localContext, 8);
430
+ {
431
+ this.state = 131;
432
+ this.discard();
433
+ }
434
+ break;
435
+ case 9:
436
+ this.enterOuterAlt(localContext, 9);
437
+ {
438
+ this.state = 132;
439
+ this.dispatch();
440
+ }
441
+ break;
442
+ case 10:
443
+ this.enterOuterAlt(localContext, 10);
444
+ {
445
+ this.state = 133;
446
+ this.deref();
447
+ }
448
+ break;
449
+ case 11:
450
+ this.enterOuterAlt(localContext, 11);
451
+ {
452
+ this.state = 134;
453
+ this.quote();
454
+ }
455
+ break;
456
+ case 12:
457
+ this.enterOuterAlt(localContext, 12);
458
+ {
459
+ this.state = 135;
460
+ this.backtick();
461
+ }
462
+ break;
463
+ case 13:
464
+ this.enterOuterAlt(localContext, 13);
465
+ {
466
+ this.state = 136;
467
+ this.unquote();
468
+ }
469
+ break;
470
+ case 14:
471
+ this.enterOuterAlt(localContext, 14);
472
+ {
473
+ this.state = 137;
474
+ this.unquote_splicing();
475
+ }
476
+ break;
477
+ case 15:
478
+ this.enterOuterAlt(localContext, 15);
479
+ {
480
+ this.state = 138;
481
+ this.gensym();
482
+ }
483
+ break;
484
+ }
485
+ }
486
+ catch (re) {
487
+ if (re instanceof antlr.RecognitionException) {
488
+ this.errorHandler.reportError(this, re);
489
+ this.errorHandler.recover(this, re);
490
+ }
491
+ else {
492
+ throw re;
493
+ }
494
+ }
495
+ finally {
496
+ this.exitRule();
497
+ }
498
+ return localContext;
499
+ }
500
+ quote() {
501
+ let localContext = new QuoteContext(this.context, this.state);
502
+ this.enterRule(localContext, 16, ClojureParser.RULE_quote);
503
+ try {
504
+ this.enterOuterAlt(localContext, 1);
505
+ {
506
+ this.state = 141;
507
+ this.match(ClojureParser.T__7);
508
+ this.state = 142;
509
+ this.form();
510
+ }
511
+ }
512
+ catch (re) {
513
+ if (re instanceof antlr.RecognitionException) {
514
+ this.errorHandler.reportError(this, re);
515
+ this.errorHandler.recover(this, re);
516
+ }
517
+ else {
518
+ throw re;
519
+ }
520
+ }
521
+ finally {
522
+ this.exitRule();
523
+ }
524
+ return localContext;
525
+ }
526
+ backtick() {
527
+ let localContext = new BacktickContext(this.context, this.state);
528
+ this.enterRule(localContext, 18, ClojureParser.RULE_backtick);
529
+ try {
530
+ this.enterOuterAlt(localContext, 1);
531
+ {
532
+ this.state = 144;
533
+ this.match(ClojureParser.T__8);
534
+ this.state = 145;
535
+ this.form();
536
+ }
537
+ }
538
+ catch (re) {
539
+ if (re instanceof antlr.RecognitionException) {
540
+ this.errorHandler.reportError(this, re);
541
+ this.errorHandler.recover(this, re);
542
+ }
543
+ else {
544
+ throw re;
545
+ }
546
+ }
547
+ finally {
548
+ this.exitRule();
549
+ }
550
+ return localContext;
551
+ }
552
+ unquote() {
553
+ let localContext = new UnquoteContext(this.context, this.state);
554
+ this.enterRule(localContext, 20, ClojureParser.RULE_unquote);
555
+ try {
556
+ this.enterOuterAlt(localContext, 1);
557
+ {
558
+ this.state = 147;
559
+ this.match(ClojureParser.T__9);
560
+ this.state = 148;
561
+ this.form();
562
+ }
563
+ }
564
+ catch (re) {
565
+ if (re instanceof antlr.RecognitionException) {
566
+ this.errorHandler.reportError(this, re);
567
+ this.errorHandler.recover(this, re);
568
+ }
569
+ else {
570
+ throw re;
571
+ }
572
+ }
573
+ finally {
574
+ this.exitRule();
575
+ }
576
+ return localContext;
577
+ }
578
+ unquote_splicing() {
579
+ let localContext = new Unquote_splicingContext(this.context, this.state);
580
+ this.enterRule(localContext, 22, ClojureParser.RULE_unquote_splicing);
581
+ try {
582
+ this.enterOuterAlt(localContext, 1);
583
+ {
584
+ this.state = 150;
585
+ this.match(ClojureParser.T__10);
586
+ this.state = 151;
587
+ this.form();
588
+ }
589
+ }
590
+ catch (re) {
591
+ if (re instanceof antlr.RecognitionException) {
592
+ this.errorHandler.reportError(this, re);
593
+ this.errorHandler.recover(this, re);
594
+ }
595
+ else {
596
+ throw re;
597
+ }
598
+ }
599
+ finally {
600
+ this.exitRule();
601
+ }
602
+ return localContext;
603
+ }
604
+ tag() {
605
+ let localContext = new TagContext(this.context, this.state);
606
+ this.enterRule(localContext, 24, ClojureParser.RULE_tag);
607
+ try {
608
+ this.enterOuterAlt(localContext, 1);
609
+ {
610
+ this.state = 153;
611
+ this.match(ClojureParser.T__11);
612
+ this.state = 154;
613
+ this.form();
614
+ this.state = 155;
615
+ this.form();
616
+ }
617
+ }
618
+ catch (re) {
619
+ if (re instanceof antlr.RecognitionException) {
620
+ this.errorHandler.reportError(this, re);
621
+ this.errorHandler.recover(this, re);
622
+ }
623
+ else {
624
+ throw re;
625
+ }
626
+ }
627
+ finally {
628
+ this.exitRule();
629
+ }
630
+ return localContext;
631
+ }
632
+ deref() {
633
+ let localContext = new DerefContext(this.context, this.state);
634
+ this.enterRule(localContext, 26, ClojureParser.RULE_deref);
635
+ try {
636
+ this.enterOuterAlt(localContext, 1);
637
+ {
638
+ this.state = 157;
639
+ this.match(ClojureParser.T__12);
640
+ this.state = 158;
641
+ this.form();
642
+ }
643
+ }
644
+ catch (re) {
645
+ if (re instanceof antlr.RecognitionException) {
646
+ this.errorHandler.reportError(this, re);
647
+ this.errorHandler.recover(this, re);
648
+ }
649
+ else {
650
+ throw re;
651
+ }
652
+ }
653
+ finally {
654
+ this.exitRule();
655
+ }
656
+ return localContext;
657
+ }
658
+ gensym() {
659
+ let localContext = new GensymContext(this.context, this.state);
660
+ this.enterRule(localContext, 28, ClojureParser.RULE_gensym);
661
+ try {
662
+ this.enterOuterAlt(localContext, 1);
663
+ {
664
+ this.state = 160;
665
+ this.match(ClojureParser.SYMBOL);
666
+ this.state = 161;
667
+ this.match(ClojureParser.T__13);
668
+ }
669
+ }
670
+ catch (re) {
671
+ if (re instanceof antlr.RecognitionException) {
672
+ this.errorHandler.reportError(this, re);
673
+ this.errorHandler.recover(this, re);
674
+ }
675
+ else {
676
+ throw re;
677
+ }
678
+ }
679
+ finally {
680
+ this.exitRule();
681
+ }
682
+ return localContext;
683
+ }
684
+ lambda_() {
685
+ let localContext = new Lambda_Context(this.context, this.state);
686
+ this.enterRule(localContext, 30, ClojureParser.RULE_lambda_);
687
+ let _la;
688
+ try {
689
+ this.enterOuterAlt(localContext, 1);
690
+ {
691
+ this.state = 163;
692
+ this.match(ClojureParser.T__14);
693
+ this.state = 167;
694
+ this.errorHandler.sync(this);
695
+ _la = this.tokenStream.LA(1);
696
+ while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4294967210) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 7) !== 0)) {
697
+ {
698
+ {
699
+ this.state = 164;
700
+ this.form();
701
+ }
702
+ }
703
+ this.state = 169;
704
+ this.errorHandler.sync(this);
705
+ _la = this.tokenStream.LA(1);
706
+ }
707
+ this.state = 170;
708
+ this.match(ClojureParser.T__1);
709
+ }
710
+ }
711
+ catch (re) {
712
+ if (re instanceof antlr.RecognitionException) {
713
+ this.errorHandler.reportError(this, re);
714
+ this.errorHandler.recover(this, re);
715
+ }
716
+ else {
717
+ throw re;
718
+ }
719
+ }
720
+ finally {
721
+ this.exitRule();
722
+ }
723
+ return localContext;
724
+ }
725
+ meta_data() {
726
+ let localContext = new Meta_dataContext(this.context, this.state);
727
+ this.enterRule(localContext, 32, ClojureParser.RULE_meta_data);
728
+ try {
729
+ this.enterOuterAlt(localContext, 1);
730
+ {
731
+ this.state = 172;
732
+ this.match(ClojureParser.T__15);
733
+ this.state = 177;
734
+ this.errorHandler.sync(this);
735
+ switch (this.interpreter.adaptivePredict(this.tokenStream, 6, this.context)) {
736
+ case 1:
737
+ {
738
+ this.state = 173;
739
+ this.map_();
740
+ this.state = 174;
741
+ this.form();
742
+ }
743
+ break;
744
+ case 2:
745
+ {
746
+ this.state = 176;
747
+ this.form();
748
+ }
749
+ break;
750
+ }
751
+ }
752
+ }
753
+ catch (re) {
754
+ if (re instanceof antlr.RecognitionException) {
755
+ this.errorHandler.reportError(this, re);
756
+ this.errorHandler.recover(this, re);
757
+ }
758
+ else {
759
+ throw re;
760
+ }
761
+ }
762
+ finally {
763
+ this.exitRule();
764
+ }
765
+ return localContext;
766
+ }
767
+ var_quote() {
768
+ let localContext = new Var_quoteContext(this.context, this.state);
769
+ this.enterRule(localContext, 34, ClojureParser.RULE_var_quote);
770
+ try {
771
+ this.enterOuterAlt(localContext, 1);
772
+ {
773
+ this.state = 179;
774
+ this.match(ClojureParser.T__16);
775
+ this.state = 180;
776
+ this.symbol_();
777
+ }
778
+ }
779
+ catch (re) {
780
+ if (re instanceof antlr.RecognitionException) {
781
+ this.errorHandler.reportError(this, re);
782
+ this.errorHandler.recover(this, re);
783
+ }
784
+ else {
785
+ throw re;
786
+ }
787
+ }
788
+ finally {
789
+ this.exitRule();
790
+ }
791
+ return localContext;
792
+ }
793
+ host_expr() {
794
+ let localContext = new Host_exprContext(this.context, this.state);
795
+ this.enterRule(localContext, 36, ClojureParser.RULE_host_expr);
796
+ try {
797
+ this.enterOuterAlt(localContext, 1);
798
+ {
799
+ this.state = 182;
800
+ this.match(ClojureParser.T__17);
801
+ this.state = 183;
802
+ this.form();
803
+ this.state = 184;
804
+ this.form();
805
+ }
806
+ }
807
+ catch (re) {
808
+ if (re instanceof antlr.RecognitionException) {
809
+ this.errorHandler.reportError(this, re);
810
+ this.errorHandler.recover(this, re);
811
+ }
812
+ else {
813
+ throw re;
814
+ }
815
+ }
816
+ finally {
817
+ this.exitRule();
818
+ }
819
+ return localContext;
820
+ }
821
+ discard() {
822
+ let localContext = new DiscardContext(this.context, this.state);
823
+ this.enterRule(localContext, 38, ClojureParser.RULE_discard);
824
+ try {
825
+ this.enterOuterAlt(localContext, 1);
826
+ {
827
+ this.state = 186;
828
+ this.match(ClojureParser.T__18);
829
+ this.state = 187;
830
+ this.form();
831
+ }
832
+ }
833
+ catch (re) {
834
+ if (re instanceof antlr.RecognitionException) {
835
+ this.errorHandler.reportError(this, re);
836
+ this.errorHandler.recover(this, re);
837
+ }
838
+ else {
839
+ throw re;
840
+ }
841
+ }
842
+ finally {
843
+ this.exitRule();
844
+ }
845
+ return localContext;
846
+ }
847
+ dispatch() {
848
+ let localContext = new DispatchContext(this.context, this.state);
849
+ this.enterRule(localContext, 40, ClojureParser.RULE_dispatch);
850
+ try {
851
+ this.enterOuterAlt(localContext, 1);
852
+ {
853
+ this.state = 189;
854
+ this.match(ClojureParser.T__13);
855
+ this.state = 190;
856
+ this.symbol_();
857
+ this.state = 191;
858
+ this.form();
859
+ }
860
+ }
861
+ catch (re) {
862
+ if (re instanceof antlr.RecognitionException) {
863
+ this.errorHandler.reportError(this, re);
864
+ this.errorHandler.recover(this, re);
865
+ }
866
+ else {
867
+ throw re;
868
+ }
869
+ }
870
+ finally {
871
+ this.exitRule();
872
+ }
873
+ return localContext;
874
+ }
875
+ regex() {
876
+ let localContext = new RegexContext(this.context, this.state);
877
+ this.enterRule(localContext, 42, ClojureParser.RULE_regex);
878
+ try {
879
+ this.enterOuterAlt(localContext, 1);
880
+ {
881
+ this.state = 193;
882
+ this.match(ClojureParser.T__13);
883
+ this.state = 194;
884
+ this.string_();
885
+ }
886
+ }
887
+ catch (re) {
888
+ if (re instanceof antlr.RecognitionException) {
889
+ this.errorHandler.reportError(this, re);
890
+ this.errorHandler.recover(this, re);
891
+ }
892
+ else {
893
+ throw re;
894
+ }
895
+ }
896
+ finally {
897
+ this.exitRule();
898
+ }
899
+ return localContext;
900
+ }
901
+ literal() {
902
+ let localContext = new LiteralContext(this.context, this.state);
903
+ this.enterRule(localContext, 44, ClojureParser.RULE_literal);
904
+ try {
905
+ this.state = 204;
906
+ this.errorHandler.sync(this);
907
+ switch (this.tokenStream.LA(1)) {
908
+ case ClojureParser.STRING:
909
+ this.enterOuterAlt(localContext, 1);
910
+ {
911
+ this.state = 196;
912
+ this.string_();
913
+ }
914
+ break;
915
+ case ClojureParser.FLOAT:
916
+ case ClojureParser.HEX:
917
+ case ClojureParser.BIN:
918
+ case ClojureParser.LONG:
919
+ case ClojureParser.BIGN:
920
+ this.enterOuterAlt(localContext, 2);
921
+ {
922
+ this.state = 197;
923
+ this.number_();
924
+ }
925
+ break;
926
+ case ClojureParser.CHAR_U:
927
+ case ClojureParser.CHAR_NAMED:
928
+ case ClojureParser.CHAR_ANY:
929
+ this.enterOuterAlt(localContext, 3);
930
+ {
931
+ this.state = 198;
932
+ this.character();
933
+ }
934
+ break;
935
+ case ClojureParser.NIL:
936
+ this.enterOuterAlt(localContext, 4);
937
+ {
938
+ this.state = 199;
939
+ this.nil_();
940
+ }
941
+ break;
942
+ case ClojureParser.BOOLEAN:
943
+ this.enterOuterAlt(localContext, 5);
944
+ {
945
+ this.state = 200;
946
+ this.match(ClojureParser.BOOLEAN);
947
+ }
948
+ break;
949
+ case ClojureParser.T__19:
950
+ this.enterOuterAlt(localContext, 6);
951
+ {
952
+ this.state = 201;
953
+ this.keyword();
954
+ }
955
+ break;
956
+ case ClojureParser.SYMBOL:
957
+ case ClojureParser.NS_SYMBOL:
958
+ this.enterOuterAlt(localContext, 7);
959
+ {
960
+ this.state = 202;
961
+ this.symbol_();
962
+ }
963
+ break;
964
+ case ClojureParser.PARAM_NAME:
965
+ this.enterOuterAlt(localContext, 8);
966
+ {
967
+ this.state = 203;
968
+ this.param_name();
969
+ }
970
+ break;
971
+ default:
972
+ throw new antlr.NoViableAltException(this);
973
+ }
974
+ }
975
+ catch (re) {
976
+ if (re instanceof antlr.RecognitionException) {
977
+ this.errorHandler.reportError(this, re);
978
+ this.errorHandler.recover(this, re);
979
+ }
980
+ else {
981
+ throw re;
982
+ }
983
+ }
984
+ finally {
985
+ this.exitRule();
986
+ }
987
+ return localContext;
988
+ }
989
+ string_() {
990
+ let localContext = new String_Context(this.context, this.state);
991
+ this.enterRule(localContext, 46, ClojureParser.RULE_string_);
992
+ try {
993
+ this.enterOuterAlt(localContext, 1);
994
+ {
995
+ this.state = 206;
996
+ this.match(ClojureParser.STRING);
997
+ }
998
+ }
999
+ catch (re) {
1000
+ if (re instanceof antlr.RecognitionException) {
1001
+ this.errorHandler.reportError(this, re);
1002
+ this.errorHandler.recover(this, re);
1003
+ }
1004
+ else {
1005
+ throw re;
1006
+ }
1007
+ }
1008
+ finally {
1009
+ this.exitRule();
1010
+ }
1011
+ return localContext;
1012
+ }
1013
+ hex_() {
1014
+ let localContext = new Hex_Context(this.context, this.state);
1015
+ this.enterRule(localContext, 48, ClojureParser.RULE_hex_);
1016
+ try {
1017
+ this.enterOuterAlt(localContext, 1);
1018
+ {
1019
+ this.state = 208;
1020
+ this.match(ClojureParser.HEX);
1021
+ }
1022
+ }
1023
+ catch (re) {
1024
+ if (re instanceof antlr.RecognitionException) {
1025
+ this.errorHandler.reportError(this, re);
1026
+ this.errorHandler.recover(this, re);
1027
+ }
1028
+ else {
1029
+ throw re;
1030
+ }
1031
+ }
1032
+ finally {
1033
+ this.exitRule();
1034
+ }
1035
+ return localContext;
1036
+ }
1037
+ bin_() {
1038
+ let localContext = new Bin_Context(this.context, this.state);
1039
+ this.enterRule(localContext, 50, ClojureParser.RULE_bin_);
1040
+ try {
1041
+ this.enterOuterAlt(localContext, 1);
1042
+ {
1043
+ this.state = 210;
1044
+ this.match(ClojureParser.BIN);
1045
+ }
1046
+ }
1047
+ catch (re) {
1048
+ if (re instanceof antlr.RecognitionException) {
1049
+ this.errorHandler.reportError(this, re);
1050
+ this.errorHandler.recover(this, re);
1051
+ }
1052
+ else {
1053
+ throw re;
1054
+ }
1055
+ }
1056
+ finally {
1057
+ this.exitRule();
1058
+ }
1059
+ return localContext;
1060
+ }
1061
+ bign() {
1062
+ let localContext = new BignContext(this.context, this.state);
1063
+ this.enterRule(localContext, 52, ClojureParser.RULE_bign);
1064
+ try {
1065
+ this.enterOuterAlt(localContext, 1);
1066
+ {
1067
+ this.state = 212;
1068
+ this.match(ClojureParser.BIGN);
1069
+ }
1070
+ }
1071
+ catch (re) {
1072
+ if (re instanceof antlr.RecognitionException) {
1073
+ this.errorHandler.reportError(this, re);
1074
+ this.errorHandler.recover(this, re);
1075
+ }
1076
+ else {
1077
+ throw re;
1078
+ }
1079
+ }
1080
+ finally {
1081
+ this.exitRule();
1082
+ }
1083
+ return localContext;
1084
+ }
1085
+ number_() {
1086
+ let localContext = new NumberContext(this.context, this.state);
1087
+ this.enterRule(localContext, 54, ClojureParser.RULE_number);
1088
+ try {
1089
+ this.state = 219;
1090
+ this.errorHandler.sync(this);
1091
+ switch (this.tokenStream.LA(1)) {
1092
+ case ClojureParser.FLOAT:
1093
+ this.enterOuterAlt(localContext, 1);
1094
+ {
1095
+ this.state = 214;
1096
+ this.match(ClojureParser.FLOAT);
1097
+ }
1098
+ break;
1099
+ case ClojureParser.HEX:
1100
+ this.enterOuterAlt(localContext, 2);
1101
+ {
1102
+ this.state = 215;
1103
+ this.hex_();
1104
+ }
1105
+ break;
1106
+ case ClojureParser.BIN:
1107
+ this.enterOuterAlt(localContext, 3);
1108
+ {
1109
+ this.state = 216;
1110
+ this.bin_();
1111
+ }
1112
+ break;
1113
+ case ClojureParser.BIGN:
1114
+ this.enterOuterAlt(localContext, 4);
1115
+ {
1116
+ this.state = 217;
1117
+ this.bign();
1118
+ }
1119
+ break;
1120
+ case ClojureParser.LONG:
1121
+ this.enterOuterAlt(localContext, 5);
1122
+ {
1123
+ this.state = 218;
1124
+ this.match(ClojureParser.LONG);
1125
+ }
1126
+ break;
1127
+ default:
1128
+ throw new antlr.NoViableAltException(this);
1129
+ }
1130
+ }
1131
+ catch (re) {
1132
+ if (re instanceof antlr.RecognitionException) {
1133
+ this.errorHandler.reportError(this, re);
1134
+ this.errorHandler.recover(this, re);
1135
+ }
1136
+ else {
1137
+ throw re;
1138
+ }
1139
+ }
1140
+ finally {
1141
+ this.exitRule();
1142
+ }
1143
+ return localContext;
1144
+ }
1145
+ character() {
1146
+ let localContext = new CharacterContext(this.context, this.state);
1147
+ this.enterRule(localContext, 56, ClojureParser.RULE_character);
1148
+ try {
1149
+ this.state = 224;
1150
+ this.errorHandler.sync(this);
1151
+ switch (this.tokenStream.LA(1)) {
1152
+ case ClojureParser.CHAR_NAMED:
1153
+ this.enterOuterAlt(localContext, 1);
1154
+ {
1155
+ this.state = 221;
1156
+ this.named_char();
1157
+ }
1158
+ break;
1159
+ case ClojureParser.CHAR_U:
1160
+ this.enterOuterAlt(localContext, 2);
1161
+ {
1162
+ this.state = 222;
1163
+ this.u_hex_quad();
1164
+ }
1165
+ break;
1166
+ case ClojureParser.CHAR_ANY:
1167
+ this.enterOuterAlt(localContext, 3);
1168
+ {
1169
+ this.state = 223;
1170
+ this.any_char();
1171
+ }
1172
+ break;
1173
+ default:
1174
+ throw new antlr.NoViableAltException(this);
1175
+ }
1176
+ }
1177
+ catch (re) {
1178
+ if (re instanceof antlr.RecognitionException) {
1179
+ this.errorHandler.reportError(this, re);
1180
+ this.errorHandler.recover(this, re);
1181
+ }
1182
+ else {
1183
+ throw re;
1184
+ }
1185
+ }
1186
+ finally {
1187
+ this.exitRule();
1188
+ }
1189
+ return localContext;
1190
+ }
1191
+ named_char() {
1192
+ let localContext = new Named_charContext(this.context, this.state);
1193
+ this.enterRule(localContext, 58, ClojureParser.RULE_named_char);
1194
+ try {
1195
+ this.enterOuterAlt(localContext, 1);
1196
+ {
1197
+ this.state = 226;
1198
+ this.match(ClojureParser.CHAR_NAMED);
1199
+ }
1200
+ }
1201
+ catch (re) {
1202
+ if (re instanceof antlr.RecognitionException) {
1203
+ this.errorHandler.reportError(this, re);
1204
+ this.errorHandler.recover(this, re);
1205
+ }
1206
+ else {
1207
+ throw re;
1208
+ }
1209
+ }
1210
+ finally {
1211
+ this.exitRule();
1212
+ }
1213
+ return localContext;
1214
+ }
1215
+ any_char() {
1216
+ let localContext = new Any_charContext(this.context, this.state);
1217
+ this.enterRule(localContext, 60, ClojureParser.RULE_any_char);
1218
+ try {
1219
+ this.enterOuterAlt(localContext, 1);
1220
+ {
1221
+ this.state = 228;
1222
+ this.match(ClojureParser.CHAR_ANY);
1223
+ }
1224
+ }
1225
+ catch (re) {
1226
+ if (re instanceof antlr.RecognitionException) {
1227
+ this.errorHandler.reportError(this, re);
1228
+ this.errorHandler.recover(this, re);
1229
+ }
1230
+ else {
1231
+ throw re;
1232
+ }
1233
+ }
1234
+ finally {
1235
+ this.exitRule();
1236
+ }
1237
+ return localContext;
1238
+ }
1239
+ u_hex_quad() {
1240
+ let localContext = new U_hex_quadContext(this.context, this.state);
1241
+ this.enterRule(localContext, 62, ClojureParser.RULE_u_hex_quad);
1242
+ try {
1243
+ this.enterOuterAlt(localContext, 1);
1244
+ {
1245
+ this.state = 230;
1246
+ this.match(ClojureParser.CHAR_U);
1247
+ }
1248
+ }
1249
+ catch (re) {
1250
+ if (re instanceof antlr.RecognitionException) {
1251
+ this.errorHandler.reportError(this, re);
1252
+ this.errorHandler.recover(this, re);
1253
+ }
1254
+ else {
1255
+ throw re;
1256
+ }
1257
+ }
1258
+ finally {
1259
+ this.exitRule();
1260
+ }
1261
+ return localContext;
1262
+ }
1263
+ nil_() {
1264
+ let localContext = new Nil_Context(this.context, this.state);
1265
+ this.enterRule(localContext, 64, ClojureParser.RULE_nil_);
1266
+ try {
1267
+ this.enterOuterAlt(localContext, 1);
1268
+ {
1269
+ this.state = 232;
1270
+ this.match(ClojureParser.NIL);
1271
+ }
1272
+ }
1273
+ catch (re) {
1274
+ if (re instanceof antlr.RecognitionException) {
1275
+ this.errorHandler.reportError(this, re);
1276
+ this.errorHandler.recover(this, re);
1277
+ }
1278
+ else {
1279
+ throw re;
1280
+ }
1281
+ }
1282
+ finally {
1283
+ this.exitRule();
1284
+ }
1285
+ return localContext;
1286
+ }
1287
+ keyword() {
1288
+ let localContext = new KeywordContext(this.context, this.state);
1289
+ this.enterRule(localContext, 66, ClojureParser.RULE_keyword);
1290
+ try {
1291
+ this.state = 236;
1292
+ this.errorHandler.sync(this);
1293
+ switch (this.interpreter.adaptivePredict(this.tokenStream, 10, this.context)) {
1294
+ case 1:
1295
+ this.enterOuterAlt(localContext, 1);
1296
+ {
1297
+ this.state = 234;
1298
+ this.macro_keyword();
1299
+ }
1300
+ break;
1301
+ case 2:
1302
+ this.enterOuterAlt(localContext, 2);
1303
+ {
1304
+ this.state = 235;
1305
+ this.simple_keyword();
1306
+ }
1307
+ break;
1308
+ }
1309
+ }
1310
+ catch (re) {
1311
+ if (re instanceof antlr.RecognitionException) {
1312
+ this.errorHandler.reportError(this, re);
1313
+ this.errorHandler.recover(this, re);
1314
+ }
1315
+ else {
1316
+ throw re;
1317
+ }
1318
+ }
1319
+ finally {
1320
+ this.exitRule();
1321
+ }
1322
+ return localContext;
1323
+ }
1324
+ simple_keyword() {
1325
+ let localContext = new Simple_keywordContext(this.context, this.state);
1326
+ this.enterRule(localContext, 68, ClojureParser.RULE_simple_keyword);
1327
+ try {
1328
+ this.enterOuterAlt(localContext, 1);
1329
+ {
1330
+ this.state = 238;
1331
+ this.match(ClojureParser.T__19);
1332
+ this.state = 239;
1333
+ this.symbol_();
1334
+ }
1335
+ }
1336
+ catch (re) {
1337
+ if (re instanceof antlr.RecognitionException) {
1338
+ this.errorHandler.reportError(this, re);
1339
+ this.errorHandler.recover(this, re);
1340
+ }
1341
+ else {
1342
+ throw re;
1343
+ }
1344
+ }
1345
+ finally {
1346
+ this.exitRule();
1347
+ }
1348
+ return localContext;
1349
+ }
1350
+ macro_keyword() {
1351
+ let localContext = new Macro_keywordContext(this.context, this.state);
1352
+ this.enterRule(localContext, 70, ClojureParser.RULE_macro_keyword);
1353
+ try {
1354
+ this.enterOuterAlt(localContext, 1);
1355
+ {
1356
+ this.state = 241;
1357
+ this.match(ClojureParser.T__19);
1358
+ this.state = 242;
1359
+ this.match(ClojureParser.T__19);
1360
+ this.state = 243;
1361
+ this.symbol_();
1362
+ }
1363
+ }
1364
+ catch (re) {
1365
+ if (re instanceof antlr.RecognitionException) {
1366
+ this.errorHandler.reportError(this, re);
1367
+ this.errorHandler.recover(this, re);
1368
+ }
1369
+ else {
1370
+ throw re;
1371
+ }
1372
+ }
1373
+ finally {
1374
+ this.exitRule();
1375
+ }
1376
+ return localContext;
1377
+ }
1378
+ symbol_() {
1379
+ let localContext = new SymbolContext(this.context, this.state);
1380
+ this.enterRule(localContext, 72, ClojureParser.RULE_symbol);
1381
+ try {
1382
+ this.state = 247;
1383
+ this.errorHandler.sync(this);
1384
+ switch (this.tokenStream.LA(1)) {
1385
+ case ClojureParser.NS_SYMBOL:
1386
+ this.enterOuterAlt(localContext, 1);
1387
+ {
1388
+ this.state = 245;
1389
+ this.ns_symbol();
1390
+ }
1391
+ break;
1392
+ case ClojureParser.SYMBOL:
1393
+ this.enterOuterAlt(localContext, 2);
1394
+ {
1395
+ this.state = 246;
1396
+ this.simple_sym();
1397
+ }
1398
+ break;
1399
+ default:
1400
+ throw new antlr.NoViableAltException(this);
1401
+ }
1402
+ }
1403
+ catch (re) {
1404
+ if (re instanceof antlr.RecognitionException) {
1405
+ this.errorHandler.reportError(this, re);
1406
+ this.errorHandler.recover(this, re);
1407
+ }
1408
+ else {
1409
+ throw re;
1410
+ }
1411
+ }
1412
+ finally {
1413
+ this.exitRule();
1414
+ }
1415
+ return localContext;
1416
+ }
1417
+ simple_sym() {
1418
+ let localContext = new Simple_symContext(this.context, this.state);
1419
+ this.enterRule(localContext, 74, ClojureParser.RULE_simple_sym);
1420
+ try {
1421
+ this.enterOuterAlt(localContext, 1);
1422
+ {
1423
+ this.state = 249;
1424
+ this.match(ClojureParser.SYMBOL);
1425
+ }
1426
+ }
1427
+ catch (re) {
1428
+ if (re instanceof antlr.RecognitionException) {
1429
+ this.errorHandler.reportError(this, re);
1430
+ this.errorHandler.recover(this, re);
1431
+ }
1432
+ else {
1433
+ throw re;
1434
+ }
1435
+ }
1436
+ finally {
1437
+ this.exitRule();
1438
+ }
1439
+ return localContext;
1440
+ }
1441
+ ns_symbol() {
1442
+ let localContext = new Ns_symbolContext(this.context, this.state);
1443
+ this.enterRule(localContext, 76, ClojureParser.RULE_ns_symbol);
1444
+ try {
1445
+ this.enterOuterAlt(localContext, 1);
1446
+ {
1447
+ this.state = 251;
1448
+ this.match(ClojureParser.NS_SYMBOL);
1449
+ }
1450
+ }
1451
+ catch (re) {
1452
+ if (re instanceof antlr.RecognitionException) {
1453
+ this.errorHandler.reportError(this, re);
1454
+ this.errorHandler.recover(this, re);
1455
+ }
1456
+ else {
1457
+ throw re;
1458
+ }
1459
+ }
1460
+ finally {
1461
+ this.exitRule();
1462
+ }
1463
+ return localContext;
1464
+ }
1465
+ param_name() {
1466
+ let localContext = new Param_nameContext(this.context, this.state);
1467
+ this.enterRule(localContext, 78, ClojureParser.RULE_param_name);
1468
+ try {
1469
+ this.enterOuterAlt(localContext, 1);
1470
+ {
1471
+ this.state = 253;
1472
+ this.match(ClojureParser.PARAM_NAME);
1473
+ }
1474
+ }
1475
+ catch (re) {
1476
+ if (re instanceof antlr.RecognitionException) {
1477
+ this.errorHandler.reportError(this, re);
1478
+ this.errorHandler.recover(this, re);
1479
+ }
1480
+ else {
1481
+ throw re;
1482
+ }
1483
+ }
1484
+ finally {
1485
+ this.exitRule();
1486
+ }
1487
+ return localContext;
1488
+ }
1489
+ static _serializedATN = [
1490
+ 4, 1, 35, 256, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7,
1491
+ 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13,
1492
+ 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20,
1493
+ 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26,
1494
+ 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33,
1495
+ 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39,
1496
+ 1, 0, 5, 0, 82, 8, 0, 10, 0, 12, 0, 85, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1,
1497
+ 94, 8, 1, 1, 2, 5, 2, 97, 8, 2, 10, 2, 12, 2, 100, 9, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4,
1498
+ 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 5, 5, 114, 8, 5, 10, 5, 12, 5, 117, 9, 5, 1, 5, 1, 5, 1,
1499
+ 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1,
1500
+ 7, 1, 7, 1, 7, 3, 7, 140, 8, 7, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 11,
1501
+ 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 15,
1502
+ 1, 15, 5, 15, 166, 8, 15, 10, 15, 12, 15, 169, 9, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16,
1503
+ 1, 16, 1, 16, 3, 16, 178, 8, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19,
1504
+ 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22,
1505
+ 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 205, 8, 22, 1, 23, 1, 23, 1, 24, 1, 24, 1, 25, 1, 25,
1506
+ 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 3, 27, 220, 8, 27, 1, 28, 1, 28, 1, 28,
1507
+ 3, 28, 225, 8, 28, 1, 29, 1, 29, 1, 30, 1, 30, 1, 31, 1, 31, 1, 32, 1, 32, 1, 33, 1, 33,
1508
+ 3, 33, 237, 8, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 3, 36,
1509
+ 248, 8, 36, 1, 37, 1, 37, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 0, 0, 40, 0, 2, 4, 6, 8, 10,
1510
+ 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54,
1511
+ 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 0, 0, 253, 0, 83, 1, 0, 0, 0, 2, 93, 1,
1512
+ 0, 0, 0, 4, 98, 1, 0, 0, 0, 6, 101, 1, 0, 0, 0, 8, 105, 1, 0, 0, 0, 10, 109, 1, 0, 0, 0, 12,
1513
+ 120, 1, 0, 0, 0, 14, 139, 1, 0, 0, 0, 16, 141, 1, 0, 0, 0, 18, 144, 1, 0, 0, 0, 20, 147,
1514
+ 1, 0, 0, 0, 22, 150, 1, 0, 0, 0, 24, 153, 1, 0, 0, 0, 26, 157, 1, 0, 0, 0, 28, 160, 1, 0,
1515
+ 0, 0, 30, 163, 1, 0, 0, 0, 32, 172, 1, 0, 0, 0, 34, 179, 1, 0, 0, 0, 36, 182, 1, 0, 0, 0,
1516
+ 38, 186, 1, 0, 0, 0, 40, 189, 1, 0, 0, 0, 42, 193, 1, 0, 0, 0, 44, 204, 1, 0, 0, 0, 46, 206,
1517
+ 1, 0, 0, 0, 48, 208, 1, 0, 0, 0, 50, 210, 1, 0, 0, 0, 52, 212, 1, 0, 0, 0, 54, 219, 1, 0,
1518
+ 0, 0, 56, 224, 1, 0, 0, 0, 58, 226, 1, 0, 0, 0, 60, 228, 1, 0, 0, 0, 62, 230, 1, 0, 0, 0,
1519
+ 64, 232, 1, 0, 0, 0, 66, 236, 1, 0, 0, 0, 68, 238, 1, 0, 0, 0, 70, 241, 1, 0, 0, 0, 72, 247,
1520
+ 1, 0, 0, 0, 74, 249, 1, 0, 0, 0, 76, 251, 1, 0, 0, 0, 78, 253, 1, 0, 0, 0, 80, 82, 3, 2, 1,
1521
+ 0, 81, 80, 1, 0, 0, 0, 82, 85, 1, 0, 0, 0, 83, 81, 1, 0, 0, 0, 83, 84, 1, 0, 0, 0, 84, 86,
1522
+ 1, 0, 0, 0, 85, 83, 1, 0, 0, 0, 86, 87, 5, 0, 0, 1, 87, 1, 1, 0, 0, 0, 88, 94, 3, 44, 22, 0,
1523
+ 89, 94, 3, 6, 3, 0, 90, 94, 3, 8, 4, 0, 91, 94, 3, 10, 5, 0, 92, 94, 3, 14, 7, 0, 93, 88,
1524
+ 1, 0, 0, 0, 93, 89, 1, 0, 0, 0, 93, 90, 1, 0, 0, 0, 93, 91, 1, 0, 0, 0, 93, 92, 1, 0, 0, 0,
1525
+ 94, 3, 1, 0, 0, 0, 95, 97, 3, 2, 1, 0, 96, 95, 1, 0, 0, 0, 97, 100, 1, 0, 0, 0, 98, 96, 1,
1526
+ 0, 0, 0, 98, 99, 1, 0, 0, 0, 99, 5, 1, 0, 0, 0, 100, 98, 1, 0, 0, 0, 101, 102, 5, 1, 0, 0,
1527
+ 102, 103, 3, 4, 2, 0, 103, 104, 5, 2, 0, 0, 104, 7, 1, 0, 0, 0, 105, 106, 5, 3, 0, 0, 106,
1528
+ 107, 3, 4, 2, 0, 107, 108, 5, 4, 0, 0, 108, 9, 1, 0, 0, 0, 109, 115, 5, 5, 0, 0, 110, 111,
1529
+ 3, 2, 1, 0, 111, 112, 3, 2, 1, 0, 112, 114, 1, 0, 0, 0, 113, 110, 1, 0, 0, 0, 114, 117,
1530
+ 1, 0, 0, 0, 115, 113, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116, 118, 1, 0, 0, 0, 117, 115,
1531
+ 1, 0, 0, 0, 118, 119, 5, 6, 0, 0, 119, 11, 1, 0, 0, 0, 120, 121, 5, 7, 0, 0, 121, 122, 3,
1532
+ 4, 2, 0, 122, 123, 5, 6, 0, 0, 123, 13, 1, 0, 0, 0, 124, 140, 3, 30, 15, 0, 125, 140, 3,
1533
+ 32, 16, 0, 126, 140, 3, 42, 21, 0, 127, 140, 3, 34, 17, 0, 128, 140, 3, 36, 18, 0, 129,
1534
+ 140, 3, 12, 6, 0, 130, 140, 3, 24, 12, 0, 131, 140, 3, 38, 19, 0, 132, 140, 3, 40, 20,
1535
+ 0, 133, 140, 3, 26, 13, 0, 134, 140, 3, 16, 8, 0, 135, 140, 3, 18, 9, 0, 136, 140, 3,
1536
+ 20, 10, 0, 137, 140, 3, 22, 11, 0, 138, 140, 3, 28, 14, 0, 139, 124, 1, 0, 0, 0, 139,
1537
+ 125, 1, 0, 0, 0, 139, 126, 1, 0, 0, 0, 139, 127, 1, 0, 0, 0, 139, 128, 1, 0, 0, 0, 139,
1538
+ 129, 1, 0, 0, 0, 139, 130, 1, 0, 0, 0, 139, 131, 1, 0, 0, 0, 139, 132, 1, 0, 0, 0, 139,
1539
+ 133, 1, 0, 0, 0, 139, 134, 1, 0, 0, 0, 139, 135, 1, 0, 0, 0, 139, 136, 1, 0, 0, 0, 139,
1540
+ 137, 1, 0, 0, 0, 139, 138, 1, 0, 0, 0, 140, 15, 1, 0, 0, 0, 141, 142, 5, 8, 0, 0, 142, 143,
1541
+ 3, 2, 1, 0, 143, 17, 1, 0, 0, 0, 144, 145, 5, 9, 0, 0, 145, 146, 3, 2, 1, 0, 146, 19, 1,
1542
+ 0, 0, 0, 147, 148, 5, 10, 0, 0, 148, 149, 3, 2, 1, 0, 149, 21, 1, 0, 0, 0, 150, 151, 5,
1543
+ 11, 0, 0, 151, 152, 3, 2, 1, 0, 152, 23, 1, 0, 0, 0, 153, 154, 5, 12, 0, 0, 154, 155, 3,
1544
+ 2, 1, 0, 155, 156, 3, 2, 1, 0, 156, 25, 1, 0, 0, 0, 157, 158, 5, 13, 0, 0, 158, 159, 3,
1545
+ 2, 1, 0, 159, 27, 1, 0, 0, 0, 160, 161, 5, 32, 0, 0, 161, 162, 5, 14, 0, 0, 162, 29, 1,
1546
+ 0, 0, 0, 163, 167, 5, 15, 0, 0, 164, 166, 3, 2, 1, 0, 165, 164, 1, 0, 0, 0, 166, 169, 1,
1547
+ 0, 0, 0, 167, 165, 1, 0, 0, 0, 167, 168, 1, 0, 0, 0, 168, 170, 1, 0, 0, 0, 169, 167, 1,
1548
+ 0, 0, 0, 170, 171, 5, 2, 0, 0, 171, 31, 1, 0, 0, 0, 172, 177, 5, 16, 0, 0, 173, 174, 3,
1549
+ 10, 5, 0, 174, 175, 3, 2, 1, 0, 175, 178, 1, 0, 0, 0, 176, 178, 3, 2, 1, 0, 177, 173, 1,
1550
+ 0, 0, 0, 177, 176, 1, 0, 0, 0, 178, 33, 1, 0, 0, 0, 179, 180, 5, 17, 0, 0, 180, 181, 3,
1551
+ 72, 36, 0, 181, 35, 1, 0, 0, 0, 182, 183, 5, 18, 0, 0, 183, 184, 3, 2, 1, 0, 184, 185,
1552
+ 3, 2, 1, 0, 185, 37, 1, 0, 0, 0, 186, 187, 5, 19, 0, 0, 187, 188, 3, 2, 1, 0, 188, 39, 1,
1553
+ 0, 0, 0, 189, 190, 5, 14, 0, 0, 190, 191, 3, 72, 36, 0, 191, 192, 3, 2, 1, 0, 192, 41,
1554
+ 1, 0, 0, 0, 193, 194, 5, 14, 0, 0, 194, 195, 3, 46, 23, 0, 195, 43, 1, 0, 0, 0, 196, 205,
1555
+ 3, 46, 23, 0, 197, 205, 3, 54, 27, 0, 198, 205, 3, 56, 28, 0, 199, 205, 3, 64, 32, 0,
1556
+ 200, 205, 5, 31, 0, 0, 201, 205, 3, 66, 33, 0, 202, 205, 3, 72, 36, 0, 203, 205, 3, 78,
1557
+ 39, 0, 204, 196, 1, 0, 0, 0, 204, 197, 1, 0, 0, 0, 204, 198, 1, 0, 0, 0, 204, 199, 1, 0,
1558
+ 0, 0, 204, 200, 1, 0, 0, 0, 204, 201, 1, 0, 0, 0, 204, 202, 1, 0, 0, 0, 204, 203, 1, 0,
1559
+ 0, 0, 205, 45, 1, 0, 0, 0, 206, 207, 5, 21, 0, 0, 207, 47, 1, 0, 0, 0, 208, 209, 5, 23,
1560
+ 0, 0, 209, 49, 1, 0, 0, 0, 210, 211, 5, 24, 0, 0, 211, 51, 1, 0, 0, 0, 212, 213, 5, 26,
1561
+ 0, 0, 213, 53, 1, 0, 0, 0, 214, 220, 5, 22, 0, 0, 215, 220, 3, 48, 24, 0, 216, 220, 3,
1562
+ 50, 25, 0, 217, 220, 3, 52, 26, 0, 218, 220, 5, 25, 0, 0, 219, 214, 1, 0, 0, 0, 219, 215,
1563
+ 1, 0, 0, 0, 219, 216, 1, 0, 0, 0, 219, 217, 1, 0, 0, 0, 219, 218, 1, 0, 0, 0, 220, 55, 1,
1564
+ 0, 0, 0, 221, 225, 3, 58, 29, 0, 222, 225, 3, 62, 31, 0, 223, 225, 3, 60, 30, 0, 224,
1565
+ 221, 1, 0, 0, 0, 224, 222, 1, 0, 0, 0, 224, 223, 1, 0, 0, 0, 225, 57, 1, 0, 0, 0, 226, 227,
1566
+ 5, 28, 0, 0, 227, 59, 1, 0, 0, 0, 228, 229, 5, 29, 0, 0, 229, 61, 1, 0, 0, 0, 230, 231,
1567
+ 5, 27, 0, 0, 231, 63, 1, 0, 0, 0, 232, 233, 5, 30, 0, 0, 233, 65, 1, 0, 0, 0, 234, 237,
1568
+ 3, 70, 35, 0, 235, 237, 3, 68, 34, 0, 236, 234, 1, 0, 0, 0, 236, 235, 1, 0, 0, 0, 237,
1569
+ 67, 1, 0, 0, 0, 238, 239, 5, 20, 0, 0, 239, 240, 3, 72, 36, 0, 240, 69, 1, 0, 0, 0, 241,
1570
+ 242, 5, 20, 0, 0, 242, 243, 5, 20, 0, 0, 243, 244, 3, 72, 36, 0, 244, 71, 1, 0, 0, 0, 245,
1571
+ 248, 3, 76, 38, 0, 246, 248, 3, 74, 37, 0, 247, 245, 1, 0, 0, 0, 247, 246, 1, 0, 0, 0,
1572
+ 248, 73, 1, 0, 0, 0, 249, 250, 5, 32, 0, 0, 250, 75, 1, 0, 0, 0, 251, 252, 5, 33, 0, 0,
1573
+ 252, 77, 1, 0, 0, 0, 253, 254, 5, 34, 0, 0, 254, 79, 1, 0, 0, 0, 12, 83, 93, 98, 115, 139,
1574
+ 167, 177, 204, 219, 224, 236, 247
1575
+ ];
1576
+ static __ATN;
1577
+ static get _ATN() {
1578
+ if (!ClojureParser.__ATN) {
1579
+ ClojureParser.__ATN = new antlr.ATNDeserializer().deserialize(ClojureParser._serializedATN);
1580
+ }
1581
+ return ClojureParser.__ATN;
1582
+ }
1583
+ static vocabulary = new antlr.Vocabulary(ClojureParser.literalNames, ClojureParser.symbolicNames, []);
1584
+ get vocabulary() {
1585
+ return ClojureParser.vocabulary;
1586
+ }
1587
+ static decisionsToDFA = ClojureParser._ATN.decisionToState.map((ds, index) => new antlr.DFA(ds, index));
1588
+ }
1589
+ export class File_Context extends antlr.ParserRuleContext {
1590
+ constructor(parent, invokingState) {
1591
+ super(parent, invokingState);
1592
+ }
1593
+ EOF() {
1594
+ return this.getToken(ClojureParser.EOF, 0);
1595
+ }
1596
+ form(i) {
1597
+ if (i === undefined) {
1598
+ return this.getRuleContexts(FormContext);
1599
+ }
1600
+ return this.getRuleContext(i, FormContext);
1601
+ }
1602
+ get ruleIndex() {
1603
+ return ClojureParser.RULE_file_;
1604
+ }
1605
+ accept(visitor) {
1606
+ if (visitor.visitFile_) {
1607
+ return visitor.visitFile_(this);
1608
+ }
1609
+ else {
1610
+ return visitor.visitChildren(this);
1611
+ }
1612
+ }
1613
+ }
1614
+ export class FormContext extends antlr.ParserRuleContext {
1615
+ constructor(parent, invokingState) {
1616
+ super(parent, invokingState);
1617
+ }
1618
+ literal() {
1619
+ return this.getRuleContext(0, LiteralContext);
1620
+ }
1621
+ list_() {
1622
+ return this.getRuleContext(0, List_Context);
1623
+ }
1624
+ vector() {
1625
+ return this.getRuleContext(0, VectorContext);
1626
+ }
1627
+ map_() {
1628
+ return this.getRuleContext(0, Map_Context);
1629
+ }
1630
+ reader_macro() {
1631
+ return this.getRuleContext(0, Reader_macroContext);
1632
+ }
1633
+ get ruleIndex() {
1634
+ return ClojureParser.RULE_form;
1635
+ }
1636
+ accept(visitor) {
1637
+ if (visitor.visitForm) {
1638
+ return visitor.visitForm(this);
1639
+ }
1640
+ else {
1641
+ return visitor.visitChildren(this);
1642
+ }
1643
+ }
1644
+ }
1645
+ export class FormsContext extends antlr.ParserRuleContext {
1646
+ constructor(parent, invokingState) {
1647
+ super(parent, invokingState);
1648
+ }
1649
+ form(i) {
1650
+ if (i === undefined) {
1651
+ return this.getRuleContexts(FormContext);
1652
+ }
1653
+ return this.getRuleContext(i, FormContext);
1654
+ }
1655
+ get ruleIndex() {
1656
+ return ClojureParser.RULE_forms;
1657
+ }
1658
+ accept(visitor) {
1659
+ if (visitor.visitForms) {
1660
+ return visitor.visitForms(this);
1661
+ }
1662
+ else {
1663
+ return visitor.visitChildren(this);
1664
+ }
1665
+ }
1666
+ }
1667
+ export class List_Context extends antlr.ParserRuleContext {
1668
+ constructor(parent, invokingState) {
1669
+ super(parent, invokingState);
1670
+ }
1671
+ forms() {
1672
+ return this.getRuleContext(0, FormsContext);
1673
+ }
1674
+ get ruleIndex() {
1675
+ return ClojureParser.RULE_list_;
1676
+ }
1677
+ accept(visitor) {
1678
+ if (visitor.visitList_) {
1679
+ return visitor.visitList_(this);
1680
+ }
1681
+ else {
1682
+ return visitor.visitChildren(this);
1683
+ }
1684
+ }
1685
+ }
1686
+ export class VectorContext extends antlr.ParserRuleContext {
1687
+ constructor(parent, invokingState) {
1688
+ super(parent, invokingState);
1689
+ }
1690
+ forms() {
1691
+ return this.getRuleContext(0, FormsContext);
1692
+ }
1693
+ get ruleIndex() {
1694
+ return ClojureParser.RULE_vector;
1695
+ }
1696
+ accept(visitor) {
1697
+ if (visitor.visitVector) {
1698
+ return visitor.visitVector(this);
1699
+ }
1700
+ else {
1701
+ return visitor.visitChildren(this);
1702
+ }
1703
+ }
1704
+ }
1705
+ export class Map_Context extends antlr.ParserRuleContext {
1706
+ constructor(parent, invokingState) {
1707
+ super(parent, invokingState);
1708
+ }
1709
+ form(i) {
1710
+ if (i === undefined) {
1711
+ return this.getRuleContexts(FormContext);
1712
+ }
1713
+ return this.getRuleContext(i, FormContext);
1714
+ }
1715
+ get ruleIndex() {
1716
+ return ClojureParser.RULE_map_;
1717
+ }
1718
+ accept(visitor) {
1719
+ if (visitor.visitMap_) {
1720
+ return visitor.visitMap_(this);
1721
+ }
1722
+ else {
1723
+ return visitor.visitChildren(this);
1724
+ }
1725
+ }
1726
+ }
1727
+ export class Set_Context extends antlr.ParserRuleContext {
1728
+ constructor(parent, invokingState) {
1729
+ super(parent, invokingState);
1730
+ }
1731
+ forms() {
1732
+ return this.getRuleContext(0, FormsContext);
1733
+ }
1734
+ get ruleIndex() {
1735
+ return ClojureParser.RULE_set_;
1736
+ }
1737
+ accept(visitor) {
1738
+ if (visitor.visitSet_) {
1739
+ return visitor.visitSet_(this);
1740
+ }
1741
+ else {
1742
+ return visitor.visitChildren(this);
1743
+ }
1744
+ }
1745
+ }
1746
+ export class Reader_macroContext extends antlr.ParserRuleContext {
1747
+ constructor(parent, invokingState) {
1748
+ super(parent, invokingState);
1749
+ }
1750
+ lambda_() {
1751
+ return this.getRuleContext(0, Lambda_Context);
1752
+ }
1753
+ meta_data() {
1754
+ return this.getRuleContext(0, Meta_dataContext);
1755
+ }
1756
+ regex() {
1757
+ return this.getRuleContext(0, RegexContext);
1758
+ }
1759
+ var_quote() {
1760
+ return this.getRuleContext(0, Var_quoteContext);
1761
+ }
1762
+ host_expr() {
1763
+ return this.getRuleContext(0, Host_exprContext);
1764
+ }
1765
+ set_() {
1766
+ return this.getRuleContext(0, Set_Context);
1767
+ }
1768
+ tag() {
1769
+ return this.getRuleContext(0, TagContext);
1770
+ }
1771
+ discard() {
1772
+ return this.getRuleContext(0, DiscardContext);
1773
+ }
1774
+ dispatch() {
1775
+ return this.getRuleContext(0, DispatchContext);
1776
+ }
1777
+ deref() {
1778
+ return this.getRuleContext(0, DerefContext);
1779
+ }
1780
+ quote() {
1781
+ return this.getRuleContext(0, QuoteContext);
1782
+ }
1783
+ backtick() {
1784
+ return this.getRuleContext(0, BacktickContext);
1785
+ }
1786
+ unquote() {
1787
+ return this.getRuleContext(0, UnquoteContext);
1788
+ }
1789
+ unquote_splicing() {
1790
+ return this.getRuleContext(0, Unquote_splicingContext);
1791
+ }
1792
+ gensym() {
1793
+ return this.getRuleContext(0, GensymContext);
1794
+ }
1795
+ get ruleIndex() {
1796
+ return ClojureParser.RULE_reader_macro;
1797
+ }
1798
+ accept(visitor) {
1799
+ if (visitor.visitReader_macro) {
1800
+ return visitor.visitReader_macro(this);
1801
+ }
1802
+ else {
1803
+ return visitor.visitChildren(this);
1804
+ }
1805
+ }
1806
+ }
1807
+ export class QuoteContext extends antlr.ParserRuleContext {
1808
+ constructor(parent, invokingState) {
1809
+ super(parent, invokingState);
1810
+ }
1811
+ form() {
1812
+ return this.getRuleContext(0, FormContext);
1813
+ }
1814
+ get ruleIndex() {
1815
+ return ClojureParser.RULE_quote;
1816
+ }
1817
+ accept(visitor) {
1818
+ if (visitor.visitQuote) {
1819
+ return visitor.visitQuote(this);
1820
+ }
1821
+ else {
1822
+ return visitor.visitChildren(this);
1823
+ }
1824
+ }
1825
+ }
1826
+ export class BacktickContext extends antlr.ParserRuleContext {
1827
+ constructor(parent, invokingState) {
1828
+ super(parent, invokingState);
1829
+ }
1830
+ form() {
1831
+ return this.getRuleContext(0, FormContext);
1832
+ }
1833
+ get ruleIndex() {
1834
+ return ClojureParser.RULE_backtick;
1835
+ }
1836
+ accept(visitor) {
1837
+ if (visitor.visitBacktick) {
1838
+ return visitor.visitBacktick(this);
1839
+ }
1840
+ else {
1841
+ return visitor.visitChildren(this);
1842
+ }
1843
+ }
1844
+ }
1845
+ export class UnquoteContext extends antlr.ParserRuleContext {
1846
+ constructor(parent, invokingState) {
1847
+ super(parent, invokingState);
1848
+ }
1849
+ form() {
1850
+ return this.getRuleContext(0, FormContext);
1851
+ }
1852
+ get ruleIndex() {
1853
+ return ClojureParser.RULE_unquote;
1854
+ }
1855
+ accept(visitor) {
1856
+ if (visitor.visitUnquote) {
1857
+ return visitor.visitUnquote(this);
1858
+ }
1859
+ else {
1860
+ return visitor.visitChildren(this);
1861
+ }
1862
+ }
1863
+ }
1864
+ export class Unquote_splicingContext extends antlr.ParserRuleContext {
1865
+ constructor(parent, invokingState) {
1866
+ super(parent, invokingState);
1867
+ }
1868
+ form() {
1869
+ return this.getRuleContext(0, FormContext);
1870
+ }
1871
+ get ruleIndex() {
1872
+ return ClojureParser.RULE_unquote_splicing;
1873
+ }
1874
+ accept(visitor) {
1875
+ if (visitor.visitUnquote_splicing) {
1876
+ return visitor.visitUnquote_splicing(this);
1877
+ }
1878
+ else {
1879
+ return visitor.visitChildren(this);
1880
+ }
1881
+ }
1882
+ }
1883
+ export class TagContext extends antlr.ParserRuleContext {
1884
+ constructor(parent, invokingState) {
1885
+ super(parent, invokingState);
1886
+ }
1887
+ form(i) {
1888
+ if (i === undefined) {
1889
+ return this.getRuleContexts(FormContext);
1890
+ }
1891
+ return this.getRuleContext(i, FormContext);
1892
+ }
1893
+ get ruleIndex() {
1894
+ return ClojureParser.RULE_tag;
1895
+ }
1896
+ accept(visitor) {
1897
+ if (visitor.visitTag) {
1898
+ return visitor.visitTag(this);
1899
+ }
1900
+ else {
1901
+ return visitor.visitChildren(this);
1902
+ }
1903
+ }
1904
+ }
1905
+ export class DerefContext extends antlr.ParserRuleContext {
1906
+ constructor(parent, invokingState) {
1907
+ super(parent, invokingState);
1908
+ }
1909
+ form() {
1910
+ return this.getRuleContext(0, FormContext);
1911
+ }
1912
+ get ruleIndex() {
1913
+ return ClojureParser.RULE_deref;
1914
+ }
1915
+ accept(visitor) {
1916
+ if (visitor.visitDeref) {
1917
+ return visitor.visitDeref(this);
1918
+ }
1919
+ else {
1920
+ return visitor.visitChildren(this);
1921
+ }
1922
+ }
1923
+ }
1924
+ export class GensymContext extends antlr.ParserRuleContext {
1925
+ constructor(parent, invokingState) {
1926
+ super(parent, invokingState);
1927
+ }
1928
+ SYMBOL() {
1929
+ return this.getToken(ClojureParser.SYMBOL, 0);
1930
+ }
1931
+ get ruleIndex() {
1932
+ return ClojureParser.RULE_gensym;
1933
+ }
1934
+ accept(visitor) {
1935
+ if (visitor.visitGensym) {
1936
+ return visitor.visitGensym(this);
1937
+ }
1938
+ else {
1939
+ return visitor.visitChildren(this);
1940
+ }
1941
+ }
1942
+ }
1943
+ export class Lambda_Context extends antlr.ParserRuleContext {
1944
+ constructor(parent, invokingState) {
1945
+ super(parent, invokingState);
1946
+ }
1947
+ form(i) {
1948
+ if (i === undefined) {
1949
+ return this.getRuleContexts(FormContext);
1950
+ }
1951
+ return this.getRuleContext(i, FormContext);
1952
+ }
1953
+ get ruleIndex() {
1954
+ return ClojureParser.RULE_lambda_;
1955
+ }
1956
+ accept(visitor) {
1957
+ if (visitor.visitLambda_) {
1958
+ return visitor.visitLambda_(this);
1959
+ }
1960
+ else {
1961
+ return visitor.visitChildren(this);
1962
+ }
1963
+ }
1964
+ }
1965
+ export class Meta_dataContext extends antlr.ParserRuleContext {
1966
+ constructor(parent, invokingState) {
1967
+ super(parent, invokingState);
1968
+ }
1969
+ map_() {
1970
+ return this.getRuleContext(0, Map_Context);
1971
+ }
1972
+ form() {
1973
+ return this.getRuleContext(0, FormContext);
1974
+ }
1975
+ get ruleIndex() {
1976
+ return ClojureParser.RULE_meta_data;
1977
+ }
1978
+ accept(visitor) {
1979
+ if (visitor.visitMeta_data) {
1980
+ return visitor.visitMeta_data(this);
1981
+ }
1982
+ else {
1983
+ return visitor.visitChildren(this);
1984
+ }
1985
+ }
1986
+ }
1987
+ export class Var_quoteContext extends antlr.ParserRuleContext {
1988
+ constructor(parent, invokingState) {
1989
+ super(parent, invokingState);
1990
+ }
1991
+ symbol() {
1992
+ return this.getRuleContext(0, SymbolContext);
1993
+ }
1994
+ get ruleIndex() {
1995
+ return ClojureParser.RULE_var_quote;
1996
+ }
1997
+ accept(visitor) {
1998
+ if (visitor.visitVar_quote) {
1999
+ return visitor.visitVar_quote(this);
2000
+ }
2001
+ else {
2002
+ return visitor.visitChildren(this);
2003
+ }
2004
+ }
2005
+ }
2006
+ export class Host_exprContext extends antlr.ParserRuleContext {
2007
+ constructor(parent, invokingState) {
2008
+ super(parent, invokingState);
2009
+ }
2010
+ form(i) {
2011
+ if (i === undefined) {
2012
+ return this.getRuleContexts(FormContext);
2013
+ }
2014
+ return this.getRuleContext(i, FormContext);
2015
+ }
2016
+ get ruleIndex() {
2017
+ return ClojureParser.RULE_host_expr;
2018
+ }
2019
+ accept(visitor) {
2020
+ if (visitor.visitHost_expr) {
2021
+ return visitor.visitHost_expr(this);
2022
+ }
2023
+ else {
2024
+ return visitor.visitChildren(this);
2025
+ }
2026
+ }
2027
+ }
2028
+ export class DiscardContext extends antlr.ParserRuleContext {
2029
+ constructor(parent, invokingState) {
2030
+ super(parent, invokingState);
2031
+ }
2032
+ form() {
2033
+ return this.getRuleContext(0, FormContext);
2034
+ }
2035
+ get ruleIndex() {
2036
+ return ClojureParser.RULE_discard;
2037
+ }
2038
+ accept(visitor) {
2039
+ if (visitor.visitDiscard) {
2040
+ return visitor.visitDiscard(this);
2041
+ }
2042
+ else {
2043
+ return visitor.visitChildren(this);
2044
+ }
2045
+ }
2046
+ }
2047
+ export class DispatchContext extends antlr.ParserRuleContext {
2048
+ constructor(parent, invokingState) {
2049
+ super(parent, invokingState);
2050
+ }
2051
+ symbol() {
2052
+ return this.getRuleContext(0, SymbolContext);
2053
+ }
2054
+ form() {
2055
+ return this.getRuleContext(0, FormContext);
2056
+ }
2057
+ get ruleIndex() {
2058
+ return ClojureParser.RULE_dispatch;
2059
+ }
2060
+ accept(visitor) {
2061
+ if (visitor.visitDispatch) {
2062
+ return visitor.visitDispatch(this);
2063
+ }
2064
+ else {
2065
+ return visitor.visitChildren(this);
2066
+ }
2067
+ }
2068
+ }
2069
+ export class RegexContext extends antlr.ParserRuleContext {
2070
+ constructor(parent, invokingState) {
2071
+ super(parent, invokingState);
2072
+ }
2073
+ string_() {
2074
+ return this.getRuleContext(0, String_Context);
2075
+ }
2076
+ get ruleIndex() {
2077
+ return ClojureParser.RULE_regex;
2078
+ }
2079
+ accept(visitor) {
2080
+ if (visitor.visitRegex) {
2081
+ return visitor.visitRegex(this);
2082
+ }
2083
+ else {
2084
+ return visitor.visitChildren(this);
2085
+ }
2086
+ }
2087
+ }
2088
+ export class LiteralContext extends antlr.ParserRuleContext {
2089
+ constructor(parent, invokingState) {
2090
+ super(parent, invokingState);
2091
+ }
2092
+ string_() {
2093
+ return this.getRuleContext(0, String_Context);
2094
+ }
2095
+ number() {
2096
+ return this.getRuleContext(0, NumberContext);
2097
+ }
2098
+ character() {
2099
+ return this.getRuleContext(0, CharacterContext);
2100
+ }
2101
+ nil_() {
2102
+ return this.getRuleContext(0, Nil_Context);
2103
+ }
2104
+ BOOLEAN() {
2105
+ return this.getToken(ClojureParser.BOOLEAN, 0);
2106
+ }
2107
+ keyword() {
2108
+ return this.getRuleContext(0, KeywordContext);
2109
+ }
2110
+ symbol() {
2111
+ return this.getRuleContext(0, SymbolContext);
2112
+ }
2113
+ param_name() {
2114
+ return this.getRuleContext(0, Param_nameContext);
2115
+ }
2116
+ get ruleIndex() {
2117
+ return ClojureParser.RULE_literal;
2118
+ }
2119
+ accept(visitor) {
2120
+ if (visitor.visitLiteral) {
2121
+ return visitor.visitLiteral(this);
2122
+ }
2123
+ else {
2124
+ return visitor.visitChildren(this);
2125
+ }
2126
+ }
2127
+ }
2128
+ export class String_Context extends antlr.ParserRuleContext {
2129
+ constructor(parent, invokingState) {
2130
+ super(parent, invokingState);
2131
+ }
2132
+ STRING() {
2133
+ return this.getToken(ClojureParser.STRING, 0);
2134
+ }
2135
+ get ruleIndex() {
2136
+ return ClojureParser.RULE_string_;
2137
+ }
2138
+ accept(visitor) {
2139
+ if (visitor.visitString_) {
2140
+ return visitor.visitString_(this);
2141
+ }
2142
+ else {
2143
+ return visitor.visitChildren(this);
2144
+ }
2145
+ }
2146
+ }
2147
+ export class Hex_Context extends antlr.ParserRuleContext {
2148
+ constructor(parent, invokingState) {
2149
+ super(parent, invokingState);
2150
+ }
2151
+ HEX() {
2152
+ return this.getToken(ClojureParser.HEX, 0);
2153
+ }
2154
+ get ruleIndex() {
2155
+ return ClojureParser.RULE_hex_;
2156
+ }
2157
+ accept(visitor) {
2158
+ if (visitor.visitHex_) {
2159
+ return visitor.visitHex_(this);
2160
+ }
2161
+ else {
2162
+ return visitor.visitChildren(this);
2163
+ }
2164
+ }
2165
+ }
2166
+ export class Bin_Context extends antlr.ParserRuleContext {
2167
+ constructor(parent, invokingState) {
2168
+ super(parent, invokingState);
2169
+ }
2170
+ BIN() {
2171
+ return this.getToken(ClojureParser.BIN, 0);
2172
+ }
2173
+ get ruleIndex() {
2174
+ return ClojureParser.RULE_bin_;
2175
+ }
2176
+ accept(visitor) {
2177
+ if (visitor.visitBin_) {
2178
+ return visitor.visitBin_(this);
2179
+ }
2180
+ else {
2181
+ return visitor.visitChildren(this);
2182
+ }
2183
+ }
2184
+ }
2185
+ export class BignContext extends antlr.ParserRuleContext {
2186
+ constructor(parent, invokingState) {
2187
+ super(parent, invokingState);
2188
+ }
2189
+ BIGN() {
2190
+ return this.getToken(ClojureParser.BIGN, 0);
2191
+ }
2192
+ get ruleIndex() {
2193
+ return ClojureParser.RULE_bign;
2194
+ }
2195
+ accept(visitor) {
2196
+ if (visitor.visitBign) {
2197
+ return visitor.visitBign(this);
2198
+ }
2199
+ else {
2200
+ return visitor.visitChildren(this);
2201
+ }
2202
+ }
2203
+ }
2204
+ export class NumberContext extends antlr.ParserRuleContext {
2205
+ constructor(parent, invokingState) {
2206
+ super(parent, invokingState);
2207
+ }
2208
+ FLOAT() {
2209
+ return this.getToken(ClojureParser.FLOAT, 0);
2210
+ }
2211
+ hex_() {
2212
+ return this.getRuleContext(0, Hex_Context);
2213
+ }
2214
+ bin_() {
2215
+ return this.getRuleContext(0, Bin_Context);
2216
+ }
2217
+ bign() {
2218
+ return this.getRuleContext(0, BignContext);
2219
+ }
2220
+ LONG() {
2221
+ return this.getToken(ClojureParser.LONG, 0);
2222
+ }
2223
+ get ruleIndex() {
2224
+ return ClojureParser.RULE_number;
2225
+ }
2226
+ accept(visitor) {
2227
+ if (visitor.visitNumber) {
2228
+ return visitor.visitNumber(this);
2229
+ }
2230
+ else {
2231
+ return visitor.visitChildren(this);
2232
+ }
2233
+ }
2234
+ }
2235
+ export class CharacterContext extends antlr.ParserRuleContext {
2236
+ constructor(parent, invokingState) {
2237
+ super(parent, invokingState);
2238
+ }
2239
+ named_char() {
2240
+ return this.getRuleContext(0, Named_charContext);
2241
+ }
2242
+ u_hex_quad() {
2243
+ return this.getRuleContext(0, U_hex_quadContext);
2244
+ }
2245
+ any_char() {
2246
+ return this.getRuleContext(0, Any_charContext);
2247
+ }
2248
+ get ruleIndex() {
2249
+ return ClojureParser.RULE_character;
2250
+ }
2251
+ accept(visitor) {
2252
+ if (visitor.visitCharacter) {
2253
+ return visitor.visitCharacter(this);
2254
+ }
2255
+ else {
2256
+ return visitor.visitChildren(this);
2257
+ }
2258
+ }
2259
+ }
2260
+ export class Named_charContext extends antlr.ParserRuleContext {
2261
+ constructor(parent, invokingState) {
2262
+ super(parent, invokingState);
2263
+ }
2264
+ CHAR_NAMED() {
2265
+ return this.getToken(ClojureParser.CHAR_NAMED, 0);
2266
+ }
2267
+ get ruleIndex() {
2268
+ return ClojureParser.RULE_named_char;
2269
+ }
2270
+ accept(visitor) {
2271
+ if (visitor.visitNamed_char) {
2272
+ return visitor.visitNamed_char(this);
2273
+ }
2274
+ else {
2275
+ return visitor.visitChildren(this);
2276
+ }
2277
+ }
2278
+ }
2279
+ export class Any_charContext extends antlr.ParserRuleContext {
2280
+ constructor(parent, invokingState) {
2281
+ super(parent, invokingState);
2282
+ }
2283
+ CHAR_ANY() {
2284
+ return this.getToken(ClojureParser.CHAR_ANY, 0);
2285
+ }
2286
+ get ruleIndex() {
2287
+ return ClojureParser.RULE_any_char;
2288
+ }
2289
+ accept(visitor) {
2290
+ if (visitor.visitAny_char) {
2291
+ return visitor.visitAny_char(this);
2292
+ }
2293
+ else {
2294
+ return visitor.visitChildren(this);
2295
+ }
2296
+ }
2297
+ }
2298
+ export class U_hex_quadContext extends antlr.ParserRuleContext {
2299
+ constructor(parent, invokingState) {
2300
+ super(parent, invokingState);
2301
+ }
2302
+ CHAR_U() {
2303
+ return this.getToken(ClojureParser.CHAR_U, 0);
2304
+ }
2305
+ get ruleIndex() {
2306
+ return ClojureParser.RULE_u_hex_quad;
2307
+ }
2308
+ accept(visitor) {
2309
+ if (visitor.visitU_hex_quad) {
2310
+ return visitor.visitU_hex_quad(this);
2311
+ }
2312
+ else {
2313
+ return visitor.visitChildren(this);
2314
+ }
2315
+ }
2316
+ }
2317
+ export class Nil_Context extends antlr.ParserRuleContext {
2318
+ constructor(parent, invokingState) {
2319
+ super(parent, invokingState);
2320
+ }
2321
+ NIL() {
2322
+ return this.getToken(ClojureParser.NIL, 0);
2323
+ }
2324
+ get ruleIndex() {
2325
+ return ClojureParser.RULE_nil_;
2326
+ }
2327
+ accept(visitor) {
2328
+ if (visitor.visitNil_) {
2329
+ return visitor.visitNil_(this);
2330
+ }
2331
+ else {
2332
+ return visitor.visitChildren(this);
2333
+ }
2334
+ }
2335
+ }
2336
+ export class KeywordContext extends antlr.ParserRuleContext {
2337
+ constructor(parent, invokingState) {
2338
+ super(parent, invokingState);
2339
+ }
2340
+ macro_keyword() {
2341
+ return this.getRuleContext(0, Macro_keywordContext);
2342
+ }
2343
+ simple_keyword() {
2344
+ return this.getRuleContext(0, Simple_keywordContext);
2345
+ }
2346
+ get ruleIndex() {
2347
+ return ClojureParser.RULE_keyword;
2348
+ }
2349
+ accept(visitor) {
2350
+ if (visitor.visitKeyword) {
2351
+ return visitor.visitKeyword(this);
2352
+ }
2353
+ else {
2354
+ return visitor.visitChildren(this);
2355
+ }
2356
+ }
2357
+ }
2358
+ export class Simple_keywordContext extends antlr.ParserRuleContext {
2359
+ constructor(parent, invokingState) {
2360
+ super(parent, invokingState);
2361
+ }
2362
+ symbol() {
2363
+ return this.getRuleContext(0, SymbolContext);
2364
+ }
2365
+ get ruleIndex() {
2366
+ return ClojureParser.RULE_simple_keyword;
2367
+ }
2368
+ accept(visitor) {
2369
+ if (visitor.visitSimple_keyword) {
2370
+ return visitor.visitSimple_keyword(this);
2371
+ }
2372
+ else {
2373
+ return visitor.visitChildren(this);
2374
+ }
2375
+ }
2376
+ }
2377
+ export class Macro_keywordContext extends antlr.ParserRuleContext {
2378
+ constructor(parent, invokingState) {
2379
+ super(parent, invokingState);
2380
+ }
2381
+ symbol() {
2382
+ return this.getRuleContext(0, SymbolContext);
2383
+ }
2384
+ get ruleIndex() {
2385
+ return ClojureParser.RULE_macro_keyword;
2386
+ }
2387
+ accept(visitor) {
2388
+ if (visitor.visitMacro_keyword) {
2389
+ return visitor.visitMacro_keyword(this);
2390
+ }
2391
+ else {
2392
+ return visitor.visitChildren(this);
2393
+ }
2394
+ }
2395
+ }
2396
+ export class SymbolContext extends antlr.ParserRuleContext {
2397
+ constructor(parent, invokingState) {
2398
+ super(parent, invokingState);
2399
+ }
2400
+ ns_symbol() {
2401
+ return this.getRuleContext(0, Ns_symbolContext);
2402
+ }
2403
+ simple_sym() {
2404
+ return this.getRuleContext(0, Simple_symContext);
2405
+ }
2406
+ get ruleIndex() {
2407
+ return ClojureParser.RULE_symbol;
2408
+ }
2409
+ accept(visitor) {
2410
+ if (visitor.visitSymbol) {
2411
+ return visitor.visitSymbol(this);
2412
+ }
2413
+ else {
2414
+ return visitor.visitChildren(this);
2415
+ }
2416
+ }
2417
+ }
2418
+ export class Simple_symContext extends antlr.ParserRuleContext {
2419
+ constructor(parent, invokingState) {
2420
+ super(parent, invokingState);
2421
+ }
2422
+ SYMBOL() {
2423
+ return this.getToken(ClojureParser.SYMBOL, 0);
2424
+ }
2425
+ get ruleIndex() {
2426
+ return ClojureParser.RULE_simple_sym;
2427
+ }
2428
+ accept(visitor) {
2429
+ if (visitor.visitSimple_sym) {
2430
+ return visitor.visitSimple_sym(this);
2431
+ }
2432
+ else {
2433
+ return visitor.visitChildren(this);
2434
+ }
2435
+ }
2436
+ }
2437
+ export class Ns_symbolContext extends antlr.ParserRuleContext {
2438
+ constructor(parent, invokingState) {
2439
+ super(parent, invokingState);
2440
+ }
2441
+ NS_SYMBOL() {
2442
+ return this.getToken(ClojureParser.NS_SYMBOL, 0);
2443
+ }
2444
+ get ruleIndex() {
2445
+ return ClojureParser.RULE_ns_symbol;
2446
+ }
2447
+ accept(visitor) {
2448
+ if (visitor.visitNs_symbol) {
2449
+ return visitor.visitNs_symbol(this);
2450
+ }
2451
+ else {
2452
+ return visitor.visitChildren(this);
2453
+ }
2454
+ }
2455
+ }
2456
+ export class Param_nameContext extends antlr.ParserRuleContext {
2457
+ constructor(parent, invokingState) {
2458
+ super(parent, invokingState);
2459
+ }
2460
+ PARAM_NAME() {
2461
+ return this.getToken(ClojureParser.PARAM_NAME, 0);
2462
+ }
2463
+ get ruleIndex() {
2464
+ return ClojureParser.RULE_param_name;
2465
+ }
2466
+ accept(visitor) {
2467
+ if (visitor.visitParam_name) {
2468
+ return visitor.visitParam_name(this);
2469
+ }
2470
+ else {
2471
+ return visitor.visitChildren(this);
2472
+ }
2473
+ }
2474
+ }
2475
+ //# sourceMappingURL=ClojureParser.js.map