blob: 7756bbc08e9874e030d287c6c36b2a7152eca90f [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#define yy_create_buffer Upgrade_create_buffer
2#define yy_delete_buffer Upgrade_delete_buffer
3#define yy_scan_buffer Upgrade_scan_buffer
4#define yy_scan_string Upgrade_scan_string
5#define yy_scan_bytes Upgrade_scan_bytes
6#define yy_flex_debug Upgrade_flex_debug
7#define yy_init_buffer Upgrade_init_buffer
8#define yy_flush_buffer Upgrade_flush_buffer
9#define yy_load_buffer_state Upgrade_load_buffer_state
10#define yy_switch_to_buffer Upgrade_switch_to_buffer
11#define yyin Upgradein
12#define yyleng Upgradeleng
13#define yylex Upgradelex
14#define yyout Upgradeout
15#define yyrestart Upgraderestart
16#define yytext Upgradetext
17#define yylineno Upgradelineno
18
19#line 20 "UpgradeLexer.cpp"
Dale Johannesenb9de9f02007-09-06 18:13:44 +000020/* A lexical scanner generated by flex */
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021
22/* Scanner skeleton version:
Dale Johannesenb9de9f02007-09-06 18:13:44 +000023 * $Header: /cvs/root/flex/flex/skel.c,v 1.2 2004/05/07 00:28:17 jkh Exp $
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024 */
25
26#define FLEX_SCANNER
27#define YY_FLEX_MAJOR_VERSION 2
28#define YY_FLEX_MINOR_VERSION 5
29
30#include <stdio.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031
32
33/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
34#ifdef c_plusplus
35#ifndef __cplusplus
36#define __cplusplus
37#endif
38#endif
39
40
41#ifdef __cplusplus
42
43#include <stdlib.h>
Dale Johannesenb9de9f02007-09-06 18:13:44 +000044#include <unistd.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000045
46/* Use prototypes in function declarations. */
47#define YY_USE_PROTOS
48
49/* The "const" storage-class-modifier is valid. */
50#define YY_USE_CONST
51
52#else /* ! __cplusplus */
53
54#if __STDC__
55
56#define YY_USE_PROTOS
57#define YY_USE_CONST
58
59#endif /* __STDC__ */
60#endif /* ! __cplusplus */
61
62#ifdef __TURBOC__
63 #pragma warn -rch
64 #pragma warn -use
65#include <io.h>
66#include <stdlib.h>
67#define YY_USE_CONST
68#define YY_USE_PROTOS
69#endif
70
71#ifdef YY_USE_CONST
72#define yyconst const
73#else
74#define yyconst
75#endif
76
77
78#ifdef YY_USE_PROTOS
79#define YY_PROTO(proto) proto
80#else
81#define YY_PROTO(proto) ()
82#endif
83
84/* Returned upon end-of-file. */
85#define YY_NULL 0
86
87/* Promotes a possibly negative, possibly signed char to an unsigned
88 * integer for use as an array index. If the signed char is negative,
89 * we want to instead treat it as an 8-bit unsigned char, hence the
90 * double cast.
91 */
92#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
93
94/* Enter a start condition. This macro really ought to take a parameter,
95 * but we do it the disgusting crufty way forced on us by the ()-less
96 * definition of BEGIN.
97 */
98#define BEGIN yy_start = 1 + 2 *
99
100/* Translate the current start state into a value that can be later handed
101 * to BEGIN to return to the state. The YYSTATE alias is for lex
102 * compatibility.
103 */
104#define YY_START ((yy_start - 1) / 2)
105#define YYSTATE YY_START
106
107/* Action number for EOF rule of a given start state. */
108#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
109
110/* Special action meaning "start processing a new file". */
111#define YY_NEW_FILE yyrestart( yyin )
112
113#define YY_END_OF_BUFFER_CHAR 0
114
115/* Size of default input buffer. */
116#define YY_BUF_SIZE (16384*64)
117
118typedef struct yy_buffer_state *YY_BUFFER_STATE;
119
120extern int yyleng;
121extern FILE *yyin, *yyout;
122
123#define EOB_ACT_CONTINUE_SCAN 0
124#define EOB_ACT_END_OF_FILE 1
125#define EOB_ACT_LAST_MATCH 2
126
127/* The funky do-while in the following #define is used to turn the definition
128 * int a single C statement (which needs a semi-colon terminator). This
129 * avoids problems with code like:
130 *
131 * if ( condition_holds )
132 * yyless( 5 );
133 * else
134 * do_something_else();
135 *
136 * Prior to using the do-while the compiler would get upset at the
137 * "else" because it interpreted the "if" statement as being all
138 * done when it reached the ';' after the yyless() call.
139 */
140
141/* Return all but the first 'n' matched characters back to the input stream. */
142
143#define yyless(n) \
144 do \
145 { \
146 /* Undo effects of setting up yytext. */ \
147 *yy_cp = yy_hold_char; \
148 YY_RESTORE_YY_MORE_OFFSET \
149 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
150 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
151 } \
152 while ( 0 )
153
154#define unput(c) yyunput( c, yytext_ptr )
155
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000156/* The following is because we cannot portably get our hands on size_t
157 * (without autoconf's help, which isn't available because we want
158 * flex-generated scanners to compile on their own).
159 */
160typedef unsigned int yy_size_t;
161
162
163struct yy_buffer_state
164 {
165 FILE *yy_input_file;
166
167 char *yy_ch_buf; /* input buffer */
168 char *yy_buf_pos; /* current position in input buffer */
169
170 /* Size of input buffer in bytes, not including room for EOB
171 * characters.
172 */
173 yy_size_t yy_buf_size;
174
175 /* Number of characters read into yy_ch_buf, not including EOB
176 * characters.
177 */
178 int yy_n_chars;
179
180 /* Whether we "own" the buffer - i.e., we know we created it,
181 * and can realloc() it to grow it, and should free() it to
182 * delete it.
183 */
184 int yy_is_our_buffer;
185
186 /* Whether this is an "interactive" input source; if so, and
187 * if we're using stdio for input, then we want to use getc()
188 * instead of fread(), to make sure we stop fetching input after
189 * each newline.
190 */
191 int yy_is_interactive;
192
193 /* Whether we're considered to be at the beginning of a line.
194 * If so, '^' rules will be active on the next match, otherwise
195 * not.
196 */
197 int yy_at_bol;
198
199 /* Whether to try to fill the input buffer when we reach the
200 * end of it.
201 */
202 int yy_fill_buffer;
203
204 int yy_buffer_status;
205#define YY_BUFFER_NEW 0
206#define YY_BUFFER_NORMAL 1
207 /* When an EOF's been seen but there's still some text to process
208 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
209 * shouldn't try reading from the input source any more. We might
210 * still have a bunch of tokens to match, though, because of
211 * possible backing-up.
212 *
213 * When we actually see the EOF, we change the status to "new"
214 * (via yyrestart()), so that the user can continue scanning by
215 * just pointing yyin at a new input file.
216 */
217#define YY_BUFFER_EOF_PENDING 2
218 };
219
220static YY_BUFFER_STATE yy_current_buffer = 0;
221
222/* We provide macros for accessing buffer states in case in the
223 * future we want to put the buffer states in a more general
224 * "scanner state".
225 */
226#define YY_CURRENT_BUFFER yy_current_buffer
227
228
229/* yy_hold_char holds the character lost when yytext is formed. */
230static char yy_hold_char;
231
232static int yy_n_chars; /* number of characters read into yy_ch_buf */
233
234
235int yyleng;
236
237/* Points to current character in buffer. */
238static char *yy_c_buf_p = (char *) 0;
239static int yy_init = 1; /* whether we need to initialize */
240static int yy_start = 0; /* start state number */
241
242/* Flag which is used to allow yywrap()'s to do buffer switches
243 * instead of setting up a fresh yyin. A bit of a hack ...
244 */
245static int yy_did_buffer_switch_on_eof;
246
247void yyrestart YY_PROTO(( FILE *input_file ));
248
249void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
250void yy_load_buffer_state YY_PROTO(( void ));
251YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
252void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
253void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
254void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
255#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
256
257YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
258YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
259YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
260
261static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
Dale Johannesenb9de9f02007-09-06 18:13:44 +0000262static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000263static void yy_flex_free YY_PROTO(( void * ));
264
265#define yy_new_buffer yy_create_buffer
266
267#define yy_set_interactive(is_interactive) \
268 { \
269 if ( ! yy_current_buffer ) \
270 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
271 yy_current_buffer->yy_is_interactive = is_interactive; \
272 }
273
274#define yy_set_bol(at_bol) \
275 { \
276 if ( ! yy_current_buffer ) \
277 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
278 yy_current_buffer->yy_at_bol = at_bol; \
279 }
280
281#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
282
283
284#define YY_USES_REJECT
285
286#define yywrap() 1
287#define YY_SKIP_YYWRAP
288typedef unsigned char YY_CHAR;
289FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
290typedef int yy_state_type;
291extern int yylineno;
292int yylineno = 1;
293extern char *yytext;
294#define yytext_ptr yytext
295
296static yy_state_type yy_get_previous_state YY_PROTO(( void ));
297static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
298static int yy_get_next_buffer YY_PROTO(( void ));
299static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
300
301/* Done after the current pattern has been matched and before the
302 * corresponding action - sets up yytext.
303 */
304#define YY_DO_BEFORE_ACTION \
305 yytext_ptr = yy_bp; \
306 yyleng = (int) (yy_cp - yy_bp); \
307 yy_hold_char = *yy_cp; \
308 *yy_cp = '\0'; \
309 yy_c_buf_p = yy_cp;
310
311#define YY_NUM_RULES 161
312#define YY_END_OF_BUFFER 162
313static yyconst short int yy_acclist[241] =
314 { 0,
315 162, 160, 161, 159, 160, 161, 159, 161, 160, 161,
316 160, 161, 160, 161, 160, 161, 160, 161, 160, 161,
317 152, 160, 161, 152, 160, 161, 1, 160, 161, 160,
318 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
319 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
320 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
321 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
322 161, 160, 161, 151, 149, 148, 148, 155, 153, 157,
323 152, 1, 134, 41, 94, 62, 50, 95, 80, 23,
324 151, 148, 148, 156, 157, 20, 157, 158, 68, 79,
325
326 39, 34, 42, 71, 3, 53, 56, 59, 54, 70,
327 25, 104, 109, 107, 108, 106, 105, 110, 114, 75,
328 133, 99, 97, 88, 89, 98, 96, 69, 112, 103,
329 101, 102, 100, 113, 111, 81, 150, 157, 157, 91,
330 61, 115, 116, 93, 74, 141, 78, 92, 142, 57,
331 90, 22, 154, 73, 119, 77, 26, 4, 66, 72,
332 55, 76, 60, 11, 118, 157, 36, 2, 5, 63,
333 121, 65, 48, 83, 87, 85, 86, 84, 82, 51,
334 143, 117, 49, 58, 21, 131, 140, 45, 64, 30,
335 24, 44, 123, 122, 7, 136, 33, 139, 38, 67,
336
337 129, 125, 135, 27, 28, 124, 137, 52, 132, 130,
338 128, 43, 6, 29, 120, 37, 8, 17, 9, 127,
339 10, 126, 35, 12, 14, 13, 32, 40, 15, 31,
340 138, 144, 146, 147, 16, 46, 145, 18, 47, 19
341 } ;
342
343static yyconst short int yy_accept[621] =
344 { 0,
345 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
346 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
347 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
348 60, 62, 64, 66, 68, 70, 72, 74, 74, 75,
349 75, 76, 77, 78, 79, 79, 80, 80, 81, 82,
350 82, 83, 83, 83, 83, 83, 83, 83, 83, 83,
351 83, 84, 84, 85, 85, 85, 85, 85, 85, 85,
352 85, 85, 86, 86, 86, 86, 86, 86, 86, 86,
353 86, 86, 87, 87, 87, 88, 88, 88, 88, 88,
354 88, 88, 88, 88, 88, 88, 89, 89, 89, 89,
355
356 89, 89, 89, 89, 90, 90, 90, 90, 90, 90,
357 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
358 90, 90, 91, 91, 91, 91, 91, 91, 91, 91,
359 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
360 92, 93, 95, 96, 97, 98, 98, 99, 99, 100,
361 100, 100, 101, 101, 101, 102, 102, 103, 103, 103,
362 103, 103, 104, 104, 104, 104, 104, 104, 104, 105,
363 105, 105, 106, 106, 106, 106, 106, 106, 106, 106,
364 106, 106, 106, 106, 106, 107, 108, 109, 109, 109,
365 109, 110, 110, 110, 110, 110, 110, 110, 110, 110,
366
367 110, 111, 112, 112, 113, 114, 115, 116, 117, 118,
368 118, 119, 120, 120, 120, 121, 122, 122, 122, 122,
369 122, 122, 122, 122, 123, 124, 125, 125, 126, 126,
370 126, 126, 127, 128, 128, 128, 129, 129, 129, 129,
371 129, 129, 129, 129, 129, 130, 131, 132, 132, 132,
372 133, 133, 134, 134, 135, 135, 136, 136, 136, 136,
373 136, 136, 136, 136, 136, 136, 136, 136, 137, 137,
374 137, 138, 139, 139, 139, 139, 140, 140, 140, 140,
375 141, 141, 141, 142, 143, 144, 144, 144, 144, 144,
376 144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
377
378 144, 145, 146, 146, 146, 146, 146, 147, 148, 148,
379 148, 149, 149, 149, 149, 149, 149, 149, 149, 149,
380 150, 151, 152, 152, 152, 153, 153, 153, 153, 154,
381 154, 155, 155, 155, 155, 155, 155, 155, 156, 156,
382 156, 156, 156, 157, 157, 157, 158, 158, 158, 159,
383 159, 160, 160, 161, 162, 162, 162, 162, 162, 162,
384 162, 163, 163, 163, 163, 163, 164, 164, 165, 165,
385 165, 166, 167, 168, 168, 168, 169, 169, 169, 169,
386 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
387 169, 170, 170, 171, 172, 172, 172, 172, 172, 172,
388
389 172, 172, 172, 172, 172, 173, 173, 173, 173, 173,
390 173, 173, 173, 174, 174, 174, 175, 176, 177, 178,
391 179, 180, 181, 181, 181, 181, 182, 182, 182, 182,
392 183, 184, 184, 185, 186, 186, 186, 186, 186, 186,
393 187, 187, 187, 187, 187, 187, 188, 188, 188, 189,
394 189, 189, 189, 189, 189, 189, 189, 190, 191, 192,
395 192, 192, 193, 194, 195, 195, 195, 196, 196, 196,
396 196, 196, 197, 197, 198, 199, 200, 201, 201, 201,
397 201, 202, 202, 202, 203, 204, 205, 206, 207, 207,
398 207, 208, 209, 210, 211, 211, 211, 211, 211, 211,
399
400 212, 212, 213, 213, 214, 215, 215, 215, 215, 215,
401 215, 216, 216, 216, 216, 216, 216, 216, 216, 216,
402 217, 217, 217, 217, 217, 217, 217, 217, 217, 217,
403 218, 218, 218, 218, 218, 219, 219, 219, 219, 219,
404 220, 221, 222, 222, 223, 223, 223, 223, 223, 224,
405 224, 224, 224, 225, 225, 226, 227, 227, 227, 227,
406 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
407 228, 228, 228, 228, 228, 228, 228, 228, 229, 229,
408 229, 229, 229, 229, 230, 230, 230, 230, 230, 231,
409 231, 231, 232, 232, 232, 232, 232, 232, 232, 232,
410
411 232, 232, 232, 232, 232, 232, 233, 233, 234, 235,
412 236, 236, 237, 237, 238, 239, 240, 240, 241, 241
413 } ;
414
415static yyconst int yy_ec[256] =
416 { 0,
417 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
418 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
419 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
420 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
421 1, 1, 7, 1, 8, 9, 1, 10, 11, 12,
422 13, 14, 15, 16, 15, 17, 15, 18, 19, 1,
423 1, 1, 1, 20, 21, 21, 21, 21, 22, 21,
424 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
425 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
426 1, 1, 1, 1, 23, 1, 24, 25, 26, 27,
427
428 28, 29, 30, 31, 32, 5, 33, 34, 35, 36,
429 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
430 47, 48, 1, 1, 1, 1, 1, 1, 1, 1,
431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
432 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
433 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
436 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
438
439 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
440 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
441 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
442 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
443 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
444 1, 1, 1, 1, 1
445 } ;
446
447static yyconst int yy_meta[49] =
448 { 0,
449 1, 1, 2, 1, 3, 1, 4, 5, 3, 6,
450 6, 6, 6, 6, 6, 6, 6, 7, 1, 1,
451 3, 8, 3, 3, 3, 3, 3, 8, 3, 3,
452 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
453 3, 3, 3, 3, 3, 3, 3, 3
454 } ;
455
456static yyconst short int yy_base[630] =
457 { 0,
458 0, 0, 1336, 1337, 1337, 1337, 1331, 1316, 41, 0,
459 49, 59, 69, 1287, 0, 112, 69, 72, 93, 113,
460 52, 122, 74, 152, 120, 77, 136, 156, 135, 71,
461 187, 186, 224, 118, 115, 56, 153, 1328, 1337, 1313,
462 1337, 0, 256, 0, 1321, 1320, 88, 264, 1282, 283,
463 0, 1323, 140, 157, 158, 121, 164, 183, 198, 32,
464 1308, 190, 95, 175, 54, 165, 217, 162, 117, 182,
465 218, 1307, 220, 272, 185, 100, 204, 219, 235, 241,
466 264, 232, 273, 57, 1306, 284, 285, 296, 297, 299,
467 300, 226, 298, 302, 308, 1305, 303, 309, 307, 316,
468
469 321, 329, 330, 332, 333, 334, 313, 337, 310, 315,
470 342, 343, 350, 353, 346, 352, 358, 363, 357, 365,
471 366, 1304, 373, 377, 381, 385, 383, 384, 389, 390,
472 402, 386, 392, 417, 418, 395, 271, 393, 403, 1303,
473 0, 0, 416, 1302, 0, 447, 0, 1315, 1300, 438,
474 428, 1299, 448, 427, 1298, 419, 1297, 451, 452, 453,
475 406, 1296, 454, 455, 456, 461, 457, 460, 1295, 465,
476 464, 470, 462, 477, 474, 480, 481, 482, 483, 485,
477 488, 486, 490, 491, 1294, 1293, 1292, 492, 493, 495,
478 506, 502, 514, 511, 494, 519, 515, 517, 520, 522,
479
480 1291, 1290, 525, 1289, 1288, 1287, 1286, 1285, 1284, 523,
481 1283, 1282, 531, 529, 1281, 1280, 562, 538, 537, 540,
482 532, 567, 550, 1279, 1278, 1277, 575, 1276, 534, 533,
483 576, 1275, 1274, 535, 578, 1273, 580, 582, 581, 586,
484 584, 589, 587, 588, 1272, 1271, 1270, 591, 590, 1269,
485 592, 1268, 603, 1267, 601, 1266, 607, 608, 612, 605,
486 620, 596, 621, 616, 627, 623, 546, 1265, 628, 630,
487 1337, 630, 646, 652, 654, 656, 632, 648, 637, 1264,
488 639, 652, 1263, 1262, 1261, 651, 649, 653, 660, 661,
489 664, 662, 663, 665, 666, 668, 669, 679, 674, 675,
490
491 1260, 1259, 670, 671, 682, 686, 1258, 1257, 687, 692,
492 1256, 689, 693, 696, 697, 702, 704, 700, 706, 1255,
493 1254, 1253, 708, 709, 1252, 701, 710, 712, 0, 713,
494 1251, 714, 721, 724, 730, 732, 733, 1250, 735, 736,
495 738, 739, 1249, 741, 744, 1248, 753, 746, 1247, 749,
496 1246, 755, 1245, 1244, 758, 760, 764, 766, 761, 768,
497 1243, 770, 771, 773, 774, 1242, 776, 1241, 778, 777,
498 1240, 0, 1239, 781, 779, 1238, 782, 790, 797, 796,
499 806, 794, 807, 795, 799, 808, 809, 810, 811, 813,
500 1237, 817, 1236, 1235, 822, 823, 820, 830, 826, 824,
501
502 828, 831, 833, 835, 1234, 832, 844, 839, 846, 848,
503 851, 843, 1233, 855, 859, 1232, 1231, 1230, 1229, 1228,
504 1227, 1226, 860, 862, 864, 1225, 865, 863, 867, 1224,
505 1223, 866, 1222, 1221, 868, 871, 872, 869, 870, 1220,
506 875, 880, 885, 888, 889, 1219, 890, 895, 1218, 896,
507 897, 898, 900, 901, 902, 903, 1217, 1216, 1215, 911,
508 906, 1214, 1213, 1212, 915, 908, 1211, 918, 926, 929,
509 909, 1210, 931, 1209, 1208, 1207, 1206, 920, 932, 934,
510 1205, 937, 938, 1204, 1203, 1202, 1201, 1200, 940, 943,
511 1199, 1198, 1197, 1192, 941, 944, 946, 945, 948, 1181,
512
513 951, 1178, 953, 1170, 1167, 958, 960, 961, 962, 963,
514 1164, 964, 965, 968, 969, 970, 971, 976, 977, 1158,
515 979, 986, 987, 989, 990, 991, 994, 997, 998, 1146,
516 1003, 1006, 1007, 1004, 1145, 1008, 1009, 1011, 1012, 1144,
517 1142, 1141, 1018, 1140, 1013, 1017, 1020, 1019, 1139, 1029,
518 1033, 1034, 1137, 1016, 1136, 1133, 1038, 1041, 1042, 1043,
519 1045, 1046, 1047, 1050, 1053, 1052, 1054, 1056, 1057, 1131,
520 1058, 1061, 1059, 1064, 1065, 1070, 1069, 1128, 1071, 1077,
521 1081, 1082, 1083, 913, 1084, 1085, 1086, 1089, 784, 1091,
522 1092, 783, 1090, 1095, 1104, 1096, 1105, 1111, 1108, 1112,
523
524 1113, 1115, 1116, 1117, 1119, 737, 1120, 548, 391, 349,
525 1121, 312, 1125, 270, 266, 221, 1126, 184, 1337, 1166,
526 1172, 1178, 192, 1186, 1192, 70, 1200, 1203, 1208
527 } ;
528
529static yyconst short int yy_def[630] =
530 { 0,
531 619, 1, 619, 619, 619, 619, 620, 621, 622, 623,
532 621, 621, 11, 13, 624, 622, 621, 621, 621, 621,
533 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
534 621, 621, 621, 621, 621, 621, 621, 620, 619, 621,
535 619, 625, 625, 626, 623, 11, 621, 11, 13, 11,
536 624, 627, 621, 621, 621, 621, 621, 621, 621, 621,
537 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
538 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
539 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
540 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
541
542 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
543 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
544 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
545 621, 621, 621, 621, 621, 621, 621, 621, 621, 619,
546 625, 43, 628, 621, 48, 11, 50, 627, 621, 621,
547 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
548 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
549 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
550 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
551 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
552
553 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
554 621, 621, 621, 621, 621, 621, 50, 621, 621, 621,
555 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
556 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
557 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
558 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
559 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
560 619, 628, 629, 629, 146, 146, 621, 621, 621, 621,
561 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
562 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
563
564 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
565 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
566 621, 621, 621, 621, 621, 621, 621, 621, 217, 621,
567 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
568 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
569 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
570 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
571 621, 274, 621, 621, 621, 621, 621, 621, 621, 621,
572 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
573 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
574
575 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
576 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
577 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
578 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
579 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
580 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
581 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
582 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
583 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
584 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
585
586 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
587 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
588 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
589 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
590 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
591 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
592 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
593 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
594 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
595 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
596
597 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
598 621, 621, 621, 621, 621, 621, 621, 621, 0, 619,
599 619, 619, 619, 619, 619, 619, 619, 619, 619
600 } ;
601
602static yyconst short int yy_nxt[1386] =
603 { 0,
604 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
605 14, 14, 14, 14, 14, 14, 14, 4, 15, 16,
606 8, 8, 8, 17, 18, 19, 20, 21, 22, 23,
607 8, 24, 8, 25, 26, 27, 28, 29, 8, 30,
608 31, 32, 33, 34, 35, 36, 8, 37, 43, 41,
609 44, 44, 44, 44, 44, 44, 44, 44, 46, 46,
610 46, 46, 46, 46, 46, 46, 41, 47, 159, 41,
611 187, 41, 137, 41, 41, 44, 41, 48, 49, 49,
612 49, 49, 49, 49, 49, 49, 41, 71, 41, 41,
613 72, 41, 138, 165, 41, 53, 144, 73, 108, 58,
614
615 93, 80, 54, 59, 55, 41, 56, 81, 60, 57,
616 41, 61, 41, 94, 50, 52, 62, 41, 63, 95,
617 162, 619, 619, 619, 619, 619, 619, 619, 619, 64,
618 41, 178, 41, 65, 41, 41, 66, 41, 41, 41,
619 67, 134, 136, 89, 68, 74, 69, 75, 76, 70,
620 170, 90, 41, 41, 135, 77, 91, 41, 153, 78,
621 92, 79, 82, 96, 83, 105, 149, 84, 85, 41,
622 41, 106, 97, 41, 41, 41, 107, 86, 98, 41,
623 139, 41, 41, 99, 152, 100, 87, 88, 150, 101,
624 151, 102, 41, 103, 154, 104, 109, 45, 155, 41,
625
626 41, 41, 41, 41, 41, 169, 166, 41, 163, 121,
627 164, 110, 156, 111, 112, 41, 113, 114, 115, 177,
628 116, 41, 122, 160, 171, 123, 117, 157, 118, 119,
629 161, 120, 124, 109, 41, 41, 41, 41, 41, 158,
630 179, 41, 167, 41, 172, 173, 180, 185, 125, 41,
631 126, 127, 41, 128, 168, 129, 198, 130, 41, 131,
632 181, 174, 182, 132, 133, 142, 142, 142, 142, 142,
633 142, 142, 142, 145, 145, 145, 145, 145, 145, 145,
634 145, 41, 183, 41, 186, 146, 267, 41, 41, 41,
635 41, 146, 147, 147, 147, 147, 147, 147, 147, 147,
636
637 184, 41, 41, 147, 147, 175, 147, 147, 147, 147,
638 147, 147, 176, 41, 41, 41, 41, 41, 188, 41,
639 41, 193, 189, 196, 41, 41, 41, 41, 200, 41,
640 41, 199, 41, 41, 194, 197, 190, 191, 41, 192,
641 195, 201, 203, 205, 202, 204, 41, 41, 207, 41,
642 41, 41, 214, 210, 41, 217, 209, 206, 211, 41,
643 41, 218, 208, 41, 212, 213, 41, 41, 220, 41,
644 41, 215, 230, 219, 41, 41, 221, 224, 216, 232,
645 41, 236, 41, 41, 222, 234, 226, 231, 223, 227,
646 41, 225, 228, 233, 41, 229, 237, 238, 41, 235,
647
648 41, 41, 41, 41, 240, 239, 41, 41, 41, 41,
649 41, 246, 41, 259, 242, 241, 244, 250, 266, 41,
650 41, 245, 260, 41, 248, 247, 251, 243, 253, 254,
651 249, 252, 268, 255, 41, 41, 41, 273, 256, 261,
652 262, 257, 269, 273, 41, 41, 258, 285, 270, 264,
653 281, 265, 263, 274, 275, 41, 276, 276, 276, 276,
654 276, 276, 276, 276, 278, 41, 280, 277, 41, 41,
655 41, 41, 41, 41, 41, 279, 282, 41, 41, 41,
656 286, 41, 41, 288, 289, 283, 284, 41, 294, 296,
657 290, 41, 292, 291, 41, 287, 293, 41, 41, 41,
658
659 41, 295, 41, 41, 297, 41, 303, 41, 41, 41,
660 41, 41, 41, 307, 299, 310, 298, 309, 301, 41,
661 308, 300, 313, 41, 305, 302, 312, 306, 41, 311,
662 304, 41, 41, 314, 41, 319, 41, 41, 316, 41,
663 41, 317, 41, 318, 321, 320, 41, 315, 41, 41,
664 41, 41, 41, 323, 41, 41, 322, 41, 325, 333,
665 341, 326, 340, 41, 324, 41, 327, 41, 369, 343,
666 328, 329, 329, 329, 329, 329, 329, 329, 329, 330,
667 331, 332, 329, 329, 41, 329, 329, 329, 329, 329,
668 329, 338, 41, 41, 334, 41, 335, 41, 41, 41,
669
670 336, 41, 337, 41, 41, 41, 41, 41, 41, 41,
671 347, 349, 342, 41, 339, 346, 351, 344, 41, 350,
672 41, 345, 41, 348, 41, 41, 355, 356, 352, 41,
673 357, 353, 354, 41, 359, 364, 358, 41, 41, 360,
674 41, 362, 366, 363, 41, 41, 361, 41, 365, 41,
675 367, 273, 274, 274, 41, 368, 41, 273, 619, 619,
676 619, 40, 619, 40, 370, 41, 41, 373, 41, 41,
677 41, 371, 375, 374, 376, 377, 378, 41, 41, 41,
678 41, 41, 41, 41, 382, 41, 41, 41, 41, 387,
679 379, 41, 41, 381, 380, 383, 41, 385, 386, 41,
680
681 392, 391, 390, 41, 41, 388, 41, 384, 389, 41,
682 41, 393, 394, 41, 41, 399, 400, 41, 41, 41,
683 398, 41, 395, 41, 396, 41, 41, 41, 397, 41,
684 41, 41, 401, 403, 404, 402, 406, 405, 41, 407,
685 413, 41, 409, 410, 408, 414, 415, 41, 412, 41,
686 41, 411, 41, 41, 41, 41, 41, 417, 41, 419,
687 421, 41, 416, 41, 423, 424, 41, 425, 426, 427,
688 41, 418, 41, 420, 430, 41, 422, 41, 41, 429,
689 428, 41, 431, 41, 436, 41, 432, 41, 41, 433,
690 41, 41, 434, 41, 41, 41, 41, 435, 41, 41,
691
692 41, 41, 440, 437, 446, 447, 443, 41, 445, 438,
693 439, 41, 41, 41, 41, 449, 41, 442, 444, 441,
694 450, 451, 448, 41, 41, 41, 41, 41, 41, 452,
695 41, 454, 455, 453, 41, 457, 456, 41, 461, 41,
696 41, 41, 462, 41, 458, 41, 460, 41, 41, 41,
697 41, 459, 41, 463, 464, 465, 41, 466, 468, 467,
698 41, 41, 472, 41, 475, 41, 470, 473, 41, 469,
699 471, 474, 41, 476, 479, 477, 41, 41, 478, 41,
700 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
701 483, 480, 41, 482, 487, 485, 490, 41, 491, 493,
702
703 481, 484, 41, 488, 486, 41, 41, 41, 496, 489,
704 492, 495, 41, 41, 41, 41, 494, 41, 41, 41,
705 41, 499, 502, 41, 498, 41, 41, 504, 41, 497,
706 41, 501, 41, 508, 509, 41, 500, 41, 506, 507,
707 511, 505, 512, 41, 503, 513, 41, 510, 41, 41,
708 516, 41, 515, 514, 41, 41, 517, 41, 41, 518,
709 41, 41, 41, 41, 521, 41, 522, 519, 41, 520,
710 41, 523, 527, 524, 525, 41, 528, 41, 41, 41,
711 41, 41, 41, 529, 526, 41, 41, 41, 41, 531,
712 536, 537, 530, 41, 41, 535, 41, 532, 542, 533,
713
714 538, 539, 540, 41, 41, 534, 41, 41, 41, 541,
715 547, 41, 548, 546, 41, 41, 543, 549, 544, 551,
716 41, 41, 545, 41, 41, 41, 41, 553, 41, 41,
717 41, 557, 550, 41, 41, 41, 41, 41, 552, 561,
718 563, 558, 564, 566, 559, 554, 41, 555, 556, 562,
719 41, 41, 560, 565, 567, 41, 568, 570, 41, 41,
720 41, 571, 41, 41, 41, 569, 574, 41, 572, 41,
721 41, 41, 577, 41, 41, 41, 41, 581, 41, 575,
722 583, 41, 41, 573, 579, 580, 41, 41, 41, 582,
723 584, 578, 588, 576, 41, 585, 586, 589, 41, 41,
724
725 41, 41, 41, 41, 592, 587, 41, 41, 41, 41,
726 590, 596, 41, 41, 593, 594, 595, 598, 591, 601,
727 603, 41, 41, 602, 599, 41, 597, 600, 41, 41,
728 41, 605, 41, 41, 41, 604, 41, 41, 41, 610,
729 611, 612, 41, 41, 606, 41, 616, 607, 41, 608,
730 41, 609, 617, 41, 41, 615, 41, 41, 41, 41,
731 614, 41, 41, 41, 613, 618, 38, 38, 38, 38,
732 38, 38, 38, 38, 40, 41, 40, 40, 40, 40,
733 42, 41, 42, 42, 41, 42, 51, 41, 51, 51,
734 51, 51, 51, 51, 141, 41, 141, 141, 41, 141,
735
736 148, 148, 148, 148, 148, 148, 148, 148, 272, 41,
737 272, 372, 372, 372, 41, 41, 41, 41, 41, 41,
738 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
739 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
740 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
741 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
742 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
743 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
744 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
745 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
746
747 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
748 41, 41, 41, 41, 41, 41, 41, 41, 39, 41,
749 271, 41, 41, 41, 41, 41, 39, 40, 48, 143,
750 41, 140, 40, 41, 39, 619, 3, 619, 619, 619,
751 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
752 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
753 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
754 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
755 619, 619, 619, 619, 619
756 } ;
757
758static yyconst short int yy_chk[1386] =
759 { 0,
760 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
761 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
762 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
763 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
764 1, 1, 1, 1, 1, 1, 1, 1, 9, 60,
765 9, 9, 9, 9, 9, 9, 9, 9, 11, 11,
766 11, 11, 11, 11, 11, 11, 11, 12, 60, 21,
767 84, 65, 36, 36, 84, 626, 12, 13, 13, 13,
768 13, 13, 13, 13, 13, 13, 17, 21, 30, 18,
769 21, 23, 36, 65, 26, 17, 47, 21, 30, 18,
770
771 26, 23, 17, 18, 17, 47, 17, 23, 18, 17,
772 19, 18, 63, 26, 13, 16, 19, 76, 19, 26,
773 63, 16, 16, 16, 16, 16, 16, 16, 16, 19,
774 20, 76, 35, 19, 69, 34, 20, 25, 56, 22,
775 20, 34, 35, 25, 20, 22, 20, 22, 22, 20,
776 69, 25, 29, 27, 34, 22, 25, 53, 56, 22,
777 25, 22, 24, 27, 24, 29, 53, 24, 24, 24,
778 37, 29, 27, 28, 54, 55, 29, 24, 27, 68,
779 37, 57, 66, 28, 55, 28, 24, 24, 54, 28,
780 54, 28, 64, 28, 57, 28, 31, 623, 57, 70,
781
782 58, 618, 75, 32, 31, 68, 66, 62, 64, 32,
783 64, 31, 58, 31, 31, 59, 31, 31, 31, 75,
784 31, 77, 32, 62, 70, 32, 31, 59, 31, 31,
785 62, 31, 32, 33, 67, 71, 78, 73, 616, 59,
786 77, 33, 67, 92, 71, 73, 78, 82, 33, 82,
787 33, 33, 79, 33, 67, 33, 92, 33, 80, 33,
788 78, 73, 79, 33, 33, 43, 43, 43, 43, 43,
789 43, 43, 43, 48, 48, 48, 48, 48, 48, 48,
790 48, 81, 80, 615, 83, 48, 137, 614, 137, 74,
791 83, 48, 50, 50, 50, 50, 50, 50, 50, 50,
792
793 81, 86, 87, 50, 50, 74, 50, 50, 50, 50,
794 50, 50, 74, 88, 89, 93, 90, 91, 86, 94,
795 97, 89, 87, 91, 99, 95, 98, 109, 94, 612,
796 107, 93, 110, 100, 90, 91, 88, 88, 101, 88,
797 90, 95, 98, 100, 97, 99, 102, 103, 101, 104,
798 105, 106, 107, 103, 108, 109, 102, 100, 104, 111,
799 112, 110, 101, 115, 105, 106, 610, 113, 112, 116,
800 114, 108, 115, 111, 119, 117, 112, 113, 108, 116,
801 118, 119, 120, 121, 112, 117, 114, 115, 112, 114,
802 123, 113, 114, 116, 124, 114, 120, 121, 125, 118,
803
804 127, 128, 126, 132, 123, 121, 129, 130, 609, 133,
805 138, 128, 136, 132, 124, 123, 126, 130, 136, 131,
806 139, 127, 133, 161, 129, 128, 130, 125, 131, 131,
807 129, 130, 138, 131, 134, 135, 156, 143, 131, 134,
808 134, 131, 139, 143, 154, 151, 131, 161, 139, 135,
809 156, 135, 134, 146, 146, 150, 146, 146, 146, 146,
810 146, 146, 146, 146, 151, 153, 154, 150, 158, 159,
811 160, 163, 164, 165, 167, 153, 158, 168, 166, 173,
812 163, 171, 170, 165, 166, 159, 160, 172, 171, 173,
813 167, 175, 170, 168, 174, 164, 170, 176, 177, 178,
814
815 179, 172, 180, 182, 174, 181, 179, 183, 184, 188,
816 189, 195, 190, 182, 175, 184, 174, 183, 177, 192,
817 182, 176, 190, 191, 181, 178, 189, 181, 194, 188,
818 180, 193, 197, 191, 198, 195, 196, 199, 192, 200,
819 210, 193, 203, 194, 197, 196, 214, 191, 213, 221,
820 230, 229, 234, 199, 219, 218, 198, 220, 203, 221,
821 230, 210, 229, 267, 200, 608, 213, 223, 267, 234,
822 214, 217, 217, 217, 217, 217, 217, 217, 217, 218,
823 219, 220, 217, 217, 222, 217, 217, 217, 217, 217,
824 217, 223, 227, 231, 222, 235, 222, 237, 239, 238,
825
826 222, 241, 222, 240, 243, 244, 242, 249, 248, 251,
827 239, 241, 231, 262, 227, 238, 242, 235, 255, 241,
828 253, 237, 260, 240, 257, 258, 249, 251, 243, 259,
829 253, 244, 248, 264, 257, 262, 255, 261, 263, 258,
830 266, 260, 264, 261, 265, 269, 259, 270, 263, 277,
831 265, 272, 273, 273, 279, 266, 281, 272, 274, 274,
832 275, 275, 276, 276, 269, 278, 287, 277, 286, 282,
833 288, 270, 279, 278, 281, 282, 286, 289, 290, 292,
834 293, 291, 294, 295, 290, 296, 297, 303, 304, 295,
835 287, 299, 300, 289, 288, 291, 298, 293, 294, 305,
836
837 300, 299, 298, 306, 309, 296, 312, 292, 297, 310,
838 313, 303, 304, 314, 315, 310, 312, 318, 326, 316,
839 309, 317, 305, 319, 305, 323, 324, 327, 306, 328,
840 330, 332, 313, 315, 316, 314, 318, 317, 333, 319,
841 330, 334, 324, 326, 323, 332, 333, 335, 328, 336,
842 337, 327, 339, 340, 606, 341, 342, 335, 344, 336,
843 337, 345, 334, 348, 340, 341, 350, 342, 344, 345,
844 347, 335, 352, 336, 350, 355, 339, 356, 359, 348,
845 347, 357, 352, 358, 359, 360, 355, 362, 363, 356,
846 364, 365, 357, 367, 370, 369, 375, 358, 374, 377,
847
848 592, 589, 364, 360, 374, 375, 369, 378, 370, 362,
849 363, 382, 384, 380, 379, 378, 385, 367, 369, 365,
850 379, 380, 377, 381, 383, 386, 387, 388, 389, 381,
851 390, 383, 384, 382, 392, 386, 385, 397, 390, 395,
852 396, 400, 392, 399, 387, 401, 389, 398, 402, 406,
853 403, 388, 404, 395, 396, 397, 408, 398, 400, 399,
854 412, 407, 404, 409, 408, 410, 402, 406, 411, 401,
855 403, 407, 414, 409, 412, 410, 415, 423, 411, 424,
856 428, 425, 427, 432, 429, 435, 438, 439, 436, 437,
857 424, 414, 441, 423, 429, 427, 436, 442, 437, 439,
858
859 415, 425, 443, 432, 428, 444, 445, 447, 443, 435,
860 438, 442, 448, 450, 451, 452, 441, 453, 454, 455,
861 456, 447, 451, 461, 445, 466, 471, 453, 460, 444,
862 584, 450, 465, 460, 460, 468, 448, 478, 455, 456,
863 465, 454, 466, 469, 452, 468, 470, 461, 473, 479,
864 471, 480, 470, 469, 482, 483, 473, 489, 495, 478,
865 490, 496, 498, 497, 482, 499, 483, 479, 501, 480,
866 503, 489, 497, 490, 495, 506, 498, 507, 508, 509,
867 510, 512, 513, 499, 496, 514, 515, 516, 517, 503,
868 510, 512, 501, 518, 519, 509, 521, 506, 517, 507,
869
870 513, 514, 515, 522, 523, 508, 524, 525, 526, 516,
871 523, 527, 524, 522, 528, 529, 518, 525, 519, 527,
872 531, 534, 521, 532, 533, 536, 537, 529, 538, 539,
873 545, 534, 526, 554, 546, 543, 548, 547, 528, 539,
874 545, 536, 546, 548, 537, 531, 550, 532, 533, 543,
875 551, 552, 538, 547, 550, 557, 551, 554, 558, 559,
876 560, 557, 561, 562, 563, 552, 560, 564, 558, 566,
877 565, 567, 563, 568, 569, 571, 573, 567, 572, 561,
878 569, 574, 575, 559, 565, 566, 577, 576, 579, 568,
879 571, 564, 575, 562, 580, 572, 573, 576, 581, 582,
880
881 583, 585, 586, 587, 580, 574, 588, 593, 590, 591,
882 577, 585, 594, 596, 581, 582, 583, 587, 579, 591,
883 594, 595, 597, 593, 588, 599, 586, 590, 598, 600,
884 601, 596, 602, 603, 604, 595, 605, 607, 611, 601,
885 602, 603, 613, 617, 597, 578, 611, 598, 570, 599,
886 556, 600, 613, 555, 553, 607, 549, 544, 542, 541,
887 605, 540, 535, 530, 604, 617, 620, 620, 620, 620,
888 620, 620, 620, 620, 621, 520, 621, 621, 621, 621,
889 622, 511, 622, 622, 505, 622, 624, 504, 624, 624,
890 624, 624, 624, 624, 625, 502, 625, 625, 500, 625,
891
892 627, 627, 627, 627, 627, 627, 627, 627, 628, 494,
893 628, 629, 629, 629, 493, 492, 491, 488, 487, 486,
894 485, 484, 481, 477, 476, 475, 474, 472, 467, 464,
895 463, 462, 459, 458, 457, 449, 446, 440, 434, 433,
896 431, 430, 426, 422, 421, 420, 419, 418, 417, 416,
897 413, 405, 394, 393, 391, 376, 373, 371, 368, 366,
898 361, 354, 353, 351, 349, 346, 343, 338, 331, 325,
899 322, 321, 320, 311, 308, 307, 302, 301, 285, 284,
900 283, 280, 268, 256, 254, 252, 250, 247, 246, 245,
901 236, 233, 232, 228, 226, 225, 224, 216, 215, 212,
902
903 211, 209, 208, 207, 206, 205, 204, 202, 201, 187,
904 186, 185, 169, 162, 157, 155, 152, 149, 148, 144,
905 140, 122, 96, 85, 72, 61, 52, 49, 46, 45,
906 40, 38, 14, 8, 7, 3, 619, 619, 619, 619,
907 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
908 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
909 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
910 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
911 619, 619, 619, 619, 619
912 } ;
913
914static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
915static char *yy_full_match;
916static int yy_lp;
917#define REJECT \
918{ \
919*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
920yy_cp = yy_full_match; /* restore poss. backed-over text */ \
921++yy_lp; \
922goto find_rule; \
923}
924#define yymore() yymore_used_but_not_detected
925#define YY_MORE_ADJ 0
926#define YY_RESTORE_YY_MORE_OFFSET
927char *yytext;
Dale Johannesenb9de9f02007-09-06 18:13:44 +0000928#line 1 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000929#define INITIAL 0
930/*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===//
931//
932// The LLVM Compiler Infrastructure
933//
934// This file was developed by Reid Spencer and is distributed under the
935// University of Illinois Open Source License. See LICENSE.TXT for details.
936//
937//===----------------------------------------------------------------------===//
938//
939// This file implements the flex scanner for LLVM 1.9 assembly languages files.
940//
941//===----------------------------------------------------------------------===*/
942#define YY_NEVER_INTERACTIVE 1
Dale Johannesenb9de9f02007-09-06 18:13:44 +0000943#line 28 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000944#include "UpgradeInternals.h"
945#include "llvm/Module.h"
946#include <list>
947#include "UpgradeParser.h"
948#include <cctype>
949#include <cstdlib>
950
951#define YY_INPUT(buf,result,max_size) \
952{ \
953 if (LexInput->good() && !LexInput->eof()) { \
954 LexInput->read(buf,max_size); \
955 result = LexInput->gcount(); \
956 } else {\
957 result = YY_NULL; \
958 } \
959}
960
961#define YY_NEVER_INTERACTIVE 1
962
963// Construct a token value for a non-obsolete token
964#define RET_TOK(type, Enum, sym) \
965 Upgradelval.type = Enum; \
966 return sym
967
968#define RET_TY(sym,NewTY,sign) \
969 Upgradelval.PrimType.T = NewTY; \
970 switch (sign) { \
971 case 0: Upgradelval.PrimType.S.makeSignless(); break; \
972 case 1: Upgradelval.PrimType.S.makeUnsigned(); break; \
973 case 2: Upgradelval.PrimType.S.makeSigned(); break; \
974 default: assert(0 && "Invalid sign kind"); break; \
975 }\
976 return sym
977
978namespace llvm {
979
980// TODO: All of the static identifiers are figured out by the lexer,
981// these should be hashed to reduce the lexer size
982
983// UnEscapeLexed - Run through the specified buffer and change \xx codes to the
984// appropriate character. If AllowNull is set to false, a \00 value will cause
985// an exception to be thrown.
986//
987// If AllowNull is set to true, the return value of the function points to the
988// last character of the string in memory.
989//
990char *UnEscapeLexed(char *Buffer, bool AllowNull) {
991 char *BOut = Buffer;
992 for (char *BIn = Buffer; *BIn; ) {
993 if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) {
994 char Tmp = BIn[3]; BIn[3] = 0; // Terminate string
995 *BOut = (char)strtol(BIn+1, 0, 16); // Convert to number
996 if (!AllowNull && !*BOut)
997 error("String literal cannot accept \\00 escape!");
998
999 BIn[3] = Tmp; // Restore character
1000 BIn += 3; // Skip over handled chars
1001 ++BOut;
1002 } else {
1003 *BOut++ = *BIn++;
1004 }
1005 }
1006
1007 return BOut;
1008}
1009
1010// atoull - Convert an ascii string of decimal digits into the unsigned long
1011// long representation... this does not have to do input error checking,
1012// because we know that the input will be matched by a suitable regex...
1013//
1014static uint64_t atoull(const char *Buffer) {
1015 uint64_t Result = 0;
1016 for (; *Buffer; Buffer++) {
1017 uint64_t OldRes = Result;
1018 Result *= 10;
1019 Result += *Buffer-'0';
1020 if (Result < OldRes) // Uh, oh, overflow detected!!!
1021 error("constant bigger than 64 bits detected!");
1022 }
1023 return Result;
1024}
1025
1026static uint64_t HexIntToVal(const char *Buffer) {
1027 uint64_t Result = 0;
1028 for (; *Buffer; ++Buffer) {
1029 uint64_t OldRes = Result;
1030 Result *= 16;
1031 char C = *Buffer;
1032 if (C >= '0' && C <= '9')
1033 Result += C-'0';
1034 else if (C >= 'A' && C <= 'F')
1035 Result += C-'A'+10;
1036 else if (C >= 'a' && C <= 'f')
1037 Result += C-'a'+10;
1038
1039 if (Result < OldRes) // Uh, oh, overflow detected!!!
1040 error("constant bigger than 64 bits detected!");
1041 }
1042 return Result;
1043}
1044
1045
1046// HexToFP - Convert the ascii string in hexidecimal format to the floating
1047// point representation of it.
1048//
1049static double HexToFP(const char *Buffer) {
1050 // Behave nicely in the face of C TBAA rules... see:
1051 // http://www.nullstone.com/htmls/category/aliastyp.htm
1052 union {
1053 uint64_t UI;
1054 double FP;
1055 } UIntToFP;
1056 UIntToFP.UI = HexIntToVal(Buffer);
1057
1058 assert(sizeof(double) == sizeof(uint64_t) &&
1059 "Data sizes incompatible on this target!");
1060 return UIntToFP.FP; // Cast Hex constant to double
1061}
1062
1063
1064} // End llvm namespace
1065
1066using namespace llvm;
1067
1068/* Comments start with a ; and go till end of line */
1069/* Variable(Value) identifiers start with a % sign */
1070/* Label identifiers end with a colon */
1071/* Quoted names can contain any character except " and \ */
1072/* [PN]Integer: match positive and negative literal integer values that
1073 * are preceeded by a '%' character. These represent unnamed variable slots.
1074 */
1075/* E[PN]Integer: match positive and negative literal integer values */
1076/* FPConstant - A Floating point constant.
1077 */
1078/* HexFPConstant - Floating point constant represented in IEEE format as a
1079 * hexadecimal number for when exponential notation is not precise enough.
1080 */
1081/* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
1082 * it to deal with 64 bit numbers.
1083 */
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001084#line 1085 "UpgradeLexer.cpp"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001085
1086/* Macros after this point can all be overridden by user definitions in
1087 * section 1.
1088 */
1089
1090#ifndef YY_SKIP_YYWRAP
1091#ifdef __cplusplus
1092extern "C" int yywrap YY_PROTO(( void ));
1093#else
1094extern int yywrap YY_PROTO(( void ));
1095#endif
1096#endif
1097
1098#ifndef YY_NO_UNPUT
1099static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1100#endif
1101
1102#ifndef yytext_ptr
1103static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
1104#endif
1105
1106#ifdef YY_NEED_STRLEN
1107static int yy_flex_strlen YY_PROTO(( yyconst char * ));
1108#endif
1109
1110#ifndef YY_NO_INPUT
1111#ifdef __cplusplus
1112static int yyinput YY_PROTO(( void ));
1113#else
1114static int input YY_PROTO(( void ));
1115#endif
1116#endif
1117
1118#if YY_STACK_USED
1119static int yy_start_stack_ptr = 0;
1120static int yy_start_stack_depth = 0;
1121static int *yy_start_stack = 0;
1122#ifndef YY_NO_PUSH_STATE
1123static void yy_push_state YY_PROTO(( int new_state ));
1124#endif
1125#ifndef YY_NO_POP_STATE
1126static void yy_pop_state YY_PROTO(( void ));
1127#endif
1128#ifndef YY_NO_TOP_STATE
1129static int yy_top_state YY_PROTO(( void ));
1130#endif
1131
1132#else
1133#define YY_NO_PUSH_STATE 1
1134#define YY_NO_POP_STATE 1
1135#define YY_NO_TOP_STATE 1
1136#endif
1137
1138#ifdef YY_MALLOC_DECL
1139YY_MALLOC_DECL
1140#else
1141#if __STDC__
1142#ifndef __cplusplus
1143#include <stdlib.h>
1144#endif
1145#else
1146/* Just try to get by without declaring the routines. This will fail
1147 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1148 * or sizeof(void*) != sizeof(int).
1149 */
1150#endif
1151#endif
1152
1153/* Amount of stuff to slurp up with each read. */
1154#ifndef YY_READ_BUF_SIZE
1155#define YY_READ_BUF_SIZE 8192
1156#endif
1157
1158/* Copy whatever the last rule matched to the standard output. */
1159
1160#ifndef ECHO
1161/* This used to be an fputs(), but since the string might contain NUL's,
1162 * we now use fwrite().
1163 */
1164#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
1165#endif
1166
1167/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1168 * is returned in "result".
1169 */
1170#ifndef YY_INPUT
1171#define YY_INPUT(buf,result,max_size) \
1172 if ( yy_current_buffer->yy_is_interactive ) \
1173 { \
1174 int c = '*', n; \
1175 for ( n = 0; n < max_size && \
1176 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1177 buf[n] = (char) c; \
1178 if ( c == '\n' ) \
1179 buf[n++] = (char) c; \
1180 if ( c == EOF && ferror( yyin ) ) \
1181 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1182 result = n; \
1183 } \
1184 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1185 && ferror( yyin ) ) \
1186 YY_FATAL_ERROR( "input in flex scanner failed" );
1187#endif
1188
1189/* No semi-colon after return; correct usage is to write "yyterminate();" -
1190 * we don't want an extra ';' after the "return" because that will cause
1191 * some compilers to complain about unreachable statements.
1192 */
1193#ifndef yyterminate
1194#define yyterminate() return YY_NULL
1195#endif
1196
1197/* Number of entries by which start-condition stack grows. */
1198#ifndef YY_START_STACK_INCR
1199#define YY_START_STACK_INCR 25
1200#endif
1201
1202/* Report a fatal error. */
1203#ifndef YY_FATAL_ERROR
1204#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1205#endif
1206
1207/* Default declaration of generated scanner - a define so the user can
1208 * easily add parameters.
1209 */
1210#ifndef YY_DECL
1211#define YY_DECL int yylex YY_PROTO(( void ))
1212#endif
1213
1214/* Code executed at the beginning of each rule, after yytext and yyleng
1215 * have been set up.
1216 */
1217#ifndef YY_USER_ACTION
1218#define YY_USER_ACTION
1219#endif
1220
1221/* Code executed at the end of each rule. */
1222#ifndef YY_BREAK
1223#define YY_BREAK break;
1224#endif
1225
1226#define YY_RULE_SETUP \
1227 YY_USER_ACTION
1228
1229YY_DECL
1230 {
1231 register yy_state_type yy_current_state;
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001232 register char *yy_cp, *yy_bp;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001233 register int yy_act;
1234
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001235#line 194 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001236
1237
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001238#line 1239 "UpgradeLexer.cpp"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001239
1240 if ( yy_init )
1241 {
1242 yy_init = 0;
1243
1244#ifdef YY_USER_INIT
1245 YY_USER_INIT;
1246#endif
1247
1248 if ( ! yy_start )
1249 yy_start = 1; /* first start state */
1250
1251 if ( ! yyin )
1252 yyin = stdin;
1253
1254 if ( ! yyout )
1255 yyout = stdout;
1256
1257 if ( ! yy_current_buffer )
1258 yy_current_buffer =
1259 yy_create_buffer( yyin, YY_BUF_SIZE );
1260
1261 yy_load_buffer_state();
1262 }
1263
1264 while ( 1 ) /* loops until end-of-file is reached */
1265 {
1266 yy_cp = yy_c_buf_p;
1267
1268 /* Support of yytext. */
1269 *yy_cp = yy_hold_char;
1270
1271 /* yy_bp points to the position in yy_ch_buf of the start of
1272 * the current run.
1273 */
1274 yy_bp = yy_cp;
1275
1276 yy_current_state = yy_start;
1277 yy_state_ptr = yy_state_buf;
1278 *yy_state_ptr++ = yy_current_state;
1279yy_match:
1280 do
1281 {
1282 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1283 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1284 {
1285 yy_current_state = (int) yy_def[yy_current_state];
1286 if ( yy_current_state >= 620 )
1287 yy_c = yy_meta[(unsigned int) yy_c];
1288 }
1289 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1290 *yy_state_ptr++ = yy_current_state;
1291 ++yy_cp;
1292 }
1293 while ( yy_current_state != 619 );
1294
1295yy_find_action:
1296 yy_current_state = *--yy_state_ptr;
1297 yy_lp = yy_accept[yy_current_state];
1298find_rule: /* we branch to this label when backing up */
1299 for ( ; ; ) /* until we find what rule we matched */
1300 {
1301 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1302 {
1303 yy_act = yy_acclist[yy_lp];
1304 {
1305 yy_full_match = yy_cp;
1306 break;
1307 }
1308 }
1309 --yy_cp;
1310 yy_current_state = *--yy_state_ptr;
1311 yy_lp = yy_accept[yy_current_state];
1312 }
1313
1314 YY_DO_BEFORE_ACTION;
1315
1316 if ( yy_act != YY_END_OF_BUFFER )
1317 {
1318 int yyl;
1319 for ( yyl = 0; yyl < yyleng; ++yyl )
1320 if ( yytext[yyl] == '\n' )
1321 ++yylineno;
1322 }
1323
1324do_action: /* This label is used only to access EOF actions. */
1325
1326
1327 switch ( yy_act )
1328 { /* beginning of action switch */
1329case 1:
1330YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001331#line 196 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001332{ /* Ignore comments for now */ }
1333 YY_BREAK
1334case 2:
1335YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001336#line 198 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001337{ return BEGINTOK; }
1338 YY_BREAK
1339case 3:
1340YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001341#line 199 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001342{ return ENDTOK; }
1343 YY_BREAK
1344case 4:
1345YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001346#line 200 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001347{ return TRUETOK; }
1348 YY_BREAK
1349case 5:
1350YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001351#line 201 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001352{ return FALSETOK; }
1353 YY_BREAK
1354case 6:
1355YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001356#line 202 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001357{ return DECLARE; }
1358 YY_BREAK
1359case 7:
1360YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001361#line 203 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001362{ return GLOBAL; }
1363 YY_BREAK
1364case 8:
1365YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001366#line 204 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001367{ return CONSTANT; }
1368 YY_BREAK
1369case 9:
1370YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001371#line 205 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001372{ return INTERNAL; }
1373 YY_BREAK
1374case 10:
1375YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001376#line 206 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001377{ return LINKONCE; }
1378 YY_BREAK
1379case 11:
1380YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001381#line 207 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001382{ return WEAK; }
1383 YY_BREAK
1384case 12:
1385YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001386#line 208 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001387{ return APPENDING; }
1388 YY_BREAK
1389case 13:
1390YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001391#line 209 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001392{ return DLLIMPORT; }
1393 YY_BREAK
1394case 14:
1395YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001396#line 210 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001397{ return DLLEXPORT; }
1398 YY_BREAK
1399case 15:
1400YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001401#line 211 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001402{ return EXTERN_WEAK; }
1403 YY_BREAK
1404case 16:
1405YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001406#line 212 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001407{ return EXTERNAL; } /* Deprecated, turn into external */
1408 YY_BREAK
1409case 17:
1410YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001411#line 213 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001412{ return EXTERNAL; }
1413 YY_BREAK
1414case 18:
1415YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001416#line 214 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001417{ return IMPLEMENTATION; }
1418 YY_BREAK
1419case 19:
1420YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001421#line 215 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001422{ return ZEROINITIALIZER; }
1423 YY_BREAK
1424case 20:
1425YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001426#line 216 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001427{ return DOTDOTDOT; }
1428 YY_BREAK
1429case 21:
1430YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001431#line 217 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001432{ return UNDEF; }
1433 YY_BREAK
1434case 22:
1435YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001436#line 218 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001437{ return NULL_TOK; }
1438 YY_BREAK
1439case 23:
1440YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001441#line 219 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001442{ return TO; }
1443 YY_BREAK
1444case 24:
1445YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001446#line 220 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001447{ return EXCEPT; }
1448 YY_BREAK
1449case 25:
1450YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001451#line 221 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001452{ return NOT; } /* Deprecated, turned into XOR */
1453 YY_BREAK
1454case 26:
1455YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001456#line 222 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001457{ return TAIL; }
1458 YY_BREAK
1459case 27:
1460YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001461#line 223 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001462{ return TARGET; }
1463 YY_BREAK
1464case 28:
1465YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001466#line 224 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001467{ return TRIPLE; }
1468 YY_BREAK
1469case 29:
1470YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001471#line 225 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001472{ return DEPLIBS; }
1473 YY_BREAK
1474case 30:
1475YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001476#line 226 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001477{ return ENDIAN; }
1478 YY_BREAK
1479case 31:
1480YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001481#line 227 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001482{ return POINTERSIZE; }
1483 YY_BREAK
1484case 32:
1485YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001486#line 228 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001487{ return DATALAYOUT; }
1488 YY_BREAK
1489case 33:
1490YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001491#line 229 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001492{ return LITTLE; }
1493 YY_BREAK
1494case 34:
1495YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001496#line 230 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001497{ return BIG; }
1498 YY_BREAK
1499case 35:
1500YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001501#line 231 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001502{ return VOLATILE; }
1503 YY_BREAK
1504case 36:
1505YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001506#line 232 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001507{ return ALIGN; }
1508 YY_BREAK
1509case 37:
1510YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001511#line 233 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001512{ return SECTION; }
1513 YY_BREAK
1514case 38:
1515YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001516#line 234 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001517{ return MODULE; }
1518 YY_BREAK
1519case 39:
1520YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001521#line 235 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001522{ return ASM_TOK; }
1523 YY_BREAK
1524case 40:
1525YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001526#line 236 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001527{ return SIDEEFFECT; }
1528 YY_BREAK
1529case 41:
1530YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001531#line 238 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001532{ return CC_TOK; }
1533 YY_BREAK
1534case 42:
1535YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001536#line 239 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001537{ return CCC_TOK; }
1538 YY_BREAK
1539case 43:
1540YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001541#line 240 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001542{ return CSRETCC_TOK; }
1543 YY_BREAK
1544case 44:
1545YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001546#line 241 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001547{ return FASTCC_TOK; }
1548 YY_BREAK
1549case 45:
1550YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001551#line 242 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001552{ return COLDCC_TOK; }
1553 YY_BREAK
1554case 46:
1555YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001556#line 243 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001557{ return X86_STDCALLCC_TOK; }
1558 YY_BREAK
1559case 47:
1560YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001561#line 244 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001562{ return X86_FASTCALLCC_TOK; }
1563 YY_BREAK
1564case 48:
1565YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001566#line 246 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001567{ RET_TY(SBYTE, Type::Int8Ty, 2); }
1568 YY_BREAK
1569case 49:
1570YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001571#line 247 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001572{ RET_TY(UBYTE, Type::Int8Ty, 1); }
1573 YY_BREAK
1574case 50:
1575YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001576#line 248 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001577{ RET_TY(UBYTE, Type::Int8Ty, 1); }
1578 YY_BREAK
1579case 51:
1580YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001581#line 249 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001582{ RET_TY(SHORT, Type::Int16Ty, 2); }
1583 YY_BREAK
1584case 52:
1585YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001586#line 250 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001587{ RET_TY(USHORT, Type::Int16Ty, 1); }
1588 YY_BREAK
1589case 53:
1590YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001591#line 251 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001592{ RET_TY(USHORT, Type::Int16Ty, 1); }
1593 YY_BREAK
1594case 54:
1595YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001596#line 252 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001597{ RET_TY(INT, Type::Int32Ty, 2); }
1598 YY_BREAK
1599case 55:
1600YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001601#line 253 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001602{ RET_TY(UINT, Type::Int32Ty, 1); }
1603 YY_BREAK
1604case 56:
1605YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001606#line 254 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001607{ RET_TY(UINT, Type::Int32Ty, 1); }
1608 YY_BREAK
1609case 57:
1610YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001611#line 255 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001612{ RET_TY(LONG, Type::Int64Ty, 2); }
1613 YY_BREAK
1614case 58:
1615YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001616#line 256 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001617{ RET_TY(ULONG, Type::Int64Ty, 1); }
1618 YY_BREAK
1619case 59:
1620YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001621#line 257 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001622{ RET_TY(ULONG, Type::Int64Ty, 1); }
1623 YY_BREAK
1624case 60:
1625YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001626#line 258 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001627{ RET_TY(VOID, Type::VoidTy, 0); }
1628 YY_BREAK
1629case 61:
1630YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001631#line 259 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001632{ RET_TY(BOOL, Type::Int1Ty, 1); }
1633 YY_BREAK
1634case 62:
1635YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001636#line 260 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001637{ RET_TY(BOOL, Type::Int1Ty, 1); }
1638 YY_BREAK
1639case 63:
1640YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001641#line 261 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001642{ RET_TY(FLOAT, Type::FloatTy, 0); }
1643 YY_BREAK
1644case 64:
1645YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001646#line 262 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001647{ RET_TY(DOUBLE, Type::DoubleTy,0); }
1648 YY_BREAK
1649case 65:
1650YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001651#line 263 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001652{ RET_TY(LABEL, Type::LabelTy, 0); }
1653 YY_BREAK
1654case 66:
1655YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001656#line 264 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001657{ return TYPE; }
1658 YY_BREAK
1659case 67:
1660YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001661#line 265 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001662{ return OPAQUE; }
1663 YY_BREAK
1664case 68:
1665YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001666#line 267 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001667{ RET_TOK(BinaryOpVal, AddOp, ADD); }
1668 YY_BREAK
1669case 69:
1670YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001671#line 268 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001672{ RET_TOK(BinaryOpVal, SubOp, SUB); }
1673 YY_BREAK
1674case 70:
1675YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001676#line 269 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001677{ RET_TOK(BinaryOpVal, MulOp, MUL); }
1678 YY_BREAK
1679case 71:
1680YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001681#line 270 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001682{ RET_TOK(BinaryOpVal, DivOp, DIV); }
1683 YY_BREAK
1684case 72:
1685YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001686#line 271 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001687{ RET_TOK(BinaryOpVal, UDivOp, UDIV); }
1688 YY_BREAK
1689case 73:
1690YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001691#line 272 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001692{ RET_TOK(BinaryOpVal, SDivOp, SDIV); }
1693 YY_BREAK
1694case 74:
1695YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001696#line 273 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001697{ RET_TOK(BinaryOpVal, FDivOp, FDIV); }
1698 YY_BREAK
1699case 75:
1700YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001701#line 274 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001702{ RET_TOK(BinaryOpVal, RemOp, REM); }
1703 YY_BREAK
1704case 76:
1705YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001706#line 275 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001707{ RET_TOK(BinaryOpVal, URemOp, UREM); }
1708 YY_BREAK
1709case 77:
1710YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001711#line 276 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001712{ RET_TOK(BinaryOpVal, SRemOp, SREM); }
1713 YY_BREAK
1714case 78:
1715YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001716#line 277 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001717{ RET_TOK(BinaryOpVal, FRemOp, FREM); }
1718 YY_BREAK
1719case 79:
1720YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001721#line 278 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001722{ RET_TOK(BinaryOpVal, AndOp, AND); }
1723 YY_BREAK
1724case 80:
1725YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001726#line 279 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001727{ RET_TOK(BinaryOpVal, OrOp , OR ); }
1728 YY_BREAK
1729case 81:
1730YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001731#line 280 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001732{ RET_TOK(BinaryOpVal, XorOp, XOR); }
1733 YY_BREAK
1734case 82:
1735YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001736#line 281 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001737{ RET_TOK(BinaryOpVal, SetNE, SETNE); }
1738 YY_BREAK
1739case 83:
1740YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001741#line 282 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001742{ RET_TOK(BinaryOpVal, SetEQ, SETEQ); }
1743 YY_BREAK
1744case 84:
1745YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001746#line 283 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001747{ RET_TOK(BinaryOpVal, SetLT, SETLT); }
1748 YY_BREAK
1749case 85:
1750YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001751#line 284 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001752{ RET_TOK(BinaryOpVal, SetGT, SETGT); }
1753 YY_BREAK
1754case 86:
1755YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001756#line 285 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001757{ RET_TOK(BinaryOpVal, SetLE, SETLE); }
1758 YY_BREAK
1759case 87:
1760YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001761#line 286 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001762{ RET_TOK(BinaryOpVal, SetGE, SETGE); }
1763 YY_BREAK
1764case 88:
1765YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001766#line 287 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001767{ RET_TOK(BinaryOpVal, ShlOp, SHL); }
1768 YY_BREAK
1769case 89:
1770YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001771#line 288 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001772{ RET_TOK(BinaryOpVal, ShrOp, SHR); }
1773 YY_BREAK
1774case 90:
1775YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001776#line 289 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001777{ RET_TOK(BinaryOpVal, LShrOp, LSHR); }
1778 YY_BREAK
1779case 91:
1780YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001781#line 290 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001782{ RET_TOK(BinaryOpVal, AShrOp, ASHR); }
1783 YY_BREAK
1784case 92:
1785YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001786#line 292 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001787{ RET_TOK(OtherOpVal, ICmpOp, ICMP); }
1788 YY_BREAK
1789case 93:
1790YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001791#line 293 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001792{ RET_TOK(OtherOpVal, FCmpOp, FCMP); }
1793 YY_BREAK
1794case 94:
1795YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001796#line 295 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001797{ return EQ; }
1798 YY_BREAK
1799case 95:
1800YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001801#line 296 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001802{ return NE; }
1803 YY_BREAK
1804case 96:
1805YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001806#line 297 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001807{ return SLT; }
1808 YY_BREAK
1809case 97:
1810YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001811#line 298 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001812{ return SGT; }
1813 YY_BREAK
1814case 98:
1815YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001816#line 299 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001817{ return SLE; }
1818 YY_BREAK
1819case 99:
1820YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001821#line 300 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001822{ return SGE; }
1823 YY_BREAK
1824case 100:
1825YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001826#line 301 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001827{ return ULT; }
1828 YY_BREAK
1829case 101:
1830YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001831#line 302 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001832{ return UGT; }
1833 YY_BREAK
1834case 102:
1835YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001836#line 303 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001837{ return ULE; }
1838 YY_BREAK
1839case 103:
1840YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001841#line 304 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001842{ return UGE; }
1843 YY_BREAK
1844case 104:
1845YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001846#line 305 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001847{ return OEQ; }
1848 YY_BREAK
1849case 105:
1850YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001851#line 306 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001852{ return ONE; }
1853 YY_BREAK
1854case 106:
1855YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001856#line 307 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001857{ return OLT; }
1858 YY_BREAK
1859case 107:
1860YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001861#line 308 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001862{ return OGT; }
1863 YY_BREAK
1864case 108:
1865YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001866#line 309 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001867{ return OLE; }
1868 YY_BREAK
1869case 109:
1870YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001871#line 310 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001872{ return OGE; }
1873 YY_BREAK
1874case 110:
1875YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001876#line 311 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001877{ return ORD; }
1878 YY_BREAK
1879case 111:
1880YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001881#line 312 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001882{ return UNO; }
1883 YY_BREAK
1884case 112:
1885YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001886#line 313 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001887{ return UEQ; }
1888 YY_BREAK
1889case 113:
1890YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001891#line 314 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001892{ return UNE; }
1893 YY_BREAK
1894case 114:
1895YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001896#line 316 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001897{ RET_TOK(OtherOpVal, PHIOp, PHI_TOK); }
1898 YY_BREAK
1899case 115:
1900YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001901#line 317 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001902{ RET_TOK(OtherOpVal, CallOp, CALL); }
1903 YY_BREAK
1904case 116:
1905YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001906#line 318 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001907{ RET_TOK(CastOpVal, CastOp, CAST); }
1908 YY_BREAK
1909case 117:
1910YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001911#line 319 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001912{ RET_TOK(CastOpVal, TruncOp, TRUNC); }
1913 YY_BREAK
1914case 118:
1915YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001916#line 320 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001917{ RET_TOK(CastOpVal, ZExtOp , ZEXT); }
1918 YY_BREAK
1919case 119:
1920YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001921#line 321 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001922{ RET_TOK(CastOpVal, SExtOp, SEXT); }
1923 YY_BREAK
1924case 120:
1925YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001926#line 322 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001927{ RET_TOK(CastOpVal, FPTruncOp, FPTRUNC); }
1928 YY_BREAK
1929case 121:
1930YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001931#line 323 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001932{ RET_TOK(CastOpVal, FPExtOp, FPEXT); }
1933 YY_BREAK
1934case 122:
1935YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001936#line 324 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001937{ RET_TOK(CastOpVal, FPToUIOp, FPTOUI); }
1938 YY_BREAK
1939case 123:
1940YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001941#line 325 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001942{ RET_TOK(CastOpVal, FPToSIOp, FPTOSI); }
1943 YY_BREAK
1944case 124:
1945YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001946#line 326 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001947{ RET_TOK(CastOpVal, UIToFPOp, UITOFP); }
1948 YY_BREAK
1949case 125:
1950YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001951#line 327 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001952{ RET_TOK(CastOpVal, SIToFPOp, SITOFP); }
1953 YY_BREAK
1954case 126:
1955YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001956#line 328 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001957{ RET_TOK(CastOpVal, PtrToIntOp, PTRTOINT); }
1958 YY_BREAK
1959case 127:
1960YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001961#line 329 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001962{ RET_TOK(CastOpVal, IntToPtrOp, INTTOPTR); }
1963 YY_BREAK
1964case 128:
1965YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001966#line 330 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001967{ RET_TOK(CastOpVal, BitCastOp, BITCAST); }
1968 YY_BREAK
1969case 129:
1970YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001971#line 331 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001972{ RET_TOK(OtherOpVal, SelectOp, SELECT); }
1973 YY_BREAK
1974case 130:
1975YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001976#line 332 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001977{ return VANEXT_old; }
1978 YY_BREAK
1979case 131:
1980YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001981#line 333 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001982{ return VAARG_old; }
1983 YY_BREAK
1984case 132:
1985YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001986#line 334 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001987{ RET_TOK(OtherOpVal, VAArg , VAARG); }
1988 YY_BREAK
1989case 133:
1990YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001991#line 335 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001992{ RET_TOK(TermOpVal, RetOp, RET); }
1993 YY_BREAK
1994case 134:
1995YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001996#line 336 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001997{ RET_TOK(TermOpVal, BrOp, BR); }
1998 YY_BREAK
1999case 135:
2000YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002001#line 337 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002002{ RET_TOK(TermOpVal, SwitchOp, SWITCH); }
2003 YY_BREAK
2004case 136:
2005YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002006#line 338 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002007{ RET_TOK(TermOpVal, InvokeOp, INVOKE); }
2008 YY_BREAK
2009case 137:
2010YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002011#line 339 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002012{ return UNWIND; }
2013 YY_BREAK
2014case 138:
2015YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002016#line 340 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002017{ RET_TOK(TermOpVal, UnreachableOp, UNREACHABLE); }
2018 YY_BREAK
2019case 139:
2020YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002021#line 342 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002022{ RET_TOK(MemOpVal, MallocOp, MALLOC); }
2023 YY_BREAK
2024case 140:
2025YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002026#line 343 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002027{ RET_TOK(MemOpVal, AllocaOp, ALLOCA); }
2028 YY_BREAK
2029case 141:
2030YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002031#line 344 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002032{ RET_TOK(MemOpVal, FreeOp, FREE); }
2033 YY_BREAK
2034case 142:
2035YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002036#line 345 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002037{ RET_TOK(MemOpVal, LoadOp, LOAD); }
2038 YY_BREAK
2039case 143:
2040YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002041#line 346 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002042{ RET_TOK(MemOpVal, StoreOp, STORE); }
2043 YY_BREAK
2044case 144:
2045YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002046#line 347 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002047{ RET_TOK(MemOpVal, GetElementPtrOp, GETELEMENTPTR); }
2048 YY_BREAK
2049case 145:
2050YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002051#line 349 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002052{ RET_TOK(OtherOpVal, ExtractElementOp, EXTRACTELEMENT); }
2053 YY_BREAK
2054case 146:
2055YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002056#line 350 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002057{ RET_TOK(OtherOpVal, InsertElementOp, INSERTELEMENT); }
2058 YY_BREAK
2059case 147:
2060YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002061#line 351 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002062{ RET_TOK(OtherOpVal, ShuffleVectorOp, SHUFFLEVECTOR); }
2063 YY_BREAK
2064case 148:
2065YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002066#line 354 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002067{
2068 UnEscapeLexed(yytext+1);
2069 Upgradelval.StrVal = strdup(yytext+1); // Skip %
2070 return VAR_ID;
2071 }
2072 YY_BREAK
2073case 149:
2074YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002075#line 359 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002076{
2077 yytext[strlen(yytext)-1] = 0; // nuke colon
2078 UnEscapeLexed(yytext);
2079 Upgradelval.StrVal = strdup(yytext);
2080 return LABELSTR;
2081 }
2082 YY_BREAK
2083case 150:
2084YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002085#line 365 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002086{
2087 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
2088 UnEscapeLexed(yytext+1);
2089 Upgradelval.StrVal = strdup(yytext+1);
2090 return LABELSTR;
2091 }
2092 YY_BREAK
2093case 151:
2094YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002095#line 372 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002096{ // Note that we cannot unescape a string constant here! The
2097 // string constant might contain a \00 which would not be
2098 // understood by the string stuff. It is valid to make a
2099 // [sbyte] c"Hello World\00" constant, for example.
2100 //
2101 yytext[strlen(yytext)-1] = 0; // nuke end quote
2102 Upgradelval.StrVal = strdup(yytext+1); // Nuke start quote
2103 return STRINGCONSTANT;
2104 }
2105 YY_BREAK
2106case 152:
2107YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002108#line 383 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002109{ Upgradelval.UInt64Val = atoull(yytext); return EUINT64VAL; }
2110 YY_BREAK
2111case 153:
2112YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002113#line 384 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002114{
2115 uint64_t Val = atoull(yytext+1);
2116 // +1: we have bigger negative range
2117 if (Val > (uint64_t)INT64_MAX+1)
2118 error("Constant too large for signed 64 bits!");
2119 Upgradelval.SInt64Val = -Val;
2120 return ESINT64VAL;
2121 }
2122 YY_BREAK
2123case 154:
2124YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002125#line 392 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002126{
2127 Upgradelval.UInt64Val = HexIntToVal(yytext+3);
2128 return yytext[0] == 's' ? ESINT64VAL : EUINT64VAL;
2129 }
2130 YY_BREAK
2131case 155:
2132YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002133#line 397 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002134{
2135 uint64_t Val = atoull(yytext+1);
2136 if ((unsigned)Val != Val)
2137 error("Invalid value number (too large)!");
2138 Upgradelval.UIntVal = unsigned(Val);
2139 return UINTVAL;
2140 }
2141 YY_BREAK
2142case 156:
2143YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002144#line 404 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002145{
2146 uint64_t Val = atoull(yytext+2);
2147 // +1: we have bigger negative range
2148 if (Val > (uint64_t)INT32_MAX+1)
2149 error("Constant too large for signed 32 bits!");
2150 Upgradelval.SIntVal = (int)-Val;
2151 return SINTVAL;
2152 }
2153 YY_BREAK
2154case 157:
2155YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002156#line 413 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2157{ Upgradelval.FPVal = new APFloat(atof(yytext)); return FPVAL; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002158 YY_BREAK
2159case 158:
2160YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002161#line 414 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2162{ Upgradelval.FPVal = new APFloat(HexToFP(yytext));
2163 return FPVAL;
2164 }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002165 YY_BREAK
2166case YY_STATE_EOF(INITIAL):
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002167#line 418 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002168{
2169 /* Make sure to free the internal buffers for flex when we are
2170 * done reading our input!
2171 */
2172 yy_delete_buffer(YY_CURRENT_BUFFER);
2173 return EOF;
2174 }
2175 YY_BREAK
2176case 159:
2177YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002178#line 426 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002179{ /* Ignore whitespace */ }
2180 YY_BREAK
2181case 160:
2182YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002183#line 427 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002184{ return yytext[0]; }
2185 YY_BREAK
2186case 161:
2187YY_RULE_SETUP
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002188#line 429 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002189YY_FATAL_ERROR( "flex scanner jammed" );
2190 YY_BREAK
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002191#line 2192 "UpgradeLexer.cpp"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002192
2193 case YY_END_OF_BUFFER:
2194 {
2195 /* Amount of text matched not including the EOB char. */
2196 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
2197
2198 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2199 *yy_cp = yy_hold_char;
2200 YY_RESTORE_YY_MORE_OFFSET
2201
2202 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
2203 {
2204 /* We're scanning a new file or input source. It's
2205 * possible that this happened because the user
2206 * just pointed yyin at a new source and called
2207 * yylex(). If so, then we have to assure
2208 * consistency between yy_current_buffer and our
2209 * globals. Here is the right place to do so, because
2210 * this is the first action (other than possibly a
2211 * back-up) that will match for the new input source.
2212 */
2213 yy_n_chars = yy_current_buffer->yy_n_chars;
2214 yy_current_buffer->yy_input_file = yyin;
2215 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
2216 }
2217
2218 /* Note that here we test for yy_c_buf_p "<=" to the position
2219 * of the first EOB in the buffer, since yy_c_buf_p will
2220 * already have been incremented past the NUL character
2221 * (since all states make transitions on EOB to the
2222 * end-of-buffer state). Contrast this with the test
2223 * in input().
2224 */
2225 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2226 { /* This was really a NUL. */
2227 yy_state_type yy_next_state;
2228
2229 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
2230
2231 yy_current_state = yy_get_previous_state();
2232
2233 /* Okay, we're now positioned to make the NUL
2234 * transition. We couldn't have
2235 * yy_get_previous_state() go ahead and do it
2236 * for us because it doesn't know how to deal
2237 * with the possibility of jamming (and we don't
2238 * want to build jamming into it because then it
2239 * will run more slowly).
2240 */
2241
2242 yy_next_state = yy_try_NUL_trans( yy_current_state );
2243
2244 yy_bp = yytext_ptr + YY_MORE_ADJ;
2245
2246 if ( yy_next_state )
2247 {
2248 /* Consume the NUL. */
2249 yy_cp = ++yy_c_buf_p;
2250 yy_current_state = yy_next_state;
2251 goto yy_match;
2252 }
2253
2254 else
2255 {
2256 yy_cp = yy_c_buf_p;
2257 goto yy_find_action;
2258 }
2259 }
2260
2261 else switch ( yy_get_next_buffer() )
2262 {
2263 case EOB_ACT_END_OF_FILE:
2264 {
2265 yy_did_buffer_switch_on_eof = 0;
2266
2267 if ( yywrap() )
2268 {
2269 /* Note: because we've taken care in
2270 * yy_get_next_buffer() to have set up
2271 * yytext, we can now set up
2272 * yy_c_buf_p so that if some total
2273 * hoser (like flex itself) wants to
2274 * call the scanner after we return the
2275 * YY_NULL, it'll still work - another
2276 * YY_NULL will get returned.
2277 */
2278 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
2279
2280 yy_act = YY_STATE_EOF(YY_START);
2281 goto do_action;
2282 }
2283
2284 else
2285 {
2286 if ( ! yy_did_buffer_switch_on_eof )
2287 YY_NEW_FILE;
2288 }
2289 break;
2290 }
2291
2292 case EOB_ACT_CONTINUE_SCAN:
2293 yy_c_buf_p =
2294 yytext_ptr + yy_amount_of_matched_text;
2295
2296 yy_current_state = yy_get_previous_state();
2297
2298 yy_cp = yy_c_buf_p;
2299 yy_bp = yytext_ptr + YY_MORE_ADJ;
2300 goto yy_match;
2301
2302 case EOB_ACT_LAST_MATCH:
2303 yy_c_buf_p =
2304 &yy_current_buffer->yy_ch_buf[yy_n_chars];
2305
2306 yy_current_state = yy_get_previous_state();
2307
2308 yy_cp = yy_c_buf_p;
2309 yy_bp = yytext_ptr + YY_MORE_ADJ;
2310 goto yy_find_action;
2311 }
2312 break;
2313 }
2314
2315 default:
2316 YY_FATAL_ERROR(
2317 "fatal flex scanner internal error--no action found" );
2318 } /* end of action switch */
2319 } /* end of scanning one token */
2320 } /* end of yylex */
2321
2322
2323/* yy_get_next_buffer - try to read in a new buffer
2324 *
2325 * Returns a code representing an action:
2326 * EOB_ACT_LAST_MATCH -
2327 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2328 * EOB_ACT_END_OF_FILE - end of file
2329 */
2330
2331static int yy_get_next_buffer()
2332 {
2333 register char *dest = yy_current_buffer->yy_ch_buf;
2334 register char *source = yytext_ptr;
2335 register int number_to_move, i;
2336 int ret_val;
2337
2338 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
2339 YY_FATAL_ERROR(
2340 "fatal flex scanner internal error--end of buffer missed" );
2341
2342 if ( yy_current_buffer->yy_fill_buffer == 0 )
2343 { /* Don't try to fill the buffer, so this is an EOF. */
2344 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
2345 {
2346 /* We matched a single character, the EOB, so
2347 * treat this as a final EOF.
2348 */
2349 return EOB_ACT_END_OF_FILE;
2350 }
2351
2352 else
2353 {
2354 /* We matched some text prior to the EOB, first
2355 * process it.
2356 */
2357 return EOB_ACT_LAST_MATCH;
2358 }
2359 }
2360
2361 /* Try to read more data. */
2362
2363 /* First move last chars to start of buffer. */
2364 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
2365
2366 for ( i = 0; i < number_to_move; ++i )
2367 *(dest++) = *(source++);
2368
2369 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2370 /* don't do the read, it's not guaranteed to return an EOF,
2371 * just force an EOF
2372 */
2373 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
2374
2375 else
2376 {
2377 int num_to_read =
2378 yy_current_buffer->yy_buf_size - number_to_move - 1;
2379
2380 while ( num_to_read <= 0 )
2381 { /* Not enough room in the buffer - grow it. */
2382#ifdef YY_USES_REJECT
2383 YY_FATAL_ERROR(
2384"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2385#else
2386
2387 /* just a shorter name for the current buffer */
2388 YY_BUFFER_STATE b = yy_current_buffer;
2389
2390 int yy_c_buf_p_offset =
2391 (int) (yy_c_buf_p - b->yy_ch_buf);
2392
2393 if ( b->yy_is_our_buffer )
2394 {
2395 int new_size = b->yy_buf_size * 2;
2396
2397 if ( new_size <= 0 )
2398 b->yy_buf_size += b->yy_buf_size / 8;
2399 else
2400 b->yy_buf_size *= 2;
2401
2402 b->yy_ch_buf = (char *)
2403 /* Include room in for 2 EOB chars. */
2404 yy_flex_realloc( (void *) b->yy_ch_buf,
2405 b->yy_buf_size + 2 );
2406 }
2407 else
2408 /* Can't grow it, we don't own it. */
2409 b->yy_ch_buf = 0;
2410
2411 if ( ! b->yy_ch_buf )
2412 YY_FATAL_ERROR(
2413 "fatal error - scanner input buffer overflow" );
2414
2415 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2416
2417 num_to_read = yy_current_buffer->yy_buf_size -
2418 number_to_move - 1;
2419#endif
2420 }
2421
2422 if ( num_to_read > YY_READ_BUF_SIZE )
2423 num_to_read = YY_READ_BUF_SIZE;
2424
2425 /* Read in more data. */
2426 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2427 yy_n_chars, num_to_read );
2428
2429 yy_current_buffer->yy_n_chars = yy_n_chars;
2430 }
2431
2432 if ( yy_n_chars == 0 )
2433 {
2434 if ( number_to_move == YY_MORE_ADJ )
2435 {
2436 ret_val = EOB_ACT_END_OF_FILE;
2437 yyrestart( yyin );
2438 }
2439
2440 else
2441 {
2442 ret_val = EOB_ACT_LAST_MATCH;
2443 yy_current_buffer->yy_buffer_status =
2444 YY_BUFFER_EOF_PENDING;
2445 }
2446 }
2447
2448 else
2449 ret_val = EOB_ACT_CONTINUE_SCAN;
2450
2451 yy_n_chars += number_to_move;
2452 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2453 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2454
2455 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2456
2457 return ret_val;
2458 }
2459
2460
2461/* yy_get_previous_state - get the state just before the EOB char was reached */
2462
2463static yy_state_type yy_get_previous_state()
2464 {
2465 register yy_state_type yy_current_state;
2466 register char *yy_cp;
2467
2468 yy_current_state = yy_start;
2469 yy_state_ptr = yy_state_buf;
2470 *yy_state_ptr++ = yy_current_state;
2471
2472 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2473 {
2474 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2475 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2476 {
2477 yy_current_state = (int) yy_def[yy_current_state];
2478 if ( yy_current_state >= 620 )
2479 yy_c = yy_meta[(unsigned int) yy_c];
2480 }
2481 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2482 *yy_state_ptr++ = yy_current_state;
2483 }
2484
2485 return yy_current_state;
2486 }
2487
2488
2489/* yy_try_NUL_trans - try to make a transition on the NUL character
2490 *
2491 * synopsis
2492 * next_state = yy_try_NUL_trans( current_state );
2493 */
2494
2495#ifdef YY_USE_PROTOS
2496static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2497#else
2498static yy_state_type yy_try_NUL_trans( yy_current_state )
2499yy_state_type yy_current_state;
2500#endif
2501 {
2502 register int yy_is_jam;
2503
2504 register YY_CHAR yy_c = 1;
2505 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2506 {
2507 yy_current_state = (int) yy_def[yy_current_state];
2508 if ( yy_current_state >= 620 )
2509 yy_c = yy_meta[(unsigned int) yy_c];
2510 }
2511 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2512 yy_is_jam = (yy_current_state == 619);
2513 if ( ! yy_is_jam )
2514 *yy_state_ptr++ = yy_current_state;
2515
2516 return yy_is_jam ? 0 : yy_current_state;
2517 }
2518
2519
2520#ifndef YY_NO_UNPUT
2521#ifdef YY_USE_PROTOS
2522static inline void yyunput( int c, register char *yy_bp )
2523#else
2524static inline void yyunput( c, yy_bp )
2525int c;
2526register char *yy_bp;
2527#endif
2528 {
2529 register char *yy_cp = yy_c_buf_p;
2530
2531 /* undo effects of setting up yytext */
2532 *yy_cp = yy_hold_char;
2533
2534 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2535 { /* need to shift things up to make room */
2536 /* +2 for EOB chars. */
2537 register int number_to_move = yy_n_chars + 2;
2538 register char *dest = &yy_current_buffer->yy_ch_buf[
2539 yy_current_buffer->yy_buf_size + 2];
2540 register char *source =
2541 &yy_current_buffer->yy_ch_buf[number_to_move];
2542
2543 while ( source > yy_current_buffer->yy_ch_buf )
2544 *--dest = *--source;
2545
2546 yy_cp += (int) (dest - source);
2547 yy_bp += (int) (dest - source);
2548 yy_current_buffer->yy_n_chars =
2549 yy_n_chars = yy_current_buffer->yy_buf_size;
2550
2551 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2552 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2553 }
2554
2555 *--yy_cp = (char) c;
2556
2557 if ( c == '\n' )
2558 --yylineno;
2559
2560 yytext_ptr = yy_bp;
2561 yy_hold_char = *yy_cp;
2562 yy_c_buf_p = yy_cp;
2563 }
2564#endif /* ifndef YY_NO_UNPUT */
2565
2566
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002567#ifdef __cplusplus
2568static int yyinput()
2569#else
2570static int input()
2571#endif
2572 {
2573 int c;
2574
2575 *yy_c_buf_p = yy_hold_char;
2576
2577 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2578 {
2579 /* yy_c_buf_p now points to the character we want to return.
2580 * If this occurs *before* the EOB characters, then it's a
2581 * valid NUL; if not, then we've hit the end of the buffer.
2582 */
2583 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2584 /* This was really a NUL. */
2585 *yy_c_buf_p = '\0';
2586
2587 else
2588 { /* need more input */
2589 int offset = yy_c_buf_p - yytext_ptr;
2590 ++yy_c_buf_p;
2591
2592 switch ( yy_get_next_buffer() )
2593 {
2594 case EOB_ACT_LAST_MATCH:
2595 /* This happens because yy_g_n_b()
2596 * sees that we've accumulated a
2597 * token and flags that we need to
2598 * try matching the token before
2599 * proceeding. But for input(),
2600 * there's no matching to consider.
2601 * So convert the EOB_ACT_LAST_MATCH
2602 * to EOB_ACT_END_OF_FILE.
2603 */
2604
2605 /* Reset buffer status. */
2606 yyrestart( yyin );
2607
2608 /* fall through */
2609
2610 case EOB_ACT_END_OF_FILE:
2611 {
2612 if ( yywrap() )
2613 return EOF;
2614
2615 if ( ! yy_did_buffer_switch_on_eof )
2616 YY_NEW_FILE;
2617#ifdef __cplusplus
2618 return yyinput();
2619#else
2620 return input();
2621#endif
2622 }
2623
2624 case EOB_ACT_CONTINUE_SCAN:
2625 yy_c_buf_p = yytext_ptr + offset;
2626 break;
2627 }
2628 }
2629 }
2630
2631 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2632 *yy_c_buf_p = '\0'; /* preserve yytext */
2633 yy_hold_char = *++yy_c_buf_p;
2634
2635 if ( c == '\n' )
2636 ++yylineno;
2637
2638 return c;
2639 }
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002640
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002641
2642#ifdef YY_USE_PROTOS
2643void yyrestart( FILE *input_file )
2644#else
2645void yyrestart( input_file )
2646FILE *input_file;
2647#endif
2648 {
2649 if ( ! yy_current_buffer )
2650 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2651
2652 yy_init_buffer( yy_current_buffer, input_file );
2653 yy_load_buffer_state();
2654 }
2655
2656
2657#ifdef YY_USE_PROTOS
2658void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2659#else
2660void yy_switch_to_buffer( new_buffer )
2661YY_BUFFER_STATE new_buffer;
2662#endif
2663 {
2664 if ( yy_current_buffer == new_buffer )
2665 return;
2666
2667 if ( yy_current_buffer )
2668 {
2669 /* Flush out information for old buffer. */
2670 *yy_c_buf_p = yy_hold_char;
2671 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2672 yy_current_buffer->yy_n_chars = yy_n_chars;
2673 }
2674
2675 yy_current_buffer = new_buffer;
2676 yy_load_buffer_state();
2677
2678 /* We don't actually know whether we did this switch during
2679 * EOF (yywrap()) processing, but the only time this flag
2680 * is looked at is after yywrap() is called, so it's safe
2681 * to go ahead and always set it.
2682 */
2683 yy_did_buffer_switch_on_eof = 1;
2684 }
2685
2686
2687#ifdef YY_USE_PROTOS
2688void yy_load_buffer_state( void )
2689#else
2690void yy_load_buffer_state()
2691#endif
2692 {
2693 yy_n_chars = yy_current_buffer->yy_n_chars;
2694 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2695 yyin = yy_current_buffer->yy_input_file;
2696 yy_hold_char = *yy_c_buf_p;
2697 }
2698
2699
2700#ifdef YY_USE_PROTOS
2701YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2702#else
2703YY_BUFFER_STATE yy_create_buffer( file, size )
2704FILE *file;
2705int size;
2706#endif
2707 {
2708 YY_BUFFER_STATE b;
2709
2710 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2711 if ( ! b )
2712 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2713
2714 b->yy_buf_size = size;
2715
2716 /* yy_ch_buf has to be 2 characters longer than the size given because
2717 * we need to put in 2 end-of-buffer characters.
2718 */
2719 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2720 if ( ! b->yy_ch_buf )
2721 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2722
2723 b->yy_is_our_buffer = 1;
2724
2725 yy_init_buffer( b, file );
2726
2727 return b;
2728 }
2729
2730
2731#ifdef YY_USE_PROTOS
2732void yy_delete_buffer( YY_BUFFER_STATE b )
2733#else
2734void yy_delete_buffer( b )
2735YY_BUFFER_STATE b;
2736#endif
2737 {
2738 if ( ! b )
2739 return;
2740
2741 if ( b == yy_current_buffer )
2742 yy_current_buffer = (YY_BUFFER_STATE) 0;
2743
2744 if ( b->yy_is_our_buffer )
2745 yy_flex_free( (void *) b->yy_ch_buf );
2746
2747 yy_flex_free( (void *) b );
2748 }
2749
2750
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002751#ifndef YY_ALWAYS_INTERACTIVE
2752#ifndef YY_NEVER_INTERACTIVE
2753extern int isatty YY_PROTO(( int ));
2754#endif
2755#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002756
2757#ifdef YY_USE_PROTOS
2758void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2759#else
2760void yy_init_buffer( b, file )
2761YY_BUFFER_STATE b;
2762FILE *file;
2763#endif
2764
2765
2766 {
2767 yy_flush_buffer( b );
2768
2769 b->yy_input_file = file;
2770 b->yy_fill_buffer = 1;
2771
2772#if YY_ALWAYS_INTERACTIVE
2773 b->yy_is_interactive = 1;
2774#else
2775#if YY_NEVER_INTERACTIVE
2776 b->yy_is_interactive = 0;
2777#else
2778 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2779#endif
2780#endif
2781 }
2782
2783
2784#ifdef YY_USE_PROTOS
2785void yy_flush_buffer( YY_BUFFER_STATE b )
2786#else
2787void yy_flush_buffer( b )
2788YY_BUFFER_STATE b;
2789#endif
2790
2791 {
2792 if ( ! b )
2793 return;
2794
2795 b->yy_n_chars = 0;
2796
2797 /* We always need two end-of-buffer characters. The first causes
2798 * a transition to the end-of-buffer state. The second causes
2799 * a jam in that state.
2800 */
2801 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2802 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2803
2804 b->yy_buf_pos = &b->yy_ch_buf[0];
2805
2806 b->yy_at_bol = 1;
2807 b->yy_buffer_status = YY_BUFFER_NEW;
2808
2809 if ( b == yy_current_buffer )
2810 yy_load_buffer_state();
2811 }
2812
2813
2814#ifndef YY_NO_SCAN_BUFFER
2815#ifdef YY_USE_PROTOS
2816YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2817#else
2818YY_BUFFER_STATE yy_scan_buffer( base, size )
2819char *base;
2820yy_size_t size;
2821#endif
2822 {
2823 YY_BUFFER_STATE b;
2824
2825 if ( size < 2 ||
2826 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2827 base[size-1] != YY_END_OF_BUFFER_CHAR )
2828 /* They forgot to leave room for the EOB's. */
2829 return 0;
2830
2831 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2832 if ( ! b )
2833 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2834
2835 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2836 b->yy_buf_pos = b->yy_ch_buf = base;
2837 b->yy_is_our_buffer = 0;
2838 b->yy_input_file = 0;
2839 b->yy_n_chars = b->yy_buf_size;
2840 b->yy_is_interactive = 0;
2841 b->yy_at_bol = 1;
2842 b->yy_fill_buffer = 0;
2843 b->yy_buffer_status = YY_BUFFER_NEW;
2844
2845 yy_switch_to_buffer( b );
2846
2847 return b;
2848 }
2849#endif
2850
2851
2852#ifndef YY_NO_SCAN_STRING
2853#ifdef YY_USE_PROTOS
2854YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2855#else
2856YY_BUFFER_STATE yy_scan_string( yy_str )
2857yyconst char *yy_str;
2858#endif
2859 {
2860 int len;
2861 for ( len = 0; yy_str[len]; ++len )
2862 ;
2863
2864 return yy_scan_bytes( yy_str, len );
2865 }
2866#endif
2867
2868
2869#ifndef YY_NO_SCAN_BYTES
2870#ifdef YY_USE_PROTOS
2871YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2872#else
2873YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2874yyconst char *bytes;
2875int len;
2876#endif
2877 {
2878 YY_BUFFER_STATE b;
2879 char *buf;
2880 yy_size_t n;
2881 int i;
2882
2883 /* Get memory for full buffer, including space for trailing EOB's. */
2884 n = len + 2;
2885 buf = (char *) yy_flex_alloc( n );
2886 if ( ! buf )
2887 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2888
2889 for ( i = 0; i < len; ++i )
2890 buf[i] = bytes[i];
2891
2892 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2893
2894 b = yy_scan_buffer( buf, n );
2895 if ( ! b )
2896 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2897
2898 /* It's okay to grow etc. this buffer, and we should throw it
2899 * away when we're done.
2900 */
2901 b->yy_is_our_buffer = 1;
2902
2903 return b;
2904 }
2905#endif
2906
2907
2908#ifndef YY_NO_PUSH_STATE
2909#ifdef YY_USE_PROTOS
2910static void yy_push_state( int new_state )
2911#else
2912static void yy_push_state( new_state )
2913int new_state;
2914#endif
2915 {
2916 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2917 {
2918 yy_size_t new_size;
2919
2920 yy_start_stack_depth += YY_START_STACK_INCR;
2921 new_size = yy_start_stack_depth * sizeof( int );
2922
2923 if ( ! yy_start_stack )
2924 yy_start_stack = (int *) yy_flex_alloc( new_size );
2925
2926 else
2927 yy_start_stack = (int *) yy_flex_realloc(
2928 (void *) yy_start_stack, new_size );
2929
2930 if ( ! yy_start_stack )
2931 YY_FATAL_ERROR(
2932 "out of memory expanding start-condition stack" );
2933 }
2934
2935 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2936
2937 BEGIN(new_state);
2938 }
2939#endif
2940
2941
2942#ifndef YY_NO_POP_STATE
2943static void yy_pop_state()
2944 {
2945 if ( --yy_start_stack_ptr < 0 )
2946 YY_FATAL_ERROR( "start-condition stack underflow" );
2947
2948 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2949 }
2950#endif
2951
2952
2953#ifndef YY_NO_TOP_STATE
2954static int yy_top_state()
2955 {
2956 return yy_start_stack[yy_start_stack_ptr - 1];
2957 }
2958#endif
2959
2960#ifndef YY_EXIT_FAILURE
2961#define YY_EXIT_FAILURE 2
2962#endif
2963
2964#ifdef YY_USE_PROTOS
2965static void yy_fatal_error( yyconst char msg[] )
2966#else
2967static void yy_fatal_error( msg )
2968char msg[];
2969#endif
2970 {
2971 (void) fprintf( stderr, "%s\n", msg );
2972 exit( YY_EXIT_FAILURE );
2973 }
2974
2975
2976
2977/* Redefine yyless() so it works in section 3 code. */
2978
2979#undef yyless
2980#define yyless(n) \
2981 do \
2982 { \
2983 /* Undo effects of setting up yytext. */ \
2984 yytext[yyleng] = yy_hold_char; \
2985 yy_c_buf_p = yytext + n; \
2986 yy_hold_char = *yy_c_buf_p; \
2987 *yy_c_buf_p = '\0'; \
2988 yyleng = n; \
2989 } \
2990 while ( 0 )
2991
2992
2993/* Internal utility routines. */
2994
2995#ifndef yytext_ptr
2996#ifdef YY_USE_PROTOS
2997static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2998#else
2999static void yy_flex_strncpy( s1, s2, n )
3000char *s1;
3001yyconst char *s2;
3002int n;
3003#endif
3004 {
3005 register int i;
3006 for ( i = 0; i < n; ++i )
3007 s1[i] = s2[i];
3008 }
3009#endif
3010
3011#ifdef YY_NEED_STRLEN
3012#ifdef YY_USE_PROTOS
3013static int yy_flex_strlen( yyconst char *s )
3014#else
3015static int yy_flex_strlen( s )
3016yyconst char *s;
3017#endif
3018 {
3019 register int n;
3020 for ( n = 0; s[n]; ++n )
3021 ;
3022
3023 return n;
3024 }
3025#endif
3026
3027
3028#ifdef YY_USE_PROTOS
3029static void *yy_flex_alloc( yy_size_t size )
3030#else
3031static void *yy_flex_alloc( size )
3032yy_size_t size;
3033#endif
3034 {
3035 return (void *) malloc( size );
3036 }
3037
3038#ifdef YY_USE_PROTOS
3039static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
3040#else
3041static inline void *yy_flex_realloc( ptr, size )
3042void *ptr;
3043yy_size_t size;
3044#endif
3045 {
3046 /* The cast to (char *) in the following accommodates both
3047 * implementations that use char* generic pointers, and those
3048 * that use void* generic pointers. It works with the latter
3049 * because both ANSI C and C++ allow castless assignment from
3050 * any pointer type to void*, and deal with argument conversions
3051 * as though doing an assignment.
3052 */
3053 return (void *) realloc( (char *) ptr, size );
3054 }
3055
3056#ifdef YY_USE_PROTOS
3057static void yy_flex_free( void *ptr )
3058#else
3059static void yy_flex_free( ptr )
3060void *ptr;
3061#endif
3062 {
3063 free( ptr );
3064 }
3065
3066#if YY_MAIN
3067int main()
3068 {
3069 yylex();
3070 return 0;
3071 }
3072#endif
Dale Johannesenb9de9f02007-09-06 18:13:44 +00003073#line 429 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003074