Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2b3038a8218dc98dff318544c0448f134a86522e (plain) (blame)
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
// $ANTLR 3.2 Sep 23, 2009 12:02:23 ApplicabilityGrammar.g 2017-04-26 12:09:41
package org.eclipse.osee.framework.core.grammar;

import org.antlr.runtime.BaseRecognizer;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.DFA;
import org.antlr.runtime.EarlyExitException;
import org.antlr.runtime.Lexer;
import org.antlr.runtime.MismatchedSetException;
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.RecognizerSharedState;

public class ApplicabilityGrammarLexer extends Lexer {
   public static final int T__9 = 9;
   public static final int T__8 = 8;
   public static final int OR = 6;
   public static final int AND = 5;
   public static final int T__11 = 11;
   public static final int T__12 = 12;
   public static final int T__13 = 13;
   public static final int ID = 4;
   public static final int WS = 7;
   public static final int EOF = -1;
   public static final int T__10 = 10;

   // delegates
   // delegators

   public ApplicabilityGrammarLexer() {
      ;
   }

   public ApplicabilityGrammarLexer(CharStream input) {
      this(input, new RecognizerSharedState());
   }

   public ApplicabilityGrammarLexer(CharStream input, RecognizerSharedState state) {
      super(input, state);

   }

   public String getGrammarFileName() {
      return "ApplicabilityGrammar.g";
   }

   // $ANTLR start "T__8"
   public final void mT__8() throws RecognitionException {
      try {
         int _type = T__8;
         int _channel = DEFAULT_TOKEN_CHANNEL;
         // ApplicabilityGrammar.g:3:6: ( 'CONFIGURATION[' )
         // ApplicabilityGrammar.g:3:8: 'CONFIGURATION['
         {
            match("CONFIGURATION[");

         }

         state.type = _type;
         state.channel = _channel;
      } finally {
      }
   }
   // $ANTLR end "T__8"

   // $ANTLR start "T__9"
   public final void mT__9() throws RecognitionException {
      try {
         int _type = T__9;
         int _channel = DEFAULT_TOKEN_CHANNEL;
         // ApplicabilityGrammar.g:4:6: ( ']' )
         // ApplicabilityGrammar.g:4:8: ']'
         {
            match(']');

         }

         state.type = _type;
         state.channel = _channel;
      } finally {
      }
   }
   // $ANTLR end "T__9"

   // $ANTLR start "T__10"
   public final void mT__10() throws RecognitionException {
      try {
         int _type = T__10;
         int _channel = DEFAULT_TOKEN_CHANNEL;
         // ApplicabilityGrammar.g:5:7: ( 'FEATURE[' )
         // ApplicabilityGrammar.g:5:9: 'FEATURE['
         {
            match("FEATURE[");

         }

         state.type = _type;
         state.channel = _channel;
      } finally {
      }
   }
   // $ANTLR end "T__10"

   // $ANTLR start "T__11"
   public final void mT__11() throws RecognitionException {
      try {
         int _type = T__11;
         int _channel = DEFAULT_TOKEN_CHANNEL;
         // ApplicabilityGrammar.g:6:7: ( '=' )
         // ApplicabilityGrammar.g:6:9: '='
         {
            match('=');

         }

         state.type = _type;
         state.channel = _channel;
      } finally {
      }
   }
   // $ANTLR end "T__11"

   // $ANTLR start "T__12"
   public final void mT__12() throws RecognitionException {
      try {
         int _type = T__12;
         int _channel = DEFAULT_TOKEN_CHANNEL;
         // ApplicabilityGrammar.g:7:7: ( '(' )
         // ApplicabilityGrammar.g:7:9: '('
         {
            match('(');

         }

         state.type = _type;
         state.channel = _channel;
      } finally {
      }
   }
   // $ANTLR end "T__12"

   // $ANTLR start "T__13"
   public final void mT__13() throws RecognitionException {
      try {
         int _type = T__13;
         int _channel = DEFAULT_TOKEN_CHANNEL;
         // ApplicabilityGrammar.g:8:7: ( ')' )
         // ApplicabilityGrammar.g:8:9: ')'
         {
            match(')');

         }

         state.type = _type;
         state.channel = _channel;
      } finally {
      }
   }
   // $ANTLR end "T__13"

   // $ANTLR start "OR"
   public final void mOR() throws RecognitionException {
      try {
         int _type = OR;
         int _channel = DEFAULT_TOKEN_CHANNEL;
         // ApplicabilityGrammar.g:76:10: ( '|' )
         // ApplicabilityGrammar.g:76:12: '|'
         {
            match('|');

         }

         state.type = _type;
         state.channel = _channel;
      } finally {
      }
   }
   // $ANTLR end "OR"

   // $ANTLR start "AND"
   public final void mAND() throws RecognitionException {
      try {
         int _type = AND;
         int _channel = DEFAULT_TOKEN_CHANNEL;
         // ApplicabilityGrammar.g:77:10: ( '&' )
         // ApplicabilityGrammar.g:77:12: '&'
         {
            match('&');

         }

         state.type = _type;
         state.channel = _channel;
      } finally {
      }
   }
   // $ANTLR end "AND"

   // $ANTLR start "ID"
   public final void mID() throws RecognitionException {
      try {
         int _type = ID;
         int _channel = DEFAULT_TOKEN_CHANNEL;
         // ApplicabilityGrammar.g:78:4: ( ( 'a' .. 'z' | 'A' .. 'Z' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ' ' )* )
         // ApplicabilityGrammar.g:78:6: ( 'a' .. 'z' | 'A' .. 'Z' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ' ' )*
         {
            if ((input.LA(1) >= 'A' && input.LA(1) <= 'Z') || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
               input.consume();

            } else {
               MismatchedSetException mse = new MismatchedSetException(null, input);
               recover(mse);
               throw mse;
            }

            // ApplicabilityGrammar.g:78:25: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' | ' ' )*
            loop1: do {
               int alt1 = 2;
               int LA1_0 = input.LA(1);

               if ((LA1_0 == ' ' || LA1_0 == '-' || (LA1_0 >= '0' && LA1_0 <= '9') || (LA1_0 >= 'A' && LA1_0 <= 'Z') || LA1_0 == '_' || (LA1_0 >= 'a' && LA1_0 <= 'z'))) {
                  alt1 = 1;
               }

               switch (alt1) {
                  case 1:
                  // ApplicabilityGrammar.g:
                  {
                     if (input.LA(1) == ' ' || input.LA(
                        1) == '-' || (input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(
                           1) >= 'A' && input.LA(1) <= 'Z') || input.LA(
                              1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
                        input.consume();

                     } else {
                        MismatchedSetException mse = new MismatchedSetException(null, input);
                        recover(mse);
                        throw mse;
                     }

                  }
                     break;

                  default:
                     break loop1;
               }
            } while (true);

         }

         state.type = _type;
         state.channel = _channel;
      } finally {
      }
   }
   // $ANTLR end "ID"

   // $ANTLR start "WS"
   public final void mWS() throws RecognitionException {
      try {
         int _type = WS;
         int _channel = DEFAULT_TOKEN_CHANNEL;
         // ApplicabilityGrammar.g:80:4: ( ( ' ' | '\\r' | '\\t' | '\\n' )+ )
         // ApplicabilityGrammar.g:80:6: ( ' ' | '\\r' | '\\t' | '\\n' )+
         {
            // ApplicabilityGrammar.g:80:6: ( ' ' | '\\r' | '\\t' | '\\n' )+
            int cnt2 = 0;
            loop2: do {
               int alt2 = 2;
               int LA2_0 = input.LA(1);

               if (((LA2_0 >= '\t' && LA2_0 <= '\n') || LA2_0 == '\r' || LA2_0 == ' ')) {
                  alt2 = 1;
               }

               switch (alt2) {
                  case 1:
                  // ApplicabilityGrammar.g:
                  {
                     if ((input.LA(1) >= '\t' && input.LA(1) <= '\n') || input.LA(1) == '\r' || input.LA(1) == ' ') {
                        input.consume();

                     } else {
                        MismatchedSetException mse = new MismatchedSetException(null, input);
                        recover(mse);
                        throw mse;
                     }

                  }
                     break;

                  default:
                     if (cnt2 >= 1) break loop2;
                     EarlyExitException eee = new EarlyExitException(2, input);
                     throw eee;
               }
               cnt2++;
            } while (true);

            _channel = HIDDEN;

         }

         state.type = _type;
         state.channel = _channel;
      } finally {
      }
   }
   // $ANTLR end "WS"

   public void mTokens() throws RecognitionException {
      // ApplicabilityGrammar.g:1:8: ( T__8 | T__9 | T__10 | T__11 | T__12 | T__13 | OR | AND | ID | WS )
      int alt3 = 10;
      alt3 = dfa3.predict(input);
      switch (alt3) {
         case 1:
         // ApplicabilityGrammar.g:1:10: T__8
         {
            mT__8();

         }
            break;
         case 2:
         // ApplicabilityGrammar.g:1:15: T__9
         {
            mT__9();

         }
            break;
         case 3:
         // ApplicabilityGrammar.g:1:20: T__10
         {
            mT__10();

         }
            break;
         case 4:
         // ApplicabilityGrammar.g:1:26: T__11
         {
            mT__11();

         }
            break;
         case 5:
         // ApplicabilityGrammar.g:1:32: T__12
         {
            mT__12();

         }
            break;
         case 6:
         // ApplicabilityGrammar.g:1:38: T__13
         {
            mT__13();

         }
            break;
         case 7:
         // ApplicabilityGrammar.g:1:44: OR
         {
            mOR();

         }
            break;
         case 8:
         // ApplicabilityGrammar.g:1:47: AND
         {
            mAND();

         }
            break;
         case 9:
         // ApplicabilityGrammar.g:1:51: ID
         {
            mID();

         }
            break;
         case 10:
         // ApplicabilityGrammar.g:1:54: WS
         {
            mWS();

         }
            break;

      }

   }

   protected DFA3 dfa3 = new DFA3(this);
   static final String DFA3_eotS = "\1\uffff\1\11\1\uffff\1\11\7\uffff\15\11\1\uffff\5\11\1\uffff";
   static final String DFA3_eofS = "\37\uffff";
   static final String DFA3_minS =
      "\1\11\1\117\1\uffff\1\105\7\uffff\1\116\1\101\1\106\1\124\1\111" + "\1\125\1\107\1\122\1\125\1\105\1\122\1\133\1\101\1\uffff\1\124\1" + "\111\1\117\1\116\1\133\1\uffff";
   static final String DFA3_maxS =
      "\1\174\1\117\1\uffff\1\105\7\uffff\1\116\1\101\1\106\1\124\1\111" + "\1\125\1\107\1\122\1\125\1\105\1\122\1\133\1\101\1\uffff\1\124\1" + "\111\1\117\1\116\1\133\1\uffff";
   static final String DFA3_acceptS =
      "\2\uffff\1\2\1\uffff\1\4\1\5\1\6\1\7\1\10\1\11\1\12\15\uffff\1" + "\3\5\uffff\1\1";
   static final String DFA3_specialS = "\37\uffff}>";
   static final String[] DFA3_transitionS = {
      "\2\12\2\uffff\1\12\22\uffff\1\12\5\uffff\1\10\1\uffff\1\5\1" + "\6\23\uffff\1\4\3\uffff\2\11\1\1\2\11\1\3\24\11\2\uffff\1\2" + "\3\uffff\32\11\1\uffff\1\7",
      "\1\13",
      "",
      "\1\14",
      "",
      "",
      "",
      "",
      "",
      "",
      "",
      "\1\15",
      "\1\16",
      "\1\17",
      "\1\20",
      "\1\21",
      "\1\22",
      "\1\23",
      "\1\24",
      "\1\25",
      "\1\26",
      "\1\27",
      "\1\30",
      "\1\31",
      "",
      "\1\32",
      "\1\33",
      "\1\34",
      "\1\35",
      "\1\36",
      ""};

   static final short[] DFA3_eot = DFA.unpackEncodedString(DFA3_eotS);
   static final short[] DFA3_eof = DFA.unpackEncodedString(DFA3_eofS);
   static final char[] DFA3_min = DFA.unpackEncodedStringToUnsignedChars(DFA3_minS);
   static final char[] DFA3_max = DFA.unpackEncodedStringToUnsignedChars(DFA3_maxS);
   static final short[] DFA3_accept = DFA.unpackEncodedString(DFA3_acceptS);
   static final short[] DFA3_special = DFA.unpackEncodedString(DFA3_specialS);
   static final short[][] DFA3_transition;

   static {
      int numStates = DFA3_transitionS.length;
      DFA3_transition = new short[numStates][];
      for (int i = 0; i < numStates; i++) {
         DFA3_transition[i] = DFA.unpackEncodedString(DFA3_transitionS[i]);
      }
   }

   class DFA3 extends DFA {

      public DFA3(BaseRecognizer recognizer) {
         this.recognizer = recognizer;
         this.decisionNumber = 3;
         this.eot = DFA3_eot;
         this.eof = DFA3_eof;
         this.min = DFA3_min;
         this.max = DFA3_max;
         this.accept = DFA3_accept;
         this.special = DFA3_special;
         this.transition = DFA3_transition;
      }

      public String getDescription() {
         return "1:1: Tokens : ( T__8 | T__9 | T__10 | T__11 | T__12 | T__13 | OR | AND | ID | WS );";
      }
   }

}

Back to the top