Project

General

Profile

1
// $ANTLR 3.0.1 Cql.g3 2013-07-19 13:56:26
2

    
3
	package eu.dnetlib.utils.cql;
4

    
5

    
6
import org.antlr.runtime.*;
7

    
8
public class CqlLexer extends Lexer {
9
    public static final int PROX=7;
10
    public static final int WHITESPACE=15;
11
    public static final int NOT=6;
12
    public static final int AND=4;
13
    public static final int Tokens=25;
14
    public static final int T24=24;
15
    public static final int EOF=-1;
16
    public static final int T23=23;
17
    public static final int T22=22;
18
    public static final int T21=21;
19
    public static final int T20=20;
20
    public static final int QUOTE=14;
21
    public static final int ANY=11;
22
    public static final int IDENTIFIER=12;
23
    public static final int ALL=10;
24
    public static final int OR=5;
25
    public static final int WITHIN=8;
26
    public static final int EXACT=9;
27
    public static final int T16=16;
28
    public static final int T17=17;
29
    public static final int T18=18;
30
    public static final int T19=19;
31
    public static final int STRING=13;
32

    
33
      @Override
34
      public void reportError(RecognitionException e) {
35
        throw new CqlRuntimeException("Lexer Error", e);
36
      }
37

    
38
    public CqlLexer() {;} 
39
    public CqlLexer(CharStream input) {
40
        super(input);
41
    }
42
    public String getGrammarFileName() { return "Cql.g3"; }
43

    
44
    // $ANTLR start T16
45
    public final void mT16() throws RecognitionException {
46
        try {
47
            int _type = T16;
48
            // Cql.g3:16:5: ( '>' )
49
            // Cql.g3:16:7: '>'
50
            {
51
            match('>'); 
52

    
53
            }
54

    
55
            this.type = _type;
56
        }
57
        finally {
58
        }
59
    }
60
    // $ANTLR end T16
61

    
62
    // $ANTLR start T17
63
    public final void mT17() throws RecognitionException {
64
        try {
65
            int _type = T17;
66
            // Cql.g3:17:5: ( '=' )
67
            // Cql.g3:17:7: '='
68
            {
69
            match('='); 
70

    
71
            }
72

    
73
            this.type = _type;
74
        }
75
        finally {
76
        }
77
    }
78
    // $ANTLR end T17
79

    
80
    // $ANTLR start T18
81
    public final void mT18() throws RecognitionException {
82
        try {
83
            int _type = T18;
84
            // Cql.g3:18:5: ( '/' )
85
            // Cql.g3:18:7: '/'
86
            {
87
            match('/'); 
88

    
89
            }
90

    
91
            this.type = _type;
92
        }
93
        finally {
94
        }
95
    }
96
    // $ANTLR end T18
97

    
98
    // $ANTLR start T19
99
    public final void mT19() throws RecognitionException {
100
        try {
101
            int _type = T19;
102
            // Cql.g3:19:5: ( '(' )
103
            // Cql.g3:19:7: '('
104
            {
105
            match('('); 
106

    
107
            }
108

    
109
            this.type = _type;
110
        }
111
        finally {
112
        }
113
    }
114
    // $ANTLR end T19
115

    
116
    // $ANTLR start T20
117
    public final void mT20() throws RecognitionException {
118
        try {
119
            int _type = T20;
120
            // Cql.g3:20:5: ( ')' )
121
            // Cql.g3:20:7: ')'
122
            {
123
            match(')'); 
124

    
125
            }
126

    
127
            this.type = _type;
128
        }
129
        finally {
130
        }
131
    }
132
    // $ANTLR end T20
133

    
134
    // $ANTLR start T21
135
    public final void mT21() throws RecognitionException {
136
        try {
137
            int _type = T21;
138
            // Cql.g3:21:5: ( '<' )
139
            // Cql.g3:21:7: '<'
140
            {
141
            match('<'); 
142

    
143
            }
144

    
145
            this.type = _type;
146
        }
147
        finally {
148
        }
149
    }
150
    // $ANTLR end T21
151

    
152
    // $ANTLR start T22
153
    public final void mT22() throws RecognitionException {
154
        try {
155
            int _type = T22;
156
            // Cql.g3:22:5: ( '>=' )
157
            // Cql.g3:22:7: '>='
158
            {
159
            match(">="); 
160

    
161

    
162
            }
163

    
164
            this.type = _type;
165
        }
166
        finally {
167
        }
168
    }
169
    // $ANTLR end T22
170

    
171
    // $ANTLR start T23
172
    public final void mT23() throws RecognitionException {
173
        try {
174
            int _type = T23;
175
            // Cql.g3:23:5: ( '<=' )
176
            // Cql.g3:23:7: '<='
177
            {
178
            match("<="); 
179

    
180

    
181
            }
182

    
183
            this.type = _type;
184
        }
185
        finally {
186
        }
187
    }
188
    // $ANTLR end T23
189

    
190
    // $ANTLR start T24
191
    public final void mT24() throws RecognitionException {
192
        try {
193
            int _type = T24;
194
            // Cql.g3:24:5: ( '<>' )
195
            // Cql.g3:24:7: '<>'
196
            {
197
            match("<>"); 
198

    
199

    
200
            }
201

    
202
            this.type = _type;
203
        }
204
        finally {
205
        }
206
    }
207
    // $ANTLR end T24
208

    
209
    // $ANTLR start QUOTE
210
    public final void mQUOTE() throws RecognitionException {
211
        try {
212
            int _type = QUOTE;
213
            // Cql.g3:118:7: ( '\"' )
214
            // Cql.g3:118:9: '\"'
215
            {
216
            match('\"'); 
217

    
218
            }
219

    
220
            this.type = _type;
221
        }
222
        finally {
223
        }
224
    }
225
    // $ANTLR end QUOTE
226

    
227
    // $ANTLR start WHITESPACE
228
    public final void mWHITESPACE() throws RecognitionException {
229
        try {
230
            int _type = WHITESPACE;
231
            // Cql.g3:119:12: ( ( ' ' | '\\t' | '\\r' | '\\n' | '\\f' ) )
232
            // Cql.g3:119:14: ( ' ' | '\\t' | '\\r' | '\\n' | '\\f' )
233
            {
234
            if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||(input.LA(1)>='\f' && input.LA(1)<='\r')||input.LA(1)==' ' ) {
235
                input.consume();
236

    
237
            }
238
            else {
239
                MismatchedSetException mse =
240
                    new MismatchedSetException(null,input);
241
                recover(mse);    throw mse;
242
            }
243

    
244
            skip();
245

    
246
            }
247

    
248
            this.type = _type;
249
        }
250
        finally {
251
        }
252
    }
253
    // $ANTLR end WHITESPACE
254

    
255
    // $ANTLR start STRING
256
    public final void mSTRING() throws RecognitionException {
257
        try {
258
            int _type = STRING;
259
            // Cql.g3:129:8: ( QUOTE ( '\\\\' QUOTE | ~ ( QUOTE ) )* QUOTE )
260
            // Cql.g3:130:3: QUOTE ( '\\\\' QUOTE | ~ ( QUOTE ) )* QUOTE
261
            {
262
            mQUOTE(); 
263
            // Cql.g3:130:10: ( '\\\\' QUOTE | ~ ( QUOTE ) )*
264
            loop1:
265
            do {
266
                int alt1=3;
267
                int LA1_0 = input.LA(1);
268

    
269
                if ( (LA1_0=='\\') ) {
270
                    int LA1_2 = input.LA(2);
271

    
272
                    if ( (LA1_2=='\"') ) {
273
                        int LA1_4 = input.LA(3);
274

    
275
                        if ( ((LA1_4>='\u0000' && LA1_4<='\uFFFE')) ) {
276
                            alt1=1;
277
                        }
278

    
279
                        else {
280
                            alt1=2;
281
                        }
282

    
283
                    }
284
                    else if ( ((LA1_2>='\u0000' && LA1_2<='!')||(LA1_2>='#' && LA1_2<='\uFFFE')) ) {
285
                        alt1=2;
286
                    }
287

    
288

    
289
                }
290
                else if ( ((LA1_0>='\u0000' && LA1_0<='!')||(LA1_0>='#' && LA1_0<='[')||(LA1_0>=']' && LA1_0<='\uFFFE')) ) {
291
                    alt1=2;
292
                }
293

    
294

    
295
                switch (alt1) {
296
            	case 1 :
297
            	    // Cql.g3:130:12: '\\\\' QUOTE
298
            	    {
299
            	    match('\\'); 
300
            	    mQUOTE(); 
301

    
302
            	    }
303
            	    break;
304
            	case 2 :
305
            	    // Cql.g3:130:26: ~ ( QUOTE )
306
            	    {
307
            	    if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='\uFFFE') ) {
308
            	        input.consume();
309

    
310
            	    }
311
            	    else {
312
            	        MismatchedSetException mse =
313
            	            new MismatchedSetException(null,input);
314
            	        recover(mse);    throw mse;
315
            	    }
316

    
317

    
318
            	    }
319
            	    break;
320

    
321
            	default :
322
            	    break loop1;
323
                }
324
            } while (true);
325

    
326
            mQUOTE(); 
327

    
328
            }
329

    
330
            this.type = _type;
331
        }
332
        finally {
333
        }
334
    }
335
    // $ANTLR end STRING
336

    
337
    // $ANTLR start AND
338
    public final void mAND() throws RecognitionException {
339
        try {
340
            int _type = AND;
341
            // Cql.g3:132:5: ( ( 'A' | 'a' ) ( 'N' | 'n' ) ( 'D' | 'd' ) )
342
            // Cql.g3:132:7: ( 'A' | 'a' ) ( 'N' | 'n' ) ( 'D' | 'd' )
343
            {
344
            if ( input.LA(1)=='A'||input.LA(1)=='a' ) {
345
                input.consume();
346

    
347
            }
348
            else {
349
                MismatchedSetException mse =
350
                    new MismatchedSetException(null,input);
351
                recover(mse);    throw mse;
352
            }
353

    
354
            if ( input.LA(1)=='N'||input.LA(1)=='n' ) {
355
                input.consume();
356

    
357
            }
358
            else {
359
                MismatchedSetException mse =
360
                    new MismatchedSetException(null,input);
361
                recover(mse);    throw mse;
362
            }
363

    
364
            if ( input.LA(1)=='D'||input.LA(1)=='d' ) {
365
                input.consume();
366

    
367
            }
368
            else {
369
                MismatchedSetException mse =
370
                    new MismatchedSetException(null,input);
371
                recover(mse);    throw mse;
372
            }
373

    
374

    
375
            }
376

    
377
            this.type = _type;
378
        }
379
        finally {
380
        }
381
    }
382
    // $ANTLR end AND
383

    
384
    // $ANTLR start OR
385
    public final void mOR() throws RecognitionException {
386
        try {
387
            int _type = OR;
388
            // Cql.g3:133:4: ( ( 'O' | 'o' ) ( 'R' | 'r' ) )
389
            // Cql.g3:133:6: ( 'O' | 'o' ) ( 'R' | 'r' )
390
            {
391
            if ( input.LA(1)=='O'||input.LA(1)=='o' ) {
392
                input.consume();
393

    
394
            }
395
            else {
396
                MismatchedSetException mse =
397
                    new MismatchedSetException(null,input);
398
                recover(mse);    throw mse;
399
            }
400

    
401
            if ( input.LA(1)=='R'||input.LA(1)=='r' ) {
402
                input.consume();
403

    
404
            }
405
            else {
406
                MismatchedSetException mse =
407
                    new MismatchedSetException(null,input);
408
                recover(mse);    throw mse;
409
            }
410

    
411

    
412
            }
413

    
414
            this.type = _type;
415
        }
416
        finally {
417
        }
418
    }
419
    // $ANTLR end OR
420

    
421
    // $ANTLR start NOT
422
    public final void mNOT() throws RecognitionException {
423
        try {
424
            int _type = NOT;
425
            // Cql.g3:134:5: ( ( 'N' | 'n' ) ( 'O' | 'o' ) ( 'T' | 't' ) )
426
            // Cql.g3:134:7: ( 'N' | 'n' ) ( 'O' | 'o' ) ( 'T' | 't' )
427
            {
428
            if ( input.LA(1)=='N'||input.LA(1)=='n' ) {
429
                input.consume();
430

    
431
            }
432
            else {
433
                MismatchedSetException mse =
434
                    new MismatchedSetException(null,input);
435
                recover(mse);    throw mse;
436
            }
437

    
438
            if ( input.LA(1)=='O'||input.LA(1)=='o' ) {
439
                input.consume();
440

    
441
            }
442
            else {
443
                MismatchedSetException mse =
444
                    new MismatchedSetException(null,input);
445
                recover(mse);    throw mse;
446
            }
447

    
448
            if ( input.LA(1)=='T'||input.LA(1)=='t' ) {
449
                input.consume();
450

    
451
            }
452
            else {
453
                MismatchedSetException mse =
454
                    new MismatchedSetException(null,input);
455
                recover(mse);    throw mse;
456
            }
457

    
458

    
459
            }
460

    
461
            this.type = _type;
462
        }
463
        finally {
464
        }
465
    }
466
    // $ANTLR end NOT
467

    
468
    // $ANTLR start PROX
469
    public final void mPROX() throws RecognitionException {
470
        try {
471
            int _type = PROX;
472
            // Cql.g3:135:6: ( ( 'P' | 'p' ) ( 'R' | 'r' ) ( 'O' | 'o' ) ( 'X' | 'x' ) )
473
            // Cql.g3:135:8: ( 'P' | 'p' ) ( 'R' | 'r' ) ( 'O' | 'o' ) ( 'X' | 'x' )
474
            {
475
            if ( input.LA(1)=='P'||input.LA(1)=='p' ) {
476
                input.consume();
477

    
478
            }
479
            else {
480
                MismatchedSetException mse =
481
                    new MismatchedSetException(null,input);
482
                recover(mse);    throw mse;
483
            }
484

    
485
            if ( input.LA(1)=='R'||input.LA(1)=='r' ) {
486
                input.consume();
487

    
488
            }
489
            else {
490
                MismatchedSetException mse =
491
                    new MismatchedSetException(null,input);
492
                recover(mse);    throw mse;
493
            }
494

    
495
            if ( input.LA(1)=='O'||input.LA(1)=='o' ) {
496
                input.consume();
497

    
498
            }
499
            else {
500
                MismatchedSetException mse =
501
                    new MismatchedSetException(null,input);
502
                recover(mse);    throw mse;
503
            }
504

    
505
            if ( input.LA(1)=='X'||input.LA(1)=='x' ) {
506
                input.consume();
507

    
508
            }
509
            else {
510
                MismatchedSetException mse =
511
                    new MismatchedSetException(null,input);
512
                recover(mse);    throw mse;
513
            }
514

    
515

    
516
            }
517

    
518
            this.type = _type;
519
        }
520
        finally {
521
        }
522
    }
523
    // $ANTLR end PROX
524

    
525
    // $ANTLR start WITHIN
526
    public final void mWITHIN() throws RecognitionException {
527
        try {
528
            int _type = WITHIN;
529
            // Cql.g3:136:8: ( ( 'W' | 'w' ) ( 'I' | 'i' ) ( 'T' | 't' ) ( 'H' | 'h' ) ( 'I' | 'i' ) ( 'N' | 'n' ) )
530
            // Cql.g3:136:10: ( 'W' | 'w' ) ( 'I' | 'i' ) ( 'T' | 't' ) ( 'H' | 'h' ) ( 'I' | 'i' ) ( 'N' | 'n' )
531
            {
532
            if ( input.LA(1)=='W'||input.LA(1)=='w' ) {
533
                input.consume();
534

    
535
            }
536
            else {
537
                MismatchedSetException mse =
538
                    new MismatchedSetException(null,input);
539
                recover(mse);    throw mse;
540
            }
541

    
542
            if ( input.LA(1)=='I'||input.LA(1)=='i' ) {
543
                input.consume();
544

    
545
            }
546
            else {
547
                MismatchedSetException mse =
548
                    new MismatchedSetException(null,input);
549
                recover(mse);    throw mse;
550
            }
551

    
552
            if ( input.LA(1)=='T'||input.LA(1)=='t' ) {
553
                input.consume();
554

    
555
            }
556
            else {
557
                MismatchedSetException mse =
558
                    new MismatchedSetException(null,input);
559
                recover(mse);    throw mse;
560
            }
561

    
562
            if ( input.LA(1)=='H'||input.LA(1)=='h' ) {
563
                input.consume();
564

    
565
            }
566
            else {
567
                MismatchedSetException mse =
568
                    new MismatchedSetException(null,input);
569
                recover(mse);    throw mse;
570
            }
571

    
572
            if ( input.LA(1)=='I'||input.LA(1)=='i' ) {
573
                input.consume();
574

    
575
            }
576
            else {
577
                MismatchedSetException mse =
578
                    new MismatchedSetException(null,input);
579
                recover(mse);    throw mse;
580
            }
581

    
582
            if ( input.LA(1)=='N'||input.LA(1)=='n' ) {
583
                input.consume();
584

    
585
            }
586
            else {
587
                MismatchedSetException mse =
588
                    new MismatchedSetException(null,input);
589
                recover(mse);    throw mse;
590
            }
591

    
592

    
593
            }
594

    
595
            this.type = _type;
596
        }
597
        finally {
598
        }
599
    }
600
    // $ANTLR end WITHIN
601

    
602
    // $ANTLR start EXACT
603
    public final void mEXACT() throws RecognitionException {
604
        try {
605
            int _type = EXACT;
606
            // Cql.g3:138:7: ( ( 'E' | 'e' ) ( 'X' | 'x' ) ( 'A' | 'a' ) ( 'C' | 'c' ) ( 'T' | 't' ) )
607
            // Cql.g3:138:9: ( 'E' | 'e' ) ( 'X' | 'x' ) ( 'A' | 'a' ) ( 'C' | 'c' ) ( 'T' | 't' )
608
            {
609
            if ( input.LA(1)=='E'||input.LA(1)=='e' ) {
610
                input.consume();
611

    
612
            }
613
            else {
614
                MismatchedSetException mse =
615
                    new MismatchedSetException(null,input);
616
                recover(mse);    throw mse;
617
            }
618

    
619
            if ( input.LA(1)=='X'||input.LA(1)=='x' ) {
620
                input.consume();
621

    
622
            }
623
            else {
624
                MismatchedSetException mse =
625
                    new MismatchedSetException(null,input);
626
                recover(mse);    throw mse;
627
            }
628

    
629
            if ( input.LA(1)=='A'||input.LA(1)=='a' ) {
630
                input.consume();
631

    
632
            }
633
            else {
634
                MismatchedSetException mse =
635
                    new MismatchedSetException(null,input);
636
                recover(mse);    throw mse;
637
            }
638

    
639
            if ( input.LA(1)=='C'||input.LA(1)=='c' ) {
640
                input.consume();
641

    
642
            }
643
            else {
644
                MismatchedSetException mse =
645
                    new MismatchedSetException(null,input);
646
                recover(mse);    throw mse;
647
            }
648

    
649
            if ( input.LA(1)=='T'||input.LA(1)=='t' ) {
650
                input.consume();
651

    
652
            }
653
            else {
654
                MismatchedSetException mse =
655
                    new MismatchedSetException(null,input);
656
                recover(mse);    throw mse;
657
            }
658

    
659

    
660
            }
661

    
662
            this.type = _type;
663
        }
664
        finally {
665
        }
666
    }
667
    // $ANTLR end EXACT
668

    
669
    // $ANTLR start ALL
670
    public final void mALL() throws RecognitionException {
671
        try {
672
            int _type = ALL;
673
            // Cql.g3:139:5: ( ( 'A' | 'a' ) ( 'L' | 'l' ) ( 'L' | 'l' ) )
674
            // Cql.g3:139:7: ( 'A' | 'a' ) ( 'L' | 'l' ) ( 'L' | 'l' )
675
            {
676
            if ( input.LA(1)=='A'||input.LA(1)=='a' ) {
677
                input.consume();
678

    
679
            }
680
            else {
681
                MismatchedSetException mse =
682
                    new MismatchedSetException(null,input);
683
                recover(mse);    throw mse;
684
            }
685

    
686
            if ( input.LA(1)=='L'||input.LA(1)=='l' ) {
687
                input.consume();
688

    
689
            }
690
            else {
691
                MismatchedSetException mse =
692
                    new MismatchedSetException(null,input);
693
                recover(mse);    throw mse;
694
            }
695

    
696
            if ( input.LA(1)=='L'||input.LA(1)=='l' ) {
697
                input.consume();
698

    
699
            }
700
            else {
701
                MismatchedSetException mse =
702
                    new MismatchedSetException(null,input);
703
                recover(mse);    throw mse;
704
            }
705

    
706

    
707
            }
708

    
709
            this.type = _type;
710
        }
711
        finally {
712
        }
713
    }
714
    // $ANTLR end ALL
715

    
716
    // $ANTLR start ANY
717
    public final void mANY() throws RecognitionException {
718
        try {
719
            int _type = ANY;
720
            // Cql.g3:140:5: ( ( 'A' | 'a' ) ( 'N' | 'n' ) ( 'Y' | 'y' ) )
721
            // Cql.g3:140:8: ( 'A' | 'a' ) ( 'N' | 'n' ) ( 'Y' | 'y' )
722
            {
723
            if ( input.LA(1)=='A'||input.LA(1)=='a' ) {
724
                input.consume();
725

    
726
            }
727
            else {
728
                MismatchedSetException mse =
729
                    new MismatchedSetException(null,input);
730
                recover(mse);    throw mse;
731
            }
732

    
733
            if ( input.LA(1)=='N'||input.LA(1)=='n' ) {
734
                input.consume();
735

    
736
            }
737
            else {
738
                MismatchedSetException mse =
739
                    new MismatchedSetException(null,input);
740
                recover(mse);    throw mse;
741
            }
742

    
743
            if ( input.LA(1)=='Y'||input.LA(1)=='y' ) {
744
                input.consume();
745

    
746
            }
747
            else {
748
                MismatchedSetException mse =
749
                    new MismatchedSetException(null,input);
750
                recover(mse);    throw mse;
751
            }
752

    
753

    
754
            }
755

    
756
            this.type = _type;
757
        }
758
        finally {
759
        }
760
    }
761
    // $ANTLR end ANY
762

    
763
    // $ANTLR start IDENTIFIER
764
    public final void mIDENTIFIER() throws RecognitionException {
765
        try {
766
            int _type = IDENTIFIER;
767
            // Cql.g3:153:12: ( (~ ( ' ' | '\\t' | '\\r' | '\\n' | '\\f' | '(' | ')' | '=' | '<' | '>' | '/' | '\"' ) )+ )
768
            // Cql.g3:154:3: (~ ( ' ' | '\\t' | '\\r' | '\\n' | '\\f' | '(' | ')' | '=' | '<' | '>' | '/' | '\"' ) )+
769
            {
770
            // Cql.g3:154:3: (~ ( ' ' | '\\t' | '\\r' | '\\n' | '\\f' | '(' | ')' | '=' | '<' | '>' | '/' | '\"' ) )+
771
            int cnt2=0;
772
            loop2:
773
            do {
774
                int alt2=2;
775
                int LA2_0 = input.LA(1);
776

    
777
                if ( ((LA2_0>='\u0000' && LA2_0<='\b')||LA2_0=='\u000B'||(LA2_0>='\u000E' && LA2_0<='\u001F')||LA2_0=='!'||(LA2_0>='#' && LA2_0<='\'')||(LA2_0>='*' && LA2_0<='.')||(LA2_0>='0' && LA2_0<=';')||(LA2_0>='?' && LA2_0<='\uFFFE')) ) {
778
                    alt2=1;
779
                }
780

    
781

    
782
                switch (alt2) {
783
            	case 1 :
784
            	    // Cql.g3:154:5: ~ ( ' ' | '\\t' | '\\r' | '\\n' | '\\f' | '(' | ')' | '=' | '<' | '>' | '/' | '\"' )
785
            	    {
786
            	    if ( (input.LA(1)>='\u0000' && input.LA(1)<='\b')||input.LA(1)=='\u000B'||(input.LA(1)>='\u000E' && input.LA(1)<='\u001F')||input.LA(1)=='!'||(input.LA(1)>='#' && input.LA(1)<='\'')||(input.LA(1)>='*' && input.LA(1)<='.')||(input.LA(1)>='0' && input.LA(1)<=';')||(input.LA(1)>='?' && input.LA(1)<='\uFFFE') ) {
787
            	        input.consume();
788

    
789
            	    }
790
            	    else {
791
            	        MismatchedSetException mse =
792
            	            new MismatchedSetException(null,input);
793
            	        recover(mse);    throw mse;
794
            	    }
795

    
796

    
797
            	    }
798
            	    break;
799

    
800
            	default :
801
            	    if ( cnt2 >= 1 ) break loop2;
802
                        EarlyExitException eee =
803
                            new EarlyExitException(2, input);
804
                        throw eee;
805
                }
806
                cnt2++;
807
            } while (true);
808

    
809

    
810
            }
811

    
812
            this.type = _type;
813
        }
814
        finally {
815
        }
816
    }
817
    // $ANTLR end IDENTIFIER
818

    
819
    public void mTokens() throws RecognitionException {
820
        // Cql.g3:1:8: ( T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | QUOTE | WHITESPACE | STRING | AND | OR | NOT | PROX | WITHIN | EXACT | ALL | ANY | IDENTIFIER )
821
        int alt3=21;
822
        int LA3_0 = input.LA(1);
823

    
824
        if ( (LA3_0=='>') ) {
825
            int LA3_1 = input.LA(2);
826

    
827
            if ( (LA3_1=='=') ) {
828
                alt3=7;
829
            }
830
            else {
831
                alt3=1;}
832
        }
833
        else if ( (LA3_0=='=') ) {
834
            alt3=2;
835
        }
836
        else if ( (LA3_0=='/') ) {
837
            alt3=3;
838
        }
839
        else if ( (LA3_0=='(') ) {
840
            alt3=4;
841
        }
842
        else if ( (LA3_0==')') ) {
843
            alt3=5;
844
        }
845
        else if ( (LA3_0=='<') ) {
846
            switch ( input.LA(2) ) {
847
            case '=':
848
                {
849
                alt3=8;
850
                }
851
                break;
852
            case '>':
853
                {
854
                alt3=9;
855
                }
856
                break;
857
            default:
858
                alt3=6;}
859

    
860
        }
861
        else if ( (LA3_0=='\"') ) {
862
            int LA3_7 = input.LA(2);
863

    
864
            if ( ((LA3_7>='\u0000' && LA3_7<='\uFFFE')) ) {
865
                alt3=12;
866
            }
867
            else {
868
                alt3=10;}
869
        }
870
        else if ( ((LA3_0>='\t' && LA3_0<='\n')||(LA3_0>='\f' && LA3_0<='\r')||LA3_0==' ') ) {
871
            alt3=11;
872
        }
873
        else if ( (LA3_0=='A'||LA3_0=='a') ) {
874
            switch ( input.LA(2) ) {
875
            case 'N':
876
            case 'n':
877
                {
878
                switch ( input.LA(3) ) {
879
                case 'D':
880
                case 'd':
881
                    {
882
                    int LA3_30 = input.LA(4);
883

    
884
                    if ( ((LA3_30>='\u0000' && LA3_30<='\b')||LA3_30=='\u000B'||(LA3_30>='\u000E' && LA3_30<='\u001F')||LA3_30=='!'||(LA3_30>='#' && LA3_30<='\'')||(LA3_30>='*' && LA3_30<='.')||(LA3_30>='0' && LA3_30<=';')||(LA3_30>='?' && LA3_30<='\uFFFE')) ) {
885
                        alt3=21;
886
                    }
887
                    else {
888
                        alt3=13;}
889
                    }
890
                    break;
891
                case 'Y':
892
                case 'y':
893
                    {
894
                    int LA3_31 = input.LA(4);
895

    
896
                    if ( ((LA3_31>='\u0000' && LA3_31<='\b')||LA3_31=='\u000B'||(LA3_31>='\u000E' && LA3_31<='\u001F')||LA3_31=='!'||(LA3_31>='#' && LA3_31<='\'')||(LA3_31>='*' && LA3_31<='.')||(LA3_31>='0' && LA3_31<=';')||(LA3_31>='?' && LA3_31<='\uFFFE')) ) {
897
                        alt3=21;
898
                    }
899
                    else {
900
                        alt3=20;}
901
                    }
902
                    break;
903
                default:
904
                    alt3=21;}
905

    
906
                }
907
                break;
908
            case 'L':
909
            case 'l':
910
                {
911
                int LA3_24 = input.LA(3);
912

    
913
                if ( (LA3_24=='L'||LA3_24=='l') ) {
914
                    int LA3_32 = input.LA(4);
915

    
916
                    if ( ((LA3_32>='\u0000' && LA3_32<='\b')||LA3_32=='\u000B'||(LA3_32>='\u000E' && LA3_32<='\u001F')||LA3_32=='!'||(LA3_32>='#' && LA3_32<='\'')||(LA3_32>='*' && LA3_32<='.')||(LA3_32>='0' && LA3_32<=';')||(LA3_32>='?' && LA3_32<='\uFFFE')) ) {
917
                        alt3=21;
918
                    }
919
                    else {
920
                        alt3=19;}
921
                }
922
                else {
923
                    alt3=21;}
924
                }
925
                break;
926
            default:
927
                alt3=21;}
928

    
929
        }
930
        else if ( (LA3_0=='O'||LA3_0=='o') ) {
931
            int LA3_10 = input.LA(2);
932

    
933
            if ( (LA3_10=='R'||LA3_10=='r') ) {
934
                int LA3_25 = input.LA(3);
935

    
936
                if ( ((LA3_25>='\u0000' && LA3_25<='\b')||LA3_25=='\u000B'||(LA3_25>='\u000E' && LA3_25<='\u001F')||LA3_25=='!'||(LA3_25>='#' && LA3_25<='\'')||(LA3_25>='*' && LA3_25<='.')||(LA3_25>='0' && LA3_25<=';')||(LA3_25>='?' && LA3_25<='\uFFFE')) ) {
937
                    alt3=21;
938
                }
939
                else {
940
                    alt3=14;}
941
            }
942
            else {
943
                alt3=21;}
944
        }
945
        else if ( (LA3_0=='N'||LA3_0=='n') ) {
946
            int LA3_11 = input.LA(2);
947

    
948
            if ( (LA3_11=='O'||LA3_11=='o') ) {
949
                int LA3_26 = input.LA(3);
950

    
951
                if ( (LA3_26=='T'||LA3_26=='t') ) {
952
                    int LA3_34 = input.LA(4);
953

    
954
                    if ( ((LA3_34>='\u0000' && LA3_34<='\b')||LA3_34=='\u000B'||(LA3_34>='\u000E' && LA3_34<='\u001F')||LA3_34=='!'||(LA3_34>='#' && LA3_34<='\'')||(LA3_34>='*' && LA3_34<='.')||(LA3_34>='0' && LA3_34<=';')||(LA3_34>='?' && LA3_34<='\uFFFE')) ) {
955
                        alt3=21;
956
                    }
957
                    else {
958
                        alt3=15;}
959
                }
960
                else {
961
                    alt3=21;}
962
            }
963
            else {
964
                alt3=21;}
965
        }
966
        else if ( (LA3_0=='P'||LA3_0=='p') ) {
967
            int LA3_12 = input.LA(2);
968

    
969
            if ( (LA3_12=='R'||LA3_12=='r') ) {
970
                int LA3_27 = input.LA(3);
971

    
972
                if ( (LA3_27=='O'||LA3_27=='o') ) {
973
                    int LA3_35 = input.LA(4);
974

    
975
                    if ( (LA3_35=='X'||LA3_35=='x') ) {
976
                        int LA3_42 = input.LA(5);
977

    
978
                        if ( ((LA3_42>='\u0000' && LA3_42<='\b')||LA3_42=='\u000B'||(LA3_42>='\u000E' && LA3_42<='\u001F')||LA3_42=='!'||(LA3_42>='#' && LA3_42<='\'')||(LA3_42>='*' && LA3_42<='.')||(LA3_42>='0' && LA3_42<=';')||(LA3_42>='?' && LA3_42<='\uFFFE')) ) {
979
                            alt3=21;
980
                        }
981
                        else {
982
                            alt3=16;}
983
                    }
984
                    else {
985
                        alt3=21;}
986
                }
987
                else {
988
                    alt3=21;}
989
            }
990
            else {
991
                alt3=21;}
992
        }
993
        else if ( (LA3_0=='W'||LA3_0=='w') ) {
994
            int LA3_13 = input.LA(2);
995

    
996
            if ( (LA3_13=='I'||LA3_13=='i') ) {
997
                int LA3_28 = input.LA(3);
998

    
999
                if ( (LA3_28=='T'||LA3_28=='t') ) {
1000
                    int LA3_36 = input.LA(4);
1001

    
1002
                    if ( (LA3_36=='H'||LA3_36=='h') ) {
1003
                        int LA3_43 = input.LA(5);
1004

    
1005
                        if ( (LA3_43=='I'||LA3_43=='i') ) {
1006
                            int LA3_46 = input.LA(6);
1007

    
1008
                            if ( (LA3_46=='N'||LA3_46=='n') ) {
1009
                                int LA3_48 = input.LA(7);
1010

    
1011
                                if ( ((LA3_48>='\u0000' && LA3_48<='\b')||LA3_48=='\u000B'||(LA3_48>='\u000E' && LA3_48<='\u001F')||LA3_48=='!'||(LA3_48>='#' && LA3_48<='\'')||(LA3_48>='*' && LA3_48<='.')||(LA3_48>='0' && LA3_48<=';')||(LA3_48>='?' && LA3_48<='\uFFFE')) ) {
1012
                                    alt3=21;
1013
                                }
1014
                                else {
1015
                                    alt3=17;}
1016
                            }
1017
                            else {
1018
                                alt3=21;}
1019
                        }
1020
                        else {
1021
                            alt3=21;}
1022
                    }
1023
                    else {
1024
                        alt3=21;}
1025
                }
1026
                else {
1027
                    alt3=21;}
1028
            }
1029
            else {
1030
                alt3=21;}
1031
        }
1032
        else if ( (LA3_0=='E'||LA3_0=='e') ) {
1033
            int LA3_14 = input.LA(2);
1034

    
1035
            if ( (LA3_14=='X'||LA3_14=='x') ) {
1036
                int LA3_29 = input.LA(3);
1037

    
1038
                if ( (LA3_29=='A'||LA3_29=='a') ) {
1039
                    int LA3_37 = input.LA(4);
1040

    
1041
                    if ( (LA3_37=='C'||LA3_37=='c') ) {
1042
                        int LA3_44 = input.LA(5);
1043

    
1044
                        if ( (LA3_44=='T'||LA3_44=='t') ) {
1045
                            int LA3_47 = input.LA(6);
1046

    
1047
                            if ( ((LA3_47>='\u0000' && LA3_47<='\b')||LA3_47=='\u000B'||(LA3_47>='\u000E' && LA3_47<='\u001F')||LA3_47=='!'||(LA3_47>='#' && LA3_47<='\'')||(LA3_47>='*' && LA3_47<='.')||(LA3_47>='0' && LA3_47<=';')||(LA3_47>='?' && LA3_47<='\uFFFE')) ) {
1048
                                alt3=21;
1049
                            }
1050
                            else {
1051
                                alt3=18;}
1052
                        }
1053
                        else {
1054
                            alt3=21;}
1055
                    }
1056
                    else {
1057
                        alt3=21;}
1058
                }
1059
                else {
1060
                    alt3=21;}
1061
            }
1062
            else {
1063
                alt3=21;}
1064
        }
1065
        else if ( ((LA3_0>='\u0000' && LA3_0<='\b')||LA3_0=='\u000B'||(LA3_0>='\u000E' && LA3_0<='\u001F')||LA3_0=='!'||(LA3_0>='#' && LA3_0<='\'')||(LA3_0>='*' && LA3_0<='.')||(LA3_0>='0' && LA3_0<=';')||(LA3_0>='?' && LA3_0<='@')||(LA3_0>='B' && LA3_0<='D')||(LA3_0>='F' && LA3_0<='M')||(LA3_0>='Q' && LA3_0<='V')||(LA3_0>='X' && LA3_0<='`')||(LA3_0>='b' && LA3_0<='d')||(LA3_0>='f' && LA3_0<='m')||(LA3_0>='q' && LA3_0<='v')||(LA3_0>='x' && LA3_0<='\uFFFE')) ) {
1066
            alt3=21;
1067
        }
1068
        else {
1069
            NoViableAltException nvae =
1070
                new NoViableAltException("1:1: Tokens : ( T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | QUOTE | WHITESPACE | STRING | AND | OR | NOT | PROX | WITHIN | EXACT | ALL | ANY | IDENTIFIER );", 3, 0, input);
1071

    
1072
            throw nvae;
1073
        }
1074
        switch (alt3) {
1075
            case 1 :
1076
                // Cql.g3:1:10: T16
1077
                {
1078
                mT16(); 
1079

    
1080
                }
1081
                break;
1082
            case 2 :
1083
                // Cql.g3:1:14: T17
1084
                {
1085
                mT17(); 
1086

    
1087
                }
1088
                break;
1089
            case 3 :
1090
                // Cql.g3:1:18: T18
1091
                {
1092
                mT18(); 
1093

    
1094
                }
1095
                break;
1096
            case 4 :
1097
                // Cql.g3:1:22: T19
1098
                {
1099
                mT19(); 
1100

    
1101
                }
1102
                break;
1103
            case 5 :
1104
                // Cql.g3:1:26: T20
1105
                {
1106
                mT20(); 
1107

    
1108
                }
1109
                break;
1110
            case 6 :
1111
                // Cql.g3:1:30: T21
1112
                {
1113
                mT21(); 
1114

    
1115
                }
1116
                break;
1117
            case 7 :
1118
                // Cql.g3:1:34: T22
1119
                {
1120
                mT22(); 
1121

    
1122
                }
1123
                break;
1124
            case 8 :
1125
                // Cql.g3:1:38: T23
1126
                {
1127
                mT23(); 
1128

    
1129
                }
1130
                break;
1131
            case 9 :
1132
                // Cql.g3:1:42: T24
1133
                {
1134
                mT24(); 
1135

    
1136
                }
1137
                break;
1138
            case 10 :
1139
                // Cql.g3:1:46: QUOTE
1140
                {
1141
                mQUOTE(); 
1142

    
1143
                }
1144
                break;
1145
            case 11 :
1146
                // Cql.g3:1:52: WHITESPACE
1147
                {
1148
                mWHITESPACE(); 
1149

    
1150
                }
1151
                break;
1152
            case 12 :
1153
                // Cql.g3:1:63: STRING
1154
                {
1155
                mSTRING(); 
1156

    
1157
                }
1158
                break;
1159
            case 13 :
1160
                // Cql.g3:1:70: AND
1161
                {
1162
                mAND(); 
1163

    
1164
                }
1165
                break;
1166
            case 14 :
1167
                // Cql.g3:1:74: OR
1168
                {
1169
                mOR(); 
1170

    
1171
                }
1172
                break;
1173
            case 15 :
1174
                // Cql.g3:1:77: NOT
1175
                {
1176
                mNOT(); 
1177

    
1178
                }
1179
                break;
1180
            case 16 :
1181
                // Cql.g3:1:81: PROX
1182
                {
1183
                mPROX(); 
1184

    
1185
                }
1186
                break;
1187
            case 17 :
1188
                // Cql.g3:1:86: WITHIN
1189
                {
1190
                mWITHIN(); 
1191

    
1192
                }
1193
                break;
1194
            case 18 :
1195
                // Cql.g3:1:93: EXACT
1196
                {
1197
                mEXACT(); 
1198

    
1199
                }
1200
                break;
1201
            case 19 :
1202
                // Cql.g3:1:99: ALL
1203
                {
1204
                mALL(); 
1205

    
1206
                }
1207
                break;
1208
            case 20 :
1209
                // Cql.g3:1:103: ANY
1210
                {
1211
                mANY(); 
1212

    
1213
                }
1214
                break;
1215
            case 21 :
1216
                // Cql.g3:1:107: IDENTIFIER
1217
                {
1218
                mIDENTIFIER(); 
1219

    
1220
                }
1221
                break;
1222

    
1223
        }
1224

    
1225
    }
1226

    
1227

    
1228
 
1229

    
1230
}
(5-5/10)