-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTabloidParser.java
More file actions
1636 lines (1585 loc) · 53.7 KB
/
TabloidParser.java
File metadata and controls
1636 lines (1585 loc) · 53.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Generated from Tabloid.g4 by ANTLR 4.13.2
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "this-escape"})
public class TabloidParser extends Parser {
static { RuntimeMetaData.checkVersion("4.13.2", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9,
T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, T__14=15, T__15=16, T__16=17,
T__17=18, T__18=19, T__19=20, T__20=21, T__21=22, T__22=23, T__23=24,
T__24=25, T__25=26, T__26=27, T__27=28, T__28=29, T__29=30, T__30=31,
T__31=32, T__32=33, T__33=34, T__34=35, T__35=36, T__36=37, ID=38, INT=39,
FLOAT=40, STRING=41, BOOL=42, COMMENT=43, WS=44;
public static final int
RULE_programma = 0, RULE_dilosi = 1, RULE_anathesi = 2, RULE_ektypwsi = 3,
RULE_eisodos = 4, RULE_epistrofi = 5, RULE_dhmiourgiasynartishs = 6, RULE_parametroi = 7,
RULE_klhsh = 8, RULE_listaOrismatwn = 9, RULE_if = 10, RULE_while = 11,
RULE_synthiki = 12, RULE_sygkritis = 13, RULE_ekfrasi = 14;
private static String[] makeRuleNames() {
return new String[] {
"programma", "dilosi", "anathesi", "ektypwsi", "eisodos", "epistrofi",
"dhmiourgiasynartishs", "parametroi", "klhsh", "listaOrismatwn", "if",
"while", "synthiki", "sygkritis", "ekfrasi"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
null, "'PLEASE LIKE AND SUBSCRIBE'", "'EXPERTS CLAIM'", "'TO BE'", "'YOU WON'T WANT TO MISS'",
"'TELL ME'", "'LATEST NEWS ON'", "'SHOCKING DEVELOPMENT'", "'DISCOVER HOW TO'",
"'WITH'", "'RUMOR HAS IT'", "'END OF STORY'", "','", "'OF'", "'WHAT IF'",
"'LIES!'", "'STAY TUNED WHILE'", "'SMALLER THAN'", "'BIGGER THAN'", "'LESS THAN'",
"'BEATS'", "'EQUAL TO'", "'NOT EQUAL TO'", "'IS ACTUALLY'", "'*'", "'/'",
"'%'", "'TIMES'", "'DIVIDED BY'", "'MODULO'", "'+'", "'-'", "'PLUS'",
"'MINUS'", "'AND'", "'OR'", "'('", "')'"
};
}
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static String[] makeSymbolicNames() {
return new String[] {
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, "ID", "INT", "FLOAT", "STRING", "BOOL", "COMMENT", "WS"
};
}
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
/**
* @deprecated Use {@link #VOCABULARY} instead.
*/
@Deprecated
public static final String[] tokenNames;
static {
tokenNames = new String[_SYMBOLIC_NAMES.length];
for (int i = 0; i < tokenNames.length; i++) {
tokenNames[i] = VOCABULARY.getLiteralName(i);
if (tokenNames[i] == null) {
tokenNames[i] = VOCABULARY.getSymbolicName(i);
}
if (tokenNames[i] == null) {
tokenNames[i] = "<INVALID>";
}
}
}
@Override
@Deprecated
public String[] getTokenNames() {
return tokenNames;
}
@Override
public Vocabulary getVocabulary() {
return VOCABULARY;
}
@Override
public String getGrammarFileName() { return "Tabloid.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public ATN getATN() { return _ATN; }
public TabloidParser(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@SuppressWarnings("CheckReturnValue")
public static class ProgrammaContext extends ParserRuleContext {
public TerminalNode EOF() { return getToken(TabloidParser.EOF, 0); }
public List<DilosiContext> dilosi() {
return getRuleContexts(DilosiContext.class);
}
public DilosiContext dilosi(int i) {
return getRuleContext(DilosiContext.class,i);
}
public ProgrammaContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_programma; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterProgramma(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitProgramma(this);
}
}
public final ProgrammaContext programma() throws RecognitionException {
ProgrammaContext _localctx = new ProgrammaContext(_ctx, getState());
enterRule(_localctx, 0, RULE_programma);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(33);
_errHandler.sync(this);
_la = _input.LA(1);
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 274877989366L) != 0)) {
{
{
setState(30);
dilosi();
}
}
setState(35);
_errHandler.sync(this);
_la = _input.LA(1);
}
setState(36);
match(EOF);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class DilosiContext extends ParserRuleContext {
public AnathesiContext anathesi() {
return getRuleContext(AnathesiContext.class,0);
}
public EktypwsiContext ektypwsi() {
return getRuleContext(EktypwsiContext.class,0);
}
public EisodosContext eisodos() {
return getRuleContext(EisodosContext.class,0);
}
public EpistrofiContext epistrofi() {
return getRuleContext(EpistrofiContext.class,0);
}
public DhmiourgiasynartishsContext dhmiourgiasynartishs() {
return getRuleContext(DhmiourgiasynartishsContext.class,0);
}
public KlhshContext klhsh() {
return getRuleContext(KlhshContext.class,0);
}
public IfContext if_() {
return getRuleContext(IfContext.class,0);
}
public WhileContext while_() {
return getRuleContext(WhileContext.class,0);
}
public DilosiContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_dilosi; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterDilosi(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitDilosi(this);
}
}
public final DilosiContext dilosi() throws RecognitionException {
DilosiContext _localctx = new DilosiContext(_ctx, getState());
enterRule(_localctx, 2, RULE_dilosi);
try {
setState(47);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__1:
enterOuterAlt(_localctx, 1);
{
setState(38);
anathesi();
}
break;
case T__3:
enterOuterAlt(_localctx, 2);
{
setState(39);
ektypwsi();
}
break;
case T__4:
case T__5:
enterOuterAlt(_localctx, 3);
{
setState(40);
eisodos();
}
break;
case T__6:
enterOuterAlt(_localctx, 4);
{
setState(41);
epistrofi();
}
break;
case T__7:
enterOuterAlt(_localctx, 5);
{
setState(42);
dhmiourgiasynartishs();
}
break;
case ID:
enterOuterAlt(_localctx, 6);
{
setState(43);
klhsh();
}
break;
case T__13:
enterOuterAlt(_localctx, 7);
{
setState(44);
if_();
}
break;
case T__15:
enterOuterAlt(_localctx, 8);
{
setState(45);
while_();
}
break;
case T__0:
enterOuterAlt(_localctx, 9);
{
setState(46);
match(T__0);
}
break;
default:
throw new NoViableAltException(this);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class AnathesiContext extends ParserRuleContext {
public TerminalNode ID() { return getToken(TabloidParser.ID, 0); }
public EkfrasiContext ekfrasi() {
return getRuleContext(EkfrasiContext.class,0);
}
public AnathesiContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_anathesi; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterAnathesi(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitAnathesi(this);
}
}
public final AnathesiContext anathesi() throws RecognitionException {
AnathesiContext _localctx = new AnathesiContext(_ctx, getState());
enterRule(_localctx, 4, RULE_anathesi);
try {
enterOuterAlt(_localctx, 1);
{
setState(49);
match(T__1);
setState(50);
match(ID);
setState(51);
match(T__2);
setState(52);
ekfrasi(0);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class EktypwsiContext extends ParserRuleContext {
public EkfrasiContext ekfrasi() {
return getRuleContext(EkfrasiContext.class,0);
}
public EktypwsiContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_ektypwsi; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterEktypwsi(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitEktypwsi(this);
}
}
public final EktypwsiContext ektypwsi() throws RecognitionException {
EktypwsiContext _localctx = new EktypwsiContext(_ctx, getState());
enterRule(_localctx, 6, RULE_ektypwsi);
try {
enterOuterAlt(_localctx, 1);
{
setState(54);
match(T__3);
setState(55);
ekfrasi(0);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class EisodosContext extends ParserRuleContext {
public TerminalNode ID() { return getToken(TabloidParser.ID, 0); }
public EisodosContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_eisodos; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterEisodos(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitEisodos(this);
}
}
public final EisodosContext eisodos() throws RecognitionException {
EisodosContext _localctx = new EisodosContext(_ctx, getState());
enterRule(_localctx, 8, RULE_eisodos);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(57);
_la = _input.LA(1);
if ( !(_la==T__4 || _la==T__5) ) {
_errHandler.recoverInline(this);
}
else {
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
_errHandler.reportMatch(this);
consume();
}
setState(58);
match(ID);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class EpistrofiContext extends ParserRuleContext {
public EkfrasiContext ekfrasi() {
return getRuleContext(EkfrasiContext.class,0);
}
public EpistrofiContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_epistrofi; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterEpistrofi(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitEpistrofi(this);
}
}
public final EpistrofiContext epistrofi() throws RecognitionException {
EpistrofiContext _localctx = new EpistrofiContext(_ctx, getState());
enterRule(_localctx, 10, RULE_epistrofi);
try {
enterOuterAlt(_localctx, 1);
{
setState(60);
match(T__6);
setState(62);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,2,_ctx) ) {
case 1:
{
setState(61);
ekfrasi(0);
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class DhmiourgiasynartishsContext extends ParserRuleContext {
public TerminalNode ID() { return getToken(TabloidParser.ID, 0); }
public ParametroiContext parametroi() {
return getRuleContext(ParametroiContext.class,0);
}
public List<DilosiContext> dilosi() {
return getRuleContexts(DilosiContext.class);
}
public DilosiContext dilosi(int i) {
return getRuleContext(DilosiContext.class,i);
}
public DhmiourgiasynartishsContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_dhmiourgiasynartishs; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterDhmiourgiasynartishs(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitDhmiourgiasynartishs(this);
}
}
public final DhmiourgiasynartishsContext dhmiourgiasynartishs() throws RecognitionException {
DhmiourgiasynartishsContext _localctx = new DhmiourgiasynartishsContext(_ctx, getState());
enterRule(_localctx, 12, RULE_dhmiourgiasynartishs);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(64);
match(T__7);
setState(65);
match(ID);
setState(66);
match(T__8);
setState(67);
parametroi();
setState(68);
match(T__9);
setState(70);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(69);
dilosi();
}
}
setState(72);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & 274877989366L) != 0) );
setState(74);
match(T__10);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ParametroiContext extends ParserRuleContext {
public List<TerminalNode> ID() { return getTokens(TabloidParser.ID); }
public TerminalNode ID(int i) {
return getToken(TabloidParser.ID, i);
}
public ParametroiContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_parametroi; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterParametroi(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitParametroi(this);
}
}
public final ParametroiContext parametroi() throws RecognitionException {
ParametroiContext _localctx = new ParametroiContext(_ctx, getState());
enterRule(_localctx, 14, RULE_parametroi);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(76);
match(ID);
setState(81);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__11) {
{
{
setState(77);
match(T__11);
setState(78);
match(ID);
}
}
setState(83);
_errHandler.sync(this);
_la = _input.LA(1);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class KlhshContext extends ParserRuleContext {
public TerminalNode ID() { return getToken(TabloidParser.ID, 0); }
public ListaOrismatwnContext listaOrismatwn() {
return getRuleContext(ListaOrismatwnContext.class,0);
}
public KlhshContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_klhsh; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterKlhsh(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitKlhsh(this);
}
}
public final KlhshContext klhsh() throws RecognitionException {
KlhshContext _localctx = new KlhshContext(_ctx, getState());
enterRule(_localctx, 16, RULE_klhsh);
try {
enterOuterAlt(_localctx, 1);
{
setState(84);
match(ID);
setState(85);
match(T__12);
setState(87);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,5,_ctx) ) {
case 1:
{
setState(86);
listaOrismatwn();
}
break;
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ListaOrismatwnContext extends ParserRuleContext {
public List<EkfrasiContext> ekfrasi() {
return getRuleContexts(EkfrasiContext.class);
}
public EkfrasiContext ekfrasi(int i) {
return getRuleContext(EkfrasiContext.class,i);
}
public ListaOrismatwnContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_listaOrismatwn; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterListaOrismatwn(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitListaOrismatwn(this);
}
}
public final ListaOrismatwnContext listaOrismatwn() throws RecognitionException {
ListaOrismatwnContext _localctx = new ListaOrismatwnContext(_ctx, getState());
enterRule(_localctx, 18, RULE_listaOrismatwn);
try {
int _alt;
enterOuterAlt(_localctx, 1);
{
setState(89);
ekfrasi(0);
setState(94);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,6,_ctx);
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
if ( _alt==1 ) {
{
{
setState(90);
match(T__11);
setState(91);
ekfrasi(0);
}
}
}
setState(96);
_errHandler.sync(this);
_alt = getInterpreter().adaptivePredict(_input,6,_ctx);
}
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class IfContext extends ParserRuleContext {
public SynthikiContext synthiki() {
return getRuleContext(SynthikiContext.class,0);
}
public List<DilosiContext> dilosi() {
return getRuleContexts(DilosiContext.class);
}
public DilosiContext dilosi(int i) {
return getRuleContext(DilosiContext.class,i);
}
public IfContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_if; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterIf(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitIf(this);
}
}
public final IfContext if_() throws RecognitionException {
IfContext _localctx = new IfContext(_ctx, getState());
enterRule(_localctx, 20, RULE_if);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(97);
match(T__13);
setState(98);
synthiki();
setState(100);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(99);
dilosi();
}
}
setState(102);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & 274877989366L) != 0) );
setState(113);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__14) {
{
setState(104);
match(T__14);
setState(111);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__9) {
{
setState(105);
match(T__9);
setState(107);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(106);
dilosi();
}
}
setState(109);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & 274877989366L) != 0) );
}
}
}
}
setState(115);
match(T__10);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class WhileContext extends ParserRuleContext {
public SynthikiContext synthiki() {
return getRuleContext(SynthikiContext.class,0);
}
public List<DilosiContext> dilosi() {
return getRuleContexts(DilosiContext.class);
}
public DilosiContext dilosi(int i) {
return getRuleContext(DilosiContext.class,i);
}
public WhileContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_while; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterWhile(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitWhile(this);
}
}
public final WhileContext while_() throws RecognitionException {
WhileContext _localctx = new WhileContext(_ctx, getState());
enterRule(_localctx, 22, RULE_while);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(117);
match(T__15);
setState(118);
synthiki();
setState(119);
match(T__9);
setState(121);
_errHandler.sync(this);
_la = _input.LA(1);
do {
{
{
setState(120);
dilosi();
}
}
setState(123);
_errHandler.sync(this);
_la = _input.LA(1);
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & 274877989366L) != 0) );
setState(125);
match(T__10);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class SynthikiContext extends ParserRuleContext {
public List<EkfrasiContext> ekfrasi() {
return getRuleContexts(EkfrasiContext.class);
}
public EkfrasiContext ekfrasi(int i) {
return getRuleContext(EkfrasiContext.class,i);
}
public SygkritisContext sygkritis() {
return getRuleContext(SygkritisContext.class,0);
}
public SynthikiContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_synthiki; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterSynthiki(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitSynthiki(this);
}
}
public final SynthikiContext synthiki() throws RecognitionException {
SynthikiContext _localctx = new SynthikiContext(_ctx, getState());
enterRule(_localctx, 24, RULE_synthiki);
try {
enterOuterAlt(_localctx, 1);
{
setState(127);
ekfrasi(0);
setState(128);
sygkritis();
setState(129);
ekfrasi(0);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class SygkritisContext extends ParserRuleContext {
public SygkritisContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_sygkritis; }
public SygkritisContext() { }
public void copyFrom(SygkritisContext ctx) {
super.copyFrom(ctx);
}
}
@SuppressWarnings("CheckReturnValue")
public static class IsoContext extends SygkritisContext {
public IsoContext(SygkritisContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterIso(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitIso(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class SynwnymoMikroterouContext extends SygkritisContext {
public SynwnymoMikroterouContext(SygkritisContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterSynwnymoMikroterou(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitSynwnymoMikroterou(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class SynwnymoMegalyterouContext extends SygkritisContext {
public SynwnymoMegalyterouContext(SygkritisContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterSynwnymoMegalyterou(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).exitSynwnymoMegalyterou(this);
}
}
@SuppressWarnings("CheckReturnValue")
public static class DiaforoContext extends SygkritisContext {
public DiaforoContext(SygkritisContext ctx) { copyFrom(ctx); }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof TabloidListener ) ((TabloidListener)listener).enterDiaforo(this);
}
@Override
public void exitRule(ParseTreeListener listener) {