blob: b0b35951fe5e61a12fe16d8d54c29738c05e4d05 [file] [log] [blame]
Reid Spencere7c3c602006-11-30 06:36:44 +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"
20/* A lexical scanner generated by flex*/
21
22/* Scanner skeleton version:
23 * $Header$
24 */
25
26#define FLEX_SCANNER
27#define YY_FLEX_MAJOR_VERSION 2
28#define YY_FLEX_MINOR_VERSION 5
29
30#include <stdio.h>
31#include <unistd.h>
32
33
34/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
35#ifdef c_plusplus
36#ifndef __cplusplus
37#define __cplusplus
38#endif
39#endif
40
41
42#ifdef __cplusplus
43
44#include <stdlib.h>
45
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
156/* Some routines like yy_flex_realloc() are emitted as static but are
157 not called by all lexers. This generates warnings in some compilers,
158 notably GCC. Arrange to suppress these. */
159#ifdef __GNUC__
160#define YY_MAY_BE_UNUSED __attribute__((unused))
161#else
162#define YY_MAY_BE_UNUSED
163#endif
164
165/* The following is because we cannot portably get our hands on size_t
166 * (without autoconf's help, which isn't available because we want
167 * flex-generated scanners to compile on their own).
168 */
169typedef unsigned int yy_size_t;
170
171
172struct yy_buffer_state
173 {
174 FILE *yy_input_file;
175
176 char *yy_ch_buf; /* input buffer */
177 char *yy_buf_pos; /* current position in input buffer */
178
179 /* Size of input buffer in bytes, not including room for EOB
180 * characters.
181 */
182 yy_size_t yy_buf_size;
183
184 /* Number of characters read into yy_ch_buf, not including EOB
185 * characters.
186 */
187 int yy_n_chars;
188
189 /* Whether we "own" the buffer - i.e., we know we created it,
190 * and can realloc() it to grow it, and should free() it to
191 * delete it.
192 */
193 int yy_is_our_buffer;
194
195 /* Whether this is an "interactive" input source; if so, and
196 * if we're using stdio for input, then we want to use getc()
197 * instead of fread(), to make sure we stop fetching input after
198 * each newline.
199 */
200 int yy_is_interactive;
201
202 /* Whether we're considered to be at the beginning of a line.
203 * If so, '^' rules will be active on the next match, otherwise
204 * not.
205 */
206 int yy_at_bol;
207
208 /* Whether to try to fill the input buffer when we reach the
209 * end of it.
210 */
211 int yy_fill_buffer;
212
213 int yy_buffer_status;
214#define YY_BUFFER_NEW 0
215#define YY_BUFFER_NORMAL 1
216 /* When an EOF's been seen but there's still some text to process
217 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
218 * shouldn't try reading from the input source any more. We might
219 * still have a bunch of tokens to match, though, because of
220 * possible backing-up.
221 *
222 * When we actually see the EOF, we change the status to "new"
223 * (via yyrestart()), so that the user can continue scanning by
224 * just pointing yyin at a new input file.
225 */
226#define YY_BUFFER_EOF_PENDING 2
227 };
228
229static YY_BUFFER_STATE yy_current_buffer = 0;
230
231/* We provide macros for accessing buffer states in case in the
232 * future we want to put the buffer states in a more general
233 * "scanner state".
234 */
235#define YY_CURRENT_BUFFER yy_current_buffer
236
237
238/* yy_hold_char holds the character lost when yytext is formed. */
239static char yy_hold_char;
240
241static int yy_n_chars; /* number of characters read into yy_ch_buf */
242
243
244int yyleng;
245
246/* Points to current character in buffer. */
247static char *yy_c_buf_p = (char *) 0;
248static int yy_init = 1; /* whether we need to initialize */
249static int yy_start = 0; /* start state number */
250
251/* Flag which is used to allow yywrap()'s to do buffer switches
252 * instead of setting up a fresh yyin. A bit of a hack ...
253 */
254static int yy_did_buffer_switch_on_eof;
255
256void yyrestart YY_PROTO(( FILE *input_file ));
257
258void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
259void yy_load_buffer_state YY_PROTO(( void ));
260YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
261void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
262void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
263void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
264#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
265
266YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
267YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
268YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
269
270static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
271static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED;
272static void yy_flex_free YY_PROTO(( void * ));
273
274#define yy_new_buffer yy_create_buffer
275
276#define yy_set_interactive(is_interactive) \
277 { \
278 if ( ! yy_current_buffer ) \
279 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
280 yy_current_buffer->yy_is_interactive = is_interactive; \
281 }
282
283#define yy_set_bol(at_bol) \
284 { \
285 if ( ! yy_current_buffer ) \
286 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
287 yy_current_buffer->yy_at_bol = at_bol; \
288 }
289
290#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
291
292
293#define YY_USES_REJECT
294
295#define yywrap() 1
296#define YY_SKIP_YYWRAP
297typedef unsigned char YY_CHAR;
298FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
299typedef int yy_state_type;
300extern int yylineno;
301int yylineno = 1;
302extern char *yytext;
303#define yytext_ptr yytext
304
305static yy_state_type yy_get_previous_state YY_PROTO(( void ));
306static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
307static int yy_get_next_buffer YY_PROTO(( void ));
308static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
309
310/* Done after the current pattern has been matched and before the
311 * corresponding action - sets up yytext.
312 */
313#define YY_DO_BEFORE_ACTION \
314 yytext_ptr = yy_bp; \
315 yyleng = (int) (yy_cp - yy_bp); \
316 yy_hold_char = *yy_cp; \
317 *yy_cp = '\0'; \
318 yy_c_buf_p = yy_cp;
319
Reid Spencer16244f42006-12-01 21:10:07 +0000320#define YY_NUM_RULES 117
321#define YY_END_OF_BUFFER 118
322static yyconst short int yy_acclist[195] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000323 { 0,
Reid Spencer16244f42006-12-01 21:10:07 +0000324 118, 116, 117, 115, 116, 117, 115, 117, 116, 117,
325 116, 117, 116, 117, 116, 117, 116, 117, 116, 117,
326 108, 116, 117, 108, 116, 117, 1, 116, 117, 116,
327 117, 116, 117, 116, 117, 116, 117, 116, 117, 116,
328 117, 116, 117, 116, 117, 116, 117, 116, 117, 116,
329 117, 116, 117, 116, 117, 116, 117, 116, 117, 116,
330 117, 116, 117, 116, 117, 116, 117, 116, 117, 116,
331 117, 107, 105, 104, 104, 111, 109, 113, 108, 1,
332 89, 38, 72, 22, 107, 104, 104, 112, 113, 19,
333 113, 114, 60, 71, 36, 31, 39, 63, 3, 51,
Reid Spencere7c3c602006-11-30 06:36:44 +0000334
Reid Spencer16244f42006-12-01 21:10:07 +0000335 62, 80, 67, 88, 84, 61, 73, 106, 113, 113,
336 86, 46, 81, 82, 66, 97, 70, 98, 53, 85,
337 21, 110, 65, 69, 23, 4, 59, 64, 52, 68,
338 45, 11, 113, 33, 2, 5, 55, 57, 47, 75,
339 79, 77, 78, 76, 74, 49, 99, 48, 54, 20,
340 96, 42, 56, 27, 93, 41, 7, 91, 30, 95,
341 35, 58, 83, 90, 24, 25, 92, 50, 87, 40,
342 6, 26, 34, 8, 16, 9, 10, 32, 12, 14,
343 13, 29, 37, 15, 28, 94, 100, 102, 103, 43,
344 101, 17, 44, 18
Reid Spencere7c3c602006-11-30 06:36:44 +0000345
346 } ;
347
Reid Spencer16244f42006-12-01 21:10:07 +0000348static yyconst short int yy_accept[511] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000349 { 0,
350 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
351 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
352 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
353 60, 62, 64, 66, 68, 70, 72, 72, 73, 73,
354 74, 75, 76, 77, 77, 78, 78, 79, 80, 80,
355 81, 81, 81, 81, 81, 81, 81, 81, 81, 82,
356 82, 83, 83, 83, 83, 83, 83, 83, 83, 83,
357 83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
358 83, 83, 83, 83, 83, 83, 83, 83, 84, 84,
359 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
360
361 84, 84, 84, 85, 85, 85, 85, 85, 85, 85,
362 85, 85, 85, 85, 85, 85, 85, 85, 85, 86,
363 87, 89, 90, 91, 92, 92, 93, 94, 94, 94,
364 95, 95, 95, 96, 96, 97, 97, 97, 97, 98,
365 98, 98, 98, 98, 98, 98, 99, 99, 99, 100,
366 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
Reid Spencer16244f42006-12-01 21:10:07 +0000367 100, 101, 101, 101, 101, 101, 101, 101, 101, 101,
368 101, 102, 102, 102, 103, 103, 104, 105, 105, 105,
369 105, 105, 105, 105, 106, 106, 106, 106, 106, 106,
Reid Spencere7c3c602006-11-30 06:36:44 +0000370 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
371
372 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
Reid Spencer16244f42006-12-01 21:10:07 +0000373 107, 108, 108, 109, 110, 110, 110, 110, 111, 111,
374 111, 111, 112, 112, 113, 114, 115, 115, 115, 115,
Reid Spencere7c3c602006-11-30 06:36:44 +0000375 115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
Reid Spencer16244f42006-12-01 21:10:07 +0000376 115, 115, 116, 116, 117, 118, 118, 118, 118, 118,
377 118, 118, 118, 118, 118, 119, 120, 121, 121, 121,
378 122, 122, 122, 123, 123, 124, 124, 124, 124, 124,
379 124, 124, 124, 124, 124, 125, 125, 125, 126, 126,
380 126, 127, 128, 128, 129, 130, 130, 130, 130, 130,
381 131, 131, 131, 132, 132, 133, 133, 133, 134, 135,
Reid Spencere7c3c602006-11-30 06:36:44 +0000382
Reid Spencer16244f42006-12-01 21:10:07 +0000383 135, 135, 136, 136, 136, 136, 136, 136, 136, 136,
384 136, 136, 136, 136, 136, 136, 137, 137, 138, 138,
385 138, 138, 138, 138, 138, 139, 139, 139, 139, 139,
386 139, 139, 140, 140, 140, 141, 142, 143, 144, 145,
387 146, 147, 147, 147, 148, 148, 148, 148, 149, 150,
388 151, 151, 151, 151, 151, 151, 151, 151, 151, 152,
389 152, 153, 153, 153, 153, 153, 153, 153, 153, 154,
390 155, 156, 156, 156, 157, 157, 158, 158, 158, 158,
391 159, 159, 160, 161, 162, 163, 163, 163, 164, 164,
392 164, 165, 166, 167, 167, 168, 169, 170, 170, 170,
Reid Spencere7c3c602006-11-30 06:36:44 +0000393
Reid Spencer16244f42006-12-01 21:10:07 +0000394 170, 170, 170, 170, 171, 171, 172, 173, 173, 173,
395 173, 173, 173, 173, 173, 173, 173, 173, 173, 174,
396 174, 174, 174, 174, 174, 174, 174, 174, 175, 175,
397 175, 175, 175, 176, 176, 176, 176, 176, 177, 178,
398 178, 178, 178, 178, 179, 179, 179, 179, 180, 180,
399 181, 182, 182, 182, 182, 182, 182, 182, 182, 182,
400 182, 182, 182, 182, 183, 183, 183, 183, 183, 183,
401 183, 183, 184, 184, 184, 184, 184, 185, 185, 185,
402 185, 185, 186, 186, 187, 187, 187, 187, 187, 187,
403 187, 187, 187, 187, 187, 187, 187, 188, 188, 189,
Reid Spencere7c3c602006-11-30 06:36:44 +0000404
Reid Spencer16244f42006-12-01 21:10:07 +0000405 190, 190, 191, 191, 192, 193, 194, 194, 195, 195
Reid Spencere7c3c602006-11-30 06:36:44 +0000406 } ;
407
408static yyconst int yy_ec[256] =
409 { 0,
410 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
411 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
412 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
413 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
414 1, 1, 7, 1, 8, 9, 1, 10, 11, 11,
415 11, 11, 11, 12, 11, 13, 11, 14, 15, 1,
416 1, 1, 1, 1, 16, 16, 16, 16, 17, 16,
417 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
418 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
419 1, 1, 1, 1, 18, 1, 19, 20, 21, 22,
420
421 23, 24, 25, 26, 27, 5, 28, 29, 30, 31,
422 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
423 42, 43, 1, 1, 1, 1, 1, 1, 1, 1,
424 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
425 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
426 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
427 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
428 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
429 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
430 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
431
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
438 } ;
439
440static yyconst int yy_meta[44] =
441 { 0,
442 1, 1, 2, 1, 3, 1, 1, 3, 3, 3,
443 3, 3, 3, 4, 1, 3, 3, 3, 3, 3,
444 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
445 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
446 3, 3, 3
447 } ;
448
Reid Spencer16244f42006-12-01 21:10:07 +0000449static yyconst short int yy_base[515] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000450 { 0,
Reid Spencer16244f42006-12-01 21:10:07 +0000451 0, 0, 1108, 1109, 1109, 1109, 1103, 1092, 36, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000452 44, 50, 56, 62, 0, 63, 66, 81, 89, 47,
453 100, 97, 76, 96, 111, 46, 48, 110, 68, 140,
Reid Spencer16244f42006-12-01 21:10:07 +0000454 126, 171, 119, 123, 73, 125, 1101, 1109, 1090, 1109,
Reid Spencere7c3c602006-11-30 06:36:44 +0000455 0, 159, 176, 199, 204, 95, 209, 224, 229, 0,
Reid Spencer16244f42006-12-01 21:10:07 +0000456 130, 165, 133, 120, 169, 151, 159, 31, 1089, 168,
457 143, 230, 189, 191, 233, 117, 145, 187, 241, 243,
458 242, 246, 244, 251, 248, 254, 255, 253, 176, 256,
459 263, 258, 267, 261, 277, 281, 283, 1088, 284, 285,
460 286, 287, 265, 290, 300, 295, 291, 308, 294, 305,
Reid Spencere7c3c602006-11-30 06:36:44 +0000461
Reid Spencer16244f42006-12-01 21:10:07 +0000462 316, 318, 1087, 320, 306, 304, 321, 324, 322, 327,
463 328, 289, 213, 330, 342, 338, 346, 349, 1086, 0,
464 358, 362, 1085, 376, 393, 0, 1084, 351, 350, 1083,
465 369, 363, 1082, 364, 1081, 366, 380, 382, 1080, 388,
466 394, 397, 398, 399, 400, 1079, 404, 401, 408, 402,
467 409, 410, 412, 419, 420, 422, 424, 423, 426, 427,
468 428, 434, 439, 113, 440, 442, 443, 445, 446, 447,
469 1078, 449, 453, 1077, 451, 1076, 1075, 478, 455, 457,
470 456, 458, 489, 1074, 469, 460, 492, 491, 472, 1073,
471 494, 495, 497, 496, 502, 503, 499, 505, 509, 514,
Reid Spencere7c3c602006-11-30 06:36:44 +0000472
Reid Spencer16244f42006-12-01 21:10:07 +0000473 516, 518, 513, 519, 520, 523, 521, 534, 533, 536,
474 1072, 524, 1109, 547, 555, 561, 565, 570, 555, 571,
475 573, 1071, 574, 1070, 1069, 1068, 575, 576, 577, 579,
476 580, 583, 581, 586, 588, 584, 587, 592, 593, 595,
477 605, 1067, 597, 1066, 1065, 601, 609, 610, 607, 611,
478 615, 618, 617, 621, 1064, 1063, 1062, 622, 623, 1061,
479 624, 626, 0, 625, 1060, 630, 637, 627, 641, 642,
480 645, 639, 646, 652, 1059, 657, 653, 1058, 658, 655,
481 1057, 1056, 659, 1055, 1054, 663, 669, 671, 672, 1053,
482 673, 675, 1052, 677, 1051, 680, 678, 685, 1050, 687,
Reid Spencere7c3c602006-11-30 06:36:44 +0000483
Reid Spencer16244f42006-12-01 21:10:07 +0000484 685, 1049, 688, 698, 697, 701, 686, 459, 699, 705,
485 708, 709, 710, 711, 712, 1048, 713, 1047, 714, 715,
486 716, 721, 722, 725, 1046, 729, 727, 731, 740, 741,
487 742, 1045, 735, 737, 1044, 1043, 1042, 1041, 1040, 1039,
488 1038, 743, 745, 1037, 747, 748, 752, 1036, 1035, 1034,
489 756, 754, 757, 764, 765, 767, 766, 768, 1033, 769,
490 1032, 770, 774, 773, 777, 776, 779, 784, 1031, 1030,
491 1029, 788, 783, 1028, 791, 1027, 790, 794, 795, 1026,
492 804, 1025, 1024, 1023, 1022, 796, 805, 1021, 809, 810,
493 1020, 1019, 1018, 812, 1017, 1016, 1015, 808, 813, 819,
Reid Spencere7c3c602006-11-30 06:36:44 +0000494
Reid Spencer16244f42006-12-01 21:10:07 +0000495 815, 814, 816, 1014, 825, 1013, 1012, 821, 826, 326,
496 829, 832, 836, 833, 834, 837, 846, 838, 1011, 840,
497 848, 851, 853, 854, 859, 858, 861, 1010, 863, 867,
498 868, 864, 1009, 869, 871, 870, 874, 1008, 1005, 876,
499 885, 875, 880, 995, 892, 895, 896, 993, 878, 992,
500 991, 897, 898, 903, 905, 904, 879, 906, 911, 912,
501 914, 915, 916, 990, 917, 922, 918, 923, 924, 932,
502 925, 988, 935, 928, 936, 939, 987, 940, 929, 942,
503 945, 983, 947, 982, 953, 950, 956, 958, 959, 960,
504 961, 964, 963, 966, 967, 971, 979, 972, 830, 631,
Reid Spencere7c3c602006-11-30 06:36:44 +0000505
Reid Spencer16244f42006-12-01 21:10:07 +0000506 974, 541, 977, 537, 462, 383, 976, 216, 1109, 1011,
507 1013, 226, 1017, 76
Reid Spencere7c3c602006-11-30 06:36:44 +0000508 } ;
509
Reid Spencer16244f42006-12-01 21:10:07 +0000510static yyconst short int yy_def[515] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000511 { 0,
Reid Spencer16244f42006-12-01 21:10:07 +0000512 509, 1, 509, 509, 509, 509, 510, 511, 512, 509,
513 511, 511, 511, 511, 513, 511, 511, 511, 511, 511,
514 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
515 511, 511, 511, 511, 511, 511, 510, 509, 511, 509,
516 514, 514, 509, 509, 511, 511, 511, 511, 511, 513,
517 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
518 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
519 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
520 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
521 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
Reid Spencere7c3c602006-11-30 06:36:44 +0000522
Reid Spencer16244f42006-12-01 21:10:07 +0000523 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
524 511, 511, 511, 511, 511, 511, 511, 511, 509, 514,
525 514, 509, 511, 511, 511, 49, 511, 511, 511, 511,
526 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
527 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
528 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
529 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
530 511, 511, 511, 511, 511, 511, 511, 49, 511, 511,
531 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
532 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
Reid Spencere7c3c602006-11-30 06:36:44 +0000533
Reid Spencer16244f42006-12-01 21:10:07 +0000534 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
535 511, 511, 509, 509, 509, 509, 511, 511, 511, 511,
536 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
537 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
538 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
539 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
540 511, 511, 178, 511, 511, 511, 511, 511, 511, 511,
541 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
542 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
543 511, 511, 511, 511, 511, 511, 511, 509, 511, 511,
Reid Spencere7c3c602006-11-30 06:36:44 +0000544
Reid Spencer16244f42006-12-01 21:10:07 +0000545 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
546 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
547 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
548 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
549 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
550 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
551 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
552 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
553 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
554 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
Reid Spencere7c3c602006-11-30 06:36:44 +0000555
Reid Spencer16244f42006-12-01 21:10:07 +0000556 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
557 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
558 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
559 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
560 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
561 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
562 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
563 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
564 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
565 511, 511, 511, 511, 511, 511, 511, 511, 511, 511,
Reid Spencere7c3c602006-11-30 06:36:44 +0000566
Reid Spencer16244f42006-12-01 21:10:07 +0000567 511, 511, 511, 511, 511, 511, 511, 511, 0, 509,
568 509, 509, 509, 509
Reid Spencere7c3c602006-11-30 06:36:44 +0000569 } ;
570
Reid Spencer16244f42006-12-01 21:10:07 +0000571static yyconst short int yy_nxt[1153] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000572 { 0,
573 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
574 14, 14, 14, 4, 15, 8, 8, 8, 16, 17,
575 18, 19, 20, 21, 22, 8, 23, 8, 24, 25,
576 26, 27, 28, 8, 29, 30, 31, 32, 33, 34,
577 35, 8, 36, 42, 40, 43, 43, 43, 43, 44,
578 44, 44, 44, 45, 45, 45, 45, 40, 46, 40,
579 40, 40, 136, 40, 47, 48, 48, 48, 48, 40,
580 47, 48, 48, 48, 48, 40, 40, 69, 120, 40,
581 87, 40, 88, 86, 51, 116, 40, 70, 56, 40,
582 91, 52, 57, 53, 40, 54, 49, 58, 55, 60,
583
584 59, 61, 40, 123, 117, 77, 78, 64, 40, 40,
585 40, 65, 62, 40, 79, 66, 63, 67, 71, 75,
586 68, 72, 80, 40, 40, 76, 40, 81, 73, 83,
587 40, 82, 40, 40, 74, 89, 40, 113, 40, 40,
Reid Spencer16244f42006-12-01 21:10:07 +0000588 253, 90, 84, 40, 102, 115, 40, 118, 85, 92,
Reid Spencere7c3c602006-11-30 06:36:44 +0000589 114, 127, 131, 40, 130, 146, 40, 103, 40, 93,
590 104, 94, 95, 139, 40, 96, 97, 105, 121, 121,
591 121, 121, 40, 147, 98, 134, 99, 100, 40, 101,
592 92, 40, 40, 135, 40, 43, 43, 43, 43, 40,
Reid Spencer16244f42006-12-01 21:10:07 +0000593 106, 128, 107, 129, 132, 163, 137, 108, 133, 109,
Reid Spencere7c3c602006-11-30 06:36:44 +0000594
595 40, 110, 40, 138, 40, 111, 112, 122, 44, 44,
596 44, 44, 47, 45, 45, 45, 45, 40, 124, 124,
597 124, 124, 40, 142, 148, 125, 40, 143, 41, 40,
Reid Spencer16244f42006-12-01 21:10:07 +0000598 206, 125, 47, 48, 48, 48, 48, 40, 126, 126,
Reid Spencere7c3c602006-11-30 06:36:44 +0000599 126, 126, 40, 40, 126, 126, 40, 126, 126, 126,
600 126, 126, 126, 144, 40, 40, 40, 40, 140, 40,
Reid Spencer16244f42006-12-01 21:10:07 +0000601 141, 40, 149, 150, 40, 145, 40, 40, 40, 40,
602 152, 40, 154, 156, 40, 155, 40, 153, 40, 151,
603 40, 166, 170, 168, 157, 158, 164, 159, 160, 161,
604 40, 162, 165, 167, 40, 169, 40, 40, 40, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000605
Reid Spencer16244f42006-12-01 21:10:07 +0000606 40, 173, 40, 40, 40, 171, 179, 40, 40, 172,
607 174, 175, 187, 40, 205, 176, 180, 40, 40, 40,
608 181, 40, 177, 184, 190, 189, 185, 178, 182, 40,
609 188, 40, 186, 40, 40, 40, 183, 40, 196, 40,
610 40, 40, 191, 40, 192, 197, 194, 198, 201, 210,
611 204, 40, 193, 200, 199, 40, 207, 195, 208, 40,
612 209, 202, 40, 40, 40, 432, 203, 121, 121, 121,
613 121, 214, 214, 214, 214, 219, 40, 40, 215, 40,
614 211, 220, 40, 212, 215, 124, 124, 124, 124, 40,
615 223, 221, 125, 40, 224, 40, 40, 222, 125, 216,
Reid Spencere7c3c602006-11-30 06:36:44 +0000616
Reid Spencer16244f42006-12-01 21:10:07 +0000617 217, 40, 218, 218, 218, 218, 40, 40, 225, 227,
618 40, 40, 40, 40, 40, 40, 230, 40, 226, 229,
619 235, 40, 40, 40, 237, 40, 233, 231, 232, 228,
620 234, 238, 40, 40, 236, 40, 40, 40, 243, 40,
621 40, 40, 247, 239, 244, 240, 246, 40, 241, 249,
622 250, 245, 40, 40, 248, 40, 40, 242, 40, 40,
623 40, 252, 40, 255, 40, 251, 40, 256, 40, 40,
624 40, 40, 40, 40, 258, 40, 254, 260, 366, 257,
625 267, 262, 40, 273, 259, 40, 261, 263, 263, 263,
626 263, 264, 266, 263, 263, 265, 263, 263, 263, 263,
Reid Spencere7c3c602006-11-30 06:36:44 +0000627
Reid Spencer16244f42006-12-01 21:10:07 +0000628 263, 263, 40, 272, 40, 40, 276, 40, 40, 40,
629 40, 268, 40, 269, 274, 40, 40, 270, 40, 271,
630 275, 279, 40, 278, 281, 282, 40, 40, 280, 40,
631 277, 40, 40, 40, 40, 283, 40, 40, 287, 289,
632 288, 292, 293, 284, 286, 285, 40, 40, 290, 40,
633 40, 291, 294, 296, 40, 297, 214, 214, 214, 214,
634 295, 216, 216, 215, 298, 298, 298, 298, 40, 215,
635 298, 298, 298, 298, 218, 218, 218, 218, 40, 218,
636 218, 218, 218, 40, 40, 299, 40, 40, 40, 40,
637 40, 300, 40, 40, 40, 303, 40, 40, 307, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000638
Reid Spencer16244f42006-12-01 21:10:07 +0000639 40, 40, 312, 301, 302, 40, 40, 306, 40, 308,
640 40, 315, 304, 305, 40, 310, 311, 316, 40, 313,
641 40, 309, 40, 40, 40, 317, 314, 320, 40, 319,
642 40, 40, 321, 318, 40, 40, 40, 40, 40, 40,
643 40, 322, 324, 40, 40, 323, 325, 332, 326, 327,
644 40, 329, 40, 328, 40, 40, 333, 334, 40, 40,
645 335, 330, 331, 336, 338, 40, 40, 340, 40, 342,
646 40, 40, 40, 345, 343, 341, 40, 337, 339, 344,
647 346, 348, 40, 347, 40, 40, 40, 349, 40, 351,
648 40, 40, 350, 40, 298, 298, 298, 298, 40, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000649
Reid Spencer16244f42006-12-01 21:10:07 +0000650 40, 40, 352, 356, 358, 359, 360, 353, 361, 354,
651 40, 40, 40, 355, 40, 357, 362, 363, 40, 364,
652 365, 40, 40, 40, 40, 40, 40, 40, 40, 40,
653 369, 367, 373, 374, 40, 40, 375, 368, 40, 370,
654 40, 372, 40, 376, 40, 377, 371, 380, 40, 382,
655 40, 383, 379, 40, 40, 40, 40, 378, 40, 381,
656 40, 40, 384, 385, 386, 40, 387, 40, 390, 40,
657 40, 389, 391, 388, 393, 395, 394, 40, 40, 40,
658 40, 40, 40, 40, 392, 399, 40, 40, 397, 40,
659 40, 398, 40, 396, 404, 402, 40, 40, 401, 406,
Reid Spencere7c3c602006-11-30 06:36:44 +0000660
Reid Spencer16244f42006-12-01 21:10:07 +0000661 403, 40, 400, 40, 40, 410, 411, 40, 40, 40,
662 408, 407, 414, 416, 405, 409, 415, 40, 40, 412,
663 413, 40, 40, 40, 417, 40, 40, 40, 40, 40,
664 418, 420, 40, 421, 40, 419, 423, 422, 40, 40,
665 425, 426, 40, 40, 427, 40, 40, 40, 424, 40,
666 40, 40, 428, 40, 434, 430, 429, 433, 435, 40,
667 431, 40, 437, 436, 40, 438, 40, 40, 439, 443,
668 442, 40, 40, 440, 40, 444, 40, 40, 441, 446,
669 40, 40, 40, 40, 40, 448, 452, 40, 40, 40,
670 445, 40, 40, 40, 447, 459, 456, 453, 40, 460,
Reid Spencere7c3c602006-11-30 06:36:44 +0000671
Reid Spencer16244f42006-12-01 21:10:07 +0000672 449, 454, 457, 450, 451, 40, 455, 458, 40, 40,
673 40, 40, 461, 462, 464, 465, 40, 40, 40, 40,
674 466, 470, 463, 468, 40, 40, 471, 40, 40, 40,
675 40, 40, 474, 469, 476, 40, 40, 40, 40, 467,
676 473, 40, 40, 475, 477, 40, 481, 472, 40, 40,
677 479, 478, 40, 40, 482, 40, 485, 484, 40, 480,
678 40, 483, 488, 40, 486, 489, 40, 487, 490, 40,
679 494, 40, 40, 40, 40, 491, 40, 40, 492, 40,
680 40, 493, 495, 501, 40, 40, 502, 40, 496, 40,
681 40, 498, 40, 497, 506, 40, 40, 499, 500, 507,
Reid Spencere7c3c602006-11-30 06:36:44 +0000682
Reid Spencer16244f42006-12-01 21:10:07 +0000683 40, 40, 505, 40, 40, 40, 40, 504, 40, 503,
684 508, 37, 37, 37, 37, 39, 39, 50, 40, 50,
685 50, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000686 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
687 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
688 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
689 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
690 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
691 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencer16244f42006-12-01 21:10:07 +0000692 40, 40, 40, 40, 40, 40, 40, 40, 40, 213,
Reid Spencere7c3c602006-11-30 06:36:44 +0000693
Reid Spencer16244f42006-12-01 21:10:07 +0000694 40, 40, 40, 40, 119, 40, 38, 509, 3, 509,
695 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
696 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
697 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
698 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
699 509, 509
Reid Spencere7c3c602006-11-30 06:36:44 +0000700 } ;
701
Reid Spencer16244f42006-12-01 21:10:07 +0000702static yyconst short int yy_chk[1153] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000703 { 0,
704 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
705 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
706 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
707 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
708 1, 1, 1, 9, 58, 9, 9, 9, 9, 10,
709 10, 10, 10, 11, 11, 11, 11, 11, 12, 26,
710 20, 27, 58, 12, 13, 13, 13, 13, 13, 13,
Reid Spencer16244f42006-12-01 21:10:07 +0000711 14, 14, 14, 14, 14, 14, 16, 20, 514, 17,
Reid Spencere7c3c602006-11-30 06:36:44 +0000712 27, 29, 27, 26, 16, 35, 35, 20, 17, 23,
713 29, 16, 17, 16, 18, 16, 13, 17, 16, 18,
714
715 17, 18, 19, 46, 35, 23, 23, 19, 46, 24,
716 22, 19, 18, 21, 24, 19, 18, 19, 21, 22,
Reid Spencer16244f42006-12-01 21:10:07 +0000717 19, 21, 24, 28, 25, 22, 164, 24, 21, 25,
Reid Spencere7c3c602006-11-30 06:36:44 +0000718 66, 24, 33, 54, 21, 28, 34, 33, 36, 31,
Reid Spencer16244f42006-12-01 21:10:07 +0000719 164, 28, 25, 51, 31, 34, 53, 36, 25, 30,
Reid Spencere7c3c602006-11-30 06:36:44 +0000720 33, 51, 54, 30, 53, 66, 61, 31, 67, 30,
721 31, 30, 30, 61, 56, 30, 30, 31, 42, 42,
722 42, 42, 57, 67, 30, 56, 30, 30, 52, 30,
723 32, 60, 55, 57, 32, 43, 43, 43, 43, 79,
724 32, 52, 32, 52, 55, 79, 60, 32, 55, 32,
725
726 68, 32, 63, 60, 64, 32, 32, 44, 44, 44,
727 44, 44, 45, 45, 45, 45, 45, 45, 47, 47,
Reid Spencer16244f42006-12-01 21:10:07 +0000728 47, 47, 47, 63, 68, 47, 113, 64, 512, 508,
Reid Spencere7c3c602006-11-30 06:36:44 +0000729 113, 47, 48, 48, 48, 48, 48, 48, 49, 49,
730 49, 49, 49, 62, 49, 49, 65, 49, 49, 49,
Reid Spencer16244f42006-12-01 21:10:07 +0000731 49, 49, 49, 65, 69, 71, 70, 73, 62, 72,
732 62, 75, 69, 70, 74, 65, 78, 76, 77, 80,
733 71, 82, 72, 74, 84, 73, 81, 71, 93, 70,
734 83, 81, 84, 82, 75, 76, 80, 77, 78, 78,
735 85, 78, 80, 81, 86, 83, 87, 89, 90, 91,
Reid Spencere7c3c602006-11-30 06:36:44 +0000736
Reid Spencer16244f42006-12-01 21:10:07 +0000737 92, 87, 112, 94, 97, 85, 93, 99, 96, 86,
738 89, 90, 97, 95, 112, 91, 94, 106, 100, 105,
739 95, 98, 91, 96, 100, 99, 96, 92, 95, 101,
740 98, 102, 96, 104, 107, 109, 95, 108, 105, 410,
741 110, 111, 101, 114, 102, 106, 104, 107, 110, 116,
742 111, 116, 102, 109, 108, 115, 114, 104, 114, 117,
743 115, 110, 118, 129, 128, 410, 110, 121, 121, 121,
744 121, 122, 122, 122, 122, 128, 132, 134, 122, 136,
745 117, 129, 131, 118, 122, 124, 124, 124, 124, 124,
746 134, 131, 124, 137, 136, 138, 506, 132, 124, 125,
Reid Spencere7c3c602006-11-30 06:36:44 +0000747
Reid Spencer16244f42006-12-01 21:10:07 +0000748 125, 140, 125, 125, 125, 125, 125, 141, 137, 140,
749 142, 143, 144, 145, 148, 150, 143, 147, 138, 142,
750 148, 149, 151, 152, 150, 153, 147, 144, 145, 141,
751 147, 151, 154, 155, 149, 156, 158, 157, 155, 159,
752 160, 161, 158, 151, 156, 152, 157, 162, 153, 160,
753 161, 156, 163, 165, 159, 166, 167, 154, 168, 169,
754 170, 163, 172, 166, 175, 162, 173, 167, 179, 181,
755 180, 182, 308, 186, 169, 505, 165, 172, 308, 168,
756 182, 175, 185, 186, 170, 189, 173, 178, 178, 178,
757 178, 179, 181, 178, 178, 180, 178, 178, 178, 178,
Reid Spencere7c3c602006-11-30 06:36:44 +0000758
Reid Spencer16244f42006-12-01 21:10:07 +0000759 178, 178, 183, 185, 188, 187, 189, 191, 192, 194,
760 193, 183, 197, 183, 187, 195, 196, 183, 198, 183,
761 188, 193, 199, 192, 195, 196, 203, 200, 194, 201,
762 191, 202, 204, 205, 207, 197, 206, 212, 201, 203,
763 202, 206, 207, 198, 200, 199, 209, 208, 204, 210,
764 504, 205, 208, 210, 502, 212, 214, 214, 214, 214,
765 209, 215, 215, 214, 215, 215, 215, 215, 219, 214,
766 216, 216, 216, 216, 217, 217, 217, 217, 217, 218,
767 218, 218, 218, 218, 220, 219, 221, 223, 227, 228,
768 229, 220, 230, 231, 233, 227, 232, 236, 231, 234,
Reid Spencere7c3c602006-11-30 06:36:44 +0000769
Reid Spencer16244f42006-12-01 21:10:07 +0000770 237, 235, 236, 221, 223, 238, 239, 230, 240, 232,
771 243, 239, 228, 229, 246, 234, 235, 240, 241, 237,
772 249, 233, 247, 248, 250, 241, 238, 247, 251, 246,
773 253, 252, 248, 243, 254, 258, 259, 261, 264, 262,
774 268, 249, 251, 266, 500, 250, 252, 264, 253, 254,
775 267, 259, 272, 258, 269, 270, 266, 267, 271, 273,
776 268, 261, 262, 269, 270, 274, 277, 271, 280, 273,
777 276, 279, 283, 277, 274, 272, 286, 269, 270, 276,
778 279, 283, 287, 280, 288, 289, 291, 286, 292, 288,
779 294, 297, 287, 296, 298, 298, 298, 298, 301, 307,
Reid Spencere7c3c602006-11-30 06:36:44 +0000780
Reid Spencer16244f42006-12-01 21:10:07 +0000781 300, 303, 289, 296, 297, 300, 301, 291, 303, 292,
782 305, 304, 309, 294, 306, 296, 304, 305, 310, 306,
783 307, 311, 312, 313, 314, 315, 317, 319, 320, 321,
784 311, 309, 315, 317, 322, 323, 319, 310, 324, 312,
785 327, 314, 326, 320, 328, 321, 313, 324, 333, 327,
786 334, 328, 323, 329, 330, 331, 342, 322, 343, 326,
787 345, 346, 329, 330, 331, 347, 333, 352, 343, 351,
788 353, 342, 345, 334, 347, 352, 351, 354, 355, 357,
789 356, 358, 360, 362, 346, 356, 364, 363, 354, 366,
790 365, 355, 367, 353, 363, 360, 373, 368, 358, 365,
Reid Spencere7c3c602006-11-30 06:36:44 +0000791
Reid Spencer16244f42006-12-01 21:10:07 +0000792 362, 372, 357, 377, 375, 372, 372, 378, 379, 386,
793 367, 366, 377, 379, 364, 368, 378, 381, 387, 373,
794 375, 398, 389, 390, 381, 394, 399, 402, 401, 403,
795 386, 389, 400, 390, 408, 387, 398, 394, 405, 409,
796 400, 401, 411, 499, 402, 412, 414, 415, 399, 413,
797 416, 418, 403, 420, 412, 408, 405, 411, 413, 417,
798 409, 421, 415, 414, 422, 416, 423, 424, 417, 422,
799 421, 426, 425, 418, 427, 423, 429, 432, 420, 425,
800 430, 431, 434, 436, 435, 427, 432, 437, 442, 440,
801 424, 449, 457, 443, 426, 442, 437, 434, 441, 443,
Reid Spencere7c3c602006-11-30 06:36:44 +0000802
Reid Spencer16244f42006-12-01 21:10:07 +0000803 429, 435, 440, 430, 431, 445, 436, 441, 446, 447,
804 452, 453, 445, 446, 449, 452, 454, 456, 455, 458,
805 453, 457, 447, 455, 459, 460, 458, 461, 462, 463,
806 465, 467, 461, 456, 463, 466, 468, 469, 471, 454,
807 460, 474, 479, 462, 465, 470, 469, 459, 473, 475,
808 467, 466, 476, 478, 470, 480, 474, 473, 481, 468,
809 483, 471, 478, 486, 475, 479, 485, 476, 480, 487,
810 486, 488, 489, 490, 491, 481, 493, 492, 483, 494,
811 495, 485, 487, 493, 496, 498, 494, 501, 488, 507,
812 503, 490, 497, 489, 501, 484, 482, 491, 492, 503,
Reid Spencere7c3c602006-11-30 06:36:44 +0000813
Reid Spencer16244f42006-12-01 21:10:07 +0000814 477, 472, 498, 464, 451, 450, 448, 496, 444, 495,
815 507, 510, 510, 510, 510, 511, 511, 513, 439, 513,
816 513, 438, 433, 428, 419, 407, 406, 404, 397, 396,
817 395, 393, 392, 391, 388, 385, 384, 383, 382, 380,
818 376, 374, 371, 370, 369, 361, 359, 350, 349, 348,
819 344, 341, 340, 339, 338, 337, 336, 335, 332, 325,
820 318, 316, 302, 299, 295, 293, 290, 285, 284, 282,
821 281, 278, 275, 265, 260, 257, 256, 255, 245, 244,
822 242, 226, 225, 224, 222, 211, 190, 184, 177, 176,
823 174, 171, 146, 139, 135, 133, 130, 127, 123, 119,
Reid Spencere7c3c602006-11-30 06:36:44 +0000824
Reid Spencer16244f42006-12-01 21:10:07 +0000825 103, 88, 59, 39, 37, 8, 7, 3, 509, 509,
826 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
827 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
828 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
829 509, 509, 509, 509, 509, 509, 509, 509, 509, 509,
830 509, 509
Reid Spencere7c3c602006-11-30 06:36:44 +0000831 } ;
832
833static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
834static char *yy_full_match;
835static int yy_lp;
836#define REJECT \
837{ \
838*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
839yy_cp = yy_full_match; /* restore poss. backed-over text */ \
840++yy_lp; \
841goto find_rule; \
842}
843#define yymore() yymore_used_but_not_detected
844#define YY_MORE_ADJ 0
845#define YY_RESTORE_YY_MORE_OFFSET
846char *yytext;
847#line 1 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
848#define INITIAL 0
Reid Spencer96839be2006-11-30 16:50:26 +0000849/*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===//
Reid Spencere7c3c602006-11-30 06:36:44 +0000850//
851// The LLVM Compiler Infrastructure
852//
Reid Spencer96839be2006-11-30 16:50:26 +0000853// This file was developed by Reid Spencer and is distributed under the
854// University of Illinois Open Source License. See LICENSE.TXT for details.
Reid Spencere7c3c602006-11-30 06:36:44 +0000855//
856//===----------------------------------------------------------------------===//
857//
Reid Spencer96839be2006-11-30 16:50:26 +0000858// This file implements the flex scanner for LLVM 1.9 assembly languages files.
Reid Spencere7c3c602006-11-30 06:36:44 +0000859//
860//===----------------------------------------------------------------------===*/
861#define YY_NEVER_INTERACTIVE 1
862#line 28 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
863
864#include "ParserInternals.h"
Reid Spencere7c3c602006-11-30 06:36:44 +0000865#include "UpgradeParser.h"
866#include <cctype>
867#include <cstdlib>
868
Reid Spencer96839be2006-11-30 16:50:26 +0000869#define YY_INPUT(buf,result,max_size) \
870{ \
871 if (LexInput->good() && !LexInput->eof()) { \
872 LexInput->read(buf,max_size); \
873 result = LexInput->gcount(); \
874 } else {\
875 result = YY_NULL; \
876 } \
877}
878
879
Reid Spencere7c3c602006-11-30 06:36:44 +0000880// Construct a token value for a non-obsolete token
881#define RET_TOK(sym) \
Reid Spencere77e35e2006-12-01 20:26:20 +0000882 Upgradelval.String = new std::string(yytext); \
883 return sym
884
885#define RET_TY(sym,OldTY,NewTY,sign) \
886 Upgradelval.Type.newTy = new std::string(NewTY); \
887 Upgradelval.Type.oldTy = OldTY; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000888 return sym
889
890#define YY_NEVER_INTERACTIVE 1
891/* Comments start with a ; and go till end of line */
892/* Variable(Value) identifiers start with a % sign */
893/* Label identifiers end with a colon */
894/* Quoted names can contain any character except " and \ */
895/* [PN]Integer: match positive and negative literal integer values that
896 * are preceeded by a '%' character. These represent unnamed variable slots.
897 */
898/* E[PN]Integer: match positive and negative literal integer values */
899/* FPConstant - A Floating point constant.
900 */
901/* HexFPConstant - Floating point constant represented in IEEE format as a
902 * hexadecimal number for when exponential notation is not precise enough.
903 */
904/* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
905 * it to deal with 64 bit numbers.
906 */
Reid Spencer16244f42006-12-01 21:10:07 +0000907#line 908 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +0000908
909/* Macros after this point can all be overridden by user definitions in
910 * section 1.
911 */
912
913#ifndef YY_SKIP_YYWRAP
914#ifdef __cplusplus
915extern "C" int yywrap YY_PROTO(( void ));
916#else
917extern int yywrap YY_PROTO(( void ));
918#endif
919#endif
920
921#ifndef YY_NO_UNPUT
922static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
923#endif
924
925#ifndef yytext_ptr
926static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
927#endif
928
929#ifdef YY_NEED_STRLEN
930static int yy_flex_strlen YY_PROTO(( yyconst char * ));
931#endif
932
933#ifndef YY_NO_INPUT
934#ifdef __cplusplus
935static int yyinput YY_PROTO(( void ));
936#else
937static int input YY_PROTO(( void ));
938#endif
939#endif
940
941#if YY_STACK_USED
942static int yy_start_stack_ptr = 0;
943static int yy_start_stack_depth = 0;
944static int *yy_start_stack = 0;
945#ifndef YY_NO_PUSH_STATE
946static void yy_push_state YY_PROTO(( int new_state ));
947#endif
948#ifndef YY_NO_POP_STATE
949static void yy_pop_state YY_PROTO(( void ));
950#endif
951#ifndef YY_NO_TOP_STATE
952static int yy_top_state YY_PROTO(( void ));
953#endif
954
955#else
956#define YY_NO_PUSH_STATE 1
957#define YY_NO_POP_STATE 1
958#define YY_NO_TOP_STATE 1
959#endif
960
961#ifdef YY_MALLOC_DECL
962YY_MALLOC_DECL
963#else
964#if __STDC__
965#ifndef __cplusplus
966#include <stdlib.h>
967#endif
968#else
969/* Just try to get by without declaring the routines. This will fail
970 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
971 * or sizeof(void*) != sizeof(int).
972 */
973#endif
974#endif
975
976/* Amount of stuff to slurp up with each read. */
977#ifndef YY_READ_BUF_SIZE
978#define YY_READ_BUF_SIZE 8192
979#endif
980
981/* Copy whatever the last rule matched to the standard output. */
982
983#ifndef ECHO
984/* This used to be an fputs(), but since the string might contain NUL's,
985 * we now use fwrite().
986 */
987#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
988#endif
989
990/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
991 * is returned in "result".
992 */
993#ifndef YY_INPUT
994#define YY_INPUT(buf,result,max_size) \
995 if ( yy_current_buffer->yy_is_interactive ) \
996 { \
997 int c = '*', n; \
998 for ( n = 0; n < max_size && \
999 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1000 buf[n] = (char) c; \
1001 if ( c == '\n' ) \
1002 buf[n++] = (char) c; \
1003 if ( c == EOF && ferror( yyin ) ) \
1004 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1005 result = n; \
1006 } \
1007 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1008 && ferror( yyin ) ) \
1009 YY_FATAL_ERROR( "input in flex scanner failed" );
1010#endif
1011
1012/* No semi-colon after return; correct usage is to write "yyterminate();" -
1013 * we don't want an extra ';' after the "return" because that will cause
1014 * some compilers to complain about unreachable statements.
1015 */
1016#ifndef yyterminate
1017#define yyterminate() return YY_NULL
1018#endif
1019
1020/* Number of entries by which start-condition stack grows. */
1021#ifndef YY_START_STACK_INCR
1022#define YY_START_STACK_INCR 25
1023#endif
1024
1025/* Report a fatal error. */
1026#ifndef YY_FATAL_ERROR
1027#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1028#endif
1029
1030/* Default declaration of generated scanner - a define so the user can
1031 * easily add parameters.
1032 */
1033#ifndef YY_DECL
1034#define YY_DECL int yylex YY_PROTO(( void ))
1035#endif
1036
1037/* Code executed at the beginning of each rule, after yytext and yyleng
1038 * have been set up.
1039 */
1040#ifndef YY_USER_ACTION
1041#define YY_USER_ACTION
1042#endif
1043
1044/* Code executed at the end of each rule. */
1045#ifndef YY_BREAK
1046#define YY_BREAK break;
1047#endif
1048
1049#define YY_RULE_SETUP \
1050 YY_USER_ACTION
1051
1052YY_DECL
1053 {
1054 register yy_state_type yy_current_state;
1055 register char *yy_cp = NULL, *yy_bp = NULL;
1056 register int yy_act;
1057
Reid Spencere77e35e2006-12-01 20:26:20 +00001058#line 98 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001059
1060
Reid Spencer16244f42006-12-01 21:10:07 +00001061#line 1062 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00001062
1063 if ( yy_init )
1064 {
1065 yy_init = 0;
1066
1067#ifdef YY_USER_INIT
1068 YY_USER_INIT;
1069#endif
1070
1071 if ( ! yy_start )
1072 yy_start = 1; /* first start state */
1073
1074 if ( ! yyin )
1075 yyin = stdin;
1076
1077 if ( ! yyout )
1078 yyout = stdout;
1079
1080 if ( ! yy_current_buffer )
1081 yy_current_buffer =
1082 yy_create_buffer( yyin, YY_BUF_SIZE );
1083
1084 yy_load_buffer_state();
1085 }
1086
1087 while ( 1 ) /* loops until end-of-file is reached */
1088 {
1089 yy_cp = yy_c_buf_p;
1090
1091 /* Support of yytext. */
1092 *yy_cp = yy_hold_char;
1093
1094 /* yy_bp points to the position in yy_ch_buf of the start of
1095 * the current run.
1096 */
1097 yy_bp = yy_cp;
1098
1099 yy_current_state = yy_start;
1100 yy_state_ptr = yy_state_buf;
1101 *yy_state_ptr++ = yy_current_state;
1102yy_match:
1103 do
1104 {
1105 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1106 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1107 {
1108 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer16244f42006-12-01 21:10:07 +00001109 if ( yy_current_state >= 510 )
Reid Spencere7c3c602006-11-30 06:36:44 +00001110 yy_c = yy_meta[(unsigned int) yy_c];
1111 }
1112 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1113 *yy_state_ptr++ = yy_current_state;
1114 ++yy_cp;
1115 }
Reid Spencer16244f42006-12-01 21:10:07 +00001116 while ( yy_current_state != 509 );
Reid Spencere7c3c602006-11-30 06:36:44 +00001117
1118yy_find_action:
1119 yy_current_state = *--yy_state_ptr;
1120 yy_lp = yy_accept[yy_current_state];
1121find_rule: /* we branch to this label when backing up */
1122 for ( ; ; ) /* until we find what rule we matched */
1123 {
1124 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1125 {
1126 yy_act = yy_acclist[yy_lp];
1127 {
1128 yy_full_match = yy_cp;
1129 break;
1130 }
1131 }
1132 --yy_cp;
1133 yy_current_state = *--yy_state_ptr;
1134 yy_lp = yy_accept[yy_current_state];
1135 }
1136
1137 YY_DO_BEFORE_ACTION;
1138
1139 if ( yy_act != YY_END_OF_BUFFER )
1140 {
1141 int yyl;
1142 for ( yyl = 0; yyl < yyleng; ++yyl )
1143 if ( yytext[yyl] == '\n' )
1144 ++yylineno;
1145 }
1146
1147do_action: /* This label is used only to access EOF actions. */
1148
1149
1150 switch ( yy_act )
1151 { /* beginning of action switch */
1152case 1:
1153YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001154#line 100 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001155{ /* Ignore comments for now */ }
1156 YY_BREAK
1157case 2:
1158YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001159#line 102 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001160{ RET_TOK( BEGINTOK); }
1161 YY_BREAK
1162case 3:
1163YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001164#line 103 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001165{ RET_TOK( ENDTOK); }
1166 YY_BREAK
1167case 4:
1168YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001169#line 104 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001170{ RET_TOK( TRUETOK); }
1171 YY_BREAK
1172case 5:
1173YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001174#line 105 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001175{ RET_TOK( FALSETOK); }
1176 YY_BREAK
1177case 6:
1178YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001179#line 106 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001180{ RET_TOK( DECLARE); }
1181 YY_BREAK
1182case 7:
1183YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001184#line 107 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001185{ RET_TOK( GLOBAL); }
1186 YY_BREAK
1187case 8:
1188YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001189#line 108 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001190{ RET_TOK( CONSTANT); }
1191 YY_BREAK
1192case 9:
1193YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001194#line 109 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001195{ RET_TOK( INTERNAL); }
1196 YY_BREAK
1197case 10:
1198YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001199#line 110 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001200{ RET_TOK( LINKONCE); }
1201 YY_BREAK
1202case 11:
1203YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001204#line 111 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001205{ RET_TOK( WEAK); }
1206 YY_BREAK
1207case 12:
1208YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001209#line 112 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001210{ RET_TOK( APPENDING); }
1211 YY_BREAK
1212case 13:
1213YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001214#line 113 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001215{ RET_TOK( DLLIMPORT); }
1216 YY_BREAK
1217case 14:
1218YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001219#line 114 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001220{ RET_TOK( DLLEXPORT); }
1221 YY_BREAK
1222case 15:
1223YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001224#line 115 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001225{ RET_TOK( EXTERN_WEAK); }
1226 YY_BREAK
1227case 16:
1228YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001229#line 116 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001230{ RET_TOK( EXTERNAL); }
1231 YY_BREAK
1232case 17:
1233YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001234#line 117 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001235{ RET_TOK( IMPLEMENTATION); }
1236 YY_BREAK
1237case 18:
1238YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001239#line 118 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001240{ RET_TOK( ZEROINITIALIZER); }
1241 YY_BREAK
1242case 19:
1243YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001244#line 119 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001245{ RET_TOK( DOTDOTDOT); }
1246 YY_BREAK
1247case 20:
1248YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001249#line 120 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001250{ RET_TOK( UNDEF); }
1251 YY_BREAK
1252case 21:
1253YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001254#line 121 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001255{ RET_TOK( NULL_TOK); }
1256 YY_BREAK
1257case 22:
1258YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001259#line 122 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001260{ RET_TOK( TO); }
1261 YY_BREAK
1262case 23:
1263YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001264#line 123 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001265{ RET_TOK( TAIL); }
1266 YY_BREAK
1267case 24:
1268YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001269#line 124 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001270{ RET_TOK( TARGET); }
1271 YY_BREAK
1272case 25:
1273YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001274#line 125 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001275{ RET_TOK( TRIPLE); }
1276 YY_BREAK
1277case 26:
1278YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001279#line 126 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001280{ RET_TOK( DEPLIBS); }
1281 YY_BREAK
1282case 27:
1283YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001284#line 127 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001285{ RET_TOK( ENDIAN); }
1286 YY_BREAK
1287case 28:
1288YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001289#line 128 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001290{ RET_TOK( POINTERSIZE); }
1291 YY_BREAK
1292case 29:
1293YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001294#line 129 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001295{ RET_TOK( DATALAYOUT); }
1296 YY_BREAK
1297case 30:
1298YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001299#line 130 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001300{ RET_TOK( LITTLE); }
1301 YY_BREAK
1302case 31:
1303YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001304#line 131 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001305{ RET_TOK( BIG); }
1306 YY_BREAK
1307case 32:
1308YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001309#line 132 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001310{ RET_TOK( VOLATILE); }
1311 YY_BREAK
1312case 33:
1313YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001314#line 133 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001315{ RET_TOK( ALIGN); }
1316 YY_BREAK
1317case 34:
1318YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001319#line 134 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001320{ RET_TOK( SECTION); }
1321 YY_BREAK
1322case 35:
1323YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001324#line 135 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001325{ RET_TOK( MODULE); }
1326 YY_BREAK
1327case 36:
1328YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001329#line 136 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001330{ RET_TOK( ASM_TOK); }
1331 YY_BREAK
1332case 37:
1333YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001334#line 137 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001335{ RET_TOK( SIDEEFFECT); }
1336 YY_BREAK
1337case 38:
1338YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001339#line 139 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001340{ RET_TOK( CC_TOK); }
1341 YY_BREAK
1342case 39:
1343YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001344#line 140 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001345{ RET_TOK( CCC_TOK); }
1346 YY_BREAK
1347case 40:
1348YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001349#line 141 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001350{ RET_TOK( CSRETCC_TOK); }
1351 YY_BREAK
1352case 41:
1353YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001354#line 142 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001355{ RET_TOK( FASTCC_TOK); }
1356 YY_BREAK
1357case 42:
1358YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001359#line 143 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001360{ RET_TOK( COLDCC_TOK); }
1361 YY_BREAK
1362case 43:
1363YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001364#line 144 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001365{ RET_TOK( X86_STDCALLCC_TOK); }
1366 YY_BREAK
1367case 44:
1368YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001369#line 145 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001370{ RET_TOK( X86_FASTCALLCC_TOK); }
1371 YY_BREAK
1372case 45:
1373YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001374#line 147 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1375{ RET_TY(VOID,VoidTy,"void",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001376 YY_BREAK
1377case 46:
1378YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001379#line 148 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1380{ RET_TY(BOOL,BoolTy,"bool",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001381 YY_BREAK
1382case 47:
1383YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001384#line 149 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1385{ RET_TY(SBYTE,SByteTy,"sbyte",true); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001386 YY_BREAK
1387case 48:
1388YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001389#line 150 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1390{ RET_TY(UBYTE,UByteTy,"ubyte",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001391 YY_BREAK
1392case 49:
1393YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001394#line 151 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1395{ RET_TY(SHORT,ShortTy,"short",true); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001396 YY_BREAK
1397case 50:
1398YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001399#line 152 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1400{ RET_TY(USHORT,UShortTy,"ushort",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001401 YY_BREAK
1402case 51:
1403YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001404#line 153 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1405{ RET_TY(INT,IntTy,"int",true); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001406 YY_BREAK
1407case 52:
1408YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001409#line 154 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1410{ RET_TY(UINT,UIntTy,"uint",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001411 YY_BREAK
1412case 53:
1413YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001414#line 155 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1415{ RET_TY(LONG,LongTy,"long",true); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001416 YY_BREAK
1417case 54:
1418YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001419#line 156 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1420{ RET_TY(ULONG,ULongTy,"ulong",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001421 YY_BREAK
1422case 55:
1423YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001424#line 157 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1425{ RET_TY(FLOAT,FloatTy,"float",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001426 YY_BREAK
1427case 56:
1428YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001429#line 158 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1430{ RET_TY(DOUBLE,DoubleTy,"double",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001431 YY_BREAK
1432case 57:
1433YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001434#line 159 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1435{ RET_TY(LABEL,LabelTy,"label",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001436 YY_BREAK
1437case 58:
1438YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001439#line 160 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1440{ RET_TY(OPAQUE,OpaqueTy,"opaque",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001441 YY_BREAK
1442case 59:
1443YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001444#line 161 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1445{ RET_TOK(TYPE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001446 YY_BREAK
1447case 60:
1448YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001449#line 163 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001450{ RET_TOK( ADD); }
1451 YY_BREAK
1452case 61:
1453YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001454#line 164 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001455{ RET_TOK( SUB); }
1456 YY_BREAK
1457case 62:
1458YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001459#line 165 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001460{ RET_TOK( MUL); }
1461 YY_BREAK
1462case 63:
1463YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001464#line 166 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001465{ RET_TOK( UDIV); }
1466 YY_BREAK
1467case 64:
1468YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001469#line 167 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001470{ RET_TOK( UDIV); }
1471 YY_BREAK
1472case 65:
1473YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001474#line 168 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001475{ RET_TOK( SDIV); }
1476 YY_BREAK
1477case 66:
1478YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001479#line 169 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001480{ RET_TOK( FDIV); }
1481 YY_BREAK
1482case 67:
1483YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001484#line 170 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001485{ RET_TOK( UREM); }
1486 YY_BREAK
1487case 68:
1488YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001489#line 171 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001490{ RET_TOK( UREM); }
1491 YY_BREAK
1492case 69:
1493YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001494#line 172 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001495{ RET_TOK( SREM); }
1496 YY_BREAK
1497case 70:
1498YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001499#line 173 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001500{ RET_TOK( FREM); }
1501 YY_BREAK
1502case 71:
1503YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001504#line 174 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001505{ RET_TOK( AND); }
1506 YY_BREAK
1507case 72:
1508YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001509#line 175 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001510{ RET_TOK( OR); }
1511 YY_BREAK
1512case 73:
1513YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001514#line 176 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001515{ RET_TOK( XOR); }
1516 YY_BREAK
1517case 74:
1518YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001519#line 177 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001520{ RET_TOK( SETNE); }
1521 YY_BREAK
1522case 75:
1523YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001524#line 178 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001525{ RET_TOK( SETEQ); }
1526 YY_BREAK
1527case 76:
1528YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001529#line 179 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001530{ RET_TOK( SETLT); }
1531 YY_BREAK
1532case 77:
1533YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001534#line 180 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001535{ RET_TOK( SETGT); }
1536 YY_BREAK
1537case 78:
1538YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001539#line 181 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001540{ RET_TOK( SETLE); }
1541 YY_BREAK
1542case 79:
1543YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001544#line 182 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001545{ RET_TOK( SETGE); }
1546 YY_BREAK
1547case 80:
1548YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001549#line 184 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001550{ RET_TOK( PHI_TOK); }
1551 YY_BREAK
1552case 81:
1553YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001554#line 185 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001555{ RET_TOK( CALL); }
1556 YY_BREAK
1557case 82:
1558YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001559#line 186 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1560{ RET_TOK( CAST); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001561 YY_BREAK
1562case 83:
1563YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001564#line 187 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001565{ RET_TOK( SELECT); }
1566 YY_BREAK
1567case 84:
1568YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001569#line 188 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001570{ RET_TOK( SHL); }
1571 YY_BREAK
1572case 85:
1573YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001574#line 189 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001575{ RET_TOK( LSHR); }
1576 YY_BREAK
1577case 86:
1578YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001579#line 190 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001580{ RET_TOK( ASHR); }
1581 YY_BREAK
1582case 87:
1583YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001584#line 191 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001585{ RET_TOK( VAARG); }
1586 YY_BREAK
1587case 88:
1588YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001589#line 192 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001590{ RET_TOK( RET); }
1591 YY_BREAK
1592case 89:
1593YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001594#line 193 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001595{ RET_TOK( BR); }
1596 YY_BREAK
1597case 90:
1598YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001599#line 194 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001600{ RET_TOK( SWITCH); }
1601 YY_BREAK
1602case 91:
1603YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001604#line 195 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001605{ RET_TOK( INVOKE); }
1606 YY_BREAK
1607case 92:
1608YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001609#line 196 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001610{ RET_TOK( UNWIND); }
1611 YY_BREAK
1612case 93:
1613YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001614#line 197 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001615{ RET_TOK( UNWIND); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001616 YY_BREAK
1617case 94:
1618YY_RULE_SETUP
Reid Spencer16244f42006-12-01 21:10:07 +00001619#line 198 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1620{ RET_TOK( UNREACHABLE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001621 YY_BREAK
1622case 95:
1623YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001624#line 200 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001625{ RET_TOK( MALLOC); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001626 YY_BREAK
1627case 96:
1628YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001629#line 201 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001630{ RET_TOK( ALLOCA); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001631 YY_BREAK
1632case 97:
1633YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001634#line 202 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001635{ RET_TOK( FREE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001636 YY_BREAK
1637case 98:
1638YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001639#line 203 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001640{ RET_TOK( LOAD); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001641 YY_BREAK
1642case 99:
1643YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001644#line 204 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001645{ RET_TOK( STORE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001646 YY_BREAK
1647case 100:
1648YY_RULE_SETUP
Reid Spencer16244f42006-12-01 21:10:07 +00001649#line 205 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1650{ RET_TOK( GETELEMENTPTR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001651 YY_BREAK
1652case 101:
1653YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001654#line 207 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001655{ RET_TOK( EXTRACTELEMENT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001656 YY_BREAK
1657case 102:
1658YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001659#line 208 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001660{ RET_TOK( INSERTELEMENT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001661 YY_BREAK
1662case 103:
1663YY_RULE_SETUP
Reid Spencer16244f42006-12-01 21:10:07 +00001664#line 209 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1665{ RET_TOK( SHUFFLEVECTOR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001666 YY_BREAK
1667case 104:
1668YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001669#line 212 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001670{ RET_TOK( VAR_ID); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001671 YY_BREAK
1672case 105:
1673YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001674#line 213 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001675{ RET_TOK( LABELSTR); }
1676 YY_BREAK
1677case 106:
1678YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001679#line 214 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001680{ RET_TOK( LABELSTR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001681 YY_BREAK
1682case 107:
1683YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001684#line 215 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001685{ RET_TOK( STRINGCONSTANT ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001686 YY_BREAK
1687case 108:
1688YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001689#line 216 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001690{ RET_TOK( EUINT64VAL ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001691 YY_BREAK
1692case 109:
1693YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001694#line 217 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001695{ RET_TOK( ESINT64VAL ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001696 YY_BREAK
1697case 110:
1698YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001699#line 218 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001700{ RET_TOK( yytext[0] == 's' ? ESINT64VAL : EUINT64VAL ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001701 YY_BREAK
1702case 111:
1703YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001704#line 219 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001705{ RET_TOK( UINTVAL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001706 YY_BREAK
1707case 112:
1708YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001709#line 220 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001710{ RET_TOK( SINTVAL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001711 YY_BREAK
1712case 113:
1713YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001714#line 221 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001715{ RET_TOK( FPVAL); }
1716 YY_BREAK
Reid Spencer16244f42006-12-01 21:10:07 +00001717case 114:
1718YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001719#line 222 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001720{ RET_TOK( FPVAL); }
1721 YY_BREAK
1722case YY_STATE_EOF(INITIAL):
1723#line 223 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001724{
1725 /* Make sure to free the internal buffers for flex when we are
1726 * done reading our input!
1727 */
1728 yy_delete_buffer(YY_CURRENT_BUFFER);
1729 return EOF;
1730 }
1731 YY_BREAK
Reid Spencere7c3c602006-11-30 06:36:44 +00001732case 115:
1733YY_RULE_SETUP
Reid Spencere77e35e2006-12-01 20:26:20 +00001734#line 231 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer16244f42006-12-01 21:10:07 +00001735{ /* Ignore whitespace */ }
Reid Spencere7c3c602006-11-30 06:36:44 +00001736 YY_BREAK
1737case 116:
1738YY_RULE_SETUP
Reid Spencer16244f42006-12-01 21:10:07 +00001739#line 232 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1740{ return yytext[0]; }
1741 YY_BREAK
1742case 117:
1743YY_RULE_SETUP
1744#line 234 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001745YY_FATAL_ERROR( "flex scanner jammed" );
1746 YY_BREAK
Reid Spencer16244f42006-12-01 21:10:07 +00001747#line 1748 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00001748
1749 case YY_END_OF_BUFFER:
1750 {
1751 /* Amount of text matched not including the EOB char. */
1752 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
1753
1754 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1755 *yy_cp = yy_hold_char;
1756 YY_RESTORE_YY_MORE_OFFSET
1757
1758 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
1759 {
1760 /* We're scanning a new file or input source. It's
1761 * possible that this happened because the user
1762 * just pointed yyin at a new source and called
1763 * yylex(). If so, then we have to assure
1764 * consistency between yy_current_buffer and our
1765 * globals. Here is the right place to do so, because
1766 * this is the first action (other than possibly a
1767 * back-up) that will match for the new input source.
1768 */
1769 yy_n_chars = yy_current_buffer->yy_n_chars;
1770 yy_current_buffer->yy_input_file = yyin;
1771 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
1772 }
1773
1774 /* Note that here we test for yy_c_buf_p "<=" to the position
1775 * of the first EOB in the buffer, since yy_c_buf_p will
1776 * already have been incremented past the NUL character
1777 * (since all states make transitions on EOB to the
1778 * end-of-buffer state). Contrast this with the test
1779 * in input().
1780 */
1781 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1782 { /* This was really a NUL. */
1783 yy_state_type yy_next_state;
1784
1785 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
1786
1787 yy_current_state = yy_get_previous_state();
1788
1789 /* Okay, we're now positioned to make the NUL
1790 * transition. We couldn't have
1791 * yy_get_previous_state() go ahead and do it
1792 * for us because it doesn't know how to deal
1793 * with the possibility of jamming (and we don't
1794 * want to build jamming into it because then it
1795 * will run more slowly).
1796 */
1797
1798 yy_next_state = yy_try_NUL_trans( yy_current_state );
1799
1800 yy_bp = yytext_ptr + YY_MORE_ADJ;
1801
1802 if ( yy_next_state )
1803 {
1804 /* Consume the NUL. */
1805 yy_cp = ++yy_c_buf_p;
1806 yy_current_state = yy_next_state;
1807 goto yy_match;
1808 }
1809
1810 else
1811 {
1812 yy_cp = yy_c_buf_p;
1813 goto yy_find_action;
1814 }
1815 }
1816
1817 else switch ( yy_get_next_buffer() )
1818 {
1819 case EOB_ACT_END_OF_FILE:
1820 {
1821 yy_did_buffer_switch_on_eof = 0;
1822
1823 if ( yywrap() )
1824 {
1825 /* Note: because we've taken care in
1826 * yy_get_next_buffer() to have set up
1827 * yytext, we can now set up
1828 * yy_c_buf_p so that if some total
1829 * hoser (like flex itself) wants to
1830 * call the scanner after we return the
1831 * YY_NULL, it'll still work - another
1832 * YY_NULL will get returned.
1833 */
1834 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
1835
1836 yy_act = YY_STATE_EOF(YY_START);
1837 goto do_action;
1838 }
1839
1840 else
1841 {
1842 if ( ! yy_did_buffer_switch_on_eof )
1843 YY_NEW_FILE;
1844 }
1845 break;
1846 }
1847
1848 case EOB_ACT_CONTINUE_SCAN:
1849 yy_c_buf_p =
1850 yytext_ptr + yy_amount_of_matched_text;
1851
1852 yy_current_state = yy_get_previous_state();
1853
1854 yy_cp = yy_c_buf_p;
1855 yy_bp = yytext_ptr + YY_MORE_ADJ;
1856 goto yy_match;
1857
1858 case EOB_ACT_LAST_MATCH:
1859 yy_c_buf_p =
1860 &yy_current_buffer->yy_ch_buf[yy_n_chars];
1861
1862 yy_current_state = yy_get_previous_state();
1863
1864 yy_cp = yy_c_buf_p;
1865 yy_bp = yytext_ptr + YY_MORE_ADJ;
1866 goto yy_find_action;
1867 }
1868 break;
1869 }
1870
1871 default:
1872 YY_FATAL_ERROR(
1873 "fatal flex scanner internal error--no action found" );
1874 } /* end of action switch */
1875 } /* end of scanning one token */
1876 } /* end of yylex */
1877
1878
1879/* yy_get_next_buffer - try to read in a new buffer
1880 *
1881 * Returns a code representing an action:
1882 * EOB_ACT_LAST_MATCH -
1883 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1884 * EOB_ACT_END_OF_FILE - end of file
1885 */
1886
1887static int yy_get_next_buffer()
1888 {
1889 register char *dest = yy_current_buffer->yy_ch_buf;
1890 register char *source = yytext_ptr;
1891 register int number_to_move, i;
1892 int ret_val;
1893
1894 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
1895 YY_FATAL_ERROR(
1896 "fatal flex scanner internal error--end of buffer missed" );
1897
1898 if ( yy_current_buffer->yy_fill_buffer == 0 )
1899 { /* Don't try to fill the buffer, so this is an EOF. */
1900 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
1901 {
1902 /* We matched a single character, the EOB, so
1903 * treat this as a final EOF.
1904 */
1905 return EOB_ACT_END_OF_FILE;
1906 }
1907
1908 else
1909 {
1910 /* We matched some text prior to the EOB, first
1911 * process it.
1912 */
1913 return EOB_ACT_LAST_MATCH;
1914 }
1915 }
1916
1917 /* Try to read more data. */
1918
1919 /* First move last chars to start of buffer. */
1920 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
1921
1922 for ( i = 0; i < number_to_move; ++i )
1923 *(dest++) = *(source++);
1924
1925 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1926 /* don't do the read, it's not guaranteed to return an EOF,
1927 * just force an EOF
1928 */
1929 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
1930
1931 else
1932 {
1933 int num_to_read =
1934 yy_current_buffer->yy_buf_size - number_to_move - 1;
1935
1936 while ( num_to_read <= 0 )
1937 { /* Not enough room in the buffer - grow it. */
1938#ifdef YY_USES_REJECT
1939 YY_FATAL_ERROR(
1940"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1941#else
1942
1943 /* just a shorter name for the current buffer */
1944 YY_BUFFER_STATE b = yy_current_buffer;
1945
1946 int yy_c_buf_p_offset =
1947 (int) (yy_c_buf_p - b->yy_ch_buf);
1948
1949 if ( b->yy_is_our_buffer )
1950 {
1951 int new_size = b->yy_buf_size * 2;
1952
1953 if ( new_size <= 0 )
1954 b->yy_buf_size += b->yy_buf_size / 8;
1955 else
1956 b->yy_buf_size *= 2;
1957
1958 b->yy_ch_buf = (char *)
1959 /* Include room in for 2 EOB chars. */
1960 yy_flex_realloc( (void *) b->yy_ch_buf,
1961 b->yy_buf_size + 2 );
1962 }
1963 else
1964 /* Can't grow it, we don't own it. */
1965 b->yy_ch_buf = 0;
1966
1967 if ( ! b->yy_ch_buf )
1968 YY_FATAL_ERROR(
1969 "fatal error - scanner input buffer overflow" );
1970
1971 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1972
1973 num_to_read = yy_current_buffer->yy_buf_size -
1974 number_to_move - 1;
1975#endif
1976 }
1977
1978 if ( num_to_read > YY_READ_BUF_SIZE )
1979 num_to_read = YY_READ_BUF_SIZE;
1980
1981 /* Read in more data. */
1982 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
1983 yy_n_chars, num_to_read );
1984
1985 yy_current_buffer->yy_n_chars = yy_n_chars;
1986 }
1987
1988 if ( yy_n_chars == 0 )
1989 {
1990 if ( number_to_move == YY_MORE_ADJ )
1991 {
1992 ret_val = EOB_ACT_END_OF_FILE;
1993 yyrestart( yyin );
1994 }
1995
1996 else
1997 {
1998 ret_val = EOB_ACT_LAST_MATCH;
1999 yy_current_buffer->yy_buffer_status =
2000 YY_BUFFER_EOF_PENDING;
2001 }
2002 }
2003
2004 else
2005 ret_val = EOB_ACT_CONTINUE_SCAN;
2006
2007 yy_n_chars += number_to_move;
2008 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2009 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2010
2011 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2012
2013 return ret_val;
2014 }
2015
2016
2017/* yy_get_previous_state - get the state just before the EOB char was reached */
2018
2019static yy_state_type yy_get_previous_state()
2020 {
2021 register yy_state_type yy_current_state;
2022 register char *yy_cp;
2023
2024 yy_current_state = yy_start;
2025 yy_state_ptr = yy_state_buf;
2026 *yy_state_ptr++ = yy_current_state;
2027
2028 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2029 {
2030 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2031 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2032 {
2033 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer16244f42006-12-01 21:10:07 +00002034 if ( yy_current_state >= 510 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002035 yy_c = yy_meta[(unsigned int) yy_c];
2036 }
2037 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2038 *yy_state_ptr++ = yy_current_state;
2039 }
2040
2041 return yy_current_state;
2042 }
2043
2044
2045/* yy_try_NUL_trans - try to make a transition on the NUL character
2046 *
2047 * synopsis
2048 * next_state = yy_try_NUL_trans( current_state );
2049 */
2050
2051#ifdef YY_USE_PROTOS
2052static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2053#else
2054static yy_state_type yy_try_NUL_trans( yy_current_state )
2055yy_state_type yy_current_state;
2056#endif
2057 {
2058 register int yy_is_jam;
2059
2060 register YY_CHAR yy_c = 1;
2061 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2062 {
2063 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer16244f42006-12-01 21:10:07 +00002064 if ( yy_current_state >= 510 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002065 yy_c = yy_meta[(unsigned int) yy_c];
2066 }
2067 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer16244f42006-12-01 21:10:07 +00002068 yy_is_jam = (yy_current_state == 509);
Reid Spencere7c3c602006-11-30 06:36:44 +00002069 if ( ! yy_is_jam )
2070 *yy_state_ptr++ = yy_current_state;
2071
2072 return yy_is_jam ? 0 : yy_current_state;
2073 }
2074
2075
2076#ifndef YY_NO_UNPUT
2077#ifdef YY_USE_PROTOS
2078static inline void yyunput( int c, register char *yy_bp )
2079#else
2080static inline void yyunput( c, yy_bp )
2081int c;
2082register char *yy_bp;
2083#endif
2084 {
2085 register char *yy_cp = yy_c_buf_p;
2086
2087 /* undo effects of setting up yytext */
2088 *yy_cp = yy_hold_char;
2089
2090 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2091 { /* need to shift things up to make room */
2092 /* +2 for EOB chars. */
2093 register int number_to_move = yy_n_chars + 2;
2094 register char *dest = &yy_current_buffer->yy_ch_buf[
2095 yy_current_buffer->yy_buf_size + 2];
2096 register char *source =
2097 &yy_current_buffer->yy_ch_buf[number_to_move];
2098
2099 while ( source > yy_current_buffer->yy_ch_buf )
2100 *--dest = *--source;
2101
2102 yy_cp += (int) (dest - source);
2103 yy_bp += (int) (dest - source);
2104 yy_current_buffer->yy_n_chars =
2105 yy_n_chars = yy_current_buffer->yy_buf_size;
2106
2107 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2108 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2109 }
2110
2111 *--yy_cp = (char) c;
2112
2113 if ( c == '\n' )
2114 --yylineno;
2115
2116 yytext_ptr = yy_bp;
2117 yy_hold_char = *yy_cp;
2118 yy_c_buf_p = yy_cp;
2119 }
2120#endif /* ifndef YY_NO_UNPUT */
2121
2122
2123#ifndef YY_NO_INPUT
2124#ifdef __cplusplus
2125static int yyinput()
2126#else
2127static int input()
2128#endif
2129 {
2130 int c;
2131
2132 *yy_c_buf_p = yy_hold_char;
2133
2134 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2135 {
2136 /* yy_c_buf_p now points to the character we want to return.
2137 * If this occurs *before* the EOB characters, then it's a
2138 * valid NUL; if not, then we've hit the end of the buffer.
2139 */
2140 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2141 /* This was really a NUL. */
2142 *yy_c_buf_p = '\0';
2143
2144 else
2145 { /* need more input */
2146 int offset = yy_c_buf_p - yytext_ptr;
2147 ++yy_c_buf_p;
2148
2149 switch ( yy_get_next_buffer() )
2150 {
2151 case EOB_ACT_LAST_MATCH:
2152 /* This happens because yy_g_n_b()
2153 * sees that we've accumulated a
2154 * token and flags that we need to
2155 * try matching the token before
2156 * proceeding. But for input(),
2157 * there's no matching to consider.
2158 * So convert the EOB_ACT_LAST_MATCH
2159 * to EOB_ACT_END_OF_FILE.
2160 */
2161
2162 /* Reset buffer status. */
2163 yyrestart( yyin );
2164
2165 /* fall through */
2166
2167 case EOB_ACT_END_OF_FILE:
2168 {
2169 if ( yywrap() )
2170 return EOF;
2171
2172 if ( ! yy_did_buffer_switch_on_eof )
2173 YY_NEW_FILE;
2174#ifdef __cplusplus
2175 return yyinput();
2176#else
2177 return input();
2178#endif
2179 }
2180
2181 case EOB_ACT_CONTINUE_SCAN:
2182 yy_c_buf_p = yytext_ptr + offset;
2183 break;
2184 }
2185 }
2186 }
2187
2188 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2189 *yy_c_buf_p = '\0'; /* preserve yytext */
2190 yy_hold_char = *++yy_c_buf_p;
2191
2192 if ( c == '\n' )
2193 ++yylineno;
2194
2195 return c;
2196 }
2197#endif /* YY_NO_INPUT */
2198
2199#ifdef YY_USE_PROTOS
2200void yyrestart( FILE *input_file )
2201#else
2202void yyrestart( input_file )
2203FILE *input_file;
2204#endif
2205 {
2206 if ( ! yy_current_buffer )
2207 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2208
2209 yy_init_buffer( yy_current_buffer, input_file );
2210 yy_load_buffer_state();
2211 }
2212
2213
2214#ifdef YY_USE_PROTOS
2215void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2216#else
2217void yy_switch_to_buffer( new_buffer )
2218YY_BUFFER_STATE new_buffer;
2219#endif
2220 {
2221 if ( yy_current_buffer == new_buffer )
2222 return;
2223
2224 if ( yy_current_buffer )
2225 {
2226 /* Flush out information for old buffer. */
2227 *yy_c_buf_p = yy_hold_char;
2228 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2229 yy_current_buffer->yy_n_chars = yy_n_chars;
2230 }
2231
2232 yy_current_buffer = new_buffer;
2233 yy_load_buffer_state();
2234
2235 /* We don't actually know whether we did this switch during
2236 * EOF (yywrap()) processing, but the only time this flag
2237 * is looked at is after yywrap() is called, so it's safe
2238 * to go ahead and always set it.
2239 */
2240 yy_did_buffer_switch_on_eof = 1;
2241 }
2242
2243
2244#ifdef YY_USE_PROTOS
2245void yy_load_buffer_state( void )
2246#else
2247void yy_load_buffer_state()
2248#endif
2249 {
2250 yy_n_chars = yy_current_buffer->yy_n_chars;
2251 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2252 yyin = yy_current_buffer->yy_input_file;
2253 yy_hold_char = *yy_c_buf_p;
2254 }
2255
2256
2257#ifdef YY_USE_PROTOS
2258YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2259#else
2260YY_BUFFER_STATE yy_create_buffer( file, size )
2261FILE *file;
2262int size;
2263#endif
2264 {
2265 YY_BUFFER_STATE b;
2266
2267 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2268 if ( ! b )
2269 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2270
2271 b->yy_buf_size = size;
2272
2273 /* yy_ch_buf has to be 2 characters longer than the size given because
2274 * we need to put in 2 end-of-buffer characters.
2275 */
2276 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2277 if ( ! b->yy_ch_buf )
2278 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2279
2280 b->yy_is_our_buffer = 1;
2281
2282 yy_init_buffer( b, file );
2283
2284 return b;
2285 }
2286
2287
2288#ifdef YY_USE_PROTOS
2289void yy_delete_buffer( YY_BUFFER_STATE b )
2290#else
2291void yy_delete_buffer( b )
2292YY_BUFFER_STATE b;
2293#endif
2294 {
2295 if ( ! b )
2296 return;
2297
2298 if ( b == yy_current_buffer )
2299 yy_current_buffer = (YY_BUFFER_STATE) 0;
2300
2301 if ( b->yy_is_our_buffer )
2302 yy_flex_free( (void *) b->yy_ch_buf );
2303
2304 yy_flex_free( (void *) b );
2305 }
2306
2307
2308
2309#ifdef YY_USE_PROTOS
2310void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2311#else
2312void yy_init_buffer( b, file )
2313YY_BUFFER_STATE b;
2314FILE *file;
2315#endif
2316
2317
2318 {
2319 yy_flush_buffer( b );
2320
2321 b->yy_input_file = file;
2322 b->yy_fill_buffer = 1;
2323
2324#if YY_ALWAYS_INTERACTIVE
2325 b->yy_is_interactive = 1;
2326#else
2327#if YY_NEVER_INTERACTIVE
2328 b->yy_is_interactive = 0;
2329#else
2330 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2331#endif
2332#endif
2333 }
2334
2335
2336#ifdef YY_USE_PROTOS
2337void yy_flush_buffer( YY_BUFFER_STATE b )
2338#else
2339void yy_flush_buffer( b )
2340YY_BUFFER_STATE b;
2341#endif
2342
2343 {
2344 if ( ! b )
2345 return;
2346
2347 b->yy_n_chars = 0;
2348
2349 /* We always need two end-of-buffer characters. The first causes
2350 * a transition to the end-of-buffer state. The second causes
2351 * a jam in that state.
2352 */
2353 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2354 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2355
2356 b->yy_buf_pos = &b->yy_ch_buf[0];
2357
2358 b->yy_at_bol = 1;
2359 b->yy_buffer_status = YY_BUFFER_NEW;
2360
2361 if ( b == yy_current_buffer )
2362 yy_load_buffer_state();
2363 }
2364
2365
2366#ifndef YY_NO_SCAN_BUFFER
2367#ifdef YY_USE_PROTOS
2368YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2369#else
2370YY_BUFFER_STATE yy_scan_buffer( base, size )
2371char *base;
2372yy_size_t size;
2373#endif
2374 {
2375 YY_BUFFER_STATE b;
2376
2377 if ( size < 2 ||
2378 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2379 base[size-1] != YY_END_OF_BUFFER_CHAR )
2380 /* They forgot to leave room for the EOB's. */
2381 return 0;
2382
2383 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2384 if ( ! b )
2385 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2386
2387 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2388 b->yy_buf_pos = b->yy_ch_buf = base;
2389 b->yy_is_our_buffer = 0;
2390 b->yy_input_file = 0;
2391 b->yy_n_chars = b->yy_buf_size;
2392 b->yy_is_interactive = 0;
2393 b->yy_at_bol = 1;
2394 b->yy_fill_buffer = 0;
2395 b->yy_buffer_status = YY_BUFFER_NEW;
2396
2397 yy_switch_to_buffer( b );
2398
2399 return b;
2400 }
2401#endif
2402
2403
2404#ifndef YY_NO_SCAN_STRING
2405#ifdef YY_USE_PROTOS
2406YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2407#else
2408YY_BUFFER_STATE yy_scan_string( yy_str )
2409yyconst char *yy_str;
2410#endif
2411 {
2412 int len;
2413 for ( len = 0; yy_str[len]; ++len )
2414 ;
2415
2416 return yy_scan_bytes( yy_str, len );
2417 }
2418#endif
2419
2420
2421#ifndef YY_NO_SCAN_BYTES
2422#ifdef YY_USE_PROTOS
2423YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2424#else
2425YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2426yyconst char *bytes;
2427int len;
2428#endif
2429 {
2430 YY_BUFFER_STATE b;
2431 char *buf;
2432 yy_size_t n;
2433 int i;
2434
2435 /* Get memory for full buffer, including space for trailing EOB's. */
2436 n = len + 2;
2437 buf = (char *) yy_flex_alloc( n );
2438 if ( ! buf )
2439 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2440
2441 for ( i = 0; i < len; ++i )
2442 buf[i] = bytes[i];
2443
2444 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2445
2446 b = yy_scan_buffer( buf, n );
2447 if ( ! b )
2448 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2449
2450 /* It's okay to grow etc. this buffer, and we should throw it
2451 * away when we're done.
2452 */
2453 b->yy_is_our_buffer = 1;
2454
2455 return b;
2456 }
2457#endif
2458
2459
2460#ifndef YY_NO_PUSH_STATE
2461#ifdef YY_USE_PROTOS
2462static void yy_push_state( int new_state )
2463#else
2464static void yy_push_state( new_state )
2465int new_state;
2466#endif
2467 {
2468 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2469 {
2470 yy_size_t new_size;
2471
2472 yy_start_stack_depth += YY_START_STACK_INCR;
2473 new_size = yy_start_stack_depth * sizeof( int );
2474
2475 if ( ! yy_start_stack )
2476 yy_start_stack = (int *) yy_flex_alloc( new_size );
2477
2478 else
2479 yy_start_stack = (int *) yy_flex_realloc(
2480 (void *) yy_start_stack, new_size );
2481
2482 if ( ! yy_start_stack )
2483 YY_FATAL_ERROR(
2484 "out of memory expanding start-condition stack" );
2485 }
2486
2487 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2488
2489 BEGIN(new_state);
2490 }
2491#endif
2492
2493
2494#ifndef YY_NO_POP_STATE
2495static void yy_pop_state()
2496 {
2497 if ( --yy_start_stack_ptr < 0 )
2498 YY_FATAL_ERROR( "start-condition stack underflow" );
2499
2500 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2501 }
2502#endif
2503
2504
2505#ifndef YY_NO_TOP_STATE
2506static int yy_top_state()
2507 {
2508 return yy_start_stack[yy_start_stack_ptr - 1];
2509 }
2510#endif
2511
2512#ifndef YY_EXIT_FAILURE
2513#define YY_EXIT_FAILURE 2
2514#endif
2515
2516#ifdef YY_USE_PROTOS
2517static void yy_fatal_error( yyconst char msg[] )
2518#else
2519static void yy_fatal_error( msg )
2520char msg[];
2521#endif
2522 {
2523 (void) fprintf( stderr, "%s\n", msg );
2524 exit( YY_EXIT_FAILURE );
2525 }
2526
2527
2528
2529/* Redefine yyless() so it works in section 3 code. */
2530
2531#undef yyless
2532#define yyless(n) \
2533 do \
2534 { \
2535 /* Undo effects of setting up yytext. */ \
2536 yytext[yyleng] = yy_hold_char; \
2537 yy_c_buf_p = yytext + n; \
2538 yy_hold_char = *yy_c_buf_p; \
2539 *yy_c_buf_p = '\0'; \
2540 yyleng = n; \
2541 } \
2542 while ( 0 )
2543
2544
2545/* Internal utility routines. */
2546
2547#ifndef yytext_ptr
2548#ifdef YY_USE_PROTOS
2549static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2550#else
2551static void yy_flex_strncpy( s1, s2, n )
2552char *s1;
2553yyconst char *s2;
2554int n;
2555#endif
2556 {
2557 register int i;
2558 for ( i = 0; i < n; ++i )
2559 s1[i] = s2[i];
2560 }
2561#endif
2562
2563#ifdef YY_NEED_STRLEN
2564#ifdef YY_USE_PROTOS
2565static int yy_flex_strlen( yyconst char *s )
2566#else
2567static int yy_flex_strlen( s )
2568yyconst char *s;
2569#endif
2570 {
2571 register int n;
2572 for ( n = 0; s[n]; ++n )
2573 ;
2574
2575 return n;
2576 }
2577#endif
2578
2579
2580#ifdef YY_USE_PROTOS
2581static void *yy_flex_alloc( yy_size_t size )
2582#else
2583static void *yy_flex_alloc( size )
2584yy_size_t size;
2585#endif
2586 {
2587 return (void *) malloc( size );
2588 }
2589
2590#ifdef YY_USE_PROTOS
2591static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
2592#else
2593static inline void *yy_flex_realloc( ptr, size )
2594void *ptr;
2595yy_size_t size;
2596#endif
2597 {
2598 /* The cast to (char *) in the following accommodates both
2599 * implementations that use char* generic pointers, and those
2600 * that use void* generic pointers. It works with the latter
2601 * because both ANSI C and C++ allow castless assignment from
2602 * any pointer type to void*, and deal with argument conversions
2603 * as though doing an assignment.
2604 */
2605 return (void *) realloc( (char *) ptr, size );
2606 }
2607
2608#ifdef YY_USE_PROTOS
2609static void yy_flex_free( void *ptr )
2610#else
2611static void yy_flex_free( ptr )
2612void *ptr;
2613#endif
2614 {
2615 free( ptr );
2616 }
2617
2618#if YY_MAIN
2619int main()
2620 {
2621 yylex();
2622 return 0;
2623 }
2624#endif
Reid Spencer16244f42006-12-01 21:10:07 +00002625#line 234 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00002626