Commit | Line | Data |
---|---|---|
73511e67 | 1 | // $ANTLR 3.5.2 org/eclipse/tracecompass/ctf/parser/CTFLexer.g 2015-08-06 19:37:53 |
9ad3c628 AM |
2 | |
3 | /******************************************************************************* | |
1c98290b | 4 | * Copyright (c) 2010, 2015 Ericsson, Ecole Polytechnique de Montréal and others |
9ad3c628 AM |
5 | * |
6 | * All rights reserved. This program and the accompanying materials are | |
7 | * made available under the terms of the Eclipse Public License v1.0 which | |
8 | * accompanies this distribution, and is available at | |
9 | * http://www.eclipse.org/legal/epl-v10.html | |
10 | * | |
11 | * Contributors: | |
12 | * Matthew Khouzam - Initial API and implementation | |
13 | * Simon Marchi - Initial API and implementation | |
14 | * Etienne Bergeron - Update to Antlr 3.5 syntax | |
15 | *******************************************************************************/ | |
16 | ||
17 | package org.eclipse.tracecompass.ctf.parser; | |
18 | ||
19 | ||
b2c971ec MK |
20 | import org.antlr.runtime.BaseRecognizer; |
21 | import org.antlr.runtime.CharStream; | |
22 | import org.antlr.runtime.DFA; | |
23 | import org.antlr.runtime.EarlyExitException; | |
24 | import org.antlr.runtime.Lexer; | |
25 | import org.antlr.runtime.MismatchedSetException; | |
26 | import org.antlr.runtime.NoViableAltException; | |
27 | import org.antlr.runtime.RecognitionException; | |
28 | import org.antlr.runtime.RecognizerSharedState; | |
9ad3c628 AM |
29 | |
30 | @SuppressWarnings("all") | |
31 | public class CTFLexer extends Lexer { | |
32 | public static final int EOF=-1; | |
33 | public static final int ALIGNTOK=4; | |
34 | public static final int ARROW=5; | |
35 | public static final int ASSIGNMENT=6; | |
36 | public static final int BACKSLASH=7; | |
37 | public static final int BOOLTOK=8; | |
73511e67 AM |
38 | public static final int CHARACTER_LITERAL=9; |
39 | public static final int CHARTOK=10; | |
40 | public static final int CHAR_CONTENT=11; | |
41 | public static final int CLOCKTOK=12; | |
42 | public static final int CLOSEBRAC=13; | |
43 | public static final int COLON=14; | |
44 | public static final int COMMENT=15; | |
45 | public static final int COMMENT_CLOSE=16; | |
46 | public static final int COMMENT_OPEN=17; | |
47 | public static final int COMPLEXTOK=18; | |
48 | public static final int CONSTTOK=19; | |
49 | public static final int DECIMAL_LITERAL=20; | |
50 | public static final int DIGIT=21; | |
51 | public static final int DOT=22; | |
52 | public static final int DOUBLEQUOTE=23; | |
53 | public static final int DOUBLETOK=24; | |
54 | public static final int ELIPSES=25; | |
55 | public static final int ENUMTOK=26; | |
56 | public static final int ENVTOK=27; | |
57 | public static final int ESCAPE_SEQUENCE=28; | |
58 | public static final int EVENTTOK=29; | |
59 | public static final int FLOATINGPOINTTOK=30; | |
60 | public static final int FLOATTOK=31; | |
61 | public static final int GT=32; | |
62 | public static final int HEXADECIMAL_ESCAPE=33; | |
63 | public static final int HEX_DIGIT=34; | |
64 | public static final int HEX_LITERAL=35; | |
65 | public static final int HEX_PREFIX=36; | |
66 | public static final int IDENTIFIER=37; | |
67 | public static final int IMAGINARYTOK=38; | |
68 | public static final int INFINITYTOK=39; | |
69 | public static final int INTEGERTOK=40; | |
70 | public static final int INTEGER_TYPES_SUFFIX=41; | |
71 | public static final int INTTOK=42; | |
72 | public static final int LCURL=43; | |
73 | public static final int LINE_COMMENT=44; | |
74 | public static final int LONGTOK=45; | |
75 | public static final int LPAREN=46; | |
76 | public static final int LT=47; | |
77 | public static final int NANNUMBERTOK=48; | |
78 | public static final int NINFINITYTOK=49; | |
79 | public static final int NONDIGIT=50; | |
80 | public static final int NONZERO_DIGIT=51; | |
81 | public static final int OCTAL_ESCAPE=52; | |
82 | public static final int OCTAL_LITERAL=53; | |
83 | public static final int OCT_DIGIT=54; | |
84 | public static final int OCT_PREFIX=55; | |
85 | public static final int OPENBRAC=56; | |
86 | public static final int POINTER=57; | |
87 | public static final int RCURL=58; | |
88 | public static final int RPAREN=59; | |
89 | public static final int SEPARATOR=60; | |
90 | public static final int SHORTTOK=61; | |
91 | public static final int SIGN=62; | |
92 | public static final int SIGNEDTOK=63; | |
93 | public static final int SINGLEQUOTE=64; | |
94 | public static final int STREAMTOK=65; | |
95 | public static final int STRINGPREFIX=66; | |
96 | public static final int STRINGTOK=67; | |
97 | public static final int STRING_CONTENT=68; | |
98 | public static final int STRING_LITERAL=69; | |
99 | public static final int STRUCTTOK=70; | |
100 | public static final int TERM=71; | |
101 | public static final int TRACETOK=72; | |
102 | public static final int TYPEALIASTOK=73; | |
103 | public static final int TYPEDEFTOK=74; | |
104 | public static final int TYPE_ASSIGNMENT=75; | |
105 | public static final int UNICODE_ESCAPE=76; | |
106 | public static final int UNSIGNEDTOK=77; | |
107 | public static final int VARIANTTOK=78; | |
108 | public static final int VOIDTOK=79; | |
109 | public static final int WS=80; | |
9ad3c628 AM |
110 | |
111 | // delegates | |
112 | // delegators | |
113 | public Lexer[] getDelegates() { | |
114 | return new Lexer[] {}; | |
115 | } | |
116 | ||
117 | public CTFLexer() {} | |
118 | public CTFLexer(CharStream input) { | |
119 | this(input, new RecognizerSharedState()); | |
120 | } | |
121 | public CTFLexer(CharStream input, RecognizerSharedState state) { | |
122 | super(input,state); | |
123 | } | |
124 | @Override public String getGrammarFileName() { return "org/eclipse/tracecompass/ctf/parser/CTFLexer.g"; } | |
125 | ||
126 | // $ANTLR start "ALIGNTOK" | |
127 | public final void mALIGNTOK() throws RecognitionException { | |
128 | try { | |
129 | int _type = ALIGNTOK; | |
130 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
131 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:32:18: ( 'align' ) | |
132 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:32:20: 'align' | |
133 | { | |
134 | match("align"); | |
135 | ||
136 | } | |
137 | ||
138 | state.type = _type; | |
139 | state.channel = _channel; | |
140 | } | |
141 | finally { | |
142 | // do for sure before leaving | |
143 | } | |
144 | } | |
145 | // $ANTLR end "ALIGNTOK" | |
146 | ||
147 | // $ANTLR start "CONSTTOK" | |
148 | public final void mCONSTTOK() throws RecognitionException { | |
149 | try { | |
150 | int _type = CONSTTOK; | |
151 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
152 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:33:18: ( 'const' ) | |
153 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:33:20: 'const' | |
154 | { | |
155 | match("const"); | |
156 | ||
157 | } | |
158 | ||
159 | state.type = _type; | |
160 | state.channel = _channel; | |
161 | } | |
162 | finally { | |
163 | // do for sure before leaving | |
164 | } | |
165 | } | |
166 | // $ANTLR end "CONSTTOK" | |
167 | ||
168 | // $ANTLR start "CHARTOK" | |
169 | public final void mCHARTOK() throws RecognitionException { | |
170 | try { | |
171 | int _type = CHARTOK; | |
172 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
173 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:34:18: ( 'char' ) | |
174 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:34:20: 'char' | |
175 | { | |
176 | match("char"); | |
177 | ||
178 | } | |
179 | ||
180 | state.type = _type; | |
181 | state.channel = _channel; | |
182 | } | |
183 | finally { | |
184 | // do for sure before leaving | |
185 | } | |
186 | } | |
187 | // $ANTLR end "CHARTOK" | |
188 | ||
189 | // $ANTLR start "DOUBLETOK" | |
190 | public final void mDOUBLETOK() throws RecognitionException { | |
191 | try { | |
192 | int _type = DOUBLETOK; | |
193 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
194 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:35:18: ( 'double' ) | |
195 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:35:20: 'double' | |
196 | { | |
197 | match("double"); | |
198 | ||
199 | } | |
200 | ||
201 | state.type = _type; | |
202 | state.channel = _channel; | |
203 | } | |
204 | finally { | |
205 | // do for sure before leaving | |
206 | } | |
207 | } | |
208 | // $ANTLR end "DOUBLETOK" | |
209 | ||
210 | // $ANTLR start "ENUMTOK" | |
211 | public final void mENUMTOK() throws RecognitionException { | |
212 | try { | |
213 | int _type = ENUMTOK; | |
214 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
215 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:36:18: ( 'enum' ) | |
216 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:36:20: 'enum' | |
217 | { | |
218 | match("enum"); | |
219 | ||
220 | } | |
221 | ||
222 | state.type = _type; | |
223 | state.channel = _channel; | |
224 | } | |
225 | finally { | |
226 | // do for sure before leaving | |
227 | } | |
228 | } | |
229 | // $ANTLR end "ENUMTOK" | |
230 | ||
231 | // $ANTLR start "EVENTTOK" | |
232 | public final void mEVENTTOK() throws RecognitionException { | |
233 | try { | |
234 | int _type = EVENTTOK; | |
235 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
236 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:37:18: ( 'event' ) | |
237 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:37:20: 'event' | |
238 | { | |
239 | match("event"); | |
240 | ||
241 | } | |
242 | ||
243 | state.type = _type; | |
244 | state.channel = _channel; | |
245 | } | |
246 | finally { | |
247 | // do for sure before leaving | |
248 | } | |
249 | } | |
250 | // $ANTLR end "EVENTTOK" | |
251 | ||
252 | // $ANTLR start "FLOATINGPOINTTOK" | |
253 | public final void mFLOATINGPOINTTOK() throws RecognitionException { | |
254 | try { | |
255 | int _type = FLOATINGPOINTTOK; | |
256 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
257 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:38:18: ( 'floating_point' ) | |
258 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:38:20: 'floating_point' | |
259 | { | |
260 | match("floating_point"); | |
261 | ||
262 | } | |
263 | ||
264 | state.type = _type; | |
265 | state.channel = _channel; | |
266 | } | |
267 | finally { | |
268 | // do for sure before leaving | |
269 | } | |
270 | } | |
271 | // $ANTLR end "FLOATINGPOINTTOK" | |
272 | ||
273 | // $ANTLR start "FLOATTOK" | |
274 | public final void mFLOATTOK() throws RecognitionException { | |
275 | try { | |
276 | int _type = FLOATTOK; | |
277 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
278 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:39:18: ( 'float' ) | |
279 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:39:20: 'float' | |
280 | { | |
281 | match("float"); | |
282 | ||
283 | } | |
284 | ||
285 | state.type = _type; | |
286 | state.channel = _channel; | |
287 | } | |
288 | finally { | |
289 | // do for sure before leaving | |
290 | } | |
291 | } | |
292 | // $ANTLR end "FLOATTOK" | |
293 | ||
294 | // $ANTLR start "INTEGERTOK" | |
295 | public final void mINTEGERTOK() throws RecognitionException { | |
296 | try { | |
297 | int _type = INTEGERTOK; | |
298 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
299 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:40:18: ( 'integer' ) | |
300 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:40:20: 'integer' | |
301 | { | |
302 | match("integer"); | |
303 | ||
304 | } | |
305 | ||
306 | state.type = _type; | |
307 | state.channel = _channel; | |
308 | } | |
309 | finally { | |
310 | // do for sure before leaving | |
311 | } | |
312 | } | |
313 | // $ANTLR end "INTEGERTOK" | |
314 | ||
315 | // $ANTLR start "INTTOK" | |
316 | public final void mINTTOK() throws RecognitionException { | |
317 | try { | |
318 | int _type = INTTOK; | |
319 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
320 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:41:18: ( 'int' ) | |
321 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:41:20: 'int' | |
322 | { | |
323 | match("int"); | |
324 | ||
325 | } | |
326 | ||
327 | state.type = _type; | |
328 | state.channel = _channel; | |
329 | } | |
330 | finally { | |
331 | // do for sure before leaving | |
332 | } | |
333 | } | |
334 | // $ANTLR end "INTTOK" | |
335 | ||
336 | // $ANTLR start "LONGTOK" | |
337 | public final void mLONGTOK() throws RecognitionException { | |
338 | try { | |
339 | int _type = LONGTOK; | |
340 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
341 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:42:18: ( 'long' ) | |
342 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:42:20: 'long' | |
343 | { | |
344 | match("long"); | |
345 | ||
346 | } | |
347 | ||
348 | state.type = _type; | |
349 | state.channel = _channel; | |
350 | } | |
351 | finally { | |
352 | // do for sure before leaving | |
353 | } | |
354 | } | |
355 | // $ANTLR end "LONGTOK" | |
356 | ||
357 | // $ANTLR start "SHORTTOK" | |
358 | public final void mSHORTTOK() throws RecognitionException { | |
359 | try { | |
360 | int _type = SHORTTOK; | |
361 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
362 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:43:18: ( 'short' ) | |
363 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:43:20: 'short' | |
364 | { | |
365 | match("short"); | |
366 | ||
367 | } | |
368 | ||
369 | state.type = _type; | |
370 | state.channel = _channel; | |
371 | } | |
372 | finally { | |
373 | // do for sure before leaving | |
374 | } | |
375 | } | |
376 | // $ANTLR end "SHORTTOK" | |
377 | ||
378 | // $ANTLR start "SIGNEDTOK" | |
379 | public final void mSIGNEDTOK() throws RecognitionException { | |
380 | try { | |
381 | int _type = SIGNEDTOK; | |
382 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
383 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:44:18: ( 'signed' ) | |
384 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:44:20: 'signed' | |
385 | { | |
386 | match("signed"); | |
387 | ||
388 | } | |
389 | ||
390 | state.type = _type; | |
391 | state.channel = _channel; | |
392 | } | |
393 | finally { | |
394 | // do for sure before leaving | |
395 | } | |
396 | } | |
397 | // $ANTLR end "SIGNEDTOK" | |
398 | ||
399 | // $ANTLR start "STREAMTOK" | |
400 | public final void mSTREAMTOK() throws RecognitionException { | |
401 | try { | |
402 | int _type = STREAMTOK; | |
403 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
404 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:45:18: ( 'stream' ) | |
405 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:45:20: 'stream' | |
406 | { | |
407 | match("stream"); | |
408 | ||
409 | } | |
410 | ||
411 | state.type = _type; | |
412 | state.channel = _channel; | |
413 | } | |
414 | finally { | |
415 | // do for sure before leaving | |
416 | } | |
417 | } | |
418 | // $ANTLR end "STREAMTOK" | |
419 | ||
420 | // $ANTLR start "STRINGTOK" | |
421 | public final void mSTRINGTOK() throws RecognitionException { | |
422 | try { | |
423 | int _type = STRINGTOK; | |
424 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
425 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:46:18: ( 'string' ) | |
426 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:46:20: 'string' | |
427 | { | |
428 | match("string"); | |
429 | ||
430 | } | |
431 | ||
432 | state.type = _type; | |
433 | state.channel = _channel; | |
434 | } | |
435 | finally { | |
436 | // do for sure before leaving | |
437 | } | |
438 | } | |
439 | // $ANTLR end "STRINGTOK" | |
440 | ||
441 | // $ANTLR start "STRUCTTOK" | |
442 | public final void mSTRUCTTOK() throws RecognitionException { | |
443 | try { | |
444 | int _type = STRUCTTOK; | |
445 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
446 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:47:18: ( 'struct' ) | |
447 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:47:20: 'struct' | |
448 | { | |
449 | match("struct"); | |
450 | ||
451 | } | |
452 | ||
453 | state.type = _type; | |
454 | state.channel = _channel; | |
455 | } | |
456 | finally { | |
457 | // do for sure before leaving | |
458 | } | |
459 | } | |
460 | // $ANTLR end "STRUCTTOK" | |
461 | ||
462 | // $ANTLR start "TRACETOK" | |
463 | public final void mTRACETOK() throws RecognitionException { | |
464 | try { | |
465 | int _type = TRACETOK; | |
466 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
467 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:48:18: ( 'trace' ) | |
468 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:48:20: 'trace' | |
469 | { | |
470 | match("trace"); | |
471 | ||
472 | } | |
473 | ||
474 | state.type = _type; | |
475 | state.channel = _channel; | |
476 | } | |
477 | finally { | |
478 | // do for sure before leaving | |
479 | } | |
480 | } | |
481 | // $ANTLR end "TRACETOK" | |
482 | ||
483 | // $ANTLR start "TYPEALIASTOK" | |
484 | public final void mTYPEALIASTOK() throws RecognitionException { | |
485 | try { | |
486 | int _type = TYPEALIASTOK; | |
487 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
488 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:49:18: ( 'typealias' ) | |
489 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:49:20: 'typealias' | |
490 | { | |
491 | match("typealias"); | |
492 | ||
493 | } | |
494 | ||
495 | state.type = _type; | |
496 | state.channel = _channel; | |
497 | } | |
498 | finally { | |
499 | // do for sure before leaving | |
500 | } | |
501 | } | |
502 | // $ANTLR end "TYPEALIASTOK" | |
503 | ||
504 | // $ANTLR start "TYPEDEFTOK" | |
505 | public final void mTYPEDEFTOK() throws RecognitionException { | |
506 | try { | |
507 | int _type = TYPEDEFTOK; | |
508 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
509 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:50:18: ( 'typedef' ) | |
510 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:50:20: 'typedef' | |
511 | { | |
512 | match("typedef"); | |
513 | ||
514 | } | |
515 | ||
516 | state.type = _type; | |
517 | state.channel = _channel; | |
518 | } | |
519 | finally { | |
520 | // do for sure before leaving | |
521 | } | |
522 | } | |
523 | // $ANTLR end "TYPEDEFTOK" | |
524 | ||
525 | // $ANTLR start "UNSIGNEDTOK" | |
526 | public final void mUNSIGNEDTOK() throws RecognitionException { | |
527 | try { | |
528 | int _type = UNSIGNEDTOK; | |
529 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
530 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:51:18: ( 'unsigned' ) | |
531 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:51:20: 'unsigned' | |
532 | { | |
533 | match("unsigned"); | |
534 | ||
535 | } | |
536 | ||
537 | state.type = _type; | |
538 | state.channel = _channel; | |
539 | } | |
540 | finally { | |
541 | // do for sure before leaving | |
542 | } | |
543 | } | |
544 | // $ANTLR end "UNSIGNEDTOK" | |
545 | ||
546 | // $ANTLR start "VARIANTTOK" | |
547 | public final void mVARIANTTOK() throws RecognitionException { | |
548 | try { | |
549 | int _type = VARIANTTOK; | |
550 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
551 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:52:18: ( 'variant' ) | |
552 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:52:20: 'variant' | |
553 | { | |
554 | match("variant"); | |
555 | ||
556 | } | |
557 | ||
558 | state.type = _type; | |
559 | state.channel = _channel; | |
560 | } | |
561 | finally { | |
562 | // do for sure before leaving | |
563 | } | |
564 | } | |
565 | // $ANTLR end "VARIANTTOK" | |
566 | ||
567 | // $ANTLR start "VOIDTOK" | |
568 | public final void mVOIDTOK() throws RecognitionException { | |
569 | try { | |
570 | int _type = VOIDTOK; | |
571 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
572 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:53:18: ( 'void' ) | |
573 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:53:20: 'void' | |
574 | { | |
575 | match("void"); | |
576 | ||
577 | } | |
578 | ||
579 | state.type = _type; | |
580 | state.channel = _channel; | |
581 | } | |
582 | finally { | |
583 | // do for sure before leaving | |
584 | } | |
585 | } | |
586 | // $ANTLR end "VOIDTOK" | |
587 | ||
588 | // $ANTLR start "BOOLTOK" | |
589 | public final void mBOOLTOK() throws RecognitionException { | |
590 | try { | |
591 | int _type = BOOLTOK; | |
592 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
593 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:54:18: ( '_Bool' ) | |
594 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:54:20: '_Bool' | |
595 | { | |
596 | match("_Bool"); | |
597 | ||
598 | } | |
599 | ||
600 | state.type = _type; | |
601 | state.channel = _channel; | |
602 | } | |
603 | finally { | |
604 | // do for sure before leaving | |
605 | } | |
606 | } | |
607 | // $ANTLR end "BOOLTOK" | |
608 | ||
609 | // $ANTLR start "COMPLEXTOK" | |
610 | public final void mCOMPLEXTOK() throws RecognitionException { | |
611 | try { | |
612 | int _type = COMPLEXTOK; | |
613 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
614 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:55:18: ( '_Complex' ) | |
615 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:55:20: '_Complex' | |
616 | { | |
617 | match("_Complex"); | |
618 | ||
619 | } | |
620 | ||
621 | state.type = _type; | |
622 | state.channel = _channel; | |
623 | } | |
624 | finally { | |
625 | // do for sure before leaving | |
626 | } | |
627 | } | |
628 | // $ANTLR end "COMPLEXTOK" | |
629 | ||
630 | // $ANTLR start "IMAGINARYTOK" | |
631 | public final void mIMAGINARYTOK() throws RecognitionException { | |
632 | try { | |
633 | int _type = IMAGINARYTOK; | |
634 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
635 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:56:18: ( '_Imaginary' ) | |
636 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:56:20: '_Imaginary' | |
637 | { | |
638 | match("_Imaginary"); | |
639 | ||
640 | } | |
641 | ||
642 | state.type = _type; | |
643 | state.channel = _channel; | |
644 | } | |
645 | finally { | |
646 | // do for sure before leaving | |
647 | } | |
648 | } | |
649 | // $ANTLR end "IMAGINARYTOK" | |
650 | ||
651 | // $ANTLR start "ENVTOK" | |
652 | public final void mENVTOK() throws RecognitionException { | |
653 | try { | |
654 | int _type = ENVTOK; | |
655 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
656 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:57:18: ( 'env' ) | |
657 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:57:20: 'env' | |
658 | { | |
659 | match("env"); | |
660 | ||
661 | } | |
662 | ||
663 | state.type = _type; | |
664 | state.channel = _channel; | |
665 | } | |
666 | finally { | |
667 | // do for sure before leaving | |
668 | } | |
669 | } | |
670 | // $ANTLR end "ENVTOK" | |
671 | ||
672 | // $ANTLR start "CLOCKTOK" | |
673 | public final void mCLOCKTOK() throws RecognitionException { | |
674 | try { | |
675 | int _type = CLOCKTOK; | |
676 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
677 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:58:18: ( 'clock' ) | |
678 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:58:20: 'clock' | |
679 | { | |
680 | match("clock"); | |
681 | ||
682 | } | |
683 | ||
684 | state.type = _type; | |
685 | state.channel = _channel; | |
686 | } | |
687 | finally { | |
688 | // do for sure before leaving | |
689 | } | |
690 | } | |
691 | // $ANTLR end "CLOCKTOK" | |
692 | ||
9ad3c628 AM |
693 | // $ANTLR start "NANNUMBERTOK" |
694 | public final void mNANNUMBERTOK() throws RecognitionException { | |
695 | try { | |
696 | int _type = NANNUMBERTOK; | |
697 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
698 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:65:15: ( 'NaN' ) |
699 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:65:17: 'NaN' | |
9ad3c628 AM |
700 | { |
701 | match("NaN"); | |
702 | ||
703 | } | |
704 | ||
705 | state.type = _type; | |
706 | state.channel = _channel; | |
707 | } | |
708 | finally { | |
709 | // do for sure before leaving | |
710 | } | |
711 | } | |
712 | // $ANTLR end "NANNUMBERTOK" | |
713 | ||
714 | // $ANTLR start "INFINITYTOK" | |
715 | public final void mINFINITYTOK() throws RecognitionException { | |
716 | try { | |
717 | int _type = INFINITYTOK; | |
718 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
719 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:66:15: ( '+inf' ) |
720 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:66:17: '+inf' | |
9ad3c628 AM |
721 | { |
722 | match("+inf"); | |
723 | ||
724 | } | |
725 | ||
726 | state.type = _type; | |
727 | state.channel = _channel; | |
728 | } | |
729 | finally { | |
730 | // do for sure before leaving | |
731 | } | |
732 | } | |
733 | // $ANTLR end "INFINITYTOK" | |
734 | ||
735 | // $ANTLR start "NINFINITYTOK" | |
736 | public final void mNINFINITYTOK() throws RecognitionException { | |
737 | try { | |
738 | int _type = NINFINITYTOK; | |
739 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
740 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:67:15: ( '-inf' ) |
741 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:67:17: '-inf' | |
9ad3c628 AM |
742 | { |
743 | match("-inf"); | |
744 | ||
745 | } | |
746 | ||
747 | state.type = _type; | |
748 | state.channel = _channel; | |
749 | } | |
750 | finally { | |
751 | // do for sure before leaving | |
752 | } | |
753 | } | |
754 | // $ANTLR end "NINFINITYTOK" | |
755 | ||
756 | // $ANTLR start "SEPARATOR" | |
757 | public final void mSEPARATOR() throws RecognitionException { | |
758 | try { | |
759 | int _type = SEPARATOR; | |
760 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
761 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:72:20: ( ',' ) |
762 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:72:22: ',' | |
9ad3c628 AM |
763 | { |
764 | match(','); | |
765 | } | |
766 | ||
767 | state.type = _type; | |
768 | state.channel = _channel; | |
769 | } | |
770 | finally { | |
771 | // do for sure before leaving | |
772 | } | |
773 | } | |
774 | // $ANTLR end "SEPARATOR" | |
775 | ||
776 | // $ANTLR start "COLON" | |
777 | public final void mCOLON() throws RecognitionException { | |
778 | try { | |
779 | int _type = COLON; | |
780 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
781 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:73:20: ( ':' ) |
782 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:73:22: ':' | |
9ad3c628 AM |
783 | { |
784 | match(':'); | |
785 | } | |
786 | ||
787 | state.type = _type; | |
788 | state.channel = _channel; | |
789 | } | |
790 | finally { | |
791 | // do for sure before leaving | |
792 | } | |
793 | } | |
794 | // $ANTLR end "COLON" | |
795 | ||
796 | // $ANTLR start "ELIPSES" | |
797 | public final void mELIPSES() throws RecognitionException { | |
798 | try { | |
799 | int _type = ELIPSES; | |
800 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
801 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:74:20: ( '...' ) |
802 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:74:22: '...' | |
9ad3c628 AM |
803 | { |
804 | match("..."); | |
805 | ||
806 | } | |
807 | ||
808 | state.type = _type; | |
809 | state.channel = _channel; | |
810 | } | |
811 | finally { | |
812 | // do for sure before leaving | |
813 | } | |
814 | } | |
815 | // $ANTLR end "ELIPSES" | |
816 | ||
817 | // $ANTLR start "ASSIGNMENT" | |
818 | public final void mASSIGNMENT() throws RecognitionException { | |
819 | try { | |
820 | int _type = ASSIGNMENT; | |
821 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
822 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:75:20: ( '=' ) |
823 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:75:22: '=' | |
9ad3c628 AM |
824 | { |
825 | match('='); | |
826 | } | |
827 | ||
828 | state.type = _type; | |
829 | state.channel = _channel; | |
830 | } | |
831 | finally { | |
832 | // do for sure before leaving | |
833 | } | |
834 | } | |
835 | // $ANTLR end "ASSIGNMENT" | |
836 | ||
837 | // $ANTLR start "TYPE_ASSIGNMENT" | |
838 | public final void mTYPE_ASSIGNMENT() throws RecognitionException { | |
839 | try { | |
840 | int _type = TYPE_ASSIGNMENT; | |
841 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
842 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:76:20: ( ':=' ) |
843 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:76:22: ':=' | |
9ad3c628 AM |
844 | { |
845 | match(":="); | |
846 | ||
847 | } | |
848 | ||
849 | state.type = _type; | |
850 | state.channel = _channel; | |
851 | } | |
852 | finally { | |
853 | // do for sure before leaving | |
854 | } | |
855 | } | |
856 | // $ANTLR end "TYPE_ASSIGNMENT" | |
857 | ||
858 | // $ANTLR start "LT" | |
859 | public final void mLT() throws RecognitionException { | |
860 | try { | |
861 | int _type = LT; | |
862 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
863 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:77:20: ( '<' ) |
864 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:77:22: '<' | |
9ad3c628 AM |
865 | { |
866 | match('<'); | |
867 | } | |
868 | ||
869 | state.type = _type; | |
870 | state.channel = _channel; | |
871 | } | |
872 | finally { | |
873 | // do for sure before leaving | |
874 | } | |
875 | } | |
876 | // $ANTLR end "LT" | |
877 | ||
878 | // $ANTLR start "GT" | |
879 | public final void mGT() throws RecognitionException { | |
880 | try { | |
881 | int _type = GT; | |
882 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
883 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:78:20: ( '>' ) |
884 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:78:22: '>' | |
9ad3c628 AM |
885 | { |
886 | match('>'); | |
887 | } | |
888 | ||
889 | state.type = _type; | |
890 | state.channel = _channel; | |
891 | } | |
892 | finally { | |
893 | // do for sure before leaving | |
894 | } | |
895 | } | |
896 | // $ANTLR end "GT" | |
897 | ||
898 | // $ANTLR start "OPENBRAC" | |
899 | public final void mOPENBRAC() throws RecognitionException { | |
900 | try { | |
901 | int _type = OPENBRAC; | |
902 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
903 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:79:20: ( '[' ) |
904 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:79:22: '[' | |
9ad3c628 AM |
905 | { |
906 | match('['); | |
907 | } | |
908 | ||
909 | state.type = _type; | |
910 | state.channel = _channel; | |
911 | } | |
912 | finally { | |
913 | // do for sure before leaving | |
914 | } | |
915 | } | |
916 | // $ANTLR end "OPENBRAC" | |
917 | ||
918 | // $ANTLR start "CLOSEBRAC" | |
919 | public final void mCLOSEBRAC() throws RecognitionException { | |
920 | try { | |
921 | int _type = CLOSEBRAC; | |
922 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
923 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:80:20: ( ']' ) |
924 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:80:22: ']' | |
9ad3c628 AM |
925 | { |
926 | match(']'); | |
927 | } | |
928 | ||
929 | state.type = _type; | |
930 | state.channel = _channel; | |
931 | } | |
932 | finally { | |
933 | // do for sure before leaving | |
934 | } | |
935 | } | |
936 | // $ANTLR end "CLOSEBRAC" | |
937 | ||
938 | // $ANTLR start "LPAREN" | |
939 | public final void mLPAREN() throws RecognitionException { | |
940 | try { | |
941 | int _type = LPAREN; | |
942 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
943 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:81:20: ( '(' ) |
944 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:81:22: '(' | |
9ad3c628 AM |
945 | { |
946 | match('('); | |
947 | } | |
948 | ||
949 | state.type = _type; | |
950 | state.channel = _channel; | |
951 | } | |
952 | finally { | |
953 | // do for sure before leaving | |
954 | } | |
955 | } | |
956 | // $ANTLR end "LPAREN" | |
957 | ||
958 | // $ANTLR start "RPAREN" | |
959 | public final void mRPAREN() throws RecognitionException { | |
960 | try { | |
961 | int _type = RPAREN; | |
962 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
963 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:82:20: ( ')' ) |
964 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:82:22: ')' | |
9ad3c628 AM |
965 | { |
966 | match(')'); | |
967 | } | |
968 | ||
969 | state.type = _type; | |
970 | state.channel = _channel; | |
971 | } | |
972 | finally { | |
973 | // do for sure before leaving | |
974 | } | |
975 | } | |
976 | // $ANTLR end "RPAREN" | |
977 | ||
978 | // $ANTLR start "LCURL" | |
979 | public final void mLCURL() throws RecognitionException { | |
980 | try { | |
981 | int _type = LCURL; | |
982 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
983 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:83:20: ( '{' ) |
984 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:83:22: '{' | |
9ad3c628 AM |
985 | { |
986 | match('{'); | |
987 | } | |
988 | ||
989 | state.type = _type; | |
990 | state.channel = _channel; | |
991 | } | |
992 | finally { | |
993 | // do for sure before leaving | |
994 | } | |
995 | } | |
996 | // $ANTLR end "LCURL" | |
997 | ||
998 | // $ANTLR start "RCURL" | |
999 | public final void mRCURL() throws RecognitionException { | |
1000 | try { | |
1001 | int _type = RCURL; | |
1002 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
1003 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:84:20: ( '}' ) |
1004 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:84:22: '}' | |
9ad3c628 AM |
1005 | { |
1006 | match('}'); | |
1007 | } | |
1008 | ||
1009 | state.type = _type; | |
1010 | state.channel = _channel; | |
1011 | } | |
1012 | finally { | |
1013 | // do for sure before leaving | |
1014 | } | |
1015 | } | |
1016 | // $ANTLR end "RCURL" | |
1017 | ||
1018 | // $ANTLR start "TERM" | |
1019 | public final void mTERM() throws RecognitionException { | |
1020 | try { | |
1021 | int _type = TERM; | |
1022 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
1023 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:85:20: ( ';' ) |
1024 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:85:22: ';' | |
9ad3c628 AM |
1025 | { |
1026 | match(';'); | |
1027 | } | |
1028 | ||
1029 | state.type = _type; | |
1030 | state.channel = _channel; | |
1031 | } | |
1032 | finally { | |
1033 | // do for sure before leaving | |
1034 | } | |
1035 | } | |
1036 | // $ANTLR end "TERM" | |
1037 | ||
1038 | // $ANTLR start "POINTER" | |
1039 | public final void mPOINTER() throws RecognitionException { | |
1040 | try { | |
1041 | int _type = POINTER; | |
1042 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
1043 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:86:20: ( '*' ) |
1044 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:86:22: '*' | |
9ad3c628 AM |
1045 | { |
1046 | match('*'); | |
1047 | } | |
1048 | ||
1049 | state.type = _type; | |
1050 | state.channel = _channel; | |
1051 | } | |
1052 | finally { | |
1053 | // do for sure before leaving | |
1054 | } | |
1055 | } | |
1056 | // $ANTLR end "POINTER" | |
1057 | ||
1058 | // $ANTLR start "SIGN" | |
1059 | public final void mSIGN() throws RecognitionException { | |
1060 | try { | |
1061 | int _type = SIGN; | |
1062 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 | 1063 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:87:20: ( '+' | '-' ) |
9ad3c628 AM |
1064 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: |
1065 | { | |
1066 | if ( input.LA(1)=='+'||input.LA(1)=='-' ) { | |
1067 | input.consume(); | |
1068 | } | |
1069 | else { | |
1070 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1071 | recover(mse); | |
1072 | throw mse; | |
1073 | } | |
1074 | } | |
1075 | ||
1076 | state.type = _type; | |
1077 | state.channel = _channel; | |
1078 | } | |
1079 | finally { | |
1080 | // do for sure before leaving | |
1081 | } | |
1082 | } | |
1083 | // $ANTLR end "SIGN" | |
1084 | ||
1085 | // $ANTLR start "ARROW" | |
1086 | public final void mARROW() throws RecognitionException { | |
1087 | try { | |
1088 | int _type = ARROW; | |
1089 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
1090 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:88:20: ( '->' ) |
1091 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:88:22: '->' | |
9ad3c628 AM |
1092 | { |
1093 | match("->"); | |
1094 | ||
1095 | } | |
1096 | ||
1097 | state.type = _type; | |
1098 | state.channel = _channel; | |
1099 | } | |
1100 | finally { | |
1101 | // do for sure before leaving | |
1102 | } | |
1103 | } | |
1104 | // $ANTLR end "ARROW" | |
1105 | ||
1106 | // $ANTLR start "DOT" | |
1107 | public final void mDOT() throws RecognitionException { | |
1108 | try { | |
1109 | int _type = DOT; | |
1110 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
1111 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:89:20: ( '.' ) |
1112 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:89:22: '.' | |
9ad3c628 AM |
1113 | { |
1114 | match('.'); | |
1115 | } | |
1116 | ||
1117 | state.type = _type; | |
1118 | state.channel = _channel; | |
1119 | } | |
1120 | finally { | |
1121 | // do for sure before leaving | |
1122 | } | |
1123 | } | |
1124 | // $ANTLR end "DOT" | |
1125 | ||
1126 | // $ANTLR start "BACKSLASH" | |
1127 | public final void mBACKSLASH() throws RecognitionException { | |
1128 | try { | |
73511e67 AM |
1129 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:90:20: ( '\\\\' ) |
1130 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:90:22: '\\\\' | |
9ad3c628 AM |
1131 | { |
1132 | match('\\'); | |
1133 | } | |
1134 | ||
1135 | } | |
1136 | finally { | |
1137 | // do for sure before leaving | |
1138 | } | |
1139 | } | |
1140 | // $ANTLR end "BACKSLASH" | |
1141 | ||
1142 | // $ANTLR start "DIGIT" | |
1143 | public final void mDIGIT() throws RecognitionException { | |
1144 | try { | |
73511e67 | 1145 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:93:16: ( '0' .. '9' ) |
9ad3c628 AM |
1146 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: |
1147 | { | |
1148 | if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) { | |
1149 | input.consume(); | |
1150 | } | |
1151 | else { | |
1152 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1153 | recover(mse); | |
1154 | throw mse; | |
1155 | } | |
1156 | } | |
1157 | ||
1158 | } | |
1159 | finally { | |
1160 | // do for sure before leaving | |
1161 | } | |
1162 | } | |
1163 | // $ANTLR end "DIGIT" | |
1164 | ||
1165 | // $ANTLR start "OCT_DIGIT" | |
1166 | public final void mOCT_DIGIT() throws RecognitionException { | |
1167 | try { | |
73511e67 | 1168 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:94:20: ( '0' .. '7' ) |
9ad3c628 AM |
1169 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: |
1170 | { | |
1171 | if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) { | |
1172 | input.consume(); | |
1173 | } | |
1174 | else { | |
1175 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1176 | recover(mse); | |
1177 | throw mse; | |
1178 | } | |
1179 | } | |
1180 | ||
1181 | } | |
1182 | finally { | |
1183 | // do for sure before leaving | |
1184 | } | |
1185 | } | |
1186 | // $ANTLR end "OCT_DIGIT" | |
1187 | ||
1188 | // $ANTLR start "OCT_PREFIX" | |
1189 | public final void mOCT_PREFIX() throws RecognitionException { | |
1190 | try { | |
73511e67 AM |
1191 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:95:21: ( '0' ) |
1192 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:95:23: '0' | |
9ad3c628 AM |
1193 | { |
1194 | match('0'); | |
1195 | } | |
1196 | ||
1197 | } | |
1198 | finally { | |
1199 | // do for sure before leaving | |
1200 | } | |
1201 | } | |
1202 | // $ANTLR end "OCT_PREFIX" | |
1203 | ||
1204 | // $ANTLR start "NONZERO_DIGIT" | |
1205 | public final void mNONZERO_DIGIT() throws RecognitionException { | |
1206 | try { | |
73511e67 | 1207 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:96:24: ( '1' .. '9' ) |
9ad3c628 AM |
1208 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: |
1209 | { | |
1210 | if ( (input.LA(1) >= '1' && input.LA(1) <= '9') ) { | |
1211 | input.consume(); | |
1212 | } | |
1213 | else { | |
1214 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1215 | recover(mse); | |
1216 | throw mse; | |
1217 | } | |
1218 | } | |
1219 | ||
1220 | } | |
1221 | finally { | |
1222 | // do for sure before leaving | |
1223 | } | |
1224 | } | |
1225 | // $ANTLR end "NONZERO_DIGIT" | |
1226 | ||
1227 | // $ANTLR start "HEX_DIGIT" | |
1228 | public final void mHEX_DIGIT() throws RecognitionException { | |
1229 | try { | |
73511e67 | 1230 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:97:20: ( DIGIT | ( 'a' .. 'f' ) | ( 'A' .. 'F' ) ) |
9ad3c628 AM |
1231 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: |
1232 | { | |
1233 | if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'F')||(input.LA(1) >= 'a' && input.LA(1) <= 'f') ) { | |
1234 | input.consume(); | |
1235 | } | |
1236 | else { | |
1237 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1238 | recover(mse); | |
1239 | throw mse; | |
1240 | } | |
1241 | } | |
1242 | ||
1243 | } | |
1244 | finally { | |
1245 | // do for sure before leaving | |
1246 | } | |
1247 | } | |
1248 | // $ANTLR end "HEX_DIGIT" | |
1249 | ||
1250 | // $ANTLR start "HEX_PREFIX" | |
1251 | public final void mHEX_PREFIX() throws RecognitionException { | |
1252 | try { | |
73511e67 AM |
1253 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:98:21: ( '0' ( 'x' | 'X' ) ) |
1254 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:98:23: '0' ( 'x' | 'X' ) | |
9ad3c628 AM |
1255 | { |
1256 | match('0'); | |
1257 | if ( input.LA(1)=='X'||input.LA(1)=='x' ) { | |
1258 | input.consume(); | |
1259 | } | |
1260 | else { | |
1261 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1262 | recover(mse); | |
1263 | throw mse; | |
1264 | } | |
1265 | } | |
1266 | ||
1267 | } | |
1268 | finally { | |
1269 | // do for sure before leaving | |
1270 | } | |
1271 | } | |
1272 | // $ANTLR end "HEX_PREFIX" | |
1273 | ||
1274 | // $ANTLR start "OCTAL_LITERAL" | |
1275 | public final void mOCTAL_LITERAL() throws RecognitionException { | |
1276 | try { | |
1277 | int _type = OCTAL_LITERAL; | |
1278 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
1279 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:103:15: ( OCT_PREFIX ( OCT_DIGIT )+ ( INTEGER_TYPES_SUFFIX )? ) |
1280 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:103:17: OCT_PREFIX ( OCT_DIGIT )+ ( INTEGER_TYPES_SUFFIX )? | |
9ad3c628 AM |
1281 | { |
1282 | mOCT_PREFIX(); | |
1283 | ||
73511e67 | 1284 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:103:28: ( OCT_DIGIT )+ |
9ad3c628 AM |
1285 | int cnt1=0; |
1286 | loop1: | |
1287 | while (true) { | |
1288 | int alt1=2; | |
1289 | int LA1_0 = input.LA(1); | |
1290 | if ( ((LA1_0 >= '0' && LA1_0 <= '7')) ) { | |
1291 | alt1=1; | |
1292 | } | |
1293 | ||
1294 | switch (alt1) { | |
1295 | case 1 : | |
1296 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: | |
1297 | { | |
1298 | if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) { | |
1299 | input.consume(); | |
1300 | } | |
1301 | else { | |
1302 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1303 | recover(mse); | |
1304 | throw mse; | |
1305 | } | |
1306 | } | |
1307 | break; | |
1308 | ||
1309 | default : | |
1310 | if ( cnt1 >= 1 ) break loop1; | |
1311 | EarlyExitException eee = new EarlyExitException(1, input); | |
1312 | throw eee; | |
1313 | } | |
1314 | cnt1++; | |
1315 | } | |
1316 | ||
73511e67 | 1317 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:103:41: ( INTEGER_TYPES_SUFFIX )? |
9ad3c628 AM |
1318 | int alt2=2; |
1319 | int LA2_0 = input.LA(1); | |
1320 | if ( (LA2_0=='L'||LA2_0=='U'||LA2_0=='l'||LA2_0=='u') ) { | |
1321 | alt2=1; | |
1322 | } | |
1323 | switch (alt2) { | |
1324 | case 1 : | |
73511e67 | 1325 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:103:41: INTEGER_TYPES_SUFFIX |
9ad3c628 AM |
1326 | { |
1327 | mINTEGER_TYPES_SUFFIX(); | |
1328 | ||
1329 | } | |
1330 | break; | |
1331 | ||
1332 | } | |
1333 | ||
1334 | } | |
1335 | ||
1336 | state.type = _type; | |
1337 | state.channel = _channel; | |
1338 | } | |
1339 | finally { | |
1340 | // do for sure before leaving | |
1341 | } | |
1342 | } | |
1343 | // $ANTLR end "OCTAL_LITERAL" | |
1344 | ||
1345 | // $ANTLR start "DECIMAL_LITERAL" | |
1346 | public final void mDECIMAL_LITERAL() throws RecognitionException { | |
1347 | try { | |
1348 | int _type = DECIMAL_LITERAL; | |
1349 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
1350 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:104:17: ( ( DIGIT )+ ( INTEGER_TYPES_SUFFIX )? ) |
1351 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:104:19: ( DIGIT )+ ( INTEGER_TYPES_SUFFIX )? | |
9ad3c628 | 1352 | { |
73511e67 | 1353 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:104:19: ( DIGIT )+ |
9ad3c628 AM |
1354 | int cnt3=0; |
1355 | loop3: | |
1356 | while (true) { | |
1357 | int alt3=2; | |
1358 | int LA3_0 = input.LA(1); | |
1359 | if ( ((LA3_0 >= '0' && LA3_0 <= '9')) ) { | |
1360 | alt3=1; | |
1361 | } | |
1362 | ||
1363 | switch (alt3) { | |
1364 | case 1 : | |
1365 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: | |
1366 | { | |
1367 | if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) { | |
1368 | input.consume(); | |
1369 | } | |
1370 | else { | |
1371 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1372 | recover(mse); | |
1373 | throw mse; | |
1374 | } | |
1375 | } | |
1376 | break; | |
1377 | ||
1378 | default : | |
1379 | if ( cnt3 >= 1 ) break loop3; | |
1380 | EarlyExitException eee = new EarlyExitException(3, input); | |
1381 | throw eee; | |
1382 | } | |
1383 | cnt3++; | |
1384 | } | |
1385 | ||
73511e67 | 1386 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:104:26: ( INTEGER_TYPES_SUFFIX )? |
9ad3c628 AM |
1387 | int alt4=2; |
1388 | int LA4_0 = input.LA(1); | |
1389 | if ( (LA4_0=='L'||LA4_0=='U'||LA4_0=='l'||LA4_0=='u') ) { | |
1390 | alt4=1; | |
1391 | } | |
1392 | switch (alt4) { | |
1393 | case 1 : | |
73511e67 | 1394 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:104:26: INTEGER_TYPES_SUFFIX |
9ad3c628 AM |
1395 | { |
1396 | mINTEGER_TYPES_SUFFIX(); | |
1397 | ||
1398 | } | |
1399 | break; | |
1400 | ||
1401 | } | |
1402 | ||
1403 | } | |
1404 | ||
1405 | state.type = _type; | |
1406 | state.channel = _channel; | |
1407 | } | |
1408 | finally { | |
1409 | // do for sure before leaving | |
1410 | } | |
1411 | } | |
1412 | // $ANTLR end "DECIMAL_LITERAL" | |
1413 | ||
1414 | // $ANTLR start "HEX_LITERAL" | |
1415 | public final void mHEX_LITERAL() throws RecognitionException { | |
1416 | try { | |
1417 | int _type = HEX_LITERAL; | |
1418 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
1419 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:105:13: ( HEX_PREFIX ( HEX_DIGIT )+ ( INTEGER_TYPES_SUFFIX )? ) |
1420 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:105:15: HEX_PREFIX ( HEX_DIGIT )+ ( INTEGER_TYPES_SUFFIX )? | |
9ad3c628 AM |
1421 | { |
1422 | mHEX_PREFIX(); | |
1423 | ||
73511e67 | 1424 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:105:26: ( HEX_DIGIT )+ |
9ad3c628 AM |
1425 | int cnt5=0; |
1426 | loop5: | |
1427 | while (true) { | |
1428 | int alt5=2; | |
1429 | int LA5_0 = input.LA(1); | |
1430 | if ( ((LA5_0 >= '0' && LA5_0 <= '9')||(LA5_0 >= 'A' && LA5_0 <= 'F')||(LA5_0 >= 'a' && LA5_0 <= 'f')) ) { | |
1431 | alt5=1; | |
1432 | } | |
1433 | ||
1434 | switch (alt5) { | |
1435 | case 1 : | |
1436 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: | |
1437 | { | |
1438 | if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'F')||(input.LA(1) >= 'a' && input.LA(1) <= 'f') ) { | |
1439 | input.consume(); | |
1440 | } | |
1441 | else { | |
1442 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1443 | recover(mse); | |
1444 | throw mse; | |
1445 | } | |
1446 | } | |
1447 | break; | |
1448 | ||
1449 | default : | |
1450 | if ( cnt5 >= 1 ) break loop5; | |
1451 | EarlyExitException eee = new EarlyExitException(5, input); | |
1452 | throw eee; | |
1453 | } | |
1454 | cnt5++; | |
1455 | } | |
1456 | ||
73511e67 | 1457 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:105:37: ( INTEGER_TYPES_SUFFIX )? |
9ad3c628 AM |
1458 | int alt6=2; |
1459 | int LA6_0 = input.LA(1); | |
1460 | if ( (LA6_0=='L'||LA6_0=='U'||LA6_0=='l'||LA6_0=='u') ) { | |
1461 | alt6=1; | |
1462 | } | |
1463 | switch (alt6) { | |
1464 | case 1 : | |
73511e67 | 1465 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:105:37: INTEGER_TYPES_SUFFIX |
9ad3c628 AM |
1466 | { |
1467 | mINTEGER_TYPES_SUFFIX(); | |
1468 | ||
1469 | } | |
1470 | break; | |
1471 | ||
1472 | } | |
1473 | ||
1474 | } | |
1475 | ||
1476 | state.type = _type; | |
1477 | state.channel = _channel; | |
1478 | } | |
1479 | finally { | |
1480 | // do for sure before leaving | |
1481 | } | |
1482 | } | |
1483 | // $ANTLR end "HEX_LITERAL" | |
1484 | ||
1485 | // $ANTLR start "INTEGER_TYPES_SUFFIX" | |
1486 | public final void mINTEGER_TYPES_SUFFIX() throws RecognitionException { | |
1487 | try { | |
73511e67 | 1488 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:113:3: ( ( 'l' ( 'l' )? | 'L' ( 'L' )? ) | ( 'u' | 'U' ) | ( 'u' | 'U' ) ( 'l' ( 'l' )? | 'L' ( 'L' )? ) | ( 'l' ( 'l' )? | 'L' ( 'L' )? ) ( 'u' | 'U' ) ) |
9ad3c628 AM |
1489 | int alt16=4; |
1490 | switch ( input.LA(1) ) { | |
1491 | case 'l': | |
1492 | { | |
1493 | switch ( input.LA(2) ) { | |
1494 | case 'l': | |
1495 | { | |
1496 | int LA16_4 = input.LA(3); | |
1497 | if ( (LA16_4=='U'||LA16_4=='u') ) { | |
1498 | alt16=4; | |
1499 | } | |
1500 | ||
1501 | else { | |
1502 | alt16=1; | |
1503 | } | |
1504 | ||
1505 | } | |
1506 | break; | |
1507 | case 'U': | |
1508 | case 'u': | |
1509 | { | |
1510 | alt16=4; | |
1511 | } | |
1512 | break; | |
1513 | default: | |
1514 | alt16=1; | |
1515 | } | |
1516 | } | |
1517 | break; | |
1518 | case 'L': | |
1519 | { | |
1520 | switch ( input.LA(2) ) { | |
1521 | case 'L': | |
1522 | { | |
1523 | int LA16_7 = input.LA(3); | |
1524 | if ( (LA16_7=='U'||LA16_7=='u') ) { | |
1525 | alt16=4; | |
1526 | } | |
1527 | ||
1528 | else { | |
1529 | alt16=1; | |
1530 | } | |
1531 | ||
1532 | } | |
1533 | break; | |
1534 | case 'U': | |
1535 | case 'u': | |
1536 | { | |
1537 | alt16=4; | |
1538 | } | |
1539 | break; | |
1540 | default: | |
1541 | alt16=1; | |
1542 | } | |
1543 | } | |
1544 | break; | |
1545 | case 'U': | |
1546 | case 'u': | |
1547 | { | |
1548 | int LA16_3 = input.LA(2); | |
1549 | if ( (LA16_3=='L'||LA16_3=='l') ) { | |
1550 | alt16=3; | |
1551 | } | |
1552 | ||
1553 | else { | |
1554 | alt16=2; | |
1555 | } | |
1556 | ||
1557 | } | |
1558 | break; | |
1559 | default: | |
1560 | NoViableAltException nvae = | |
1561 | new NoViableAltException("", 16, 0, input); | |
1562 | throw nvae; | |
1563 | } | |
1564 | switch (alt16) { | |
1565 | case 1 : | |
73511e67 | 1566 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:113:5: ( 'l' ( 'l' )? | 'L' ( 'L' )? ) |
9ad3c628 | 1567 | { |
73511e67 | 1568 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:113:5: ( 'l' ( 'l' )? | 'L' ( 'L' )? ) |
9ad3c628 AM |
1569 | int alt9=2; |
1570 | int LA9_0 = input.LA(1); | |
1571 | if ( (LA9_0=='l') ) { | |
1572 | alt9=1; | |
1573 | } | |
1574 | else if ( (LA9_0=='L') ) { | |
1575 | alt9=2; | |
1576 | } | |
1577 | ||
1578 | else { | |
1579 | NoViableAltException nvae = | |
1580 | new NoViableAltException("", 9, 0, input); | |
1581 | throw nvae; | |
1582 | } | |
1583 | ||
1584 | switch (alt9) { | |
1585 | case 1 : | |
73511e67 | 1586 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:113:6: 'l' ( 'l' )? |
9ad3c628 AM |
1587 | { |
1588 | match('l'); | |
73511e67 | 1589 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:113:10: ( 'l' )? |
9ad3c628 AM |
1590 | int alt7=2; |
1591 | int LA7_0 = input.LA(1); | |
1592 | if ( (LA7_0=='l') ) { | |
1593 | alt7=1; | |
1594 | } | |
1595 | switch (alt7) { | |
1596 | case 1 : | |
73511e67 | 1597 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:113:11: 'l' |
9ad3c628 AM |
1598 | { |
1599 | match('l'); | |
1600 | } | |
1601 | break; | |
1602 | ||
1603 | } | |
1604 | ||
1605 | } | |
1606 | break; | |
1607 | case 2 : | |
73511e67 | 1608 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:113:19: 'L' ( 'L' )? |
9ad3c628 AM |
1609 | { |
1610 | match('L'); | |
73511e67 | 1611 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:113:23: ( 'L' )? |
9ad3c628 AM |
1612 | int alt8=2; |
1613 | int LA8_0 = input.LA(1); | |
1614 | if ( (LA8_0=='L') ) { | |
1615 | alt8=1; | |
1616 | } | |
1617 | switch (alt8) { | |
1618 | case 1 : | |
73511e67 | 1619 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:113:24: 'L' |
9ad3c628 AM |
1620 | { |
1621 | match('L'); | |
1622 | } | |
1623 | break; | |
1624 | ||
1625 | } | |
1626 | ||
1627 | } | |
1628 | break; | |
1629 | ||
1630 | } | |
1631 | ||
1632 | } | |
1633 | break; | |
1634 | case 2 : | |
73511e67 | 1635 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:114:5: ( 'u' | 'U' ) |
9ad3c628 AM |
1636 | { |
1637 | if ( input.LA(1)=='U'||input.LA(1)=='u' ) { | |
1638 | input.consume(); | |
1639 | } | |
1640 | else { | |
1641 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1642 | recover(mse); | |
1643 | throw mse; | |
1644 | } | |
1645 | } | |
1646 | break; | |
1647 | case 3 : | |
73511e67 | 1648 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:115:5: ( 'u' | 'U' ) ( 'l' ( 'l' )? | 'L' ( 'L' )? ) |
9ad3c628 AM |
1649 | { |
1650 | if ( input.LA(1)=='U'||input.LA(1)=='u' ) { | |
1651 | input.consume(); | |
1652 | } | |
1653 | else { | |
1654 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1655 | recover(mse); | |
1656 | throw mse; | |
1657 | } | |
73511e67 | 1658 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:115:17: ( 'l' ( 'l' )? | 'L' ( 'L' )? ) |
9ad3c628 AM |
1659 | int alt12=2; |
1660 | int LA12_0 = input.LA(1); | |
1661 | if ( (LA12_0=='l') ) { | |
1662 | alt12=1; | |
1663 | } | |
1664 | else if ( (LA12_0=='L') ) { | |
1665 | alt12=2; | |
1666 | } | |
1667 | ||
1668 | else { | |
1669 | NoViableAltException nvae = | |
1670 | new NoViableAltException("", 12, 0, input); | |
1671 | throw nvae; | |
1672 | } | |
1673 | ||
1674 | switch (alt12) { | |
1675 | case 1 : | |
73511e67 | 1676 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:115:18: 'l' ( 'l' )? |
9ad3c628 AM |
1677 | { |
1678 | match('l'); | |
73511e67 | 1679 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:115:22: ( 'l' )? |
9ad3c628 AM |
1680 | int alt10=2; |
1681 | int LA10_0 = input.LA(1); | |
1682 | if ( (LA10_0=='l') ) { | |
1683 | alt10=1; | |
1684 | } | |
1685 | switch (alt10) { | |
1686 | case 1 : | |
73511e67 | 1687 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:115:23: 'l' |
9ad3c628 AM |
1688 | { |
1689 | match('l'); | |
1690 | } | |
1691 | break; | |
1692 | ||
1693 | } | |
1694 | ||
1695 | } | |
1696 | break; | |
1697 | case 2 : | |
73511e67 | 1698 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:115:31: 'L' ( 'L' )? |
9ad3c628 AM |
1699 | { |
1700 | match('L'); | |
73511e67 | 1701 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:115:35: ( 'L' )? |
9ad3c628 AM |
1702 | int alt11=2; |
1703 | int LA11_0 = input.LA(1); | |
1704 | if ( (LA11_0=='L') ) { | |
1705 | alt11=1; | |
1706 | } | |
1707 | switch (alt11) { | |
1708 | case 1 : | |
73511e67 | 1709 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:115:36: 'L' |
9ad3c628 AM |
1710 | { |
1711 | match('L'); | |
1712 | } | |
1713 | break; | |
1714 | ||
1715 | } | |
1716 | ||
1717 | } | |
1718 | break; | |
1719 | ||
1720 | } | |
1721 | ||
1722 | } | |
1723 | break; | |
1724 | case 4 : | |
73511e67 | 1725 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:116:5: ( 'l' ( 'l' )? | 'L' ( 'L' )? ) ( 'u' | 'U' ) |
9ad3c628 | 1726 | { |
73511e67 | 1727 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:116:5: ( 'l' ( 'l' )? | 'L' ( 'L' )? ) |
9ad3c628 AM |
1728 | int alt15=2; |
1729 | int LA15_0 = input.LA(1); | |
1730 | if ( (LA15_0=='l') ) { | |
1731 | alt15=1; | |
1732 | } | |
1733 | else if ( (LA15_0=='L') ) { | |
1734 | alt15=2; | |
1735 | } | |
1736 | ||
1737 | else { | |
1738 | NoViableAltException nvae = | |
1739 | new NoViableAltException("", 15, 0, input); | |
1740 | throw nvae; | |
1741 | } | |
1742 | ||
1743 | switch (alt15) { | |
1744 | case 1 : | |
73511e67 | 1745 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:116:6: 'l' ( 'l' )? |
9ad3c628 AM |
1746 | { |
1747 | match('l'); | |
73511e67 | 1748 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:116:10: ( 'l' )? |
9ad3c628 AM |
1749 | int alt13=2; |
1750 | int LA13_0 = input.LA(1); | |
1751 | if ( (LA13_0=='l') ) { | |
1752 | alt13=1; | |
1753 | } | |
1754 | switch (alt13) { | |
1755 | case 1 : | |
73511e67 | 1756 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:116:11: 'l' |
9ad3c628 AM |
1757 | { |
1758 | match('l'); | |
1759 | } | |
1760 | break; | |
1761 | ||
1762 | } | |
1763 | ||
1764 | } | |
1765 | break; | |
1766 | case 2 : | |
73511e67 | 1767 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:116:19: 'L' ( 'L' )? |
9ad3c628 AM |
1768 | { |
1769 | match('L'); | |
73511e67 | 1770 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:116:23: ( 'L' )? |
9ad3c628 AM |
1771 | int alt14=2; |
1772 | int LA14_0 = input.LA(1); | |
1773 | if ( (LA14_0=='L') ) { | |
1774 | alt14=1; | |
1775 | } | |
1776 | switch (alt14) { | |
1777 | case 1 : | |
73511e67 | 1778 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:116:24: 'L' |
9ad3c628 AM |
1779 | { |
1780 | match('L'); | |
1781 | } | |
1782 | break; | |
1783 | ||
1784 | } | |
1785 | ||
1786 | } | |
1787 | break; | |
1788 | ||
1789 | } | |
1790 | ||
1791 | if ( input.LA(1)=='U'||input.LA(1)=='u' ) { | |
1792 | input.consume(); | |
1793 | } | |
1794 | else { | |
1795 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1796 | recover(mse); | |
1797 | throw mse; | |
1798 | } | |
1799 | } | |
1800 | break; | |
1801 | ||
1802 | } | |
1803 | } | |
1804 | finally { | |
1805 | // do for sure before leaving | |
1806 | } | |
1807 | } | |
1808 | // $ANTLR end "INTEGER_TYPES_SUFFIX" | |
1809 | ||
1810 | // $ANTLR start "ESCAPE_SEQUENCE" | |
1811 | public final void mESCAPE_SEQUENCE() throws RecognitionException { | |
1812 | try { | |
73511e67 | 1813 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:123:3: ( BACKSLASH ( '\\'' | '\"' | '?' | BACKSLASH | 'a' | 'b' | 'f' | 'n' | 'r' | 't' | 'v' ) | OCTAL_ESCAPE | UNICODE_ESCAPE | HEXADECIMAL_ESCAPE ) |
9ad3c628 AM |
1814 | int alt17=4; |
1815 | int LA17_0 = input.LA(1); | |
1816 | if ( (LA17_0=='\\') ) { | |
1817 | switch ( input.LA(2) ) { | |
1818 | case '\"': | |
1819 | case '\'': | |
1820 | case '?': | |
1821 | case '\\': | |
1822 | case 'a': | |
1823 | case 'b': | |
1824 | case 'f': | |
1825 | case 'n': | |
1826 | case 'r': | |
1827 | case 't': | |
1828 | case 'v': | |
1829 | { | |
1830 | alt17=1; | |
1831 | } | |
1832 | break; | |
1833 | case '0': | |
1834 | case '1': | |
1835 | case '2': | |
1836 | case '3': | |
1837 | case '4': | |
1838 | case '5': | |
1839 | case '6': | |
1840 | case '7': | |
1841 | { | |
1842 | alt17=2; | |
1843 | } | |
1844 | break; | |
1845 | case 'U': | |
1846 | case 'u': | |
1847 | { | |
1848 | alt17=3; | |
1849 | } | |
1850 | break; | |
1851 | case 'x': | |
1852 | { | |
1853 | alt17=4; | |
1854 | } | |
1855 | break; | |
1856 | default: | |
1857 | int nvaeMark = input.mark(); | |
1858 | try { | |
1859 | input.consume(); | |
1860 | NoViableAltException nvae = | |
1861 | new NoViableAltException("", 17, 1, input); | |
1862 | throw nvae; | |
1863 | } finally { | |
1864 | input.rewind(nvaeMark); | |
1865 | } | |
1866 | } | |
1867 | } | |
1868 | ||
1869 | else { | |
1870 | NoViableAltException nvae = | |
1871 | new NoViableAltException("", 17, 0, input); | |
1872 | throw nvae; | |
1873 | } | |
1874 | ||
1875 | switch (alt17) { | |
1876 | case 1 : | |
73511e67 | 1877 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:123:5: BACKSLASH ( '\\'' | '\"' | '?' | BACKSLASH | 'a' | 'b' | 'f' | 'n' | 'r' | 't' | 'v' ) |
9ad3c628 AM |
1878 | { |
1879 | mBACKSLASH(); | |
1880 | ||
1881 | if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='?'||input.LA(1)=='\\'||(input.LA(1) >= 'a' && input.LA(1) <= 'b')||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t'||input.LA(1)=='v' ) { | |
1882 | input.consume(); | |
1883 | } | |
1884 | else { | |
1885 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1886 | recover(mse); | |
1887 | throw mse; | |
1888 | } | |
1889 | } | |
1890 | break; | |
1891 | case 2 : | |
73511e67 | 1892 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:124:5: OCTAL_ESCAPE |
9ad3c628 AM |
1893 | { |
1894 | mOCTAL_ESCAPE(); | |
1895 | ||
1896 | } | |
1897 | break; | |
1898 | case 3 : | |
73511e67 | 1899 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:125:5: UNICODE_ESCAPE |
9ad3c628 AM |
1900 | { |
1901 | mUNICODE_ESCAPE(); | |
1902 | ||
1903 | } | |
1904 | break; | |
1905 | case 4 : | |
73511e67 | 1906 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:126:5: HEXADECIMAL_ESCAPE |
9ad3c628 AM |
1907 | { |
1908 | mHEXADECIMAL_ESCAPE(); | |
1909 | ||
1910 | } | |
1911 | break; | |
1912 | ||
1913 | } | |
1914 | } | |
1915 | finally { | |
1916 | // do for sure before leaving | |
1917 | } | |
1918 | } | |
1919 | // $ANTLR end "ESCAPE_SEQUENCE" | |
1920 | ||
1921 | // $ANTLR start "OCTAL_ESCAPE" | |
1922 | public final void mOCTAL_ESCAPE() throws RecognitionException { | |
1923 | try { | |
73511e67 | 1924 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:133:3: ( BACKSLASH ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | BACKSLASH ( '0' .. '7' ) ( '0' .. '7' ) | BACKSLASH ( '0' .. '7' ) ) |
9ad3c628 AM |
1925 | int alt18=3; |
1926 | int LA18_0 = input.LA(1); | |
1927 | if ( (LA18_0=='\\') ) { | |
1928 | int LA18_1 = input.LA(2); | |
1929 | if ( ((LA18_1 >= '0' && LA18_1 <= '3')) ) { | |
1930 | int LA18_2 = input.LA(3); | |
1931 | if ( ((LA18_2 >= '0' && LA18_2 <= '7')) ) { | |
1932 | int LA18_4 = input.LA(4); | |
1933 | if ( ((LA18_4 >= '0' && LA18_4 <= '7')) ) { | |
1934 | alt18=1; | |
1935 | } | |
1936 | ||
1937 | else { | |
1938 | alt18=2; | |
1939 | } | |
1940 | ||
1941 | } | |
1942 | ||
1943 | else { | |
1944 | alt18=3; | |
1945 | } | |
1946 | ||
1947 | } | |
1948 | else if ( ((LA18_1 >= '4' && LA18_1 <= '7')) ) { | |
1949 | int LA18_3 = input.LA(3); | |
1950 | if ( ((LA18_3 >= '0' && LA18_3 <= '7')) ) { | |
1951 | alt18=2; | |
1952 | } | |
1953 | ||
1954 | else { | |
1955 | alt18=3; | |
1956 | } | |
1957 | ||
1958 | } | |
1959 | ||
1960 | else { | |
1961 | int nvaeMark = input.mark(); | |
1962 | try { | |
1963 | input.consume(); | |
1964 | NoViableAltException nvae = | |
1965 | new NoViableAltException("", 18, 1, input); | |
1966 | throw nvae; | |
1967 | } finally { | |
1968 | input.rewind(nvaeMark); | |
1969 | } | |
1970 | } | |
1971 | ||
1972 | } | |
1973 | ||
1974 | else { | |
1975 | NoViableAltException nvae = | |
1976 | new NoViableAltException("", 18, 0, input); | |
1977 | throw nvae; | |
1978 | } | |
1979 | ||
1980 | switch (alt18) { | |
1981 | case 1 : | |
73511e67 | 1982 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:133:5: BACKSLASH ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) |
9ad3c628 AM |
1983 | { |
1984 | mBACKSLASH(); | |
1985 | ||
1986 | if ( (input.LA(1) >= '0' && input.LA(1) <= '3') ) { | |
1987 | input.consume(); | |
1988 | } | |
1989 | else { | |
1990 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1991 | recover(mse); | |
1992 | throw mse; | |
1993 | } | |
1994 | if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) { | |
1995 | input.consume(); | |
1996 | } | |
1997 | else { | |
1998 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
1999 | recover(mse); | |
2000 | throw mse; | |
2001 | } | |
2002 | if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) { | |
2003 | input.consume(); | |
2004 | } | |
2005 | else { | |
2006 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2007 | recover(mse); | |
2008 | throw mse; | |
2009 | } | |
2010 | } | |
2011 | break; | |
2012 | case 2 : | |
73511e67 | 2013 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:134:5: BACKSLASH ( '0' .. '7' ) ( '0' .. '7' ) |
9ad3c628 AM |
2014 | { |
2015 | mBACKSLASH(); | |
2016 | ||
2017 | if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) { | |
2018 | input.consume(); | |
2019 | } | |
2020 | else { | |
2021 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2022 | recover(mse); | |
2023 | throw mse; | |
2024 | } | |
2025 | if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) { | |
2026 | input.consume(); | |
2027 | } | |
2028 | else { | |
2029 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2030 | recover(mse); | |
2031 | throw mse; | |
2032 | } | |
2033 | } | |
2034 | break; | |
2035 | case 3 : | |
73511e67 | 2036 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:135:5: BACKSLASH ( '0' .. '7' ) |
9ad3c628 AM |
2037 | { |
2038 | mBACKSLASH(); | |
2039 | ||
2040 | if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) { | |
2041 | input.consume(); | |
2042 | } | |
2043 | else { | |
2044 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2045 | recover(mse); | |
2046 | throw mse; | |
2047 | } | |
2048 | } | |
2049 | break; | |
2050 | ||
2051 | } | |
2052 | } | |
2053 | finally { | |
2054 | // do for sure before leaving | |
2055 | } | |
2056 | } | |
2057 | // $ANTLR end "OCTAL_ESCAPE" | |
2058 | ||
2059 | // $ANTLR start "HEXADECIMAL_ESCAPE" | |
2060 | public final void mHEXADECIMAL_ESCAPE() throws RecognitionException { | |
2061 | try { | |
73511e67 AM |
2062 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:141:29: ( BACKSLASH 'x' ( HEX_DIGIT )+ ) |
2063 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:141:31: BACKSLASH 'x' ( HEX_DIGIT )+ | |
9ad3c628 AM |
2064 | { |
2065 | mBACKSLASH(); | |
2066 | ||
2067 | match('x'); | |
73511e67 | 2068 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:141:45: ( HEX_DIGIT )+ |
9ad3c628 AM |
2069 | int cnt19=0; |
2070 | loop19: | |
2071 | while (true) { | |
2072 | int alt19=2; | |
2073 | int LA19_0 = input.LA(1); | |
2074 | if ( ((LA19_0 >= '0' && LA19_0 <= '9')||(LA19_0 >= 'A' && LA19_0 <= 'F')||(LA19_0 >= 'a' && LA19_0 <= 'f')) ) { | |
2075 | alt19=1; | |
2076 | } | |
2077 | ||
2078 | switch (alt19) { | |
2079 | case 1 : | |
2080 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: | |
2081 | { | |
2082 | if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'F')||(input.LA(1) >= 'a' && input.LA(1) <= 'f') ) { | |
2083 | input.consume(); | |
2084 | } | |
2085 | else { | |
2086 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2087 | recover(mse); | |
2088 | throw mse; | |
2089 | } | |
2090 | } | |
2091 | break; | |
2092 | ||
2093 | default : | |
2094 | if ( cnt19 >= 1 ) break loop19; | |
2095 | EarlyExitException eee = new EarlyExitException(19, input); | |
2096 | throw eee; | |
2097 | } | |
2098 | cnt19++; | |
2099 | } | |
2100 | ||
2101 | } | |
2102 | ||
2103 | } | |
2104 | finally { | |
2105 | // do for sure before leaving | |
2106 | } | |
2107 | } | |
2108 | // $ANTLR end "HEXADECIMAL_ESCAPE" | |
2109 | ||
2110 | // $ANTLR start "UNICODE_ESCAPE" | |
2111 | public final void mUNICODE_ESCAPE() throws RecognitionException { | |
2112 | try { | |
73511e67 | 2113 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:147:3: ( BACKSLASH 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT | BACKSLASH 'U' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT ) |
9ad3c628 AM |
2114 | int alt20=2; |
2115 | int LA20_0 = input.LA(1); | |
2116 | if ( (LA20_0=='\\') ) { | |
2117 | int LA20_1 = input.LA(2); | |
2118 | if ( (LA20_1=='u') ) { | |
2119 | alt20=1; | |
2120 | } | |
2121 | else if ( (LA20_1=='U') ) { | |
2122 | alt20=2; | |
2123 | } | |
2124 | ||
2125 | else { | |
2126 | int nvaeMark = input.mark(); | |
2127 | try { | |
2128 | input.consume(); | |
2129 | NoViableAltException nvae = | |
2130 | new NoViableAltException("", 20, 1, input); | |
2131 | throw nvae; | |
2132 | } finally { | |
2133 | input.rewind(nvaeMark); | |
2134 | } | |
2135 | } | |
2136 | ||
2137 | } | |
2138 | ||
2139 | else { | |
2140 | NoViableAltException nvae = | |
2141 | new NoViableAltException("", 20, 0, input); | |
2142 | throw nvae; | |
2143 | } | |
2144 | ||
2145 | switch (alt20) { | |
2146 | case 1 : | |
73511e67 | 2147 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:147:5: BACKSLASH 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT |
9ad3c628 AM |
2148 | { |
2149 | mBACKSLASH(); | |
2150 | ||
2151 | match('u'); | |
2152 | mHEX_DIGIT(); | |
2153 | ||
2154 | mHEX_DIGIT(); | |
2155 | ||
2156 | mHEX_DIGIT(); | |
2157 | ||
2158 | mHEX_DIGIT(); | |
2159 | ||
2160 | } | |
2161 | break; | |
2162 | case 2 : | |
73511e67 | 2163 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:148:5: BACKSLASH 'U' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT |
9ad3c628 AM |
2164 | { |
2165 | mBACKSLASH(); | |
2166 | ||
2167 | match('U'); | |
2168 | mHEX_DIGIT(); | |
2169 | ||
2170 | mHEX_DIGIT(); | |
2171 | ||
2172 | mHEX_DIGIT(); | |
2173 | ||
2174 | mHEX_DIGIT(); | |
2175 | ||
2176 | mHEX_DIGIT(); | |
2177 | ||
2178 | mHEX_DIGIT(); | |
2179 | ||
2180 | mHEX_DIGIT(); | |
2181 | ||
2182 | mHEX_DIGIT(); | |
2183 | ||
2184 | } | |
2185 | break; | |
2186 | ||
2187 | } | |
2188 | } | |
2189 | finally { | |
2190 | // do for sure before leaving | |
2191 | } | |
2192 | } | |
2193 | // $ANTLR end "UNICODE_ESCAPE" | |
2194 | ||
2195 | // $ANTLR start "STRINGPREFIX" | |
2196 | public final void mSTRINGPREFIX() throws RecognitionException { | |
2197 | try { | |
73511e67 AM |
2198 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:153:23: ( 'L' ) |
2199 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:153:25: 'L' | |
9ad3c628 AM |
2200 | { |
2201 | match('L'); | |
2202 | } | |
2203 | ||
2204 | } | |
2205 | finally { | |
2206 | // do for sure before leaving | |
2207 | } | |
2208 | } | |
2209 | // $ANTLR end "STRINGPREFIX" | |
2210 | ||
2211 | // $ANTLR start "CHARACTER_LITERAL" | |
2212 | public final void mCHARACTER_LITERAL() throws RecognitionException { | |
2213 | try { | |
2214 | int _type = CHARACTER_LITERAL; | |
2215 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
2216 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:158:19: ( ( STRINGPREFIX )? SINGLEQUOTE ( CHAR_CONTENT )+ SINGLEQUOTE ) |
2217 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:158:21: ( STRINGPREFIX )? SINGLEQUOTE ( CHAR_CONTENT )+ SINGLEQUOTE | |
9ad3c628 | 2218 | { |
73511e67 | 2219 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:158:21: ( STRINGPREFIX )? |
9ad3c628 AM |
2220 | int alt21=2; |
2221 | int LA21_0 = input.LA(1); | |
2222 | if ( (LA21_0=='L') ) { | |
2223 | alt21=1; | |
2224 | } | |
2225 | switch (alt21) { | |
2226 | case 1 : | |
2227 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: | |
2228 | { | |
2229 | if ( input.LA(1)=='L' ) { | |
2230 | input.consume(); | |
2231 | } | |
2232 | else { | |
2233 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2234 | recover(mse); | |
2235 | throw mse; | |
2236 | } | |
2237 | } | |
2238 | break; | |
2239 | ||
2240 | } | |
2241 | ||
2242 | mSINGLEQUOTE(); | |
2243 | ||
73511e67 | 2244 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:158:47: ( CHAR_CONTENT )+ |
9ad3c628 AM |
2245 | int cnt22=0; |
2246 | loop22: | |
2247 | while (true) { | |
2248 | int alt22=2; | |
2249 | int LA22_0 = input.LA(1); | |
2250 | if ( ((LA22_0 >= '\u0000' && LA22_0 <= '&')||(LA22_0 >= '(' && LA22_0 <= '\uFFFF')) ) { | |
2251 | alt22=1; | |
2252 | } | |
2253 | ||
2254 | switch (alt22) { | |
2255 | case 1 : | |
73511e67 | 2256 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:158:47: CHAR_CONTENT |
9ad3c628 AM |
2257 | { |
2258 | mCHAR_CONTENT(); | |
2259 | ||
2260 | } | |
2261 | break; | |
2262 | ||
2263 | default : | |
2264 | if ( cnt22 >= 1 ) break loop22; | |
2265 | EarlyExitException eee = new EarlyExitException(22, input); | |
2266 | throw eee; | |
2267 | } | |
2268 | cnt22++; | |
2269 | } | |
2270 | ||
2271 | mSINGLEQUOTE(); | |
2272 | ||
2273 | } | |
2274 | ||
2275 | state.type = _type; | |
2276 | state.channel = _channel; | |
2277 | } | |
2278 | finally { | |
2279 | // do for sure before leaving | |
2280 | } | |
2281 | } | |
2282 | // $ANTLR end "CHARACTER_LITERAL" | |
2283 | ||
2284 | // $ANTLR start "CHAR_CONTENT" | |
2285 | public final void mCHAR_CONTENT() throws RecognitionException { | |
2286 | try { | |
73511e67 AM |
2287 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:159:23: ( ( ESCAPE_SEQUENCE |~ ( BACKSLASH | SINGLEQUOTE ) ) ) |
2288 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:159:25: ( ESCAPE_SEQUENCE |~ ( BACKSLASH | SINGLEQUOTE ) ) | |
9ad3c628 | 2289 | { |
73511e67 | 2290 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:159:25: ( ESCAPE_SEQUENCE |~ ( BACKSLASH | SINGLEQUOTE ) ) |
9ad3c628 AM |
2291 | int alt23=2; |
2292 | int LA23_0 = input.LA(1); | |
2293 | if ( (LA23_0=='\\') ) { | |
2294 | alt23=1; | |
2295 | } | |
2296 | else if ( ((LA23_0 >= '\u0000' && LA23_0 <= '&')||(LA23_0 >= '(' && LA23_0 <= '[')||(LA23_0 >= ']' && LA23_0 <= '\uFFFF')) ) { | |
2297 | alt23=2; | |
2298 | } | |
2299 | ||
2300 | else { | |
2301 | NoViableAltException nvae = | |
2302 | new NoViableAltException("", 23, 0, input); | |
2303 | throw nvae; | |
2304 | } | |
2305 | ||
2306 | switch (alt23) { | |
2307 | case 1 : | |
73511e67 | 2308 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:159:26: ESCAPE_SEQUENCE |
9ad3c628 AM |
2309 | { |
2310 | mESCAPE_SEQUENCE(); | |
2311 | ||
2312 | } | |
2313 | break; | |
2314 | case 2 : | |
73511e67 | 2315 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:159:44: ~ ( BACKSLASH | SINGLEQUOTE ) |
9ad3c628 AM |
2316 | { |
2317 | if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '&')||(input.LA(1) >= '(' && input.LA(1) <= '[')||(input.LA(1) >= ']' && input.LA(1) <= '\uFFFF') ) { | |
2318 | input.consume(); | |
2319 | } | |
2320 | else { | |
2321 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2322 | recover(mse); | |
2323 | throw mse; | |
2324 | } | |
2325 | } | |
2326 | break; | |
2327 | ||
2328 | } | |
2329 | ||
2330 | } | |
2331 | ||
2332 | } | |
2333 | finally { | |
2334 | // do for sure before leaving | |
2335 | } | |
2336 | } | |
2337 | // $ANTLR end "CHAR_CONTENT" | |
2338 | ||
2339 | // $ANTLR start "SINGLEQUOTE" | |
2340 | public final void mSINGLEQUOTE() throws RecognitionException { | |
2341 | try { | |
73511e67 AM |
2342 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:160:22: ( '\\'' ) |
2343 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:160:24: '\\'' | |
9ad3c628 AM |
2344 | { |
2345 | match('\''); | |
2346 | } | |
2347 | ||
2348 | } | |
2349 | finally { | |
2350 | // do for sure before leaving | |
2351 | } | |
2352 | } | |
2353 | // $ANTLR end "SINGLEQUOTE" | |
2354 | ||
2355 | // $ANTLR start "STRING_LITERAL" | |
2356 | public final void mSTRING_LITERAL() throws RecognitionException { | |
2357 | try { | |
2358 | int _type = STRING_LITERAL; | |
2359 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
2360 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:165:16: ( ( STRINGPREFIX )? DOUBLEQUOTE ( STRING_CONTENT )* DOUBLEQUOTE ) |
2361 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:165:18: ( STRINGPREFIX )? DOUBLEQUOTE ( STRING_CONTENT )* DOUBLEQUOTE | |
9ad3c628 | 2362 | { |
73511e67 | 2363 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:165:18: ( STRINGPREFIX )? |
9ad3c628 AM |
2364 | int alt24=2; |
2365 | int LA24_0 = input.LA(1); | |
2366 | if ( (LA24_0=='L') ) { | |
2367 | alt24=1; | |
2368 | } | |
2369 | switch (alt24) { | |
2370 | case 1 : | |
2371 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: | |
2372 | { | |
2373 | if ( input.LA(1)=='L' ) { | |
2374 | input.consume(); | |
2375 | } | |
2376 | else { | |
2377 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2378 | recover(mse); | |
2379 | throw mse; | |
2380 | } | |
2381 | } | |
2382 | break; | |
2383 | ||
2384 | } | |
2385 | ||
2386 | mDOUBLEQUOTE(); | |
2387 | ||
73511e67 | 2388 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:165:44: ( STRING_CONTENT )* |
9ad3c628 AM |
2389 | loop25: |
2390 | while (true) { | |
2391 | int alt25=2; | |
2392 | int LA25_0 = input.LA(1); | |
2393 | if ( ((LA25_0 >= '\u0000' && LA25_0 <= '!')||(LA25_0 >= '#' && LA25_0 <= '\uFFFF')) ) { | |
2394 | alt25=1; | |
2395 | } | |
2396 | ||
2397 | switch (alt25) { | |
2398 | case 1 : | |
73511e67 | 2399 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:165:44: STRING_CONTENT |
9ad3c628 AM |
2400 | { |
2401 | mSTRING_CONTENT(); | |
2402 | ||
2403 | } | |
2404 | break; | |
2405 | ||
2406 | default : | |
2407 | break loop25; | |
2408 | } | |
2409 | } | |
2410 | ||
2411 | mDOUBLEQUOTE(); | |
2412 | ||
2413 | } | |
2414 | ||
2415 | state.type = _type; | |
2416 | state.channel = _channel; | |
2417 | } | |
2418 | finally { | |
2419 | // do for sure before leaving | |
2420 | } | |
2421 | } | |
2422 | // $ANTLR end "STRING_LITERAL" | |
2423 | ||
2424 | // $ANTLR start "STRING_CONTENT" | |
2425 | public final void mSTRING_CONTENT() throws RecognitionException { | |
2426 | try { | |
73511e67 AM |
2427 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:166:25: ( ( ESCAPE_SEQUENCE |~ ( BACKSLASH | DOUBLEQUOTE ) ) ) |
2428 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:166:27: ( ESCAPE_SEQUENCE |~ ( BACKSLASH | DOUBLEQUOTE ) ) | |
9ad3c628 | 2429 | { |
73511e67 | 2430 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:166:27: ( ESCAPE_SEQUENCE |~ ( BACKSLASH | DOUBLEQUOTE ) ) |
9ad3c628 AM |
2431 | int alt26=2; |
2432 | int LA26_0 = input.LA(1); | |
2433 | if ( (LA26_0=='\\') ) { | |
2434 | alt26=1; | |
2435 | } | |
2436 | else if ( ((LA26_0 >= '\u0000' && LA26_0 <= '!')||(LA26_0 >= '#' && LA26_0 <= '[')||(LA26_0 >= ']' && LA26_0 <= '\uFFFF')) ) { | |
2437 | alt26=2; | |
2438 | } | |
2439 | ||
2440 | else { | |
2441 | NoViableAltException nvae = | |
2442 | new NoViableAltException("", 26, 0, input); | |
2443 | throw nvae; | |
2444 | } | |
2445 | ||
2446 | switch (alt26) { | |
2447 | case 1 : | |
73511e67 | 2448 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:166:28: ESCAPE_SEQUENCE |
9ad3c628 AM |
2449 | { |
2450 | mESCAPE_SEQUENCE(); | |
2451 | ||
2452 | } | |
2453 | break; | |
2454 | case 2 : | |
73511e67 | 2455 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:166:46: ~ ( BACKSLASH | DOUBLEQUOTE ) |
9ad3c628 AM |
2456 | { |
2457 | if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '!')||(input.LA(1) >= '#' && input.LA(1) <= '[')||(input.LA(1) >= ']' && input.LA(1) <= '\uFFFF') ) { | |
2458 | input.consume(); | |
2459 | } | |
2460 | else { | |
2461 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2462 | recover(mse); | |
2463 | throw mse; | |
2464 | } | |
2465 | } | |
2466 | break; | |
2467 | ||
2468 | } | |
2469 | ||
2470 | } | |
2471 | ||
2472 | } | |
2473 | finally { | |
2474 | // do for sure before leaving | |
2475 | } | |
2476 | } | |
2477 | // $ANTLR end "STRING_CONTENT" | |
2478 | ||
2479 | // $ANTLR start "DOUBLEQUOTE" | |
2480 | public final void mDOUBLEQUOTE() throws RecognitionException { | |
2481 | try { | |
73511e67 AM |
2482 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:167:22: ( '\"' ) |
2483 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:167:24: '\"' | |
9ad3c628 AM |
2484 | { |
2485 | match('\"'); | |
2486 | } | |
2487 | ||
2488 | } | |
2489 | finally { | |
2490 | // do for sure before leaving | |
2491 | } | |
2492 | } | |
2493 | // $ANTLR end "DOUBLEQUOTE" | |
2494 | ||
2495 | // $ANTLR start "WS" | |
2496 | public final void mWS() throws RecognitionException { | |
2497 | try { | |
2498 | int _type = WS; | |
2499 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
2500 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:172:4: ( ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' ) ) |
2501 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:172:6: ( ' ' | '\\r' | '\\t' | '\\u000C' | '\\n' ) | |
9ad3c628 AM |
2502 | { |
2503 | if ( (input.LA(1) >= '\t' && input.LA(1) <= '\n')||(input.LA(1) >= '\f' && input.LA(1) <= '\r')||input.LA(1)==' ' ) { | |
2504 | input.consume(); | |
2505 | } | |
2506 | else { | |
2507 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2508 | recover(mse); | |
2509 | throw mse; | |
2510 | } | |
2511 | _channel = HIDDEN; | |
2512 | } | |
2513 | ||
2514 | state.type = _type; | |
2515 | state.channel = _channel; | |
2516 | } | |
2517 | finally { | |
2518 | // do for sure before leaving | |
2519 | } | |
2520 | } | |
2521 | // $ANTLR end "WS" | |
2522 | ||
2523 | // $ANTLR start "COMMENT" | |
2524 | public final void mCOMMENT() throws RecognitionException { | |
2525 | try { | |
2526 | int _type = COMMENT; | |
2527 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
2528 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:179:9: ( COMMENT_OPEN ( . )* COMMENT_CLOSE ) |
2529 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:179:11: COMMENT_OPEN ( . )* COMMENT_CLOSE | |
9ad3c628 AM |
2530 | { |
2531 | mCOMMENT_OPEN(); | |
2532 | ||
73511e67 | 2533 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:179:24: ( . )* |
9ad3c628 AM |
2534 | loop27: |
2535 | while (true) { | |
2536 | int alt27=2; | |
2537 | int LA27_0 = input.LA(1); | |
2538 | if ( (LA27_0=='*') ) { | |
2539 | int LA27_1 = input.LA(2); | |
2540 | if ( (LA27_1=='/') ) { | |
2541 | alt27=2; | |
2542 | } | |
2543 | else if ( ((LA27_1 >= '\u0000' && LA27_1 <= '.')||(LA27_1 >= '0' && LA27_1 <= '\uFFFF')) ) { | |
2544 | alt27=1; | |
2545 | } | |
2546 | ||
2547 | } | |
2548 | else if ( ((LA27_0 >= '\u0000' && LA27_0 <= ')')||(LA27_0 >= '+' && LA27_0 <= '\uFFFF')) ) { | |
2549 | alt27=1; | |
2550 | } | |
2551 | ||
2552 | switch (alt27) { | |
2553 | case 1 : | |
73511e67 | 2554 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:179:24: . |
9ad3c628 AM |
2555 | { |
2556 | matchAny(); | |
2557 | } | |
2558 | break; | |
2559 | ||
2560 | default : | |
2561 | break loop27; | |
2562 | } | |
2563 | } | |
2564 | ||
2565 | mCOMMENT_CLOSE(); | |
2566 | ||
2567 | _channel = HIDDEN; | |
2568 | } | |
2569 | ||
2570 | state.type = _type; | |
2571 | state.channel = _channel; | |
2572 | } | |
2573 | finally { | |
2574 | // do for sure before leaving | |
2575 | } | |
2576 | } | |
2577 | // $ANTLR end "COMMENT" | |
2578 | ||
2579 | // $ANTLR start "COMMENT_OPEN" | |
2580 | public final void mCOMMENT_OPEN() throws RecognitionException { | |
2581 | try { | |
73511e67 AM |
2582 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:180:23: ( '/*' ) |
2583 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:180:25: '/*' | |
9ad3c628 AM |
2584 | { |
2585 | match("/*"); | |
2586 | ||
2587 | } | |
2588 | ||
2589 | } | |
2590 | finally { | |
2591 | // do for sure before leaving | |
2592 | } | |
2593 | } | |
2594 | // $ANTLR end "COMMENT_OPEN" | |
2595 | ||
2596 | // $ANTLR start "COMMENT_CLOSE" | |
2597 | public final void mCOMMENT_CLOSE() throws RecognitionException { | |
2598 | try { | |
73511e67 AM |
2599 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:181:24: ( '*/' ) |
2600 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:181:26: '*/' | |
9ad3c628 AM |
2601 | { |
2602 | match("*/"); | |
2603 | ||
2604 | } | |
2605 | ||
2606 | } | |
2607 | finally { | |
2608 | // do for sure before leaving | |
2609 | } | |
2610 | } | |
2611 | // $ANTLR end "COMMENT_CLOSE" | |
2612 | ||
2613 | // $ANTLR start "LINE_COMMENT" | |
2614 | public final void mLINE_COMMENT() throws RecognitionException { | |
2615 | try { | |
2616 | int _type = LINE_COMMENT; | |
2617 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
2618 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:186:14: ( '//' (~ ( '\\n' ) )* '\\n' ) |
2619 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:186:16: '//' (~ ( '\\n' ) )* '\\n' | |
9ad3c628 AM |
2620 | { |
2621 | match("//"); | |
2622 | ||
73511e67 | 2623 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:186:21: (~ ( '\\n' ) )* |
9ad3c628 AM |
2624 | loop28: |
2625 | while (true) { | |
2626 | int alt28=2; | |
2627 | int LA28_0 = input.LA(1); | |
2628 | if ( ((LA28_0 >= '\u0000' && LA28_0 <= '\t')||(LA28_0 >= '\u000B' && LA28_0 <= '\uFFFF')) ) { | |
2629 | alt28=1; | |
2630 | } | |
2631 | ||
2632 | switch (alt28) { | |
2633 | case 1 : | |
2634 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: | |
2635 | { | |
2636 | if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '\t')||(input.LA(1) >= '\u000B' && input.LA(1) <= '\uFFFF') ) { | |
2637 | input.consume(); | |
2638 | } | |
2639 | else { | |
2640 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2641 | recover(mse); | |
2642 | throw mse; | |
2643 | } | |
2644 | } | |
2645 | break; | |
2646 | ||
2647 | default : | |
2648 | break loop28; | |
2649 | } | |
2650 | } | |
2651 | ||
2652 | match('\n'); | |
2653 | _channel = HIDDEN; | |
2654 | } | |
2655 | ||
2656 | state.type = _type; | |
2657 | state.channel = _channel; | |
2658 | } | |
2659 | finally { | |
2660 | // do for sure before leaving | |
2661 | } | |
2662 | } | |
2663 | // $ANTLR end "LINE_COMMENT" | |
2664 | ||
2665 | // $ANTLR start "IDENTIFIER" | |
2666 | public final void mIDENTIFIER() throws RecognitionException { | |
2667 | try { | |
2668 | int _type = IDENTIFIER; | |
2669 | int _channel = DEFAULT_TOKEN_CHANNEL; | |
73511e67 AM |
2670 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:191:12: ( NONDIGIT ( NONDIGIT | DIGIT )* ) |
2671 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:191:14: NONDIGIT ( NONDIGIT | DIGIT )* | |
9ad3c628 AM |
2672 | { |
2673 | mNONDIGIT(); | |
2674 | ||
73511e67 | 2675 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:191:23: ( NONDIGIT | DIGIT )* |
9ad3c628 AM |
2676 | loop29: |
2677 | while (true) { | |
2678 | int alt29=2; | |
2679 | int LA29_0 = input.LA(1); | |
2680 | if ( ((LA29_0 >= '0' && LA29_0 <= '9')||(LA29_0 >= 'A' && LA29_0 <= 'Z')||LA29_0=='_'||(LA29_0 >= 'a' && LA29_0 <= 'z')) ) { | |
2681 | alt29=1; | |
2682 | } | |
2683 | ||
2684 | switch (alt29) { | |
2685 | case 1 : | |
2686 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: | |
2687 | { | |
2688 | 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') ) { | |
2689 | input.consume(); | |
2690 | } | |
2691 | else { | |
2692 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2693 | recover(mse); | |
2694 | throw mse; | |
2695 | } | |
2696 | } | |
2697 | break; | |
2698 | ||
2699 | default : | |
2700 | break loop29; | |
2701 | } | |
2702 | } | |
2703 | ||
2704 | } | |
2705 | ||
2706 | state.type = _type; | |
2707 | state.channel = _channel; | |
2708 | } | |
2709 | finally { | |
2710 | // do for sure before leaving | |
2711 | } | |
2712 | } | |
2713 | // $ANTLR end "IDENTIFIER" | |
2714 | ||
2715 | // $ANTLR start "NONDIGIT" | |
2716 | public final void mNONDIGIT() throws RecognitionException { | |
2717 | try { | |
73511e67 | 2718 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:192:19: ( ( '_' ) | ( 'A' .. 'Z' ) | ( 'a' .. 'z' ) ) |
9ad3c628 AM |
2719 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g: |
2720 | { | |
2721 | if ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) { | |
2722 | input.consume(); | |
2723 | } | |
2724 | else { | |
2725 | MismatchedSetException mse = new MismatchedSetException(null,input); | |
2726 | recover(mse); | |
2727 | throw mse; | |
2728 | } | |
2729 | } | |
2730 | ||
2731 | } | |
2732 | finally { | |
2733 | // do for sure before leaving | |
2734 | } | |
2735 | } | |
2736 | // $ANTLR end "NONDIGIT" | |
2737 | ||
2738 | @Override | |
2739 | public void mTokens() throws RecognitionException { | |
73511e67 AM |
2740 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:8: ( ALIGNTOK | CONSTTOK | CHARTOK | DOUBLETOK | ENUMTOK | EVENTTOK | FLOATINGPOINTTOK | FLOATTOK | INTEGERTOK | INTTOK | LONGTOK | SHORTTOK | SIGNEDTOK | STREAMTOK | STRINGTOK | STRUCTTOK | TRACETOK | TYPEALIASTOK | TYPEDEFTOK | UNSIGNEDTOK | VARIANTTOK | VOIDTOK | BOOLTOK | COMPLEXTOK | IMAGINARYTOK | ENVTOK | CLOCKTOK | NANNUMBERTOK | INFINITYTOK | NINFINITYTOK | SEPARATOR | COLON | ELIPSES | ASSIGNMENT | TYPE_ASSIGNMENT | LT | GT | OPENBRAC | CLOSEBRAC | LPAREN | RPAREN | LCURL | RCURL | TERM | POINTER | SIGN | ARROW | DOT | OCTAL_LITERAL | DECIMAL_LITERAL | HEX_LITERAL | CHARACTER_LITERAL | STRING_LITERAL | WS | COMMENT | LINE_COMMENT | IDENTIFIER ) |
2741 | int alt30=57; | |
9ad3c628 AM |
2742 | alt30 = dfa30.predict(input); |
2743 | switch (alt30) { | |
2744 | case 1 : | |
2745 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:10: ALIGNTOK | |
2746 | { | |
2747 | mALIGNTOK(); | |
2748 | ||
2749 | } | |
2750 | break; | |
2751 | case 2 : | |
2752 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:19: CONSTTOK | |
2753 | { | |
2754 | mCONSTTOK(); | |
2755 | ||
2756 | } | |
2757 | break; | |
2758 | case 3 : | |
2759 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:28: CHARTOK | |
2760 | { | |
2761 | mCHARTOK(); | |
2762 | ||
2763 | } | |
2764 | break; | |
2765 | case 4 : | |
2766 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:36: DOUBLETOK | |
2767 | { | |
2768 | mDOUBLETOK(); | |
2769 | ||
2770 | } | |
2771 | break; | |
2772 | case 5 : | |
2773 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:46: ENUMTOK | |
2774 | { | |
2775 | mENUMTOK(); | |
2776 | ||
2777 | } | |
2778 | break; | |
2779 | case 6 : | |
2780 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:54: EVENTTOK | |
2781 | { | |
2782 | mEVENTTOK(); | |
2783 | ||
2784 | } | |
2785 | break; | |
2786 | case 7 : | |
2787 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:63: FLOATINGPOINTTOK | |
2788 | { | |
2789 | mFLOATINGPOINTTOK(); | |
2790 | ||
2791 | } | |
2792 | break; | |
2793 | case 8 : | |
2794 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:80: FLOATTOK | |
2795 | { | |
2796 | mFLOATTOK(); | |
2797 | ||
2798 | } | |
2799 | break; | |
2800 | case 9 : | |
2801 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:89: INTEGERTOK | |
2802 | { | |
2803 | mINTEGERTOK(); | |
2804 | ||
2805 | } | |
2806 | break; | |
2807 | case 10 : | |
2808 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:100: INTTOK | |
2809 | { | |
2810 | mINTTOK(); | |
2811 | ||
2812 | } | |
2813 | break; | |
2814 | case 11 : | |
2815 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:107: LONGTOK | |
2816 | { | |
2817 | mLONGTOK(); | |
2818 | ||
2819 | } | |
2820 | break; | |
2821 | case 12 : | |
2822 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:115: SHORTTOK | |
2823 | { | |
2824 | mSHORTTOK(); | |
2825 | ||
2826 | } | |
2827 | break; | |
2828 | case 13 : | |
2829 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:124: SIGNEDTOK | |
2830 | { | |
2831 | mSIGNEDTOK(); | |
2832 | ||
2833 | } | |
2834 | break; | |
2835 | case 14 : | |
2836 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:134: STREAMTOK | |
2837 | { | |
2838 | mSTREAMTOK(); | |
2839 | ||
2840 | } | |
2841 | break; | |
2842 | case 15 : | |
2843 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:144: STRINGTOK | |
2844 | { | |
2845 | mSTRINGTOK(); | |
2846 | ||
2847 | } | |
2848 | break; | |
2849 | case 16 : | |
2850 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:154: STRUCTTOK | |
2851 | { | |
2852 | mSTRUCTTOK(); | |
2853 | ||
2854 | } | |
2855 | break; | |
2856 | case 17 : | |
2857 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:164: TRACETOK | |
2858 | { | |
2859 | mTRACETOK(); | |
2860 | ||
2861 | } | |
2862 | break; | |
2863 | case 18 : | |
2864 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:173: TYPEALIASTOK | |
2865 | { | |
2866 | mTYPEALIASTOK(); | |
2867 | ||
2868 | } | |
2869 | break; | |
2870 | case 19 : | |
2871 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:186: TYPEDEFTOK | |
2872 | { | |
2873 | mTYPEDEFTOK(); | |
2874 | ||
2875 | } | |
2876 | break; | |
2877 | case 20 : | |
2878 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:197: UNSIGNEDTOK | |
2879 | { | |
2880 | mUNSIGNEDTOK(); | |
2881 | ||
2882 | } | |
2883 | break; | |
2884 | case 21 : | |
2885 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:209: VARIANTTOK | |
2886 | { | |
2887 | mVARIANTTOK(); | |
2888 | ||
2889 | } | |
2890 | break; | |
2891 | case 22 : | |
2892 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:220: VOIDTOK | |
2893 | { | |
2894 | mVOIDTOK(); | |
2895 | ||
2896 | } | |
2897 | break; | |
2898 | case 23 : | |
2899 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:228: BOOLTOK | |
2900 | { | |
2901 | mBOOLTOK(); | |
2902 | ||
2903 | } | |
2904 | break; | |
2905 | case 24 : | |
2906 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:236: COMPLEXTOK | |
2907 | { | |
2908 | mCOMPLEXTOK(); | |
2909 | ||
2910 | } | |
2911 | break; | |
2912 | case 25 : | |
2913 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:247: IMAGINARYTOK | |
2914 | { | |
2915 | mIMAGINARYTOK(); | |
2916 | ||
2917 | } | |
2918 | break; | |
2919 | case 26 : | |
2920 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:260: ENVTOK | |
2921 | { | |
2922 | mENVTOK(); | |
2923 | ||
2924 | } | |
2925 | break; | |
2926 | case 27 : | |
2927 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:267: CLOCKTOK | |
2928 | { | |
2929 | mCLOCKTOK(); | |
2930 | ||
2931 | } | |
2932 | break; | |
2933 | case 28 : | |
73511e67 | 2934 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:276: NANNUMBERTOK |
9ad3c628 AM |
2935 | { |
2936 | mNANNUMBERTOK(); | |
2937 | ||
2938 | } | |
2939 | break; | |
73511e67 AM |
2940 | case 29 : |
2941 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:289: INFINITYTOK | |
9ad3c628 AM |
2942 | { |
2943 | mINFINITYTOK(); | |
2944 | ||
2945 | } | |
2946 | break; | |
73511e67 AM |
2947 | case 30 : |
2948 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:301: NINFINITYTOK | |
9ad3c628 AM |
2949 | { |
2950 | mNINFINITYTOK(); | |
2951 | ||
2952 | } | |
2953 | break; | |
73511e67 AM |
2954 | case 31 : |
2955 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:314: SEPARATOR | |
9ad3c628 AM |
2956 | { |
2957 | mSEPARATOR(); | |
2958 | ||
2959 | } | |
2960 | break; | |
73511e67 AM |
2961 | case 32 : |
2962 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:324: COLON | |
9ad3c628 AM |
2963 | { |
2964 | mCOLON(); | |
2965 | ||
2966 | } | |
2967 | break; | |
73511e67 AM |
2968 | case 33 : |
2969 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:330: ELIPSES | |
9ad3c628 AM |
2970 | { |
2971 | mELIPSES(); | |
2972 | ||
2973 | } | |
2974 | break; | |
73511e67 AM |
2975 | case 34 : |
2976 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:338: ASSIGNMENT | |
9ad3c628 AM |
2977 | { |
2978 | mASSIGNMENT(); | |
2979 | ||
2980 | } | |
2981 | break; | |
73511e67 AM |
2982 | case 35 : |
2983 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:349: TYPE_ASSIGNMENT | |
9ad3c628 AM |
2984 | { |
2985 | mTYPE_ASSIGNMENT(); | |
2986 | ||
2987 | } | |
2988 | break; | |
73511e67 AM |
2989 | case 36 : |
2990 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:365: LT | |
9ad3c628 AM |
2991 | { |
2992 | mLT(); | |
2993 | ||
2994 | } | |
2995 | break; | |
73511e67 AM |
2996 | case 37 : |
2997 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:368: GT | |
9ad3c628 AM |
2998 | { |
2999 | mGT(); | |
3000 | ||
3001 | } | |
3002 | break; | |
73511e67 AM |
3003 | case 38 : |
3004 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:371: OPENBRAC | |
9ad3c628 AM |
3005 | { |
3006 | mOPENBRAC(); | |
3007 | ||
3008 | } | |
3009 | break; | |
73511e67 AM |
3010 | case 39 : |
3011 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:380: CLOSEBRAC | |
9ad3c628 AM |
3012 | { |
3013 | mCLOSEBRAC(); | |
3014 | ||
3015 | } | |
3016 | break; | |
73511e67 AM |
3017 | case 40 : |
3018 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:390: LPAREN | |
9ad3c628 AM |
3019 | { |
3020 | mLPAREN(); | |
3021 | ||
3022 | } | |
3023 | break; | |
73511e67 AM |
3024 | case 41 : |
3025 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:397: RPAREN | |
9ad3c628 AM |
3026 | { |
3027 | mRPAREN(); | |
3028 | ||
3029 | } | |
3030 | break; | |
73511e67 AM |
3031 | case 42 : |
3032 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:404: LCURL | |
9ad3c628 AM |
3033 | { |
3034 | mLCURL(); | |
3035 | ||
3036 | } | |
3037 | break; | |
73511e67 AM |
3038 | case 43 : |
3039 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:410: RCURL | |
9ad3c628 AM |
3040 | { |
3041 | mRCURL(); | |
3042 | ||
3043 | } | |
3044 | break; | |
73511e67 AM |
3045 | case 44 : |
3046 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:416: TERM | |
9ad3c628 AM |
3047 | { |
3048 | mTERM(); | |
3049 | ||
3050 | } | |
3051 | break; | |
73511e67 AM |
3052 | case 45 : |
3053 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:421: POINTER | |
9ad3c628 AM |
3054 | { |
3055 | mPOINTER(); | |
3056 | ||
3057 | } | |
3058 | break; | |
73511e67 AM |
3059 | case 46 : |
3060 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:429: SIGN | |
9ad3c628 AM |
3061 | { |
3062 | mSIGN(); | |
3063 | ||
3064 | } | |
3065 | break; | |
73511e67 AM |
3066 | case 47 : |
3067 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:434: ARROW | |
9ad3c628 AM |
3068 | { |
3069 | mARROW(); | |
3070 | ||
3071 | } | |
3072 | break; | |
73511e67 AM |
3073 | case 48 : |
3074 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:440: DOT | |
9ad3c628 AM |
3075 | { |
3076 | mDOT(); | |
3077 | ||
3078 | } | |
3079 | break; | |
73511e67 AM |
3080 | case 49 : |
3081 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:444: OCTAL_LITERAL | |
9ad3c628 AM |
3082 | { |
3083 | mOCTAL_LITERAL(); | |
3084 | ||
3085 | } | |
3086 | break; | |
73511e67 AM |
3087 | case 50 : |
3088 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:458: DECIMAL_LITERAL | |
9ad3c628 AM |
3089 | { |
3090 | mDECIMAL_LITERAL(); | |
3091 | ||
3092 | } | |
3093 | break; | |
73511e67 AM |
3094 | case 51 : |
3095 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:474: HEX_LITERAL | |
9ad3c628 AM |
3096 | { |
3097 | mHEX_LITERAL(); | |
3098 | ||
3099 | } | |
3100 | break; | |
73511e67 AM |
3101 | case 52 : |
3102 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:486: CHARACTER_LITERAL | |
9ad3c628 AM |
3103 | { |
3104 | mCHARACTER_LITERAL(); | |
3105 | ||
3106 | } | |
3107 | break; | |
73511e67 AM |
3108 | case 53 : |
3109 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:504: STRING_LITERAL | |
9ad3c628 AM |
3110 | { |
3111 | mSTRING_LITERAL(); | |
3112 | ||
3113 | } | |
3114 | break; | |
73511e67 AM |
3115 | case 54 : |
3116 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:519: WS | |
9ad3c628 AM |
3117 | { |
3118 | mWS(); | |
3119 | ||
3120 | } | |
3121 | break; | |
73511e67 AM |
3122 | case 55 : |
3123 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:522: COMMENT | |
9ad3c628 AM |
3124 | { |
3125 | mCOMMENT(); | |
3126 | ||
3127 | } | |
3128 | break; | |
73511e67 AM |
3129 | case 56 : |
3130 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:530: LINE_COMMENT | |
9ad3c628 AM |
3131 | { |
3132 | mLINE_COMMENT(); | |
3133 | ||
3134 | } | |
3135 | break; | |
73511e67 AM |
3136 | case 57 : |
3137 | // org/eclipse/tracecompass/ctf/parser/CTFLexer.g:1:543: IDENTIFIER | |
9ad3c628 AM |
3138 | { |
3139 | mIDENTIFIER(); | |
3140 | ||
3141 | } | |
3142 | break; | |
3143 | ||
3144 | } | |
3145 | } | |
3146 | ||
3147 | ||
3148 | protected DFA30 dfa30 = new DFA30(this); | |
3149 | static final String DFA30_eotS = | |
73511e67 AM |
3150 | "\1\uffff\15\45\2\75\1\uffff\1\101\1\103\13\uffff\1\37\1\uffff\1\45\5\uffff"+ |
3151 | "\26\45\11\uffff\1\142\2\uffff\6\45\1\151\2\45\1\155\14\45\1\174\3\142"+ | |
3152 | "\1\uffff\2\45\1\u0084\2\45\1\u0087\1\uffff\3\45\1\uffff\1\u008b\11\45"+ | |
3153 | "\1\u0096\3\45\1\uffff\1\142\1\uffff\3\142\1\u009c\1\u009d\1\uffff\1\u009e"+ | |
3154 | "\1\45\1\uffff\1\u00a0\1\u00a2\1\45\1\uffff\1\u00a4\4\45\1\u00a9\4\45\1"+ | |
3155 | "\uffff\1\u00ae\2\45\5\uffff\1\u00b1\1\uffff\1\45\1\uffff\1\45\1\uffff"+ | |
3156 | "\1\u00b4\1\u00b5\1\u00b6\1\u00b7\1\uffff\4\45\1\uffff\2\45\1\uffff\1\45"+ | |
3157 | "\1\u00bf\4\uffff\1\45\1\u00c1\1\45\1\u00c3\3\45\1\uffff\1\45\1\uffff\1"+ | |
3158 | "\u00c8\1\uffff\1\u00c9\2\45\1\u00cc\2\uffff\2\45\1\uffff\1\u00cf\1\45"+ | |
3159 | "\1\uffff\2\45\1\u00d3\1\uffff"; | |
9ad3c628 | 3160 | static final String DFA30_eofS = |
73511e67 | 3161 | "\u00d4\uffff"; |
9ad3c628 | 3162 | static final String DFA30_minS = |
73511e67 | 3163 | "\1\11\1\154\1\150\1\157\1\156\1\154\1\156\1\157\1\150\1\162\1\156\1\141"+ |
9ad3c628 | 3164 | "\1\102\1\141\1\151\1\76\1\uffff\1\75\1\56\13\uffff\1\60\1\uffff\1\42\3"+ |
73511e67 AM |
3165 | "\uffff\1\52\1\uffff\1\151\1\156\1\141\1\157\2\165\1\145\1\157\1\164\1"+ |
3166 | "\156\1\157\1\147\1\162\1\141\1\160\1\163\1\162\1\151\2\157\1\155\1\116"+ | |
3167 | "\11\uffff\1\60\2\uffff\1\147\1\163\1\162\1\143\1\142\1\155\1\60\1\156"+ | |
3168 | "\1\141\1\60\1\147\1\162\1\156\1\145\1\143\1\145\2\151\1\144\1\157\1\155"+ | |
3169 | "\1\141\1\60\1\125\2\114\1\uffff\1\156\1\164\1\60\1\153\1\154\1\60\1\uffff"+ | |
3170 | "\2\164\1\147\1\uffff\1\60\1\164\1\145\1\141\1\156\1\143\1\145\1\141\1"+ | |
3171 | "\147\1\141\1\60\1\154\1\160\1\147\1\uffff\1\125\1\uffff\1\125\1\154\1"+ | |
3172 | "\114\2\60\1\uffff\1\60\1\145\1\uffff\2\60\1\145\1\uffff\1\60\1\144\1\155"+ | |
3173 | "\1\147\1\164\1\60\1\154\1\145\2\156\1\uffff\1\60\1\154\1\151\5\uffff\1"+ | |
3174 | "\60\1\uffff\1\156\1\uffff\1\162\1\uffff\4\60\1\uffff\1\151\1\146\1\145"+ | |
3175 | "\1\164\1\uffff\1\145\1\156\1\uffff\1\147\1\60\4\uffff\1\141\1\60\1\144"+ | |
3176 | "\1\60\1\170\1\141\1\137\1\uffff\1\163\1\uffff\1\60\1\uffff\1\60\1\162"+ | |
3177 | "\1\160\1\60\2\uffff\1\171\1\157\1\uffff\1\60\1\151\1\uffff\1\156\1\164"+ | |
3178 | "\1\60\1\uffff"; | |
9ad3c628 AM |
3179 | static final String DFA30_maxS = |
3180 | "\1\175\1\154\2\157\1\166\1\154\1\156\1\157\1\164\1\171\1\156\1\157\1\111"+ | |
3181 | "\1\141\2\151\1\uffff\1\75\1\56\13\uffff\1\170\1\uffff\1\47\3\uffff\1\57"+ | |
73511e67 AM |
3182 | "\1\uffff\1\151\1\156\1\141\1\157\1\165\1\166\1\145\1\157\1\164\1\156\1"+ |
3183 | "\157\1\147\1\162\1\141\1\160\1\163\1\162\1\151\2\157\1\155\1\116\11\uffff"+ | |
3184 | "\1\165\2\uffff\1\147\1\163\1\162\1\143\1\142\1\155\1\172\1\156\1\141\1"+ | |
3185 | "\172\1\147\1\162\1\156\1\165\1\143\1\145\2\151\1\144\1\157\1\155\1\141"+ | |
3186 | "\1\172\2\165\1\154\1\uffff\1\156\1\164\1\172\1\153\1\154\1\172\1\uffff"+ | |
3187 | "\2\164\1\147\1\uffff\1\172\1\164\1\145\1\141\1\156\1\143\1\145\1\144\1"+ | |
3188 | "\147\1\141\1\172\1\154\1\160\1\147\1\uffff\1\165\1\uffff\1\165\1\154\1"+ | |
3189 | "\114\2\172\1\uffff\1\172\1\145\1\uffff\2\172\1\145\1\uffff\1\172\1\144"+ | |
3190 | "\1\155\1\147\1\164\1\172\1\154\1\145\2\156\1\uffff\1\172\1\154\1\151\5"+ | |
3191 | "\uffff\1\172\1\uffff\1\156\1\uffff\1\162\1\uffff\4\172\1\uffff\1\151\1"+ | |
3192 | "\146\1\145\1\164\1\uffff\1\145\1\156\1\uffff\1\147\1\172\4\uffff\1\141"+ | |
3193 | "\1\172\1\144\1\172\1\170\1\141\1\137\1\uffff\1\163\1\uffff\1\172\1\uffff"+ | |
3194 | "\1\172\1\162\1\160\1\172\2\uffff\1\171\1\157\1\uffff\1\172\1\151\1\uffff"+ | |
3195 | "\1\156\1\164\1\172\1\uffff"; | |
9ad3c628 | 3196 | static final String DFA30_acceptS = |
73511e67 AM |
3197 | "\20\uffff\1\37\2\uffff\1\42\1\44\1\45\1\46\1\47\1\50\1\51\1\52\1\53\1"+ |
3198 | "\54\1\55\1\uffff\1\62\1\uffff\1\64\1\65\1\66\1\uffff\1\71\26\uffff\1\35"+ | |
3199 | "\1\56\1\36\1\57\1\43\1\40\1\41\1\60\1\63\1\uffff\1\67\1\70\32\uffff\1"+ | |
3200 | "\61\6\uffff\1\32\3\uffff\1\12\16\uffff\1\34\1\uffff\1\61\5\uffff\1\3\2"+ | |
3201 | "\uffff\1\5\3\uffff\1\13\12\uffff\1\26\3\uffff\2\61\1\1\1\2\1\33\1\uffff"+ | |
3202 | "\1\6\1\uffff\1\10\1\uffff\1\14\4\uffff\1\21\4\uffff\1\27\2\uffff\1\4\2"+ | |
3203 | "\uffff\1\15\1\16\1\17\1\20\7\uffff\1\11\1\uffff\1\23\1\uffff\1\25\4\uffff"+ | |
3204 | "\1\24\1\30\2\uffff\1\22\2\uffff\1\31\3\uffff\1\7"; | |
9ad3c628 | 3205 | static final String DFA30_specialS = |
73511e67 | 3206 | "\u00d4\uffff}>"; |
9ad3c628 AM |
3207 | static final String[] DFA30_transitionS = { |
3208 | "\2\43\1\uffff\2\43\22\uffff\1\43\1\uffff\1\42\4\uffff\1\41\1\30\1\31"+ | |
3209 | "\1\35\1\16\1\20\1\17\1\22\1\44\1\36\11\37\1\21\1\34\1\24\1\23\1\25\2"+ | |
3210 | "\uffff\13\45\1\40\1\45\1\15\14\45\1\26\1\uffff\1\27\1\uffff\1\14\1\uffff"+ | |
3211 | "\1\1\1\45\1\2\1\3\1\4\1\5\2\45\1\6\2\45\1\7\6\45\1\10\1\11\1\12\1\13"+ | |
3212 | "\4\45\1\32\1\uffff\1\33", | |
3213 | "\1\46", | |
73511e67 AM |
3214 | "\1\50\3\uffff\1\51\2\uffff\1\47", |
3215 | "\1\52", | |
3216 | "\1\53\7\uffff\1\54", | |
3217 | "\1\55", | |
9ad3c628 AM |
3218 | "\1\56", |
3219 | "\1\57", | |
73511e67 AM |
3220 | "\1\60\1\61\12\uffff\1\62", |
3221 | "\1\63\6\uffff\1\64", | |
3222 | "\1\65", | |
3223 | "\1\66\15\uffff\1\67", | |
3224 | "\1\70\1\71\5\uffff\1\72", | |
3225 | "\1\73", | |
9ad3c628 | 3226 | "\1\74", |
73511e67 | 3227 | "\1\77\52\uffff\1\76", |
9ad3c628 | 3228 | "", |
73511e67 AM |
3229 | "\1\100", |
3230 | "\1\102", | |
9ad3c628 AM |
3231 | "", |
3232 | "", | |
3233 | "", | |
3234 | "", | |
3235 | "", | |
3236 | "", | |
3237 | "", | |
3238 | "", | |
3239 | "", | |
3240 | "", | |
3241 | "", | |
73511e67 | 3242 | "\10\105\40\uffff\1\104\37\uffff\1\104", |
9ad3c628 AM |
3243 | "", |
3244 | "\1\42\4\uffff\1\41", | |
3245 | "", | |
3246 | "", | |
3247 | "", | |
73511e67 | 3248 | "\1\106\4\uffff\1\107", |
9ad3c628 | 3249 | "", |
73511e67 | 3250 | "\1\110", |
9ad3c628 AM |
3251 | "\1\111", |
3252 | "\1\112", | |
3253 | "\1\113", | |
3254 | "\1\114", | |
73511e67 AM |
3255 | "\1\115\1\116", |
3256 | "\1\117", | |
3257 | "\1\120", | |
9ad3c628 AM |
3258 | "\1\121", |
3259 | "\1\122", | |
3260 | "\1\123", | |
3261 | "\1\124", | |
3262 | "\1\125", | |
3263 | "\1\126", | |
3264 | "\1\127", | |
3265 | "\1\130", | |
3266 | "\1\131", | |
3267 | "\1\132", | |
3268 | "\1\133", | |
3269 | "\1\134", | |
3270 | "\1\135", | |
3271 | "\1\136", | |
9ad3c628 AM |
3272 | "", |
3273 | "", | |
3274 | "", | |
3275 | "", | |
3276 | "", | |
3277 | "", | |
3278 | "", | |
3279 | "", | |
3280 | "", | |
73511e67 AM |
3281 | "\10\105\2\37\22\uffff\1\140\10\uffff\1\141\26\uffff\1\137\10\uffff\1"+ |
3282 | "\141", | |
9ad3c628 AM |
3283 | "", |
3284 | "", | |
73511e67 AM |
3285 | "\1\143", |
3286 | "\1\144", | |
9ad3c628 AM |
3287 | "\1\145", |
3288 | "\1\146", | |
3289 | "\1\147", | |
3290 | "\1\150", | |
73511e67 | 3291 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
9ad3c628 AM |
3292 | "\1\152", |
3293 | "\1\153", | |
73511e67 | 3294 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\4\45\1\154\25\45", |
9ad3c628 | 3295 | "\1\156", |
73511e67 AM |
3296 | "\1\157", |
3297 | "\1\160", | |
3298 | "\1\161\3\uffff\1\162\13\uffff\1\163", | |
3299 | "\1\164", | |
3300 | "\1\165", | |
3301 | "\1\166", | |
9ad3c628 AM |
3302 | "\1\167", |
3303 | "\1\170", | |
3304 | "\1\171", | |
3305 | "\1\172", | |
3306 | "\1\173", | |
9ad3c628 | 3307 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
73511e67 AM |
3308 | "\1\176\26\uffff\1\175\10\uffff\1\176", |
3309 | "\1\177\10\uffff\1\176\37\uffff\1\176", | |
3310 | "\1\u0081\37\uffff\1\u0080", | |
9ad3c628 | 3311 | "", |
73511e67 AM |
3312 | "\1\u0082", |
3313 | "\1\u0083", | |
3314 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
9ad3c628 AM |
3315 | "\1\u0085", |
3316 | "\1\u0086", | |
3317 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
73511e67 | 3318 | "", |
9ad3c628 AM |
3319 | "\1\u0088", |
3320 | "\1\u0089", | |
3321 | "\1\u008a", | |
9ad3c628 | 3322 | "", |
73511e67 | 3323 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
9ad3c628 AM |
3324 | "\1\u008c", |
3325 | "\1\u008d", | |
3326 | "\1\u008e", | |
73511e67 | 3327 | "\1\u008f", |
9ad3c628 AM |
3328 | "\1\u0090", |
3329 | "\1\u0091", | |
73511e67 | 3330 | "\1\u0092\2\uffff\1\u0093", |
9ad3c628 AM |
3331 | "\1\u0094", |
3332 | "\1\u0095", | |
73511e67 AM |
3333 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
3334 | "\1\u0097", | |
9ad3c628 AM |
3335 | "\1\u0098", |
3336 | "\1\u0099", | |
9ad3c628 | 3337 | "", |
73511e67 | 3338 | "\1\176\37\uffff\1\176", |
9ad3c628 | 3339 | "", |
73511e67 AM |
3340 | "\1\176\37\uffff\1\176", |
3341 | "\1\u009a", | |
3342 | "\1\u009b", | |
3343 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
9ad3c628 | 3344 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
73511e67 | 3345 | "", |
9ad3c628 | 3346 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
73511e67 | 3347 | "\1\u009f", |
9ad3c628 AM |
3348 | "", |
3349 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
73511e67 | 3350 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\10\45\1\u00a1\21\45", |
9ad3c628 | 3351 | "\1\u00a3", |
9ad3c628 AM |
3352 | "", |
3353 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
73511e67 AM |
3354 | "\1\u00a5", |
3355 | "\1\u00a6", | |
3356 | "\1\u00a7", | |
9ad3c628 | 3357 | "\1\u00a8", |
9ad3c628 AM |
3358 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
3359 | "\1\u00aa", | |
3360 | "\1\u00ab", | |
3361 | "\1\u00ac", | |
3362 | "\1\u00ad", | |
73511e67 | 3363 | "", |
9ad3c628 AM |
3364 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
3365 | "\1\u00af", | |
3366 | "\1\u00b0", | |
9ad3c628 AM |
3367 | "", |
3368 | "", | |
3369 | "", | |
3370 | "", | |
3371 | "", | |
9ad3c628 AM |
3372 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
3373 | "", | |
73511e67 | 3374 | "\1\u00b2", |
9ad3c628 | 3375 | "", |
73511e67 | 3376 | "\1\u00b3", |
9ad3c628 AM |
3377 | "", |
3378 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
3379 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
3380 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
3381 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
3382 | "", | |
73511e67 AM |
3383 | "\1\u00b8", |
3384 | "\1\u00b9", | |
3385 | "\1\u00ba", | |
3386 | "\1\u00bb", | |
9ad3c628 | 3387 | "", |
73511e67 AM |
3388 | "\1\u00bc", |
3389 | "\1\u00bd", | |
9ad3c628 | 3390 | "", |
73511e67 | 3391 | "\1\u00be", |
9ad3c628 AM |
3392 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
3393 | "", | |
3394 | "", | |
3395 | "", | |
3396 | "", | |
73511e67 | 3397 | "\1\u00c0", |
9ad3c628 | 3398 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
73511e67 | 3399 | "\1\u00c2", |
9ad3c628 | 3400 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
73511e67 AM |
3401 | "\1\u00c4", |
3402 | "\1\u00c5", | |
3403 | "\1\u00c6", | |
9ad3c628 | 3404 | "", |
73511e67 | 3405 | "\1\u00c7", |
9ad3c628 AM |
3406 | "", |
3407 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
3408 | "", | |
3409 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
73511e67 AM |
3410 | "\1\u00ca", |
3411 | "\1\u00cb", | |
9ad3c628 AM |
3412 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
3413 | "", | |
3414 | "", | |
73511e67 AM |
3415 | "\1\u00cd", |
3416 | "\1\u00ce", | |
9ad3c628 AM |
3417 | "", |
3418 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", | |
73511e67 | 3419 | "\1\u00d0", |
9ad3c628 | 3420 | "", |
73511e67 AM |
3421 | "\1\u00d1", |
3422 | "\1\u00d2", | |
9ad3c628 AM |
3423 | "\12\45\7\uffff\32\45\4\uffff\1\45\1\uffff\32\45", |
3424 | "" | |
3425 | }; | |
3426 | ||
3427 | static final short[] DFA30_eot = DFA.unpackEncodedString(DFA30_eotS); | |
3428 | static final short[] DFA30_eof = DFA.unpackEncodedString(DFA30_eofS); | |
3429 | static final char[] DFA30_min = DFA.unpackEncodedStringToUnsignedChars(DFA30_minS); | |
3430 | static final char[] DFA30_max = DFA.unpackEncodedStringToUnsignedChars(DFA30_maxS); | |
3431 | static final short[] DFA30_accept = DFA.unpackEncodedString(DFA30_acceptS); | |
3432 | static final short[] DFA30_special = DFA.unpackEncodedString(DFA30_specialS); | |
3433 | static final short[][] DFA30_transition; | |
3434 | ||
3435 | static { | |
3436 | int numStates = DFA30_transitionS.length; | |
3437 | DFA30_transition = new short[numStates][]; | |
3438 | for (int i=0; i<numStates; i++) { | |
3439 | DFA30_transition[i] = DFA.unpackEncodedString(DFA30_transitionS[i]); | |
3440 | } | |
3441 | } | |
3442 | ||
3443 | protected class DFA30 extends DFA { | |
3444 | ||
3445 | public DFA30(BaseRecognizer recognizer) { | |
3446 | this.recognizer = recognizer; | |
3447 | this.decisionNumber = 30; | |
3448 | this.eot = DFA30_eot; | |
3449 | this.eof = DFA30_eof; | |
3450 | this.min = DFA30_min; | |
3451 | this.max = DFA30_max; | |
3452 | this.accept = DFA30_accept; | |
3453 | this.special = DFA30_special; | |
3454 | this.transition = DFA30_transition; | |
3455 | } | |
3456 | @Override | |
3457 | public String getDescription() { | |
73511e67 | 3458 | return "1:1: Tokens : ( ALIGNTOK | CONSTTOK | CHARTOK | DOUBLETOK | ENUMTOK | EVENTTOK | FLOATINGPOINTTOK | FLOATTOK | INTEGERTOK | INTTOK | LONGTOK | SHORTTOK | SIGNEDTOK | STREAMTOK | STRINGTOK | STRUCTTOK | TRACETOK | TYPEALIASTOK | TYPEDEFTOK | UNSIGNEDTOK | VARIANTTOK | VOIDTOK | BOOLTOK | COMPLEXTOK | IMAGINARYTOK | ENVTOK | CLOCKTOK | NANNUMBERTOK | INFINITYTOK | NINFINITYTOK | SEPARATOR | COLON | ELIPSES | ASSIGNMENT | TYPE_ASSIGNMENT | LT | GT | OPENBRAC | CLOSEBRAC | LPAREN | RPAREN | LCURL | RCURL | TERM | POINTER | SIGN | ARROW | DOT | OCTAL_LITERAL | DECIMAL_LITERAL | HEX_LITERAL | CHARACTER_LITERAL | STRING_LITERAL | WS | COMMENT | LINE_COMMENT | IDENTIFIER );"; |
9ad3c628 AM |
3459 | } |
3460 | } | |
3461 | ||
3462 | } |