diff options
Diffstat (limited to 'org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemLexer.java')
-rw-r--r-- | org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemLexer.java | 1699 |
1 files changed, 1699 insertions, 0 deletions
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemLexer.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemLexer.java new file mode 100644 index 00000000..a0b530c8 --- /dev/null +++ b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemLexer.java | |||
@@ -0,0 +1,1699 @@ | |||
1 | package org.eclipse.viatra.solver.language.parser.antlr.internal; | ||
2 | |||
3 | // Hack: Use our own Lexer superclass by means of import. | ||
4 | // Currently there is no other way to specify the superclass for the lexer. | ||
5 | import org.eclipse.xtext.parser.antlr.Lexer; | ||
6 | |||
7 | |||
8 | import org.antlr.runtime.*; | ||
9 | import java.util.Stack; | ||
10 | import java.util.List; | ||
11 | import java.util.ArrayList; | ||
12 | |||
13 | @SuppressWarnings("all") | ||
14 | public class InternalProblemLexer extends Lexer { | ||
15 | public static final int RULE_STRING=6; | ||
16 | public static final int RULE_SL_COMMENT=8; | ||
17 | public static final int T__19=19; | ||
18 | public static final int T__15=15; | ||
19 | public static final int T__37=37; | ||
20 | public static final int T__16=16; | ||
21 | public static final int T__38=38; | ||
22 | public static final int T__17=17; | ||
23 | public static final int T__39=39; | ||
24 | public static final int T__18=18; | ||
25 | public static final int T__11=11; | ||
26 | public static final int T__33=33; | ||
27 | public static final int T__12=12; | ||
28 | public static final int T__34=34; | ||
29 | public static final int T__13=13; | ||
30 | public static final int T__35=35; | ||
31 | public static final int T__14=14; | ||
32 | public static final int T__36=36; | ||
33 | public static final int EOF=-1; | ||
34 | public static final int T__30=30; | ||
35 | public static final int T__31=31; | ||
36 | public static final int T__32=32; | ||
37 | public static final int RULE_ID=4; | ||
38 | public static final int RULE_WS=9; | ||
39 | public static final int RULE_ANY_OTHER=10; | ||
40 | public static final int T__26=26; | ||
41 | public static final int T__27=27; | ||
42 | public static final int T__28=28; | ||
43 | public static final int RULE_INT=5; | ||
44 | public static final int T__29=29; | ||
45 | public static final int T__22=22; | ||
46 | public static final int RULE_ML_COMMENT=7; | ||
47 | public static final int T__23=23; | ||
48 | public static final int T__24=24; | ||
49 | public static final int T__25=25; | ||
50 | public static final int T__20=20; | ||
51 | public static final int T__21=21; | ||
52 | |||
53 | // delegates | ||
54 | // delegators | ||
55 | |||
56 | public InternalProblemLexer() {;} | ||
57 | public InternalProblemLexer(CharStream input) { | ||
58 | this(input, new RecognizerSharedState()); | ||
59 | } | ||
60 | public InternalProblemLexer(CharStream input, RecognizerSharedState state) { | ||
61 | super(input,state); | ||
62 | |||
63 | } | ||
64 | public String getGrammarFileName() { return "InternalProblem.g"; } | ||
65 | |||
66 | // $ANTLR start "T__11" | ||
67 | public final void mT__11() throws RecognitionException { | ||
68 | try { | ||
69 | int _type = T__11; | ||
70 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
71 | // InternalProblem.g:11:7: ( 'abstract' ) | ||
72 | // InternalProblem.g:11:9: 'abstract' | ||
73 | { | ||
74 | match("abstract"); | ||
75 | |||
76 | |||
77 | } | ||
78 | |||
79 | state.type = _type; | ||
80 | state.channel = _channel; | ||
81 | } | ||
82 | finally { | ||
83 | } | ||
84 | } | ||
85 | // $ANTLR end "T__11" | ||
86 | |||
87 | // $ANTLR start "T__12" | ||
88 | public final void mT__12() throws RecognitionException { | ||
89 | try { | ||
90 | int _type = T__12; | ||
91 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
92 | // InternalProblem.g:12:7: ( 'class' ) | ||
93 | // InternalProblem.g:12:9: 'class' | ||
94 | { | ||
95 | match("class"); | ||
96 | |||
97 | |||
98 | } | ||
99 | |||
100 | state.type = _type; | ||
101 | state.channel = _channel; | ||
102 | } | ||
103 | finally { | ||
104 | } | ||
105 | } | ||
106 | // $ANTLR end "T__12" | ||
107 | |||
108 | // $ANTLR start "T__13" | ||
109 | public final void mT__13() throws RecognitionException { | ||
110 | try { | ||
111 | int _type = T__13; | ||
112 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
113 | // InternalProblem.g:13:7: ( 'extends' ) | ||
114 | // InternalProblem.g:13:9: 'extends' | ||
115 | { | ||
116 | match("extends"); | ||
117 | |||
118 | |||
119 | } | ||
120 | |||
121 | state.type = _type; | ||
122 | state.channel = _channel; | ||
123 | } | ||
124 | finally { | ||
125 | } | ||
126 | } | ||
127 | // $ANTLR end "T__13" | ||
128 | |||
129 | // $ANTLR start "T__14" | ||
130 | public final void mT__14() throws RecognitionException { | ||
131 | try { | ||
132 | int _type = T__14; | ||
133 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
134 | // InternalProblem.g:14:7: ( '[' ) | ||
135 | // InternalProblem.g:14:9: '[' | ||
136 | { | ||
137 | match('['); | ||
138 | |||
139 | } | ||
140 | |||
141 | state.type = _type; | ||
142 | state.channel = _channel; | ||
143 | } | ||
144 | finally { | ||
145 | } | ||
146 | } | ||
147 | // $ANTLR end "T__14" | ||
148 | |||
149 | // $ANTLR start "T__15" | ||
150 | public final void mT__15() throws RecognitionException { | ||
151 | try { | ||
152 | int _type = T__15; | ||
153 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
154 | // InternalProblem.g:15:7: ( ',' ) | ||
155 | // InternalProblem.g:15:9: ',' | ||
156 | { | ||
157 | match(','); | ||
158 | |||
159 | } | ||
160 | |||
161 | state.type = _type; | ||
162 | state.channel = _channel; | ||
163 | } | ||
164 | finally { | ||
165 | } | ||
166 | } | ||
167 | // $ANTLR end "T__15" | ||
168 | |||
169 | // $ANTLR start "T__16" | ||
170 | public final void mT__16() throws RecognitionException { | ||
171 | try { | ||
172 | int _type = T__16; | ||
173 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
174 | // InternalProblem.g:16:7: ( ']' ) | ||
175 | // InternalProblem.g:16:9: ']' | ||
176 | { | ||
177 | match(']'); | ||
178 | |||
179 | } | ||
180 | |||
181 | state.type = _type; | ||
182 | state.channel = _channel; | ||
183 | } | ||
184 | finally { | ||
185 | } | ||
186 | } | ||
187 | // $ANTLR end "T__16" | ||
188 | |||
189 | // $ANTLR start "T__17" | ||
190 | public final void mT__17() throws RecognitionException { | ||
191 | try { | ||
192 | int _type = T__17; | ||
193 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
194 | // InternalProblem.g:17:7: ( '.' ) | ||
195 | // InternalProblem.g:17:9: '.' | ||
196 | { | ||
197 | match('.'); | ||
198 | |||
199 | } | ||
200 | |||
201 | state.type = _type; | ||
202 | state.channel = _channel; | ||
203 | } | ||
204 | finally { | ||
205 | } | ||
206 | } | ||
207 | // $ANTLR end "T__17" | ||
208 | |||
209 | // $ANTLR start "T__18" | ||
210 | public final void mT__18() throws RecognitionException { | ||
211 | try { | ||
212 | int _type = T__18; | ||
213 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
214 | // InternalProblem.g:18:7: ( 'contains' ) | ||
215 | // InternalProblem.g:18:9: 'contains' | ||
216 | { | ||
217 | match("contains"); | ||
218 | |||
219 | |||
220 | } | ||
221 | |||
222 | state.type = _type; | ||
223 | state.channel = _channel; | ||
224 | } | ||
225 | finally { | ||
226 | } | ||
227 | } | ||
228 | // $ANTLR end "T__18" | ||
229 | |||
230 | // $ANTLR start "T__19" | ||
231 | public final void mT__19() throws RecognitionException { | ||
232 | try { | ||
233 | int _type = T__19; | ||
234 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
235 | // InternalProblem.g:19:7: ( 'refers' ) | ||
236 | // InternalProblem.g:19:9: 'refers' | ||
237 | { | ||
238 | match("refers"); | ||
239 | |||
240 | |||
241 | } | ||
242 | |||
243 | state.type = _type; | ||
244 | state.channel = _channel; | ||
245 | } | ||
246 | finally { | ||
247 | } | ||
248 | } | ||
249 | // $ANTLR end "T__19" | ||
250 | |||
251 | // $ANTLR start "T__20" | ||
252 | public final void mT__20() throws RecognitionException { | ||
253 | try { | ||
254 | int _type = T__20; | ||
255 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
256 | // InternalProblem.g:20:7: ( 'opposite' ) | ||
257 | // InternalProblem.g:20:9: 'opposite' | ||
258 | { | ||
259 | match("opposite"); | ||
260 | |||
261 | |||
262 | } | ||
263 | |||
264 | state.type = _type; | ||
265 | state.channel = _channel; | ||
266 | } | ||
267 | finally { | ||
268 | } | ||
269 | } | ||
270 | // $ANTLR end "T__20" | ||
271 | |||
272 | // $ANTLR start "T__21" | ||
273 | public final void mT__21() throws RecognitionException { | ||
274 | try { | ||
275 | int _type = T__21; | ||
276 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
277 | // InternalProblem.g:21:7: ( 'error' ) | ||
278 | // InternalProblem.g:21:9: 'error' | ||
279 | { | ||
280 | match("error"); | ||
281 | |||
282 | |||
283 | } | ||
284 | |||
285 | state.type = _type; | ||
286 | state.channel = _channel; | ||
287 | } | ||
288 | finally { | ||
289 | } | ||
290 | } | ||
291 | // $ANTLR end "T__21" | ||
292 | |||
293 | // $ANTLR start "T__22" | ||
294 | public final void mT__22() throws RecognitionException { | ||
295 | try { | ||
296 | int _type = T__22; | ||
297 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
298 | // InternalProblem.g:22:7: ( 'pred' ) | ||
299 | // InternalProblem.g:22:9: 'pred' | ||
300 | { | ||
301 | match("pred"); | ||
302 | |||
303 | |||
304 | } | ||
305 | |||
306 | state.type = _type; | ||
307 | state.channel = _channel; | ||
308 | } | ||
309 | finally { | ||
310 | } | ||
311 | } | ||
312 | // $ANTLR end "T__22" | ||
313 | |||
314 | // $ANTLR start "T__23" | ||
315 | public final void mT__23() throws RecognitionException { | ||
316 | try { | ||
317 | int _type = T__23; | ||
318 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
319 | // InternalProblem.g:23:7: ( '(' ) | ||
320 | // InternalProblem.g:23:9: '(' | ||
321 | { | ||
322 | match('('); | ||
323 | |||
324 | } | ||
325 | |||
326 | state.type = _type; | ||
327 | state.channel = _channel; | ||
328 | } | ||
329 | finally { | ||
330 | } | ||
331 | } | ||
332 | // $ANTLR end "T__23" | ||
333 | |||
334 | // $ANTLR start "T__24" | ||
335 | public final void mT__24() throws RecognitionException { | ||
336 | try { | ||
337 | int _type = T__24; | ||
338 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
339 | // InternalProblem.g:24:7: ( ')' ) | ||
340 | // InternalProblem.g:24:9: ')' | ||
341 | { | ||
342 | match(')'); | ||
343 | |||
344 | } | ||
345 | |||
346 | state.type = _type; | ||
347 | state.channel = _channel; | ||
348 | } | ||
349 | finally { | ||
350 | } | ||
351 | } | ||
352 | // $ANTLR end "T__24" | ||
353 | |||
354 | // $ANTLR start "T__25" | ||
355 | public final void mT__25() throws RecognitionException { | ||
356 | try { | ||
357 | int _type = T__25; | ||
358 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
359 | // InternalProblem.g:25:7: ( ':=' ) | ||
360 | // InternalProblem.g:25:9: ':=' | ||
361 | { | ||
362 | match(":="); | ||
363 | |||
364 | |||
365 | } | ||
366 | |||
367 | state.type = _type; | ||
368 | state.channel = _channel; | ||
369 | } | ||
370 | finally { | ||
371 | } | ||
372 | } | ||
373 | // $ANTLR end "T__25" | ||
374 | |||
375 | // $ANTLR start "T__26" | ||
376 | public final void mT__26() throws RecognitionException { | ||
377 | try { | ||
378 | int _type = T__26; | ||
379 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
380 | // InternalProblem.g:26:7: ( ';' ) | ||
381 | // InternalProblem.g:26:9: ';' | ||
382 | { | ||
383 | match(';'); | ||
384 | |||
385 | } | ||
386 | |||
387 | state.type = _type; | ||
388 | state.channel = _channel; | ||
389 | } | ||
390 | finally { | ||
391 | } | ||
392 | } | ||
393 | // $ANTLR end "T__26" | ||
394 | |||
395 | // $ANTLR start "T__27" | ||
396 | public final void mT__27() throws RecognitionException { | ||
397 | try { | ||
398 | int _type = T__27; | ||
399 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
400 | // InternalProblem.g:27:7: ( '!' ) | ||
401 | // InternalProblem.g:27:9: '!' | ||
402 | { | ||
403 | match('!'); | ||
404 | |||
405 | } | ||
406 | |||
407 | state.type = _type; | ||
408 | state.channel = _channel; | ||
409 | } | ||
410 | finally { | ||
411 | } | ||
412 | } | ||
413 | // $ANTLR end "T__27" | ||
414 | |||
415 | // $ANTLR start "T__28" | ||
416 | public final void mT__28() throws RecognitionException { | ||
417 | try { | ||
418 | int _type = T__28; | ||
419 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
420 | // InternalProblem.g:28:7: ( '+' ) | ||
421 | // InternalProblem.g:28:9: '+' | ||
422 | { | ||
423 | match('+'); | ||
424 | |||
425 | } | ||
426 | |||
427 | state.type = _type; | ||
428 | state.channel = _channel; | ||
429 | } | ||
430 | finally { | ||
431 | } | ||
432 | } | ||
433 | // $ANTLR end "T__28" | ||
434 | |||
435 | // $ANTLR start "T__29" | ||
436 | public final void mT__29() throws RecognitionException { | ||
437 | try { | ||
438 | int _type = T__29; | ||
439 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
440 | // InternalProblem.g:29:7: ( ':' ) | ||
441 | // InternalProblem.g:29:9: ':' | ||
442 | { | ||
443 | match(':'); | ||
444 | |||
445 | } | ||
446 | |||
447 | state.type = _type; | ||
448 | state.channel = _channel; | ||
449 | } | ||
450 | finally { | ||
451 | } | ||
452 | } | ||
453 | // $ANTLR end "T__29" | ||
454 | |||
455 | // $ANTLR start "T__30" | ||
456 | public final void mT__30() throws RecognitionException { | ||
457 | try { | ||
458 | int _type = T__30; | ||
459 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
460 | // InternalProblem.g:30:7: ( 'scope' ) | ||
461 | // InternalProblem.g:30:9: 'scope' | ||
462 | { | ||
463 | match("scope"); | ||
464 | |||
465 | |||
466 | } | ||
467 | |||
468 | state.type = _type; | ||
469 | state.channel = _channel; | ||
470 | } | ||
471 | finally { | ||
472 | } | ||
473 | } | ||
474 | // $ANTLR end "T__30" | ||
475 | |||
476 | // $ANTLR start "T__31" | ||
477 | public final void mT__31() throws RecognitionException { | ||
478 | try { | ||
479 | int _type = T__31; | ||
480 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
481 | // InternalProblem.g:31:7: ( '+=' ) | ||
482 | // InternalProblem.g:31:9: '+=' | ||
483 | { | ||
484 | match("+="); | ||
485 | |||
486 | |||
487 | } | ||
488 | |||
489 | state.type = _type; | ||
490 | state.channel = _channel; | ||
491 | } | ||
492 | finally { | ||
493 | } | ||
494 | } | ||
495 | // $ANTLR end "T__31" | ||
496 | |||
497 | // $ANTLR start "T__32" | ||
498 | public final void mT__32() throws RecognitionException { | ||
499 | try { | ||
500 | int _type = T__32; | ||
501 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
502 | // InternalProblem.g:32:7: ( '=' ) | ||
503 | // InternalProblem.g:32:9: '=' | ||
504 | { | ||
505 | match('='); | ||
506 | |||
507 | } | ||
508 | |||
509 | state.type = _type; | ||
510 | state.channel = _channel; | ||
511 | } | ||
512 | finally { | ||
513 | } | ||
514 | } | ||
515 | // $ANTLR end "T__32" | ||
516 | |||
517 | // $ANTLR start "T__33" | ||
518 | public final void mT__33() throws RecognitionException { | ||
519 | try { | ||
520 | int _type = T__33; | ||
521 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
522 | // InternalProblem.g:33:7: ( '..' ) | ||
523 | // InternalProblem.g:33:9: '..' | ||
524 | { | ||
525 | match(".."); | ||
526 | |||
527 | |||
528 | } | ||
529 | |||
530 | state.type = _type; | ||
531 | state.channel = _channel; | ||
532 | } | ||
533 | finally { | ||
534 | } | ||
535 | } | ||
536 | // $ANTLR end "T__33" | ||
537 | |||
538 | // $ANTLR start "T__34" | ||
539 | public final void mT__34() throws RecognitionException { | ||
540 | try { | ||
541 | int _type = T__34; | ||
542 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
543 | // InternalProblem.g:34:7: ( '*' ) | ||
544 | // InternalProblem.g:34:9: '*' | ||
545 | { | ||
546 | match('*'); | ||
547 | |||
548 | } | ||
549 | |||
550 | state.type = _type; | ||
551 | state.channel = _channel; | ||
552 | } | ||
553 | finally { | ||
554 | } | ||
555 | } | ||
556 | // $ANTLR end "T__34" | ||
557 | |||
558 | // $ANTLR start "T__35" | ||
559 | public final void mT__35() throws RecognitionException { | ||
560 | try { | ||
561 | int _type = T__35; | ||
562 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
563 | // InternalProblem.g:35:7: ( '::' ) | ||
564 | // InternalProblem.g:35:9: '::' | ||
565 | { | ||
566 | match("::"); | ||
567 | |||
568 | |||
569 | } | ||
570 | |||
571 | state.type = _type; | ||
572 | state.channel = _channel; | ||
573 | } | ||
574 | finally { | ||
575 | } | ||
576 | } | ||
577 | // $ANTLR end "T__35" | ||
578 | |||
579 | // $ANTLR start "T__36" | ||
580 | public final void mT__36() throws RecognitionException { | ||
581 | try { | ||
582 | int _type = T__36; | ||
583 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
584 | // InternalProblem.g:36:7: ( 'true' ) | ||
585 | // InternalProblem.g:36:9: 'true' | ||
586 | { | ||
587 | match("true"); | ||
588 | |||
589 | |||
590 | } | ||
591 | |||
592 | state.type = _type; | ||
593 | state.channel = _channel; | ||
594 | } | ||
595 | finally { | ||
596 | } | ||
597 | } | ||
598 | // $ANTLR end "T__36" | ||
599 | |||
600 | // $ANTLR start "T__37" | ||
601 | public final void mT__37() throws RecognitionException { | ||
602 | try { | ||
603 | int _type = T__37; | ||
604 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
605 | // InternalProblem.g:37:7: ( 'false' ) | ||
606 | // InternalProblem.g:37:9: 'false' | ||
607 | { | ||
608 | match("false"); | ||
609 | |||
610 | |||
611 | } | ||
612 | |||
613 | state.type = _type; | ||
614 | state.channel = _channel; | ||
615 | } | ||
616 | finally { | ||
617 | } | ||
618 | } | ||
619 | // $ANTLR end "T__37" | ||
620 | |||
621 | // $ANTLR start "T__38" | ||
622 | public final void mT__38() throws RecognitionException { | ||
623 | try { | ||
624 | int _type = T__38; | ||
625 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
626 | // InternalProblem.g:38:7: ( 'unknown' ) | ||
627 | // InternalProblem.g:38:9: 'unknown' | ||
628 | { | ||
629 | match("unknown"); | ||
630 | |||
631 | |||
632 | } | ||
633 | |||
634 | state.type = _type; | ||
635 | state.channel = _channel; | ||
636 | } | ||
637 | finally { | ||
638 | } | ||
639 | } | ||
640 | // $ANTLR end "T__38" | ||
641 | |||
642 | // $ANTLR start "T__39" | ||
643 | public final void mT__39() throws RecognitionException { | ||
644 | try { | ||
645 | int _type = T__39; | ||
646 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
647 | // InternalProblem.g:39:7: ( '?' ) | ||
648 | // InternalProblem.g:39:9: '?' | ||
649 | { | ||
650 | match('?'); | ||
651 | |||
652 | } | ||
653 | |||
654 | state.type = _type; | ||
655 | state.channel = _channel; | ||
656 | } | ||
657 | finally { | ||
658 | } | ||
659 | } | ||
660 | // $ANTLR end "T__39" | ||
661 | |||
662 | // $ANTLR start "RULE_ID" | ||
663 | public final void mRULE_ID() throws RecognitionException { | ||
664 | try { | ||
665 | int _type = RULE_ID; | ||
666 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
667 | // InternalProblem.g:1510:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | ||
668 | // InternalProblem.g:1510:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
669 | { | ||
670 | // InternalProblem.g:1510:11: ( '^' )? | ||
671 | int alt1=2; | ||
672 | int LA1_0 = input.LA(1); | ||
673 | |||
674 | if ( (LA1_0=='^') ) { | ||
675 | alt1=1; | ||
676 | } | ||
677 | switch (alt1) { | ||
678 | case 1 : | ||
679 | // InternalProblem.g:1510:11: '^' | ||
680 | { | ||
681 | match('^'); | ||
682 | |||
683 | } | ||
684 | break; | ||
685 | |||
686 | } | ||
687 | |||
688 | if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
689 | input.consume(); | ||
690 | |||
691 | } | ||
692 | else { | ||
693 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
694 | recover(mse); | ||
695 | throw mse;} | ||
696 | |||
697 | // InternalProblem.g:1510:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
698 | loop2: | ||
699 | do { | ||
700 | int alt2=2; | ||
701 | int LA2_0 = input.LA(1); | ||
702 | |||
703 | if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) { | ||
704 | alt2=1; | ||
705 | } | ||
706 | |||
707 | |||
708 | switch (alt2) { | ||
709 | case 1 : | ||
710 | // InternalProblem.g: | ||
711 | { | ||
712 | if ( (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') ) { | ||
713 | input.consume(); | ||
714 | |||
715 | } | ||
716 | else { | ||
717 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
718 | recover(mse); | ||
719 | throw mse;} | ||
720 | |||
721 | |||
722 | } | ||
723 | break; | ||
724 | |||
725 | default : | ||
726 | break loop2; | ||
727 | } | ||
728 | } while (true); | ||
729 | |||
730 | |||
731 | } | ||
732 | |||
733 | state.type = _type; | ||
734 | state.channel = _channel; | ||
735 | } | ||
736 | finally { | ||
737 | } | ||
738 | } | ||
739 | // $ANTLR end "RULE_ID" | ||
740 | |||
741 | // $ANTLR start "RULE_INT" | ||
742 | public final void mRULE_INT() throws RecognitionException { | ||
743 | try { | ||
744 | int _type = RULE_INT; | ||
745 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
746 | // InternalProblem.g:1512:10: ( ( '0' .. '9' )+ ) | ||
747 | // InternalProblem.g:1512:12: ( '0' .. '9' )+ | ||
748 | { | ||
749 | // InternalProblem.g:1512:12: ( '0' .. '9' )+ | ||
750 | int cnt3=0; | ||
751 | loop3: | ||
752 | do { | ||
753 | int alt3=2; | ||
754 | int LA3_0 = input.LA(1); | ||
755 | |||
756 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { | ||
757 | alt3=1; | ||
758 | } | ||
759 | |||
760 | |||
761 | switch (alt3) { | ||
762 | case 1 : | ||
763 | // InternalProblem.g:1512:13: '0' .. '9' | ||
764 | { | ||
765 | matchRange('0','9'); | ||
766 | |||
767 | } | ||
768 | break; | ||
769 | |||
770 | default : | ||
771 | if ( cnt3 >= 1 ) break loop3; | ||
772 | EarlyExitException eee = | ||
773 | new EarlyExitException(3, input); | ||
774 | throw eee; | ||
775 | } | ||
776 | cnt3++; | ||
777 | } while (true); | ||
778 | |||
779 | |||
780 | } | ||
781 | |||
782 | state.type = _type; | ||
783 | state.channel = _channel; | ||
784 | } | ||
785 | finally { | ||
786 | } | ||
787 | } | ||
788 | // $ANTLR end "RULE_INT" | ||
789 | |||
790 | // $ANTLR start "RULE_STRING" | ||
791 | public final void mRULE_STRING() throws RecognitionException { | ||
792 | try { | ||
793 | int _type = RULE_STRING; | ||
794 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
795 | // InternalProblem.g:1514:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | ||
796 | // InternalProblem.g:1514:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
797 | { | ||
798 | // InternalProblem.g:1514:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
799 | int alt6=2; | ||
800 | int LA6_0 = input.LA(1); | ||
801 | |||
802 | if ( (LA6_0=='\"') ) { | ||
803 | alt6=1; | ||
804 | } | ||
805 | else if ( (LA6_0=='\'') ) { | ||
806 | alt6=2; | ||
807 | } | ||
808 | else { | ||
809 | NoViableAltException nvae = | ||
810 | new NoViableAltException("", 6, 0, input); | ||
811 | |||
812 | throw nvae; | ||
813 | } | ||
814 | switch (alt6) { | ||
815 | case 1 : | ||
816 | // InternalProblem.g:1514:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | ||
817 | { | ||
818 | match('\"'); | ||
819 | // InternalProblem.g:1514:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | ||
820 | loop4: | ||
821 | do { | ||
822 | int alt4=3; | ||
823 | int LA4_0 = input.LA(1); | ||
824 | |||
825 | if ( (LA4_0=='\\') ) { | ||
826 | alt4=1; | ||
827 | } | ||
828 | else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) { | ||
829 | alt4=2; | ||
830 | } | ||
831 | |||
832 | |||
833 | switch (alt4) { | ||
834 | case 1 : | ||
835 | // InternalProblem.g:1514:21: '\\\\' . | ||
836 | { | ||
837 | match('\\'); | ||
838 | matchAny(); | ||
839 | |||
840 | } | ||
841 | break; | ||
842 | case 2 : | ||
843 | // InternalProblem.g:1514:28: ~ ( ( '\\\\' | '\"' ) ) | ||
844 | { | ||
845 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
846 | input.consume(); | ||
847 | |||
848 | } | ||
849 | else { | ||
850 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
851 | recover(mse); | ||
852 | throw mse;} | ||
853 | |||
854 | |||
855 | } | ||
856 | break; | ||
857 | |||
858 | default : | ||
859 | break loop4; | ||
860 | } | ||
861 | } while (true); | ||
862 | |||
863 | match('\"'); | ||
864 | |||
865 | } | ||
866 | break; | ||
867 | case 2 : | ||
868 | // InternalProblem.g:1514:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | ||
869 | { | ||
870 | match('\''); | ||
871 | // InternalProblem.g:1514:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | ||
872 | loop5: | ||
873 | do { | ||
874 | int alt5=3; | ||
875 | int LA5_0 = input.LA(1); | ||
876 | |||
877 | if ( (LA5_0=='\\') ) { | ||
878 | alt5=1; | ||
879 | } | ||
880 | else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) { | ||
881 | alt5=2; | ||
882 | } | ||
883 | |||
884 | |||
885 | switch (alt5) { | ||
886 | case 1 : | ||
887 | // InternalProblem.g:1514:54: '\\\\' . | ||
888 | { | ||
889 | match('\\'); | ||
890 | matchAny(); | ||
891 | |||
892 | } | ||
893 | break; | ||
894 | case 2 : | ||
895 | // InternalProblem.g:1514:61: ~ ( ( '\\\\' | '\\'' ) ) | ||
896 | { | ||
897 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
898 | input.consume(); | ||
899 | |||
900 | } | ||
901 | else { | ||
902 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
903 | recover(mse); | ||
904 | throw mse;} | ||
905 | |||
906 | |||
907 | } | ||
908 | break; | ||
909 | |||
910 | default : | ||
911 | break loop5; | ||
912 | } | ||
913 | } while (true); | ||
914 | |||
915 | match('\''); | ||
916 | |||
917 | } | ||
918 | break; | ||
919 | |||
920 | } | ||
921 | |||
922 | |||
923 | } | ||
924 | |||
925 | state.type = _type; | ||
926 | state.channel = _channel; | ||
927 | } | ||
928 | finally { | ||
929 | } | ||
930 | } | ||
931 | // $ANTLR end "RULE_STRING" | ||
932 | |||
933 | // $ANTLR start "RULE_ML_COMMENT" | ||
934 | public final void mRULE_ML_COMMENT() throws RecognitionException { | ||
935 | try { | ||
936 | int _type = RULE_ML_COMMENT; | ||
937 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
938 | // InternalProblem.g:1516:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | ||
939 | // InternalProblem.g:1516:19: '/*' ( options {greedy=false; } : . )* '*/' | ||
940 | { | ||
941 | match("/*"); | ||
942 | |||
943 | // InternalProblem.g:1516:24: ( options {greedy=false; } : . )* | ||
944 | loop7: | ||
945 | do { | ||
946 | int alt7=2; | ||
947 | int LA7_0 = input.LA(1); | ||
948 | |||
949 | if ( (LA7_0=='*') ) { | ||
950 | int LA7_1 = input.LA(2); | ||
951 | |||
952 | if ( (LA7_1=='/') ) { | ||
953 | alt7=2; | ||
954 | } | ||
955 | else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) { | ||
956 | alt7=1; | ||
957 | } | ||
958 | |||
959 | |||
960 | } | ||
961 | else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) { | ||
962 | alt7=1; | ||
963 | } | ||
964 | |||
965 | |||
966 | switch (alt7) { | ||
967 | case 1 : | ||
968 | // InternalProblem.g:1516:52: . | ||
969 | { | ||
970 | matchAny(); | ||
971 | |||
972 | } | ||
973 | break; | ||
974 | |||
975 | default : | ||
976 | break loop7; | ||
977 | } | ||
978 | } while (true); | ||
979 | |||
980 | match("*/"); | ||
981 | |||
982 | |||
983 | } | ||
984 | |||
985 | state.type = _type; | ||
986 | state.channel = _channel; | ||
987 | } | ||
988 | finally { | ||
989 | } | ||
990 | } | ||
991 | // $ANTLR end "RULE_ML_COMMENT" | ||
992 | |||
993 | // $ANTLR start "RULE_SL_COMMENT" | ||
994 | public final void mRULE_SL_COMMENT() throws RecognitionException { | ||
995 | try { | ||
996 | int _type = RULE_SL_COMMENT; | ||
997 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
998 | // InternalProblem.g:1518:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | ||
999 | // InternalProblem.g:1518:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | ||
1000 | { | ||
1001 | match("//"); | ||
1002 | |||
1003 | // InternalProblem.g:1518:24: (~ ( ( '\\n' | '\\r' ) ) )* | ||
1004 | loop8: | ||
1005 | do { | ||
1006 | int alt8=2; | ||
1007 | int LA8_0 = input.LA(1); | ||
1008 | |||
1009 | if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) { | ||
1010 | alt8=1; | ||
1011 | } | ||
1012 | |||
1013 | |||
1014 | switch (alt8) { | ||
1015 | case 1 : | ||
1016 | // InternalProblem.g:1518:24: ~ ( ( '\\n' | '\\r' ) ) | ||
1017 | { | ||
1018 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { | ||
1019 | input.consume(); | ||
1020 | |||
1021 | } | ||
1022 | else { | ||
1023 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1024 | recover(mse); | ||
1025 | throw mse;} | ||
1026 | |||
1027 | |||
1028 | } | ||
1029 | break; | ||
1030 | |||
1031 | default : | ||
1032 | break loop8; | ||
1033 | } | ||
1034 | } while (true); | ||
1035 | |||
1036 | // InternalProblem.g:1518:40: ( ( '\\r' )? '\\n' )? | ||
1037 | int alt10=2; | ||
1038 | int LA10_0 = input.LA(1); | ||
1039 | |||
1040 | if ( (LA10_0=='\n'||LA10_0=='\r') ) { | ||
1041 | alt10=1; | ||
1042 | } | ||
1043 | switch (alt10) { | ||
1044 | case 1 : | ||
1045 | // InternalProblem.g:1518:41: ( '\\r' )? '\\n' | ||
1046 | { | ||
1047 | // InternalProblem.g:1518:41: ( '\\r' )? | ||
1048 | int alt9=2; | ||
1049 | int LA9_0 = input.LA(1); | ||
1050 | |||
1051 | if ( (LA9_0=='\r') ) { | ||
1052 | alt9=1; | ||
1053 | } | ||
1054 | switch (alt9) { | ||
1055 | case 1 : | ||
1056 | // InternalProblem.g:1518:41: '\\r' | ||
1057 | { | ||
1058 | match('\r'); | ||
1059 | |||
1060 | } | ||
1061 | break; | ||
1062 | |||
1063 | } | ||
1064 | |||
1065 | match('\n'); | ||
1066 | |||
1067 | } | ||
1068 | break; | ||
1069 | |||
1070 | } | ||
1071 | |||
1072 | |||
1073 | } | ||
1074 | |||
1075 | state.type = _type; | ||
1076 | state.channel = _channel; | ||
1077 | } | ||
1078 | finally { | ||
1079 | } | ||
1080 | } | ||
1081 | // $ANTLR end "RULE_SL_COMMENT" | ||
1082 | |||
1083 | // $ANTLR start "RULE_WS" | ||
1084 | public final void mRULE_WS() throws RecognitionException { | ||
1085 | try { | ||
1086 | int _type = RULE_WS; | ||
1087 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1088 | // InternalProblem.g:1520:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | ||
1089 | // InternalProblem.g:1520:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1090 | { | ||
1091 | // InternalProblem.g:1520:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1092 | int cnt11=0; | ||
1093 | loop11: | ||
1094 | do { | ||
1095 | int alt11=2; | ||
1096 | int LA11_0 = input.LA(1); | ||
1097 | |||
1098 | if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) { | ||
1099 | alt11=1; | ||
1100 | } | ||
1101 | |||
1102 | |||
1103 | switch (alt11) { | ||
1104 | case 1 : | ||
1105 | // InternalProblem.g: | ||
1106 | { | ||
1107 | if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { | ||
1108 | input.consume(); | ||
1109 | |||
1110 | } | ||
1111 | else { | ||
1112 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1113 | recover(mse); | ||
1114 | throw mse;} | ||
1115 | |||
1116 | |||
1117 | } | ||
1118 | break; | ||
1119 | |||
1120 | default : | ||
1121 | if ( cnt11 >= 1 ) break loop11; | ||
1122 | EarlyExitException eee = | ||
1123 | new EarlyExitException(11, input); | ||
1124 | throw eee; | ||
1125 | } | ||
1126 | cnt11++; | ||
1127 | } while (true); | ||
1128 | |||
1129 | |||
1130 | } | ||
1131 | |||
1132 | state.type = _type; | ||
1133 | state.channel = _channel; | ||
1134 | } | ||
1135 | finally { | ||
1136 | } | ||
1137 | } | ||
1138 | // $ANTLR end "RULE_WS" | ||
1139 | |||
1140 | // $ANTLR start "RULE_ANY_OTHER" | ||
1141 | public final void mRULE_ANY_OTHER() throws RecognitionException { | ||
1142 | try { | ||
1143 | int _type = RULE_ANY_OTHER; | ||
1144 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1145 | // InternalProblem.g:1522:16: ( . ) | ||
1146 | // InternalProblem.g:1522:18: . | ||
1147 | { | ||
1148 | matchAny(); | ||
1149 | |||
1150 | } | ||
1151 | |||
1152 | state.type = _type; | ||
1153 | state.channel = _channel; | ||
1154 | } | ||
1155 | finally { | ||
1156 | } | ||
1157 | } | ||
1158 | // $ANTLR end "RULE_ANY_OTHER" | ||
1159 | |||
1160 | public void mTokens() throws RecognitionException { | ||
1161 | // InternalProblem.g:1:8: ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) | ||
1162 | int alt12=36; | ||
1163 | alt12 = dfa12.predict(input); | ||
1164 | switch (alt12) { | ||
1165 | case 1 : | ||
1166 | // InternalProblem.g:1:10: T__11 | ||
1167 | { | ||
1168 | mT__11(); | ||
1169 | |||
1170 | } | ||
1171 | break; | ||
1172 | case 2 : | ||
1173 | // InternalProblem.g:1:16: T__12 | ||
1174 | { | ||
1175 | mT__12(); | ||
1176 | |||
1177 | } | ||
1178 | break; | ||
1179 | case 3 : | ||
1180 | // InternalProblem.g:1:22: T__13 | ||
1181 | { | ||
1182 | mT__13(); | ||
1183 | |||
1184 | } | ||
1185 | break; | ||
1186 | case 4 : | ||
1187 | // InternalProblem.g:1:28: T__14 | ||
1188 | { | ||
1189 | mT__14(); | ||
1190 | |||
1191 | } | ||
1192 | break; | ||
1193 | case 5 : | ||
1194 | // InternalProblem.g:1:34: T__15 | ||
1195 | { | ||
1196 | mT__15(); | ||
1197 | |||
1198 | } | ||
1199 | break; | ||
1200 | case 6 : | ||
1201 | // InternalProblem.g:1:40: T__16 | ||
1202 | { | ||
1203 | mT__16(); | ||
1204 | |||
1205 | } | ||
1206 | break; | ||
1207 | case 7 : | ||
1208 | // InternalProblem.g:1:46: T__17 | ||
1209 | { | ||
1210 | mT__17(); | ||
1211 | |||
1212 | } | ||
1213 | break; | ||
1214 | case 8 : | ||
1215 | // InternalProblem.g:1:52: T__18 | ||
1216 | { | ||
1217 | mT__18(); | ||
1218 | |||
1219 | } | ||
1220 | break; | ||
1221 | case 9 : | ||
1222 | // InternalProblem.g:1:58: T__19 | ||
1223 | { | ||
1224 | mT__19(); | ||
1225 | |||
1226 | } | ||
1227 | break; | ||
1228 | case 10 : | ||
1229 | // InternalProblem.g:1:64: T__20 | ||
1230 | { | ||
1231 | mT__20(); | ||
1232 | |||
1233 | } | ||
1234 | break; | ||
1235 | case 11 : | ||
1236 | // InternalProblem.g:1:70: T__21 | ||
1237 | { | ||
1238 | mT__21(); | ||
1239 | |||
1240 | } | ||
1241 | break; | ||
1242 | case 12 : | ||
1243 | // InternalProblem.g:1:76: T__22 | ||
1244 | { | ||
1245 | mT__22(); | ||
1246 | |||
1247 | } | ||
1248 | break; | ||
1249 | case 13 : | ||
1250 | // InternalProblem.g:1:82: T__23 | ||
1251 | { | ||
1252 | mT__23(); | ||
1253 | |||
1254 | } | ||
1255 | break; | ||
1256 | case 14 : | ||
1257 | // InternalProblem.g:1:88: T__24 | ||
1258 | { | ||
1259 | mT__24(); | ||
1260 | |||
1261 | } | ||
1262 | break; | ||
1263 | case 15 : | ||
1264 | // InternalProblem.g:1:94: T__25 | ||
1265 | { | ||
1266 | mT__25(); | ||
1267 | |||
1268 | } | ||
1269 | break; | ||
1270 | case 16 : | ||
1271 | // InternalProblem.g:1:100: T__26 | ||
1272 | { | ||
1273 | mT__26(); | ||
1274 | |||
1275 | } | ||
1276 | break; | ||
1277 | case 17 : | ||
1278 | // InternalProblem.g:1:106: T__27 | ||
1279 | { | ||
1280 | mT__27(); | ||
1281 | |||
1282 | } | ||
1283 | break; | ||
1284 | case 18 : | ||
1285 | // InternalProblem.g:1:112: T__28 | ||
1286 | { | ||
1287 | mT__28(); | ||
1288 | |||
1289 | } | ||
1290 | break; | ||
1291 | case 19 : | ||
1292 | // InternalProblem.g:1:118: T__29 | ||
1293 | { | ||
1294 | mT__29(); | ||
1295 | |||
1296 | } | ||
1297 | break; | ||
1298 | case 20 : | ||
1299 | // InternalProblem.g:1:124: T__30 | ||
1300 | { | ||
1301 | mT__30(); | ||
1302 | |||
1303 | } | ||
1304 | break; | ||
1305 | case 21 : | ||
1306 | // InternalProblem.g:1:130: T__31 | ||
1307 | { | ||
1308 | mT__31(); | ||
1309 | |||
1310 | } | ||
1311 | break; | ||
1312 | case 22 : | ||
1313 | // InternalProblem.g:1:136: T__32 | ||
1314 | { | ||
1315 | mT__32(); | ||
1316 | |||
1317 | } | ||
1318 | break; | ||
1319 | case 23 : | ||
1320 | // InternalProblem.g:1:142: T__33 | ||
1321 | { | ||
1322 | mT__33(); | ||
1323 | |||
1324 | } | ||
1325 | break; | ||
1326 | case 24 : | ||
1327 | // InternalProblem.g:1:148: T__34 | ||
1328 | { | ||
1329 | mT__34(); | ||
1330 | |||
1331 | } | ||
1332 | break; | ||
1333 | case 25 : | ||
1334 | // InternalProblem.g:1:154: T__35 | ||
1335 | { | ||
1336 | mT__35(); | ||
1337 | |||
1338 | } | ||
1339 | break; | ||
1340 | case 26 : | ||
1341 | // InternalProblem.g:1:160: T__36 | ||
1342 | { | ||
1343 | mT__36(); | ||
1344 | |||
1345 | } | ||
1346 | break; | ||
1347 | case 27 : | ||
1348 | // InternalProblem.g:1:166: T__37 | ||
1349 | { | ||
1350 | mT__37(); | ||
1351 | |||
1352 | } | ||
1353 | break; | ||
1354 | case 28 : | ||
1355 | // InternalProblem.g:1:172: T__38 | ||
1356 | { | ||
1357 | mT__38(); | ||
1358 | |||
1359 | } | ||
1360 | break; | ||
1361 | case 29 : | ||
1362 | // InternalProblem.g:1:178: T__39 | ||
1363 | { | ||
1364 | mT__39(); | ||
1365 | |||
1366 | } | ||
1367 | break; | ||
1368 | case 30 : | ||
1369 | // InternalProblem.g:1:184: RULE_ID | ||
1370 | { | ||
1371 | mRULE_ID(); | ||
1372 | |||
1373 | } | ||
1374 | break; | ||
1375 | case 31 : | ||
1376 | // InternalProblem.g:1:192: RULE_INT | ||
1377 | { | ||
1378 | mRULE_INT(); | ||
1379 | |||
1380 | } | ||
1381 | break; | ||
1382 | case 32 : | ||
1383 | // InternalProblem.g:1:201: RULE_STRING | ||
1384 | { | ||
1385 | mRULE_STRING(); | ||
1386 | |||
1387 | } | ||
1388 | break; | ||
1389 | case 33 : | ||
1390 | // InternalProblem.g:1:213: RULE_ML_COMMENT | ||
1391 | { | ||
1392 | mRULE_ML_COMMENT(); | ||
1393 | |||
1394 | } | ||
1395 | break; | ||
1396 | case 34 : | ||
1397 | // InternalProblem.g:1:229: RULE_SL_COMMENT | ||
1398 | { | ||
1399 | mRULE_SL_COMMENT(); | ||
1400 | |||
1401 | } | ||
1402 | break; | ||
1403 | case 35 : | ||
1404 | // InternalProblem.g:1:245: RULE_WS | ||
1405 | { | ||
1406 | mRULE_WS(); | ||
1407 | |||
1408 | } | ||
1409 | break; | ||
1410 | case 36 : | ||
1411 | // InternalProblem.g:1:253: RULE_ANY_OTHER | ||
1412 | { | ||
1413 | mRULE_ANY_OTHER(); | ||
1414 | |||
1415 | } | ||
1416 | break; | ||
1417 | |||
1418 | } | ||
1419 | |||
1420 | } | ||
1421 | |||
1422 | |||
1423 | protected DFA12 dfa12 = new DFA12(this); | ||
1424 | static final String DFA12_eotS = | ||
1425 | "\1\uffff\3\41\3\uffff\1\52\3\41\2\uffff\1\62\2\uffff\1\66\1\41\2\uffff\3\41\1\uffff\1\37\2\uffff\3\37\2\uffff\1\41\1\uffff\4\41\5\uffff\3\41\11\uffff\1\41\2\uffff\3\41\6\uffff\23\41\1\142\1\41\1\144\3\41\1\150\2\41\1\153\2\41\1\uffff\1\156\1\uffff\1\157\2\41\1\uffff\2\41\1\uffff\1\164\1\41\2\uffff\3\41\1\171\1\uffff\1\41\1\173\1\174\1\175\1\uffff\1\176\4\uffff"; | ||
1426 | static final String DFA12_eofS = | ||
1427 | "\177\uffff"; | ||
1428 | static final String DFA12_minS = | ||
1429 | "\1\0\1\142\1\154\1\162\3\uffff\1\56\1\145\1\160\1\162\2\uffff\1\72\2\uffff\1\75\1\143\2\uffff\1\162\1\141\1\156\1\uffff\1\101\2\uffff\2\0\1\52\2\uffff\1\163\1\uffff\1\141\1\156\1\164\1\162\5\uffff\1\146\1\160\1\145\11\uffff\1\157\2\uffff\1\165\1\154\1\153\6\uffff\1\164\1\163\1\164\1\145\1\157\1\145\1\157\1\144\1\160\1\145\1\163\1\156\1\162\1\163\1\141\1\156\2\162\1\163\1\60\1\145\1\60\1\145\1\157\1\141\1\60\1\151\1\144\1\60\1\163\1\151\1\uffff\1\60\1\uffff\1\60\1\167\1\143\1\uffff\1\156\1\163\1\uffff\1\60\1\164\2\uffff\1\156\1\164\1\163\1\60\1\uffff\1\145\3\60\1\uffff\1\60\4\uffff"; | ||
1430 | static final String DFA12_maxS = | ||
1431 | "\1\uffff\1\142\1\157\1\170\3\uffff\1\56\1\145\1\160\1\162\2\uffff\1\75\2\uffff\1\75\1\143\2\uffff\1\162\1\141\1\156\1\uffff\1\172\2\uffff\2\uffff\1\57\2\uffff\1\163\1\uffff\1\141\1\156\1\164\1\162\5\uffff\1\146\1\160\1\145\11\uffff\1\157\2\uffff\1\165\1\154\1\153\6\uffff\1\164\1\163\1\164\1\145\1\157\1\145\1\157\1\144\1\160\1\145\1\163\1\156\1\162\1\163\1\141\1\156\2\162\1\163\1\172\1\145\1\172\1\145\1\157\1\141\1\172\1\151\1\144\1\172\1\163\1\151\1\uffff\1\172\1\uffff\1\172\1\167\1\143\1\uffff\1\156\1\163\1\uffff\1\172\1\164\2\uffff\1\156\1\164\1\163\1\172\1\uffff\1\145\3\172\1\uffff\1\172\4\uffff"; | ||
1432 | static final String DFA12_acceptS = | ||
1433 | "\4\uffff\1\4\1\5\1\6\4\uffff\1\15\1\16\1\uffff\1\20\1\21\2\uffff\1\26\1\30\3\uffff\1\35\1\uffff\1\36\1\37\3\uffff\1\43\1\44\1\uffff\1\36\4\uffff\1\4\1\5\1\6\1\27\1\7\3\uffff\1\15\1\16\1\17\1\31\1\23\1\20\1\21\1\25\1\22\1\uffff\1\26\1\30\3\uffff\1\35\1\37\1\40\1\41\1\42\1\43\37\uffff\1\14\1\uffff\1\32\3\uffff\1\2\2\uffff\1\13\2\uffff\1\24\1\33\4\uffff\1\11\4\uffff\1\3\1\uffff\1\34\1\1\1\10\1\12"; | ||
1434 | static final String DFA12_specialS = | ||
1435 | "\1\1\32\uffff\1\2\1\0\142\uffff}>"; | ||
1436 | static final String[] DFA12_transitionS = { | ||
1437 | "\11\37\2\36\2\37\1\36\22\37\1\36\1\17\1\33\4\37\1\34\1\13\1\14\1\23\1\20\1\5\1\37\1\7\1\35\12\32\1\15\1\16\1\37\1\22\1\37\1\27\1\37\32\31\1\4\1\37\1\6\1\30\1\31\1\37\1\1\1\31\1\2\1\31\1\3\1\25\10\31\1\11\1\12\1\31\1\10\1\21\1\24\1\26\5\31\uff85\37", | ||
1438 | "\1\40", | ||
1439 | "\1\42\2\uffff\1\43", | ||
1440 | "\1\45\5\uffff\1\44", | ||
1441 | "", | ||
1442 | "", | ||
1443 | "", | ||
1444 | "\1\51", | ||
1445 | "\1\53", | ||
1446 | "\1\54", | ||
1447 | "\1\55", | ||
1448 | "", | ||
1449 | "", | ||
1450 | "\1\61\2\uffff\1\60", | ||
1451 | "", | ||
1452 | "", | ||
1453 | "\1\65", | ||
1454 | "\1\67", | ||
1455 | "", | ||
1456 | "", | ||
1457 | "\1\72", | ||
1458 | "\1\73", | ||
1459 | "\1\74", | ||
1460 | "", | ||
1461 | "\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1462 | "", | ||
1463 | "", | ||
1464 | "\0\77", | ||
1465 | "\0\77", | ||
1466 | "\1\100\4\uffff\1\101", | ||
1467 | "", | ||
1468 | "", | ||
1469 | "\1\103", | ||
1470 | "", | ||
1471 | "\1\104", | ||
1472 | "\1\105", | ||
1473 | "\1\106", | ||
1474 | "\1\107", | ||
1475 | "", | ||
1476 | "", | ||
1477 | "", | ||
1478 | "", | ||
1479 | "", | ||
1480 | "\1\110", | ||
1481 | "\1\111", | ||
1482 | "\1\112", | ||
1483 | "", | ||
1484 | "", | ||
1485 | "", | ||
1486 | "", | ||
1487 | "", | ||
1488 | "", | ||
1489 | "", | ||
1490 | "", | ||
1491 | "", | ||
1492 | "\1\113", | ||
1493 | "", | ||
1494 | "", | ||
1495 | "\1\114", | ||
1496 | "\1\115", | ||
1497 | "\1\116", | ||
1498 | "", | ||
1499 | "", | ||
1500 | "", | ||
1501 | "", | ||
1502 | "", | ||
1503 | "", | ||
1504 | "\1\117", | ||
1505 | "\1\120", | ||
1506 | "\1\121", | ||
1507 | "\1\122", | ||
1508 | "\1\123", | ||
1509 | "\1\124", | ||
1510 | "\1\125", | ||
1511 | "\1\126", | ||
1512 | "\1\127", | ||
1513 | "\1\130", | ||
1514 | "\1\131", | ||
1515 | "\1\132", | ||
1516 | "\1\133", | ||
1517 | "\1\134", | ||
1518 | "\1\135", | ||
1519 | "\1\136", | ||
1520 | "\1\137", | ||
1521 | "\1\140", | ||
1522 | "\1\141", | ||
1523 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1524 | "\1\143", | ||
1525 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1526 | "\1\145", | ||
1527 | "\1\146", | ||
1528 | "\1\147", | ||
1529 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1530 | "\1\151", | ||
1531 | "\1\152", | ||
1532 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1533 | "\1\154", | ||
1534 | "\1\155", | ||
1535 | "", | ||
1536 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1537 | "", | ||
1538 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1539 | "\1\160", | ||
1540 | "\1\161", | ||
1541 | "", | ||
1542 | "\1\162", | ||
1543 | "\1\163", | ||
1544 | "", | ||
1545 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1546 | "\1\165", | ||
1547 | "", | ||
1548 | "", | ||
1549 | "\1\166", | ||
1550 | "\1\167", | ||
1551 | "\1\170", | ||
1552 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1553 | "", | ||
1554 | "\1\172", | ||
1555 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1556 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1557 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1558 | "", | ||
1559 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1560 | "", | ||
1561 | "", | ||
1562 | "", | ||
1563 | "" | ||
1564 | }; | ||
1565 | |||
1566 | static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS); | ||
1567 | static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS); | ||
1568 | static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS); | ||
1569 | static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS); | ||
1570 | static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS); | ||
1571 | static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS); | ||
1572 | static final short[][] DFA12_transition; | ||
1573 | |||
1574 | static { | ||
1575 | int numStates = DFA12_transitionS.length; | ||
1576 | DFA12_transition = new short[numStates][]; | ||
1577 | for (int i=0; i<numStates; i++) { | ||
1578 | DFA12_transition[i] = DFA.unpackEncodedString(DFA12_transitionS[i]); | ||
1579 | } | ||
1580 | } | ||
1581 | |||
1582 | class DFA12 extends DFA { | ||
1583 | |||
1584 | public DFA12(BaseRecognizer recognizer) { | ||
1585 | this.recognizer = recognizer; | ||
1586 | this.decisionNumber = 12; | ||
1587 | this.eot = DFA12_eot; | ||
1588 | this.eof = DFA12_eof; | ||
1589 | this.min = DFA12_min; | ||
1590 | this.max = DFA12_max; | ||
1591 | this.accept = DFA12_accept; | ||
1592 | this.special = DFA12_special; | ||
1593 | this.transition = DFA12_transition; | ||
1594 | } | ||
1595 | public String getDescription() { | ||
1596 | return "1:1: Tokens : ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | ||
1597 | } | ||
1598 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | ||
1599 | IntStream input = _input; | ||
1600 | int _s = s; | ||
1601 | switch ( s ) { | ||
1602 | case 0 : | ||
1603 | int LA12_28 = input.LA(1); | ||
1604 | |||
1605 | s = -1; | ||
1606 | if ( ((LA12_28>='\u0000' && LA12_28<='\uFFFF')) ) {s = 63;} | ||
1607 | |||
1608 | else s = 31; | ||
1609 | |||
1610 | if ( s>=0 ) return s; | ||
1611 | break; | ||
1612 | case 1 : | ||
1613 | int LA12_0 = input.LA(1); | ||
1614 | |||
1615 | s = -1; | ||
1616 | if ( (LA12_0=='a') ) {s = 1;} | ||
1617 | |||
1618 | else if ( (LA12_0=='c') ) {s = 2;} | ||
1619 | |||
1620 | else if ( (LA12_0=='e') ) {s = 3;} | ||
1621 | |||
1622 | else if ( (LA12_0=='[') ) {s = 4;} | ||
1623 | |||
1624 | else if ( (LA12_0==',') ) {s = 5;} | ||
1625 | |||
1626 | else if ( (LA12_0==']') ) {s = 6;} | ||
1627 | |||
1628 | else if ( (LA12_0=='.') ) {s = 7;} | ||
1629 | |||
1630 | else if ( (LA12_0=='r') ) {s = 8;} | ||
1631 | |||
1632 | else if ( (LA12_0=='o') ) {s = 9;} | ||
1633 | |||
1634 | else if ( (LA12_0=='p') ) {s = 10;} | ||
1635 | |||
1636 | else if ( (LA12_0=='(') ) {s = 11;} | ||
1637 | |||
1638 | else if ( (LA12_0==')') ) {s = 12;} | ||
1639 | |||
1640 | else if ( (LA12_0==':') ) {s = 13;} | ||
1641 | |||
1642 | else if ( (LA12_0==';') ) {s = 14;} | ||
1643 | |||
1644 | else if ( (LA12_0=='!') ) {s = 15;} | ||
1645 | |||
1646 | else if ( (LA12_0=='+') ) {s = 16;} | ||
1647 | |||
1648 | else if ( (LA12_0=='s') ) {s = 17;} | ||
1649 | |||
1650 | else if ( (LA12_0=='=') ) {s = 18;} | ||
1651 | |||
1652 | else if ( (LA12_0=='*') ) {s = 19;} | ||
1653 | |||
1654 | else if ( (LA12_0=='t') ) {s = 20;} | ||
1655 | |||
1656 | else if ( (LA12_0=='f') ) {s = 21;} | ||
1657 | |||
1658 | else if ( (LA12_0=='u') ) {s = 22;} | ||
1659 | |||
1660 | else if ( (LA12_0=='?') ) {s = 23;} | ||
1661 | |||
1662 | else if ( (LA12_0=='^') ) {s = 24;} | ||
1663 | |||
1664 | else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||LA12_0=='b'||LA12_0=='d'||(LA12_0>='g' && LA12_0<='n')||LA12_0=='q'||(LA12_0>='v' && LA12_0<='z')) ) {s = 25;} | ||
1665 | |||
1666 | else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 26;} | ||
1667 | |||
1668 | else if ( (LA12_0=='\"') ) {s = 27;} | ||
1669 | |||
1670 | else if ( (LA12_0=='\'') ) {s = 28;} | ||
1671 | |||
1672 | else if ( (LA12_0=='/') ) {s = 29;} | ||
1673 | |||
1674 | else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 30;} | ||
1675 | |||
1676 | else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||(LA12_0>='#' && LA12_0<='&')||LA12_0=='-'||LA12_0=='<'||LA12_0=='>'||LA12_0=='@'||LA12_0=='\\'||LA12_0=='`'||(LA12_0>='{' && LA12_0<='\uFFFF')) ) {s = 31;} | ||
1677 | |||
1678 | if ( s>=0 ) return s; | ||
1679 | break; | ||
1680 | case 2 : | ||
1681 | int LA12_27 = input.LA(1); | ||
1682 | |||
1683 | s = -1; | ||
1684 | if ( ((LA12_27>='\u0000' && LA12_27<='\uFFFF')) ) {s = 63;} | ||
1685 | |||
1686 | else s = 31; | ||
1687 | |||
1688 | if ( s>=0 ) return s; | ||
1689 | break; | ||
1690 | } | ||
1691 | NoViableAltException nvae = | ||
1692 | new NoViableAltException(getDescription(), 12, _s, input); | ||
1693 | error(nvae); | ||
1694 | throw nvae; | ||
1695 | } | ||
1696 | } | ||
1697 | |||
1698 | |||
1699 | } \ No newline at end of file | ||