diff options
Diffstat (limited to 'org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblemLexer.java')
1 files changed, 1699 insertions, 0 deletions
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblemLexer.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblemLexer.java new file mode 100644 index 00000000..0bd65406 --- /dev/null +++ b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblemLexer.java | |||
@@ -0,0 +1,1699 @@ | |||
1 | package org.eclipse.viatra.solver.language.ide.contentassist.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.ide.editor.contentassist.antlr.internal.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=5; | ||
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=4; | ||
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: ( 'refers' ) | ||
72 | // InternalProblem.g:11:9: 'refers' | ||
73 | { | ||
74 | match("refers"); | ||
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: ( 'pred' ) | ||
93 | // InternalProblem.g:12:9: 'pred' | ||
94 | { | ||
95 | match("pred"); | ||
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: ( '=' ) | ||
114 | // InternalProblem.g:13:9: '=' | ||
115 | { | ||
116 | match('='); | ||
117 | |||
118 | } | ||
119 | |||
120 | state.type = _type; | ||
121 | state.channel = _channel; | ||
122 | } | ||
123 | finally { | ||
124 | } | ||
125 | } | ||
126 | // $ANTLR end "T__13" | ||
127 | |||
128 | // $ANTLR start "T__14" | ||
129 | public final void mT__14() throws RecognitionException { | ||
130 | try { | ||
131 | int _type = T__14; | ||
132 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
133 | // InternalProblem.g:14:7: ( '*' ) | ||
134 | // InternalProblem.g:14:9: '*' | ||
135 | { | ||
136 | match('*'); | ||
137 | |||
138 | } | ||
139 | |||
140 | state.type = _type; | ||
141 | state.channel = _channel; | ||
142 | } | ||
143 | finally { | ||
144 | } | ||
145 | } | ||
146 | // $ANTLR end "T__14" | ||
147 | |||
148 | // $ANTLR start "T__15" | ||
149 | public final void mT__15() throws RecognitionException { | ||
150 | try { | ||
151 | int _type = T__15; | ||
152 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
153 | // InternalProblem.g:15:7: ( 'true' ) | ||
154 | // InternalProblem.g:15:9: 'true' | ||
155 | { | ||
156 | match("true"); | ||
157 | |||
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: ( 'false' ) | ||
175 | // InternalProblem.g:16:9: 'false' | ||
176 | { | ||
177 | match("false"); | ||
178 | |||
179 | |||
180 | } | ||
181 | |||
182 | state.type = _type; | ||
183 | state.channel = _channel; | ||
184 | } | ||
185 | finally { | ||
186 | } | ||
187 | } | ||
188 | // $ANTLR end "T__16" | ||
189 | |||
190 | // $ANTLR start "T__17" | ||
191 | public final void mT__17() throws RecognitionException { | ||
192 | try { | ||
193 | int _type = T__17; | ||
194 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
195 | // InternalProblem.g:17:7: ( 'unknown' ) | ||
196 | // InternalProblem.g:17:9: 'unknown' | ||
197 | { | ||
198 | match("unknown"); | ||
199 | |||
200 | |||
201 | } | ||
202 | |||
203 | state.type = _type; | ||
204 | state.channel = _channel; | ||
205 | } | ||
206 | finally { | ||
207 | } | ||
208 | } | ||
209 | // $ANTLR end "T__17" | ||
210 | |||
211 | // $ANTLR start "T__18" | ||
212 | public final void mT__18() throws RecognitionException { | ||
213 | try { | ||
214 | int _type = T__18; | ||
215 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
216 | // InternalProblem.g:18:7: ( '!' ) | ||
217 | // InternalProblem.g:18:9: '!' | ||
218 | { | ||
219 | match('!'); | ||
220 | |||
221 | } | ||
222 | |||
223 | state.type = _type; | ||
224 | state.channel = _channel; | ||
225 | } | ||
226 | finally { | ||
227 | } | ||
228 | } | ||
229 | // $ANTLR end "T__18" | ||
230 | |||
231 | // $ANTLR start "T__19" | ||
232 | public final void mT__19() throws RecognitionException { | ||
233 | try { | ||
234 | int _type = T__19; | ||
235 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
236 | // InternalProblem.g:19:7: ( '?' ) | ||
237 | // InternalProblem.g:19:9: '?' | ||
238 | { | ||
239 | match('?'); | ||
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: ( 'class' ) | ||
257 | // InternalProblem.g:20:9: 'class' | ||
258 | { | ||
259 | match("class"); | ||
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: ( '.' ) | ||
278 | // InternalProblem.g:21:9: '.' | ||
279 | { | ||
280 | match('.'); | ||
281 | |||
282 | } | ||
283 | |||
284 | state.type = _type; | ||
285 | state.channel = _channel; | ||
286 | } | ||
287 | finally { | ||
288 | } | ||
289 | } | ||
290 | // $ANTLR end "T__21" | ||
291 | |||
292 | // $ANTLR start "T__22" | ||
293 | public final void mT__22() throws RecognitionException { | ||
294 | try { | ||
295 | int _type = T__22; | ||
296 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
297 | // InternalProblem.g:22:7: ( 'extends' ) | ||
298 | // InternalProblem.g:22:9: 'extends' | ||
299 | { | ||
300 | match("extends"); | ||
301 | |||
302 | |||
303 | } | ||
304 | |||
305 | state.type = _type; | ||
306 | state.channel = _channel; | ||
307 | } | ||
308 | finally { | ||
309 | } | ||
310 | } | ||
311 | // $ANTLR end "T__22" | ||
312 | |||
313 | // $ANTLR start "T__23" | ||
314 | public final void mT__23() throws RecognitionException { | ||
315 | try { | ||
316 | int _type = T__23; | ||
317 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
318 | // InternalProblem.g:23:7: ( '[' ) | ||
319 | // InternalProblem.g:23:9: '[' | ||
320 | { | ||
321 | match('['); | ||
322 | |||
323 | } | ||
324 | |||
325 | state.type = _type; | ||
326 | state.channel = _channel; | ||
327 | } | ||
328 | finally { | ||
329 | } | ||
330 | } | ||
331 | // $ANTLR end "T__23" | ||
332 | |||
333 | // $ANTLR start "T__24" | ||
334 | public final void mT__24() throws RecognitionException { | ||
335 | try { | ||
336 | int _type = T__24; | ||
337 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
338 | // InternalProblem.g:24:7: ( ']' ) | ||
339 | // InternalProblem.g:24:9: ']' | ||
340 | { | ||
341 | match(']'); | ||
342 | |||
343 | } | ||
344 | |||
345 | state.type = _type; | ||
346 | state.channel = _channel; | ||
347 | } | ||
348 | finally { | ||
349 | } | ||
350 | } | ||
351 | // $ANTLR end "T__24" | ||
352 | |||
353 | // $ANTLR start "T__25" | ||
354 | public final void mT__25() throws RecognitionException { | ||
355 | try { | ||
356 | int _type = T__25; | ||
357 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
358 | // InternalProblem.g:25:7: ( ',' ) | ||
359 | // InternalProblem.g:25:9: ',' | ||
360 | { | ||
361 | match(','); | ||
362 | |||
363 | } | ||
364 | |||
365 | state.type = _type; | ||
366 | state.channel = _channel; | ||
367 | } | ||
368 | finally { | ||
369 | } | ||
370 | } | ||
371 | // $ANTLR end "T__25" | ||
372 | |||
373 | // $ANTLR start "T__26" | ||
374 | public final void mT__26() throws RecognitionException { | ||
375 | try { | ||
376 | int _type = T__26; | ||
377 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
378 | // InternalProblem.g:26:7: ( 'opposite' ) | ||
379 | // InternalProblem.g:26:9: 'opposite' | ||
380 | { | ||
381 | match("opposite"); | ||
382 | |||
383 | |||
384 | } | ||
385 | |||
386 | state.type = _type; | ||
387 | state.channel = _channel; | ||
388 | } | ||
389 | finally { | ||
390 | } | ||
391 | } | ||
392 | // $ANTLR end "T__26" | ||
393 | |||
394 | // $ANTLR start "T__27" | ||
395 | public final void mT__27() throws RecognitionException { | ||
396 | try { | ||
397 | int _type = T__27; | ||
398 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
399 | // InternalProblem.g:27:7: ( '(' ) | ||
400 | // InternalProblem.g:27:9: '(' | ||
401 | { | ||
402 | match('('); | ||
403 | |||
404 | } | ||
405 | |||
406 | state.type = _type; | ||
407 | state.channel = _channel; | ||
408 | } | ||
409 | finally { | ||
410 | } | ||
411 | } | ||
412 | // $ANTLR end "T__27" | ||
413 | |||
414 | // $ANTLR start "T__28" | ||
415 | public final void mT__28() throws RecognitionException { | ||
416 | try { | ||
417 | int _type = T__28; | ||
418 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
419 | // InternalProblem.g:28:7: ( ')' ) | ||
420 | // InternalProblem.g:28:9: ')' | ||
421 | { | ||
422 | match(')'); | ||
423 | |||
424 | } | ||
425 | |||
426 | state.type = _type; | ||
427 | state.channel = _channel; | ||
428 | } | ||
429 | finally { | ||
430 | } | ||
431 | } | ||
432 | // $ANTLR end "T__28" | ||
433 | |||
434 | // $ANTLR start "T__29" | ||
435 | public final void mT__29() throws RecognitionException { | ||
436 | try { | ||
437 | int _type = T__29; | ||
438 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
439 | // InternalProblem.g:29:7: ( ':=' ) | ||
440 | // InternalProblem.g:29:9: ':=' | ||
441 | { | ||
442 | match(":="); | ||
443 | |||
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: ( ';' ) | ||
461 | // InternalProblem.g:30:9: ';' | ||
462 | { | ||
463 | match(';'); | ||
464 | |||
465 | } | ||
466 | |||
467 | state.type = _type; | ||
468 | state.channel = _channel; | ||
469 | } | ||
470 | finally { | ||
471 | } | ||
472 | } | ||
473 | // $ANTLR end "T__30" | ||
474 | |||
475 | // $ANTLR start "T__31" | ||
476 | public final void mT__31() throws RecognitionException { | ||
477 | try { | ||
478 | int _type = T__31; | ||
479 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
480 | // InternalProblem.g:31:7: ( ':' ) | ||
481 | // InternalProblem.g:31:9: ':' | ||
482 | { | ||
483 | match(':'); | ||
484 | |||
485 | } | ||
486 | |||
487 | state.type = _type; | ||
488 | state.channel = _channel; | ||
489 | } | ||
490 | finally { | ||
491 | } | ||
492 | } | ||
493 | // $ANTLR end "T__31" | ||
494 | |||
495 | // $ANTLR start "T__32" | ||
496 | public final void mT__32() throws RecognitionException { | ||
497 | try { | ||
498 | int _type = T__32; | ||
499 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
500 | // InternalProblem.g:32:7: ( 'scope' ) | ||
501 | // InternalProblem.g:32:9: 'scope' | ||
502 | { | ||
503 | match("scope"); | ||
504 | |||
505 | |||
506 | } | ||
507 | |||
508 | state.type = _type; | ||
509 | state.channel = _channel; | ||
510 | } | ||
511 | finally { | ||
512 | } | ||
513 | } | ||
514 | // $ANTLR end "T__32" | ||
515 | |||
516 | // $ANTLR start "T__33" | ||
517 | public final void mT__33() throws RecognitionException { | ||
518 | try { | ||
519 | int _type = T__33; | ||
520 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
521 | // InternalProblem.g:33:7: ( '..' ) | ||
522 | // InternalProblem.g:33:9: '..' | ||
523 | { | ||
524 | match(".."); | ||
525 | |||
526 | |||
527 | } | ||
528 | |||
529 | state.type = _type; | ||
530 | state.channel = _channel; | ||
531 | } | ||
532 | finally { | ||
533 | } | ||
534 | } | ||
535 | // $ANTLR end "T__33" | ||
536 | |||
537 | // $ANTLR start "T__34" | ||
538 | public final void mT__34() throws RecognitionException { | ||
539 | try { | ||
540 | int _type = T__34; | ||
541 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
542 | // InternalProblem.g:34:7: ( '::' ) | ||
543 | // InternalProblem.g:34:9: '::' | ||
544 | { | ||
545 | match("::"); | ||
546 | |||
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: ( 'abstract' ) | ||
564 | // InternalProblem.g:35:9: 'abstract' | ||
565 | { | ||
566 | match("abstract"); | ||
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: ( 'contains' ) | ||
585 | // InternalProblem.g:36:9: 'contains' | ||
586 | { | ||
587 | match("contains"); | ||
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: ( 'error' ) | ||
606 | // InternalProblem.g:37:9: 'error' | ||
607 | { | ||
608 | match("error"); | ||
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: ( '+' ) | ||
627 | // InternalProblem.g:38:9: '+' | ||
628 | { | ||
629 | match('+'); | ||
630 | |||
631 | } | ||
632 | |||
633 | state.type = _type; | ||
634 | state.channel = _channel; | ||
635 | } | ||
636 | finally { | ||
637 | } | ||
638 | } | ||
639 | // $ANTLR end "T__38" | ||
640 | |||
641 | // $ANTLR start "T__39" | ||
642 | public final void mT__39() throws RecognitionException { | ||
643 | try { | ||
644 | int _type = T__39; | ||
645 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
646 | // InternalProblem.g:39:7: ( '+=' ) | ||
647 | // InternalProblem.g:39:9: '+=' | ||
648 | { | ||
649 | match("+="); | ||
650 | |||
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:4194:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | ||
668 | // InternalProblem.g:4194:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
669 | { | ||
670 | // InternalProblem.g:4194: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:4194: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:4194: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:4196:10: ( ( '0' .. '9' )+ ) | ||
747 | // InternalProblem.g:4196:12: ( '0' .. '9' )+ | ||
748 | { | ||
749 | // InternalProblem.g:4196: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:4196: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:4198:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | ||
796 | // InternalProblem.g:4198:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
797 | { | ||
798 | // InternalProblem.g:4198: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:4198:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | ||
817 | { | ||
818 | match('\"'); | ||
819 | // InternalProblem.g:4198: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:4198:21: '\\\\' . | ||
836 | { | ||
837 | match('\\'); | ||
838 | matchAny(); | ||
839 | |||
840 | } | ||
841 | break; | ||
842 | case 2 : | ||
843 | // InternalProblem.g:4198: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:4198:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | ||
869 | { | ||
870 | match('\''); | ||
871 | // InternalProblem.g:4198: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:4198:54: '\\\\' . | ||
888 | { | ||
889 | match('\\'); | ||
890 | matchAny(); | ||
891 | |||
892 | } | ||
893 | break; | ||
894 | case 2 : | ||
895 | // InternalProblem.g:4198: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:4200:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | ||
939 | // InternalProblem.g:4200:19: '/*' ( options {greedy=false; } : . )* '*/' | ||
940 | { | ||
941 | match("/*"); | ||
942 | |||
943 | // InternalProblem.g:4200: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:4200: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:4202:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | ||
999 | // InternalProblem.g:4202:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | ||
1000 | { | ||
1001 | match("//"); | ||
1002 | |||
1003 | // InternalProblem.g:4202: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:4202: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:4202: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:4202:41: ( '\\r' )? '\\n' | ||
1046 | { | ||
1047 | // InternalProblem.g:4202: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:4202: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:4204:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | ||
1089 | // InternalProblem.g:4204:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1090 | { | ||
1091 | // InternalProblem.g:4204: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:4206:16: ( . ) | ||
1146 | // InternalProblem.g:4206: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\2\41\2\uffff\3\41\2\uffff\1\41\1\55\1\41\3\uffff\1\41\2\uffff\1\70\1\uffff\2\41\1\75\1\37\2\uffff\3\37\2\uffff\1\41\1\uffff\1\41\2\uffff\3\41\2\uffff\2\41\2\uffff\2\41\3\uffff\1\41\6\uffff\2\41\7\uffff\15\41\1\134\1\135\12\41\2\uffff\1\150\1\41\1\152\2\41\1\155\1\41\1\157\1\41\1\161\1\uffff\1\41\1\uffff\2\41\1\uffff\1\41\1\uffff\1\41\1\uffff\1\167\1\41\1\171\2\41\1\uffff\1\174\1\uffff\1\175\1\176\3\uffff"; | ||
1426 | static final String DFA12_eofS = | ||
1427 | "\177\uffff"; | ||
1428 | static final String DFA12_minS = | ||
1429 | "\1\0\1\145\1\162\2\uffff\1\162\1\141\1\156\2\uffff\1\154\1\56\1\162\3\uffff\1\160\2\uffff\1\72\1\uffff\1\143\1\142\1\75\1\101\2\uffff\2\0\1\52\2\uffff\1\146\1\uffff\1\145\2\uffff\1\165\1\154\1\153\2\uffff\1\141\1\156\2\uffff\1\164\1\162\3\uffff\1\160\6\uffff\1\157\1\163\7\uffff\1\145\1\144\1\145\1\163\1\156\1\163\1\164\1\145\2\157\1\160\1\164\1\162\2\60\1\145\1\157\1\163\1\141\1\156\1\162\1\163\1\145\1\162\1\163\2\uffff\1\60\1\167\1\60\1\151\1\144\1\60\1\151\1\60\1\141\1\60\1\uffff\1\156\1\uffff\1\156\1\163\1\uffff\1\164\1\uffff\1\143\1\uffff\1\60\1\163\1\60\1\145\1\164\1\uffff\1\60\1\uffff\2\60\3\uffff"; | ||
1430 | static final String DFA12_maxS = | ||
1431 | "\1\uffff\1\145\1\162\2\uffff\1\162\1\141\1\156\2\uffff\1\157\1\56\1\170\3\uffff\1\160\2\uffff\1\75\1\uffff\1\143\1\142\1\75\1\172\2\uffff\2\uffff\1\57\2\uffff\1\146\1\uffff\1\145\2\uffff\1\165\1\154\1\153\2\uffff\1\141\1\156\2\uffff\1\164\1\162\3\uffff\1\160\6\uffff\1\157\1\163\7\uffff\1\145\1\144\1\145\1\163\1\156\1\163\1\164\1\145\2\157\1\160\1\164\1\162\2\172\1\145\1\157\1\163\1\141\1\156\1\162\1\163\1\145\1\162\1\163\2\uffff\1\172\1\167\1\172\1\151\1\144\1\172\1\151\1\172\1\141\1\172\1\uffff\1\156\1\uffff\1\156\1\163\1\uffff\1\164\1\uffff\1\143\1\uffff\1\172\1\163\1\172\1\145\1\164\1\uffff\1\172\1\uffff\2\172\3\uffff"; | ||
1432 | static final String DFA12_acceptS = | ||
1433 | "\3\uffff\1\3\1\4\3\uffff\1\10\1\11\3\uffff\1\15\1\16\1\17\1\uffff\1\21\1\22\1\uffff\1\24\4\uffff\1\36\1\37\3\uffff\1\43\1\44\1\uffff\1\36\1\uffff\1\3\1\4\3\uffff\1\10\1\11\2\uffff\1\27\1\13\2\uffff\1\15\1\16\1\17\1\uffff\1\21\1\22\1\23\1\30\1\25\1\24\2\uffff\1\35\1\34\1\37\1\40\1\41\1\42\1\43\31\uffff\1\2\1\5\12\uffff\1\6\1\uffff\1\12\2\uffff\1\33\1\uffff\1\26\1\uffff\1\1\5\uffff\1\7\1\uffff\1\14\2\uffff\1\32\1\20\1\31"; | ||
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\10\1\33\4\37\1\34\1\21\1\22\1\4\1\27\1\17\1\37\1\13\1\35\12\32\1\23\1\24\1\37\1\3\1\37\1\11\1\37\32\31\1\15\1\37\1\16\1\30\1\31\1\37\1\26\1\31\1\12\1\31\1\14\1\6\10\31\1\20\1\2\1\31\1\1\1\25\1\5\1\7\5\31\uff85\37", | ||
1438 | "\1\40", | ||
1439 | "\1\42", | ||
1440 | "", | ||
1441 | "", | ||
1442 | "\1\45", | ||
1443 | "\1\46", | ||
1444 | "\1\47", | ||
1445 | "", | ||
1446 | "", | ||
1447 | "\1\52\2\uffff\1\53", | ||
1448 | "\1\54", | ||
1449 | "\1\57\5\uffff\1\56", | ||
1450 | "", | ||
1451 | "", | ||
1452 | "", | ||
1453 | "\1\63", | ||
1454 | "", | ||
1455 | "", | ||
1456 | "\1\67\2\uffff\1\66", | ||
1457 | "", | ||
1458 | "\1\72", | ||
1459 | "\1\73", | ||
1460 | "\1\74", | ||
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 | "", | ||
1473 | "", | ||
1474 | "\1\105", | ||
1475 | "\1\106", | ||
1476 | "\1\107", | ||
1477 | "", | ||
1478 | "", | ||
1479 | "\1\110", | ||
1480 | "\1\111", | ||
1481 | "", | ||
1482 | "", | ||
1483 | "\1\112", | ||
1484 | "\1\113", | ||
1485 | "", | ||
1486 | "", | ||
1487 | "", | ||
1488 | "\1\114", | ||
1489 | "", | ||
1490 | "", | ||
1491 | "", | ||
1492 | "", | ||
1493 | "", | ||
1494 | "", | ||
1495 | "\1\115", | ||
1496 | "\1\116", | ||
1497 | "", | ||
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 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1518 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1519 | "\1\136", | ||
1520 | "\1\137", | ||
1521 | "\1\140", | ||
1522 | "\1\141", | ||
1523 | "\1\142", | ||
1524 | "\1\143", | ||
1525 | "\1\144", | ||
1526 | "\1\145", | ||
1527 | "\1\146", | ||
1528 | "\1\147", | ||
1529 | "", | ||
1530 | "", | ||
1531 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1532 | "\1\151", | ||
1533 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1534 | "\1\153", | ||
1535 | "\1\154", | ||
1536 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1537 | "\1\156", | ||
1538 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1539 | "\1\160", | ||
1540 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1541 | "", | ||
1542 | "\1\162", | ||
1543 | "", | ||
1544 | "\1\163", | ||
1545 | "\1\164", | ||
1546 | "", | ||
1547 | "\1\165", | ||
1548 | "", | ||
1549 | "\1\166", | ||
1550 | "", | ||
1551 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1552 | "\1\170", | ||
1553 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
1554 | "\1\172", | ||
1555 | "\1\173", | ||
1556 | "", | ||
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 | "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", | ||
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=='r') ) {s = 1;} | ||
1617 | |||
1618 | else if ( (LA12_0=='p') ) {s = 2;} | ||
1619 | |||
1620 | else if ( (LA12_0=='=') ) {s = 3;} | ||
1621 | |||
1622 | else if ( (LA12_0=='*') ) {s = 4;} | ||
1623 | |||
1624 | else if ( (LA12_0=='t') ) {s = 5;} | ||
1625 | |||
1626 | else if ( (LA12_0=='f') ) {s = 6;} | ||
1627 | |||
1628 | else if ( (LA12_0=='u') ) {s = 7;} | ||
1629 | |||
1630 | else if ( (LA12_0=='!') ) {s = 8;} | ||
1631 | |||
1632 | else if ( (LA12_0=='?') ) {s = 9;} | ||
1633 | |||
1634 | else if ( (LA12_0=='c') ) {s = 10;} | ||
1635 | |||
1636 | else if ( (LA12_0=='.') ) {s = 11;} | ||
1637 | |||
1638 | else if ( (LA12_0=='e') ) {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=='o') ) {s = 16;} | ||
1647 | |||
1648 | else if ( (LA12_0=='(') ) {s = 17;} | ||
1649 | |||
1650 | else if ( (LA12_0==')') ) {s = 18;} | ||
1651 | |||
1652 | else if ( (LA12_0==':') ) {s = 19;} | ||
1653 | |||
1654 | else if ( (LA12_0==';') ) {s = 20;} | ||
1655 | |||
1656 | else if ( (LA12_0=='s') ) {s = 21;} | ||
1657 | |||
1658 | else if ( (LA12_0=='a') ) {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 | ||