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