blob: 722ffc617f2d156ddfefc48ede796c2e7f2b97d3 [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 Spencer6fd36ab2006-12-29 20:35:03 +0000320#define YY_NUM_RULES 154
321#define YY_END_OF_BUFFER 155
322static yyconst short int yy_acclist[232] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000323 { 0,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000324 155, 153, 154, 152, 153, 154, 152, 154, 153, 154,
325 153, 154, 153, 154, 153, 154, 153, 154, 153, 154,
326 145, 153, 154, 145, 153, 154, 1, 153, 154, 153,
327 154, 153, 154, 153, 154, 153, 154, 153, 154, 153,
328 154, 153, 154, 153, 154, 153, 154, 153, 154, 153,
329 154, 153, 154, 153, 154, 153, 154, 153, 154, 153,
330 154, 153, 154, 153, 154, 153, 154, 153, 154, 153,
331 154, 144, 142, 141, 141, 148, 146, 150, 145, 1,
332 126, 40, 84, 85, 74, 24, 144, 141, 141, 149,
333 150, 21, 150, 151, 62, 73, 38, 33, 41, 65,
Reid Spencere7c3c602006-11-30 06:36:44 +0000334
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000335 3, 53, 64, 90, 95, 93, 94, 92, 91, 96,
336 104, 69, 125, 89, 87, 120, 121, 88, 86, 63,
337 98, 103, 101, 102, 100, 99, 97, 75, 143, 150,
338 150, 122, 48, 105, 106, 83, 68, 134, 72, 82,
339 135, 55, 123, 23, 147, 67, 109, 71, 25, 4,
340 61, 66, 54, 70, 47, 12, 108, 150, 35, 2,
341 5, 57, 111, 59, 49, 77, 81, 79, 80, 78,
342 76, 51, 136, 107, 50, 56, 22, 133, 44, 7,
343 58, 29, 130, 43, 113, 112, 8, 128, 32, 132,
344 37, 60, 119, 115, 127, 26, 27, 114, 129, 52,
Reid Spencere7c3c602006-11-30 06:36:44 +0000345
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000346 124, 118, 42, 6, 28, 110, 36, 9, 17, 10,
347 117, 11, 116, 34, 13, 15, 14, 31, 39, 16,
348 30, 131, 137, 139, 140, 18, 45, 138, 19, 46,
349 20
Reid Spencere7c3c602006-11-30 06:36:44 +0000350 } ;
351
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000352static yyconst short int yy_accept[606] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000353 { 0,
354 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
355 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
356 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
357 60, 62, 64, 66, 68, 70, 72, 72, 73, 73,
358 74, 75, 76, 77, 77, 78, 78, 79, 80, 80,
359 81, 81, 81, 81, 81, 81, 81, 81, 81, 82,
360 82, 83, 83, 83, 83, 83, 83, 83, 83, 83,
Reid Spencere7c3c602006-11-30 06:36:44 +0000361 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
Reid Spencer229e9362006-12-02 22:14:11 +0000362 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
363 85, 85, 85, 85, 85, 85, 85, 86, 86, 86,
Reid Spencere7c3c602006-11-30 06:36:44 +0000364
Reid Spencer229e9362006-12-02 22:14:11 +0000365 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
366 86, 86, 86, 86, 86, 87, 87, 87, 87, 87,
367 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
368 87, 87, 87, 88, 89, 91, 92, 93, 94, 94,
369 95, 96, 96, 96, 97, 97, 97, 98, 98, 99,
370 99, 99, 99, 99, 100, 100, 100, 100, 100, 100,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000371 100, 100, 101, 101, 101, 102, 102, 102, 102, 102,
Reid Spencer229e9362006-12-02 22:14:11 +0000372 102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000373 102, 103, 103, 103, 103, 103, 103, 103, 103, 103,
374 103, 104, 104, 105, 106, 107, 108, 109, 110, 110,
Reid Spencere7c3c602006-11-30 06:36:44 +0000375
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000376 111, 112, 112, 112, 113, 114, 114, 114, 114, 114,
377 114, 114, 114, 115, 116, 117, 117, 118, 118, 118,
378 118, 119, 120, 120, 120, 121, 121, 121, 121, 121,
379 121, 121, 121, 121, 122, 123, 124, 124, 124, 125,
380 125, 126, 126, 127, 127, 128, 128, 128, 128, 128,
381 128, 128, 128, 128, 128, 129, 129, 129, 130, 131,
382 131, 131, 131, 132, 132, 132, 132, 133, 133, 133,
383 134, 135, 136, 136, 136, 136, 136, 136, 136, 136,
384 136, 136, 136, 136, 136, 136, 136, 136, 136, 137,
385 138, 138, 138, 138, 138, 139, 140, 140, 140, 141,
Reid Spencere7c3c602006-11-30 06:36:44 +0000386
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000387 141, 141, 141, 141, 141, 141, 141, 141, 142, 143,
388 144, 144, 144, 145, 145, 145, 145, 146, 146, 147,
389 147, 147, 147, 147, 147, 147, 148, 148, 148, 148,
390 148, 149, 149, 149, 150, 150, 150, 151, 151, 152,
391 152, 153, 154, 154, 154, 154, 154, 154, 154, 155,
392 155, 155, 156, 156, 157, 157, 157, 158, 159, 160,
393 160, 160, 161, 161, 161, 161, 161, 161, 161, 161,
394 161, 161, 161, 161, 161, 161, 161, 161, 162, 162,
395 163, 164, 164, 164, 164, 164, 164, 164, 164, 164,
396 164, 164, 165, 165, 165, 165, 165, 165, 165, 165,
Reid Spencere7c3c602006-11-30 06:36:44 +0000397
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000398 166, 166, 166, 167, 168, 169, 170, 171, 172, 173,
399 173, 173, 173, 174, 174, 174, 174, 175, 176, 176,
400 177, 178, 178, 178, 178, 178, 178, 178, 178, 178,
401 178, 179, 179, 179, 180, 180, 180, 180, 180, 181,
402 181, 181, 181, 182, 183, 184, 184, 184, 185, 186,
403 187, 187, 187, 188, 188, 188, 188, 188, 189, 189,
404 190, 191, 192, 193, 193, 193, 193, 194, 194, 194,
405 195, 196, 197, 198, 199, 199, 199, 200, 201, 202,
406 202, 202, 202, 202, 202, 203, 203, 204, 204, 205,
407 206, 206, 206, 206, 206, 206, 207, 207, 207, 207,
Reid Spencere7c3c602006-11-30 06:36:44 +0000408
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000409 207, 207, 207, 207, 207, 208, 208, 208, 208, 208,
410 208, 208, 208, 208, 208, 209, 209, 209, 209, 209,
411 210, 210, 210, 210, 210, 211, 212, 213, 213, 214,
412 214, 214, 214, 214, 215, 215, 215, 215, 216, 216,
413 217, 218, 218, 218, 218, 218, 218, 218, 218, 218,
414 218, 218, 218, 218, 218, 219, 219, 219, 219, 219,
415 219, 219, 219, 220, 220, 220, 220, 220, 220, 221,
416 221, 221, 221, 221, 222, 222, 222, 223, 223, 223,
417 223, 223, 223, 223, 223, 223, 223, 223, 223, 223,
418 223, 224, 224, 225, 226, 227, 227, 228, 228, 229,
Reid Spencer229e9362006-12-02 22:14:11 +0000419
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000420 230, 231, 231, 232, 232
Reid Spencere7c3c602006-11-30 06:36:44 +0000421 } ;
422
423static yyconst int yy_ec[256] =
424 { 0,
425 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
426 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
427 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
428 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
429 1, 1, 7, 1, 8, 9, 1, 10, 11, 11,
430 11, 11, 11, 12, 11, 13, 11, 14, 15, 1,
431 1, 1, 1, 1, 16, 16, 16, 16, 17, 16,
432 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
433 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
434 1, 1, 1, 1, 18, 1, 19, 20, 21, 22,
435
436 23, 24, 25, 26, 27, 5, 28, 29, 30, 31,
437 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
438 42, 43, 1, 1, 1, 1, 1, 1, 1, 1,
439 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
440 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
441 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
442 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
443 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
444 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
445 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
446
447 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
448 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
452 1, 1, 1, 1, 1
453 } ;
454
455static yyconst int yy_meta[44] =
456 { 0,
457 1, 1, 2, 1, 3, 1, 1, 3, 3, 3,
458 3, 3, 3, 4, 1, 3, 3, 3, 3, 3,
459 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
460 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
461 3, 3, 3
462 } ;
463
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000464static yyconst short int yy_base[610] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000465 { 0,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000466 0, 0, 1298, 1299, 1299, 1299, 1293, 1282, 36, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000467 44, 50, 56, 62, 0, 63, 66, 81, 89, 47,
Reid Spencer229e9362006-12-02 22:14:11 +0000468 108, 91, 105, 96, 119, 68, 144, 128, 111, 170,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000469 136, 201, 130, 117, 132, 125, 1291, 1299, 1280, 1299,
Reid Spencer229e9362006-12-02 22:14:11 +0000470 0, 175, 190, 207, 229, 70, 234, 249, 254, 0,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000471 139, 145, 167, 76, 168, 138, 255, 31, 1279, 177,
472 90, 198, 48, 110, 258, 195, 221, 211, 200, 1278,
Reid Spencer229e9362006-12-02 22:14:11 +0000473 267, 269, 270, 156, 271, 272, 273, 217, 275, 276,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000474 219, 279, 288, 280, 300, 287, 283, 306, 296, 1277,
475 307, 73, 309, 310, 312, 308, 315, 316, 324, 320,
Reid Spencere7c3c602006-11-30 06:36:44 +0000476
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000477 326, 325, 162, 327, 328, 330, 344, 338, 347, 336,
478 348, 354, 350, 358, 1276, 364, 357, 367, 369, 372,
479 374, 373, 375, 399, 378, 389, 381, 391, 400, 241,
480 394, 402, 1275, 0, 434, 438, 1274, 452, 469, 0,
481 1273, 403, 409, 1272, 410, 418, 1271, 411, 1270, 421,
482 438, 442, 422, 1269, 446, 456, 464, 470, 443, 413,
483 444, 1268, 471, 380, 472, 474, 477, 460, 476, 481,
484 479, 487, 488, 489, 493, 494, 490, 495, 491, 508,
485 511, 501, 512, 513, 505, 516, 518, 522, 523, 416,
486 1267, 525, 1266, 1265, 1264, 1263, 1262, 1261, 526, 1260,
Reid Spencere7c3c602006-11-30 06:36:44 +0000487
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000488 1259, 530, 531, 1258, 1257, 559, 536, 535, 548, 532,
489 563, 550, 1256, 1255, 1254, 549, 1253, 142, 533, 575,
490 1252, 1251, 537, 576, 1250, 577, 579, 581, 582, 586,
491 587, 583, 584, 1249, 1248, 1247, 585, 589, 1246, 588,
492 1245, 590, 1244, 598, 1243, 602, 539, 604, 610, 612,
493 613, 614, 616, 618, 1242, 623, 624, 1299, 635, 652,
494 656, 660, 665, 625, 544, 626, 1241, 666, 635, 1240,
495 1239, 1238, 629, 667, 668, 669, 670, 671, 672, 673,
496 676, 674, 677, 678, 680, 681, 687, 695, 1237, 1236,
497 693, 694, 698, 679, 1235, 1234, 699, 704, 1233, 706,
Reid Spencere7c3c602006-11-30 06:36:44 +0000498
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000499 705, 707, 711, 710, 708, 712, 718, 1232, 1231, 1230,
500 713, 719, 1229, 721, 725, 732, 0, 727, 1228, 738,
501 735, 737, 740, 743, 744, 1227, 739, 627, 746, 754,
502 1226, 747, 758, 1225, 759, 760, 1224, 767, 1223, 761,
503 1222, 1221, 769, 771, 773, 772, 776, 777, 1220, 778,
504 780, 1219, 784, 1218, 786, 787, 1217, 792, 1216, 792,
505 795, 1215, 793, 798, 804, 806, 811, 802, 810, 812,
506 814, 817, 820, 821, 822, 824, 825, 1214, 827, 1213,
507 1212, 826, 830, 831, 828, 835, 840, 842, 844, 847,
508 846, 1211, 851, 849, 852, 853, 854, 860, 857, 1210,
Reid Spencere7c3c602006-11-30 06:36:44 +0000509
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000510 864, 867, 1209, 1208, 1207, 1206, 1205, 1204, 1203, 871,
511 873, 872, 1202, 875, 874, 876, 1201, 1200, 877, 1199,
512 1198, 878, 881, 884, 879, 889, 880, 894, 895, 898,
513 1197, 903, 904, 1196, 905, 906, 907, 908, 1195, 909,
514 910, 911, 1194, 1193, 1192, 919, 914, 1191, 1190, 1189,
515 925, 920, 1188, 912, 930, 933, 926, 1187, 934, 1186,
516 1185, 1184, 1183, 940, 942, 943, 1182, 944, 945, 1181,
517 1180, 1179, 1178, 1177, 950, 946, 1176, 1175, 1174, 947,
518 948, 956, 952, 951, 1173, 954, 1172, 957, 1171, 1170,
519 966, 967, 46, 969, 971, 1169, 972, 973, 974, 976,
Reid Spencere7c3c602006-11-30 06:36:44 +0000520
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000521 978, 983, 979, 982, 1168, 985, 986, 993, 997, 994,
522 996, 1000, 1004, 1006, 1167, 1008, 1011, 1012, 1009, 1166,
523 1013, 1014, 1015, 1016, 1165, 1164, 1161, 1020, 1152, 1021,
524 1022, 1024, 1036, 1150, 1037, 1040, 1041, 1149, 1023, 1148,
525 1147, 1043, 1047, 1026, 1050, 1051, 1052, 1053, 1057, 1058,
526 1059, 1061, 1062, 1063, 1145, 1064, 1069, 1065, 1070, 1073,
527 1079, 1072, 1144, 1075, 1083, 1076, 1086, 1087, 1143, 1089,
528 1090, 1094, 1097, 1140, 1099, 1096, 1139, 1100, 1103, 1106,
529 1108, 1109, 1111, 1112, 1116, 1118, 1120, 1121, 1122, 1123,
530 1136, 1124, 1134, 741, 639, 1131, 591, 1133, 545, 497,
Reid Spencer229e9362006-12-02 22:14:11 +0000531
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000532 334, 1132, 331, 1299, 1167, 1169, 296, 1173, 253
Reid Spencere7c3c602006-11-30 06:36:44 +0000533 } ;
534
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000535static yyconst short int yy_def[610] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000536 { 0,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000537 604, 1, 604, 604, 604, 604, 605, 606, 607, 604,
538 606, 606, 606, 606, 608, 606, 606, 606, 606, 606,
539 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
540 606, 606, 606, 606, 606, 606, 605, 604, 606, 604,
541 609, 609, 604, 604, 606, 606, 606, 606, 606, 608,
542 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
543 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
544 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
545 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
546 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
Reid Spencere7c3c602006-11-30 06:36:44 +0000547
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000548 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
549 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
550 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
551 606, 606, 604, 609, 609, 604, 606, 606, 606, 49,
552 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
553 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
554 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
555 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
556 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
557 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
Reid Spencere7c3c602006-11-30 06:36:44 +0000558
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000559 606, 606, 606, 606, 606, 49, 606, 606, 606, 606,
560 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
561 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
562 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
563 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
564 606, 606, 606, 606, 606, 606, 606, 604, 604, 604,
565 604, 606, 606, 606, 606, 606, 606, 606, 606, 606,
566 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
567 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
568 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
Reid Spencere7c3c602006-11-30 06:36:44 +0000569
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000570 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
571 606, 606, 606, 606, 606, 606, 206, 606, 606, 606,
572 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
573 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
574 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
575 606, 606, 606, 606, 606, 606, 606, 604, 606, 606,
576 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
577 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
578 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
579 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
Reid Spencere7c3c602006-11-30 06:36:44 +0000580
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000581 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
582 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
583 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
584 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
585 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
586 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
587 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
588 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
589 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
590 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
Reid Spencere7c3c602006-11-30 06:36:44 +0000591
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000592 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
593 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
594 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
595 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
596 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
597 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
598 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
599 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
600 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
601 606, 606, 606, 606, 606, 606, 606, 606, 606, 606,
Reid Spencer229e9362006-12-02 22:14:11 +0000602
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000603 606, 606, 606, 0, 604, 604, 604, 604, 604
Reid Spencere7c3c602006-11-30 06:36:44 +0000604 } ;
605
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000606static yyconst short int yy_nxt[1343] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000607 { 0,
608 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
609 14, 14, 14, 4, 15, 8, 8, 8, 16, 17,
610 18, 19, 20, 21, 22, 8, 23, 8, 24, 25,
611 26, 27, 28, 8, 29, 30, 31, 32, 33, 34,
612 35, 8, 36, 42, 40, 43, 43, 43, 43, 44,
613 44, 44, 44, 45, 45, 45, 45, 40, 46, 40,
Reid Spencer229e9362006-12-02 22:14:11 +0000614 40, 40, 151, 40, 47, 48, 48, 48, 48, 40,
615 47, 48, 48, 48, 48, 40, 40, 69, 137, 40,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000616 70, 40, 157, 40, 51, 519, 40, 71, 56, 40,
Reid Spencer229e9362006-12-02 22:14:11 +0000617 90, 52, 57, 53, 40, 54, 49, 58, 55, 60,
Reid Spencere7c3c602006-11-30 06:36:44 +0000618
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000619 59, 61, 40, 40, 40, 91, 193, 64, 145, 40,
Reid Spencer229e9362006-12-02 22:14:11 +0000620 154, 65, 62, 78, 83, 66, 63, 67, 40, 79,
621 68, 40, 84, 40, 40, 80, 72, 85, 73, 74,
622 40, 86, 40, 101, 81, 82, 75, 87, 40, 129,
623 76, 40, 77, 40, 130, 40, 158, 132, 127, 40,
624 88, 40, 40, 98, 114, 40, 89, 40, 40, 99,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000625 141, 128, 148, 131, 100, 328, 92, 115, 93, 40,
Reid Spencer229e9362006-12-02 22:14:11 +0000626 116, 142, 94, 143, 95, 40, 96, 117, 97, 102,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000627 40, 40, 171, 40, 135, 135, 135, 135, 144, 103,
Reid Spencer229e9362006-12-02 22:14:11 +0000628 40, 104, 105, 146, 106, 107, 108, 147, 109, 43,
Reid Spencere7c3c602006-11-30 06:36:44 +0000629
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000630 43, 43, 43, 207, 110, 152, 111, 112, 40, 113,
Reid Spencer229e9362006-12-02 22:14:11 +0000631 102, 40, 153, 40, 40, 136, 44, 44, 44, 44,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000632 118, 165, 119, 120, 40, 121, 155, 122, 156, 123,
633 40, 124, 40, 162, 40, 125, 126, 47, 45, 45,
634 45, 45, 40, 138, 138, 138, 138, 40, 164, 163,
635 139, 179, 254, 176, 40, 134, 139, 47, 48, 48,
Reid Spencer229e9362006-12-02 22:14:11 +0000636 48, 48, 40, 140, 140, 140, 140, 40, 40, 140,
637 140, 40, 140, 140, 140, 140, 140, 140, 159, 149,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000638 40, 160, 40, 40, 40, 40, 40, 166, 40, 40,
639 161, 150, 40, 40, 173, 175, 40, 168, 41, 170,
Reid Spencere7c3c602006-11-30 06:36:44 +0000640
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000641 40, 40, 172, 167, 169, 178, 177, 183, 174, 40,
642 184, 189, 188, 40, 180, 181, 185, 182, 186, 40,
643 40, 40, 40, 40, 191, 40, 199, 190, 40, 40,
644 187, 194, 196, 40, 198, 192, 200, 40, 40, 40,
645 40, 40, 201, 40, 40, 195, 197, 40, 209, 40,
646 202, 40, 213, 208, 203, 204, 210, 40, 223, 219,
647 40, 40, 205, 40, 211, 206, 214, 40, 212, 221,
648 40, 40, 215, 225, 220, 216, 226, 40, 217, 224,
649 40, 218, 40, 222, 227, 40, 40, 40, 40, 231,
650 229, 40, 228, 40, 40, 233, 235, 239, 250, 282,
Reid Spencere7c3c602006-11-30 06:36:44 +0000651
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000652 248, 230, 40, 237, 40, 234, 240, 40, 232, 238,
653 236, 241, 40, 40, 249, 40, 40, 251, 253, 252,
654 242, 243, 40, 40, 40, 244, 40, 264, 255, 40,
655 245, 40, 266, 246, 40, 40, 256, 268, 247, 278,
656 265, 269, 257, 135, 135, 135, 135, 259, 259, 259,
657 259, 40, 267, 312, 260, 40, 40, 40, 272, 40,
658 260, 138, 138, 138, 138, 40, 270, 273, 139, 40,
659 271, 277, 279, 40, 139, 261, 262, 40, 263, 263,
660 263, 263, 40, 40, 40, 40, 275, 40, 276, 40,
661 40, 274, 40, 280, 40, 287, 284, 281, 283, 285,
Reid Spencere7c3c602006-11-30 06:36:44 +0000662
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000663 40, 40, 40, 40, 40, 291, 40, 40, 40, 298,
664 40, 286, 288, 289, 40, 295, 297, 290, 40, 300,
665 293, 40, 296, 294, 40, 40, 40, 299, 292, 40,
666 301, 40, 304, 302, 305, 40, 40, 308, 40, 40,
667 306, 307, 309, 40, 40, 40, 40, 303, 40, 40,
668 40, 311, 40, 313, 321, 329, 310, 40, 40, 314,
669 315, 40, 40, 40, 360, 348, 331, 316, 317, 317,
670 317, 317, 318, 319, 317, 317, 40, 317, 317, 317,
671 317, 317, 317, 327, 320, 322, 326, 323, 40, 40,
672 40, 324, 40, 325, 40, 40, 40, 40, 40, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000673
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000674 40, 40, 40, 40, 40, 335, 330, 334, 337, 339,
675 332, 40, 345, 333, 336, 40, 338, 40, 344, 340,
676 343, 342, 341, 40, 347, 40, 40, 40, 346, 40,
677 351, 40, 353, 349, 352, 355, 40, 40, 40, 40,
678 40, 350, 40, 354, 259, 259, 259, 259, 40, 364,
679 410, 260, 40, 363, 356, 359, 361, 260, 261, 261,
680 357, 358, 358, 358, 358, 358, 358, 358, 358, 263,
681 263, 263, 263, 40, 263, 263, 263, 263, 40, 40,
682 40, 40, 40, 40, 40, 40, 40, 40, 368, 40,
683 40, 40, 40, 40, 40, 374, 362, 367, 370, 377,
Reid Spencere7c3c602006-11-30 06:36:44 +0000684
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000685 40, 369, 373, 365, 366, 372, 40, 40, 40, 378,
686 375, 40, 40, 371, 376, 379, 384, 40, 40, 40,
687 40, 40, 386, 40, 40, 40, 40, 385, 387, 380,
688 381, 40, 40, 382, 40, 383, 392, 391, 40, 388,
689 40, 389, 390, 393, 395, 40, 394, 396, 40, 400,
690 40, 40, 40, 40, 40, 402, 40, 40, 397, 40,
691 40, 398, 404, 399, 401, 406, 408, 40, 411, 413,
692 403, 40, 40, 40, 40, 409, 405, 412, 414, 407,
693 40, 415, 40, 418, 40, 40, 40, 417, 416, 40,
694 40, 40, 419, 40, 423, 420, 421, 40, 422, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000695
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000696 40, 358, 358, 358, 358, 40, 40, 424, 40, 428,
697 431, 40, 425, 430, 426, 40, 432, 40, 434, 40,
698 427, 429, 435, 40, 40, 40, 436, 40, 433, 437,
699 40, 440, 439, 40, 40, 40, 438, 40, 40, 40,
700 40, 40, 443, 40, 40, 447, 441, 448, 40, 442,
701 452, 444, 449, 40, 446, 40, 450, 40, 445, 40,
702 40, 451, 40, 453, 40, 40, 40, 40, 458, 454,
703 40, 460, 461, 40, 456, 462, 463, 40, 455, 457,
704 40, 459, 464, 465, 40, 40, 40, 40, 40, 40,
705 40, 40, 40, 40, 40, 466, 469, 40, 473, 468,
Reid Spencer78720742006-12-02 20:21:22 +0000706
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000707 471, 476, 40, 467, 470, 477, 480, 40, 40, 474,
708 472, 40, 481, 479, 475, 478, 40, 40, 40, 40,
709 40, 40, 40, 40, 40, 40, 487, 40, 483, 484,
710 489, 482, 40, 40, 498, 486, 493, 494, 40, 40,
711 485, 491, 492, 40, 490, 496, 40, 40, 488, 497,
712 495, 500, 499, 40, 502, 40, 40, 40, 40, 40,
713 40, 40, 501, 40, 40, 40, 506, 40, 507, 40,
714 40, 509, 504, 505, 503, 510, 508, 512, 513, 40,
715 40, 514, 40, 511, 40, 40, 40, 40, 516, 40,
716 515, 40, 40, 521, 522, 40, 40, 520, 40, 40,
Reid Spencer78720742006-12-02 20:21:22 +0000717
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000718 517, 518, 524, 523, 525, 527, 40, 40, 531, 40,
719 40, 532, 526, 40, 528, 533, 534, 40, 529, 40,
720 536, 40, 40, 530, 40, 40, 40, 40, 40, 40,
721 538, 542, 535, 40, 40, 40, 40, 40, 546, 40,
722 537, 543, 549, 548, 544, 539, 547, 540, 541, 40,
723 40, 545, 550, 40, 40, 551, 40, 552, 553, 555,
724 40, 556, 558, 40, 40, 40, 40, 554, 559, 557,
725 40, 40, 40, 562, 40, 40, 40, 40, 40, 566,
726 560, 568, 40, 40, 564, 40, 40, 565, 40, 40,
727 567, 569, 40, 563, 561, 573, 40, 571, 570, 40,
Reid Spencer78720742006-12-02 20:21:22 +0000728
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000729 40, 574, 40, 40, 578, 577, 572, 40, 575, 40,
730 40, 581, 40, 40, 579, 580, 40, 576, 586, 40,
731 583, 40, 40, 588, 40, 40, 582, 584, 587, 40,
732 585, 40, 589, 40, 40, 40, 40, 40, 590, 595,
733 596, 597, 592, 591, 40, 40, 40, 40, 593, 40,
734 594, 601, 40, 40, 600, 602, 40, 40, 40, 599,
735 40, 40, 40, 40, 598, 40, 603, 37, 37, 37,
736 37, 39, 39, 50, 40, 50, 50, 40, 40, 40,
Reid Spencer229e9362006-12-02 22:14:11 +0000737 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
738 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
739
Reid Spencer78720742006-12-02 20:21:22 +0000740 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
741 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
742 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
743 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
744 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
745 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencerfcb5df82006-12-01 22:34:43 +0000746 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000747 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000748 40, 40, 40, 40, 40, 40, 40, 40, 258, 40,
749 40, 40, 40, 40, 133, 40, 38, 604, 3, 604,
Reid Spencer229e9362006-12-02 22:14:11 +0000750
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000751 604, 604, 604, 604, 604, 604, 604, 604, 604, 604,
752 604, 604, 604, 604, 604, 604, 604, 604, 604, 604,
753 604, 604, 604, 604, 604, 604, 604, 604, 604, 604,
754 604, 604, 604, 604, 604, 604, 604, 604, 604, 604,
755 604, 604
Reid Spencere7c3c602006-11-30 06:36:44 +0000756 } ;
757
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000758static yyconst short int yy_chk[1343] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000759 { 0,
760 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
761 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
762 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
763 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
764 1, 1, 1, 9, 58, 9, 9, 9, 9, 10,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000765 10, 10, 10, 11, 11, 11, 11, 11, 12, 493,
Reid Spencer229e9362006-12-02 22:14:11 +0000766 20, 63, 58, 12, 13, 13, 13, 13, 13, 13,
767 14, 14, 14, 14, 14, 14, 16, 20, 46, 17,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000768 20, 26, 63, 46, 16, 493, 92, 20, 17, 54,
Reid Spencer229e9362006-12-02 22:14:11 +0000769 26, 16, 17, 16, 18, 16, 13, 17, 16, 18,
Reid Spencere7c3c602006-11-30 06:36:44 +0000770
Reid Spencer229e9362006-12-02 22:14:11 +0000771 17, 18, 19, 61, 22, 26, 92, 19, 54, 24,
772 61, 19, 18, 22, 24, 19, 18, 19, 23, 22,
773 19, 21, 24, 64, 29, 23, 21, 24, 21, 21,
774 34, 24, 25, 29, 23, 23, 21, 25, 36, 34,
775 21, 28, 21, 33, 35, 35, 64, 36, 33, 31,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000776 25, 56, 51, 28, 31, 218, 25, 27, 52, 28,
777 51, 33, 56, 35, 28, 218, 27, 31, 27, 74,
Reid Spencer229e9362006-12-02 22:14:11 +0000778 31, 52, 27, 52, 27, 103, 27, 31, 27, 30,
779 53, 55, 74, 30, 42, 42, 42, 42, 53, 30,
780 60, 30, 30, 55, 30, 30, 30, 55, 30, 43,
Reid Spencere7c3c602006-11-30 06:36:44 +0000781
Reid Spencer229e9362006-12-02 22:14:11 +0000782 43, 43, 43, 103, 30, 60, 30, 30, 66, 30,
783 32, 62, 60, 69, 32, 44, 44, 44, 44, 44,
784 32, 69, 32, 32, 68, 32, 62, 32, 62, 32,
785 78, 32, 81, 66, 67, 32, 32, 45, 45, 45,
786 45, 45, 45, 47, 47, 47, 47, 47, 68, 67,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000787 47, 81, 130, 78, 130, 609, 47, 48, 48, 48,
Reid Spencer229e9362006-12-02 22:14:11 +0000788 48, 48, 48, 49, 49, 49, 49, 49, 57, 49,
789 49, 65, 49, 49, 49, 49, 49, 49, 65, 57,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000790 71, 65, 72, 73, 75, 76, 77, 71, 79, 80,
791 65, 57, 82, 84, 76, 77, 87, 72, 607, 73,
Reid Spencere7c3c602006-11-30 06:36:44 +0000792
Reid Spencer229e9362006-12-02 22:14:11 +0000793 86, 83, 75, 71, 72, 80, 79, 83, 76, 89,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000794 84, 87, 86, 85, 82, 82, 84, 82, 85, 88,
795 91, 96, 93, 94, 89, 95, 96, 88, 97, 98,
796 85, 93, 94, 100, 95, 91, 97, 99, 102, 101,
797 104, 105, 98, 106, 603, 93, 94, 601, 105, 110,
798 99, 108, 106, 104, 100, 101, 105, 107, 110, 108,
799 109, 111, 101, 113, 105, 102, 106, 112, 105, 109,
800 117, 114, 107, 112, 108, 107, 113, 116, 107, 111,
801 118, 107, 119, 109, 114, 120, 122, 121, 123, 117,
802 116, 125, 114, 164, 127, 119, 121, 123, 127, 164,
Reid Spencere7c3c602006-11-30 06:36:44 +0000803
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000804 125, 116, 126, 122, 128, 120, 123, 131, 118, 122,
805 121, 123, 124, 129, 126, 132, 142, 128, 129, 128,
806 124, 124, 143, 145, 148, 124, 160, 142, 131, 190,
807 124, 146, 145, 124, 150, 153, 132, 148, 124, 160,
808 143, 150, 132, 135, 135, 135, 135, 136, 136, 136,
809 136, 151, 146, 190, 136, 152, 159, 161, 153, 155,
810 136, 138, 138, 138, 138, 138, 151, 155, 138, 156,
811 152, 159, 161, 168, 138, 139, 139, 157, 139, 139,
812 139, 139, 139, 158, 163, 165, 157, 166, 158, 169,
813 167, 156, 171, 163, 170, 168, 166, 163, 165, 167,
Reid Spencere7c3c602006-11-30 06:36:44 +0000814
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000815 172, 173, 174, 177, 179, 172, 175, 176, 178, 177,
816 600, 167, 169, 170, 182, 175, 176, 171, 185, 179,
817 174, 180, 175, 174, 181, 183, 184, 178, 173, 186,
818 180, 187, 182, 181, 183, 188, 189, 186, 192, 199,
819 184, 185, 187, 202, 203, 210, 219, 181, 208, 207,
820 223, 189, 247, 192, 210, 219, 188, 265, 599, 199,
821 202, 209, 216, 212, 265, 247, 223, 203, 206, 206,
822 206, 206, 207, 208, 206, 206, 211, 206, 206, 206,
823 206, 206, 206, 216, 209, 211, 212, 211, 220, 224,
824 226, 211, 227, 211, 228, 229, 232, 233, 237, 230,
Reid Spencere7c3c602006-11-30 06:36:44 +0000825
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000826 231, 240, 238, 242, 597, 228, 220, 227, 230, 231,
827 224, 244, 242, 226, 229, 246, 230, 248, 240, 232,
828 238, 237, 233, 249, 246, 250, 251, 252, 244, 253,
829 250, 254, 252, 248, 251, 254, 256, 257, 264, 266,
830 328, 249, 273, 253, 259, 259, 259, 259, 269, 273,
831 328, 259, 595, 269, 256, 264, 266, 259, 260, 260,
832 257, 260, 260, 260, 260, 261, 261, 261, 261, 262,
833 262, 262, 262, 262, 263, 263, 263, 263, 263, 268,
834 274, 275, 276, 277, 278, 279, 280, 282, 277, 281,
835 283, 284, 294, 285, 286, 283, 268, 276, 279, 286,
Reid Spencere7c3c602006-11-30 06:36:44 +0000836
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000837 287, 278, 282, 274, 275, 281, 291, 292, 288, 287,
838 284, 293, 297, 280, 285, 288, 294, 298, 301, 300,
839 302, 305, 298, 304, 303, 306, 311, 297, 300, 291,
840 292, 307, 312, 293, 314, 293, 305, 304, 315, 301,
841 318, 302, 303, 306, 311, 316, 307, 312, 321, 318,
842 322, 320, 327, 323, 594, 321, 324, 325, 314, 329,
843 332, 315, 323, 316, 320, 324, 325, 330, 329, 332,
844 322, 333, 335, 336, 340, 327, 323, 330, 333, 324,
845 338, 335, 343, 340, 344, 346, 345, 338, 336, 347,
846 348, 350, 343, 351, 347, 344, 345, 353, 346, 355,
Reid Spencere7c3c602006-11-30 06:36:44 +0000847
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000848 356, 358, 358, 358, 358, 360, 363, 348, 361, 355,
849 360, 364, 350, 356, 351, 368, 361, 365, 364, 366,
850 353, 355, 365, 369, 367, 370, 366, 371, 363, 367,
851 372, 370, 369, 373, 374, 375, 368, 376, 377, 382,
852 379, 385, 373, 383, 384, 377, 371, 379, 386, 372,
853 385, 374, 382, 387, 376, 388, 383, 389, 375, 391,
854 390, 384, 394, 386, 393, 395, 396, 397, 391, 387,
855 399, 394, 395, 398, 389, 396, 397, 401, 388, 390,
856 402, 393, 398, 399, 410, 412, 411, 415, 414, 416,
857 419, 422, 425, 427, 423, 401, 411, 424, 416, 410,
Reid Spencere7c3c602006-11-30 06:36:44 +0000858
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000859 414, 423, 426, 402, 412, 424, 427, 428, 429, 419,
860 415, 430, 428, 426, 422, 425, 432, 433, 435, 436,
861 437, 438, 440, 441, 442, 454, 436, 447, 430, 432,
862 438, 429, 446, 452, 454, 435, 446, 446, 451, 457,
863 433, 441, 442, 455, 440, 451, 456, 459, 437, 452,
864 447, 456, 455, 464, 459, 465, 466, 468, 469, 476,
865 480, 481, 457, 475, 484, 483, 468, 486, 469, 482,
866 488, 476, 465, 466, 464, 480, 475, 482, 483, 491,
867 492, 484, 494, 481, 495, 497, 498, 499, 488, 500,
868 486, 501, 503, 495, 497, 504, 502, 494, 506, 507,
Reid Spencere7c3c602006-11-30 06:36:44 +0000869
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000870 491, 492, 499, 498, 500, 502, 508, 510, 507, 511,
871 509, 508, 501, 512, 503, 509, 510, 513, 504, 514,
872 512, 516, 519, 506, 517, 518, 521, 522, 523, 524,
873 514, 519, 511, 528, 530, 531, 539, 532, 524, 544,
874 513, 521, 531, 530, 522, 516, 528, 517, 518, 533,
875 535, 523, 532, 536, 537, 533, 542, 535, 536, 539,
876 543, 542, 544, 545, 546, 547, 548, 537, 545, 543,
877 549, 550, 551, 548, 552, 553, 554, 556, 558, 552,
878 546, 554, 557, 559, 550, 562, 560, 551, 564, 566,
879 553, 556, 561, 549, 547, 560, 565, 558, 557, 567,
Reid Spencere7c3c602006-11-30 06:36:44 +0000880
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000881 568, 561, 570, 571, 566, 565, 559, 572, 562, 576,
882 573, 570, 575, 578, 567, 568, 579, 564, 576, 580,
883 572, 581, 582, 579, 583, 584, 571, 573, 578, 585,
884 575, 586, 580, 587, 588, 589, 590, 592, 581, 586,
885 587, 588, 583, 582, 596, 602, 598, 593, 584, 591,
886 585, 596, 577, 574, 592, 598, 569, 563, 555, 590,
887 541, 540, 538, 534, 589, 529, 602, 605, 605, 605,
888 605, 606, 606, 608, 527, 608, 608, 526, 525, 520,
889 515, 505, 496, 490, 489, 487, 485, 479, 478, 477,
890 474, 473, 472, 471, 470, 467, 463, 462, 461, 460,
Reid Spencerfcb5df82006-12-01 22:34:43 +0000891
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000892 458, 453, 450, 449, 448, 445, 444, 443, 439, 434,
893 431, 421, 420, 418, 417, 413, 409, 408, 407, 406,
894 405, 404, 403, 400, 392, 381, 380, 378, 362, 359,
895 357, 354, 352, 349, 342, 341, 339, 337, 334, 331,
896 326, 319, 313, 310, 309, 308, 299, 296, 295, 290,
897 289, 272, 271, 270, 267, 255, 245, 243, 241, 239,
898 236, 235, 234, 225, 222, 221, 217, 215, 214, 213,
899 205, 204, 201, 200, 198, 197, 196, 195, 194, 193,
900 191, 162, 154, 149, 147, 144, 141, 137, 133, 115,
901 90, 70, 59, 39, 37, 8, 7, 3, 604, 604,
Reid Spencer229e9362006-12-02 22:14:11 +0000902
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000903 604, 604, 604, 604, 604, 604, 604, 604, 604, 604,
904 604, 604, 604, 604, 604, 604, 604, 604, 604, 604,
905 604, 604, 604, 604, 604, 604, 604, 604, 604, 604,
906 604, 604, 604, 604, 604, 604, 604, 604, 604, 604,
907 604, 604
Reid Spencere7c3c602006-11-30 06:36:44 +0000908 } ;
909
910static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
911static char *yy_full_match;
912static int yy_lp;
913#define REJECT \
914{ \
915*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
916yy_cp = yy_full_match; /* restore poss. backed-over text */ \
917++yy_lp; \
918goto find_rule; \
919}
920#define yymore() yymore_used_but_not_detected
921#define YY_MORE_ADJ 0
922#define YY_RESTORE_YY_MORE_OFFSET
923char *yytext;
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000924#line 1 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +0000925#define INITIAL 0
Reid Spencer96839be2006-11-30 16:50:26 +0000926/*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===//
Reid Spencere7c3c602006-11-30 06:36:44 +0000927//
928// The LLVM Compiler Infrastructure
929//
Reid Spencer96839be2006-11-30 16:50:26 +0000930// This file was developed by Reid Spencer and is distributed under the
931// University of Illinois Open Source License. See LICENSE.TXT for details.
Reid Spencere7c3c602006-11-30 06:36:44 +0000932//
933//===----------------------------------------------------------------------===//
934//
Reid Spencer96839be2006-11-30 16:50:26 +0000935// This file implements the flex scanner for LLVM 1.9 assembly languages files.
Reid Spencere7c3c602006-11-30 06:36:44 +0000936//
937//===----------------------------------------------------------------------===*/
938#define YY_NEVER_INTERACTIVE 1
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000939#line 28 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +0000940
941#include "ParserInternals.h"
Reid Spencere7c3c602006-11-30 06:36:44 +0000942#include "UpgradeParser.h"
943#include <cctype>
944#include <cstdlib>
945
Reid Spencer96839be2006-11-30 16:50:26 +0000946#define YY_INPUT(buf,result,max_size) \
947{ \
948 if (LexInput->good() && !LexInput->eof()) { \
949 LexInput->read(buf,max_size); \
950 result = LexInput->gcount(); \
951 } else {\
952 result = YY_NULL; \
953 } \
954}
955
956
Reid Spencere7c3c602006-11-30 06:36:44 +0000957// Construct a token value for a non-obsolete token
958#define RET_TOK(sym) \
Reid Spencere77e35e2006-12-01 20:26:20 +0000959 Upgradelval.String = new std::string(yytext); \
960 return sym
961
962#define RET_TY(sym,OldTY,NewTY,sign) \
963 Upgradelval.Type.newTy = new std::string(NewTY); \
964 Upgradelval.Type.oldTy = OldTY; \
Reid Spencer78720742006-12-02 20:21:22 +0000965 Upgradelval.Type.elemTy = VoidTy; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000966 return sym
967
968#define YY_NEVER_INTERACTIVE 1
969/* Comments start with a ; and go till end of line */
970/* Variable(Value) identifiers start with a % sign */
971/* Label identifiers end with a colon */
972/* Quoted names can contain any character except " and \ */
973/* [PN]Integer: match positive and negative literal integer values that
974 * are preceeded by a '%' character. These represent unnamed variable slots.
975 */
976/* E[PN]Integer: match positive and negative literal integer values */
977/* FPConstant - A Floating point constant.
978 */
979/* HexFPConstant - Floating point constant represented in IEEE format as a
980 * hexadecimal number for when exponential notation is not precise enough.
981 */
982/* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
983 * it to deal with 64 bit numbers.
984 */
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000985#line 986 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +0000986
987/* Macros after this point can all be overridden by user definitions in
988 * section 1.
989 */
990
991#ifndef YY_SKIP_YYWRAP
992#ifdef __cplusplus
993extern "C" int yywrap YY_PROTO(( void ));
994#else
995extern int yywrap YY_PROTO(( void ));
996#endif
997#endif
998
999#ifndef YY_NO_UNPUT
1000static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1001#endif
1002
1003#ifndef yytext_ptr
1004static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
1005#endif
1006
1007#ifdef YY_NEED_STRLEN
1008static int yy_flex_strlen YY_PROTO(( yyconst char * ));
1009#endif
1010
1011#ifndef YY_NO_INPUT
1012#ifdef __cplusplus
1013static int yyinput YY_PROTO(( void ));
1014#else
1015static int input YY_PROTO(( void ));
1016#endif
1017#endif
1018
1019#if YY_STACK_USED
1020static int yy_start_stack_ptr = 0;
1021static int yy_start_stack_depth = 0;
1022static int *yy_start_stack = 0;
1023#ifndef YY_NO_PUSH_STATE
1024static void yy_push_state YY_PROTO(( int new_state ));
1025#endif
1026#ifndef YY_NO_POP_STATE
1027static void yy_pop_state YY_PROTO(( void ));
1028#endif
1029#ifndef YY_NO_TOP_STATE
1030static int yy_top_state YY_PROTO(( void ));
1031#endif
1032
1033#else
1034#define YY_NO_PUSH_STATE 1
1035#define YY_NO_POP_STATE 1
1036#define YY_NO_TOP_STATE 1
1037#endif
1038
1039#ifdef YY_MALLOC_DECL
1040YY_MALLOC_DECL
1041#else
1042#if __STDC__
1043#ifndef __cplusplus
1044#include <stdlib.h>
1045#endif
1046#else
1047/* Just try to get by without declaring the routines. This will fail
1048 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1049 * or sizeof(void*) != sizeof(int).
1050 */
1051#endif
1052#endif
1053
1054/* Amount of stuff to slurp up with each read. */
1055#ifndef YY_READ_BUF_SIZE
1056#define YY_READ_BUF_SIZE 8192
1057#endif
1058
1059/* Copy whatever the last rule matched to the standard output. */
1060
1061#ifndef ECHO
1062/* This used to be an fputs(), but since the string might contain NUL's,
1063 * we now use fwrite().
1064 */
1065#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
1066#endif
1067
1068/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1069 * is returned in "result".
1070 */
1071#ifndef YY_INPUT
1072#define YY_INPUT(buf,result,max_size) \
1073 if ( yy_current_buffer->yy_is_interactive ) \
1074 { \
1075 int c = '*', n; \
1076 for ( n = 0; n < max_size && \
1077 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1078 buf[n] = (char) c; \
1079 if ( c == '\n' ) \
1080 buf[n++] = (char) c; \
1081 if ( c == EOF && ferror( yyin ) ) \
1082 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1083 result = n; \
1084 } \
1085 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1086 && ferror( yyin ) ) \
1087 YY_FATAL_ERROR( "input in flex scanner failed" );
1088#endif
1089
1090/* No semi-colon after return; correct usage is to write "yyterminate();" -
1091 * we don't want an extra ';' after the "return" because that will cause
1092 * some compilers to complain about unreachable statements.
1093 */
1094#ifndef yyterminate
1095#define yyterminate() return YY_NULL
1096#endif
1097
1098/* Number of entries by which start-condition stack grows. */
1099#ifndef YY_START_STACK_INCR
1100#define YY_START_STACK_INCR 25
1101#endif
1102
1103/* Report a fatal error. */
1104#ifndef YY_FATAL_ERROR
1105#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1106#endif
1107
1108/* Default declaration of generated scanner - a define so the user can
1109 * easily add parameters.
1110 */
1111#ifndef YY_DECL
1112#define YY_DECL int yylex YY_PROTO(( void ))
1113#endif
1114
1115/* Code executed at the beginning of each rule, after yytext and yyleng
1116 * have been set up.
1117 */
1118#ifndef YY_USER_ACTION
1119#define YY_USER_ACTION
1120#endif
1121
1122/* Code executed at the end of each rule. */
1123#ifndef YY_BREAK
1124#define YY_BREAK break;
1125#endif
1126
1127#define YY_RULE_SETUP \
1128 YY_USER_ACTION
1129
1130YY_DECL
1131 {
1132 register yy_state_type yy_current_state;
1133 register char *yy_cp = NULL, *yy_bp = NULL;
1134 register int yy_act;
1135
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001136#line 99 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001137
1138
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001139#line 1140 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00001140
1141 if ( yy_init )
1142 {
1143 yy_init = 0;
1144
1145#ifdef YY_USER_INIT
1146 YY_USER_INIT;
1147#endif
1148
1149 if ( ! yy_start )
1150 yy_start = 1; /* first start state */
1151
1152 if ( ! yyin )
1153 yyin = stdin;
1154
1155 if ( ! yyout )
1156 yyout = stdout;
1157
1158 if ( ! yy_current_buffer )
1159 yy_current_buffer =
1160 yy_create_buffer( yyin, YY_BUF_SIZE );
1161
1162 yy_load_buffer_state();
1163 }
1164
1165 while ( 1 ) /* loops until end-of-file is reached */
1166 {
1167 yy_cp = yy_c_buf_p;
1168
1169 /* Support of yytext. */
1170 *yy_cp = yy_hold_char;
1171
1172 /* yy_bp points to the position in yy_ch_buf of the start of
1173 * the current run.
1174 */
1175 yy_bp = yy_cp;
1176
1177 yy_current_state = yy_start;
1178 yy_state_ptr = yy_state_buf;
1179 *yy_state_ptr++ = yy_current_state;
1180yy_match:
1181 do
1182 {
1183 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1184 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1185 {
1186 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001187 if ( yy_current_state >= 605 )
Reid Spencere7c3c602006-11-30 06:36:44 +00001188 yy_c = yy_meta[(unsigned int) yy_c];
1189 }
1190 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1191 *yy_state_ptr++ = yy_current_state;
1192 ++yy_cp;
1193 }
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001194 while ( yy_current_state != 604 );
Reid Spencere7c3c602006-11-30 06:36:44 +00001195
1196yy_find_action:
1197 yy_current_state = *--yy_state_ptr;
1198 yy_lp = yy_accept[yy_current_state];
1199find_rule: /* we branch to this label when backing up */
1200 for ( ; ; ) /* until we find what rule we matched */
1201 {
1202 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1203 {
1204 yy_act = yy_acclist[yy_lp];
1205 {
1206 yy_full_match = yy_cp;
1207 break;
1208 }
1209 }
1210 --yy_cp;
1211 yy_current_state = *--yy_state_ptr;
1212 yy_lp = yy_accept[yy_current_state];
1213 }
1214
1215 YY_DO_BEFORE_ACTION;
1216
1217 if ( yy_act != YY_END_OF_BUFFER )
1218 {
1219 int yyl;
1220 for ( yyl = 0; yyl < yyleng; ++yyl )
1221 if ( yytext[yyl] == '\n' )
1222 ++yylineno;
1223 }
1224
1225do_action: /* This label is used only to access EOF actions. */
1226
1227
1228 switch ( yy_act )
1229 { /* beginning of action switch */
1230case 1:
1231YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001232#line 101 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001233{ /* Ignore comments for now */ }
1234 YY_BREAK
1235case 2:
1236YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001237#line 103 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001238{ RET_TOK( BEGINTOK); }
1239 YY_BREAK
1240case 3:
1241YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001242#line 104 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001243{ RET_TOK( ENDTOK); }
1244 YY_BREAK
1245case 4:
1246YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001247#line 105 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001248{ RET_TOK( TRUETOK); }
1249 YY_BREAK
1250case 5:
1251YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001252#line 106 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001253{ RET_TOK( FALSETOK); }
1254 YY_BREAK
1255case 6:
1256YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001257#line 107 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001258{ RET_TOK( DECLARE); }
1259 YY_BREAK
1260case 7:
1261YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001262#line 108 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1263{ RET_TOK( DEFINE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001264 YY_BREAK
1265case 8:
1266YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001267#line 109 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1268{ RET_TOK( GLOBAL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001269 YY_BREAK
1270case 9:
1271YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001272#line 110 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1273{ RET_TOK( CONSTANT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001274 YY_BREAK
1275case 10:
1276YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001277#line 111 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1278{ RET_TOK( INTERNAL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001279 YY_BREAK
1280case 11:
1281YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001282#line 112 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1283{ RET_TOK( LINKONCE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001284 YY_BREAK
1285case 12:
1286YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001287#line 113 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1288{ RET_TOK( WEAK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001289 YY_BREAK
1290case 13:
1291YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001292#line 114 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1293{ RET_TOK( APPENDING); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001294 YY_BREAK
1295case 14:
1296YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001297#line 115 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1298{ RET_TOK( DLLIMPORT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001299 YY_BREAK
1300case 15:
1301YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001302#line 116 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1303{ RET_TOK( DLLEXPORT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001304 YY_BREAK
1305case 16:
1306YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001307#line 117 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1308{ RET_TOK( EXTERN_WEAK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001309 YY_BREAK
1310case 17:
1311YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001312#line 118 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1313{ RET_TOK( EXTERNAL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001314 YY_BREAK
1315case 18:
1316YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001317#line 119 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1318{ RET_TOK( UNINITIALIZED); } // alias for external
Reid Spencere7c3c602006-11-30 06:36:44 +00001319 YY_BREAK
1320case 19:
1321YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001322#line 120 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1323{ RET_TOK( IMPLEMENTATION); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001324 YY_BREAK
1325case 20:
1326YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001327#line 121 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1328{ RET_TOK( ZEROINITIALIZER); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001329 YY_BREAK
1330case 21:
1331YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001332#line 122 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1333{ RET_TOK( DOTDOTDOT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001334 YY_BREAK
1335case 22:
1336YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001337#line 123 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1338{ RET_TOK( UNDEF); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001339 YY_BREAK
1340case 23:
1341YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001342#line 124 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1343{ RET_TOK( NULL_TOK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001344 YY_BREAK
1345case 24:
1346YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001347#line 125 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1348{ RET_TOK( TO); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001349 YY_BREAK
1350case 25:
1351YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001352#line 126 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1353{ RET_TOK( TAIL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001354 YY_BREAK
1355case 26:
1356YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001357#line 127 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1358{ RET_TOK( TARGET); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001359 YY_BREAK
1360case 27:
1361YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001362#line 128 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1363{ RET_TOK( TRIPLE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001364 YY_BREAK
1365case 28:
1366YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001367#line 129 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1368{ RET_TOK( DEPLIBS); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001369 YY_BREAK
1370case 29:
1371YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001372#line 130 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1373{ RET_TOK( ENDIAN); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001374 YY_BREAK
1375case 30:
1376YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001377#line 131 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1378{ RET_TOK( POINTERSIZE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001379 YY_BREAK
1380case 31:
1381YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001382#line 132 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1383{ RET_TOK( DATALAYOUT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001384 YY_BREAK
1385case 32:
1386YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001387#line 133 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1388{ RET_TOK( LITTLE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001389 YY_BREAK
1390case 33:
1391YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001392#line 134 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1393{ RET_TOK( BIG); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001394 YY_BREAK
1395case 34:
1396YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001397#line 135 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1398{ RET_TOK( VOLATILE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001399 YY_BREAK
1400case 35:
1401YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001402#line 136 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1403{ RET_TOK( ALIGN); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001404 YY_BREAK
1405case 36:
1406YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001407#line 137 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1408{ RET_TOK( SECTION); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001409 YY_BREAK
1410case 37:
1411YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001412#line 138 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1413{ RET_TOK( MODULE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001414 YY_BREAK
1415case 38:
1416YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001417#line 139 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1418{ RET_TOK( ASM_TOK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001419 YY_BREAK
1420case 39:
1421YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001422#line 140 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1423{ RET_TOK( SIDEEFFECT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001424 YY_BREAK
1425case 40:
1426YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001427#line 142 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1428{ RET_TOK( CC_TOK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001429 YY_BREAK
1430case 41:
1431YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001432#line 143 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1433{ RET_TOK( CCC_TOK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001434 YY_BREAK
1435case 42:
1436YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001437#line 144 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1438{ RET_TOK( CSRETCC_TOK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001439 YY_BREAK
1440case 43:
1441YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001442#line 145 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1443{ RET_TOK( FASTCC_TOK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001444 YY_BREAK
1445case 44:
1446YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001447#line 146 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1448{ RET_TOK( COLDCC_TOK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001449 YY_BREAK
1450case 45:
1451YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001452#line 147 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1453{ RET_TOK( X86_STDCALLCC_TOK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001454 YY_BREAK
1455case 46:
1456YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001457#line 148 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1458{ RET_TOK( X86_FASTCALLCC_TOK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001459 YY_BREAK
1460case 47:
1461YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001462#line 150 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1463{ RET_TY(VOID,VoidTy,"void",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001464 YY_BREAK
1465case 48:
1466YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001467#line 151 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1468{ RET_TY(BOOL,BoolTy,"bool",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001469 YY_BREAK
1470case 49:
1471YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001472#line 152 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1473{ RET_TY(SBYTE,SByteTy,"sbyte",true); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001474 YY_BREAK
1475case 50:
1476YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001477#line 153 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1478{ RET_TY(UBYTE,UByteTy,"ubyte",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001479 YY_BREAK
1480case 51:
1481YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001482#line 154 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1483{ RET_TY(SHORT,ShortTy,"short",true); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001484 YY_BREAK
1485case 52:
1486YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001487#line 155 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1488{ RET_TY(USHORT,UShortTy,"ushort",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001489 YY_BREAK
1490case 53:
1491YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001492#line 156 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1493{ RET_TY(INT,IntTy,"int",true); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001494 YY_BREAK
1495case 54:
1496YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001497#line 157 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1498{ RET_TY(UINT,UIntTy,"uint",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001499 YY_BREAK
1500case 55:
1501YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001502#line 158 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1503{ RET_TY(LONG,LongTy,"long",true); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001504 YY_BREAK
1505case 56:
1506YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001507#line 159 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1508{ RET_TY(ULONG,ULongTy,"ulong",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001509 YY_BREAK
1510case 57:
1511YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001512#line 160 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1513{ RET_TY(FLOAT,FloatTy,"float",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001514 YY_BREAK
1515case 58:
1516YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001517#line 161 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1518{ RET_TY(DOUBLE,DoubleTy,"double",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001519 YY_BREAK
1520case 59:
1521YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001522#line 162 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1523{ RET_TY(LABEL,LabelTy,"label",false); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001524 YY_BREAK
1525case 60:
1526YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001527#line 163 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1528{ RET_TOK(OPAQUE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001529 YY_BREAK
1530case 61:
1531YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001532#line 164 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1533{ RET_TOK(TYPE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001534 YY_BREAK
1535case 62:
1536YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001537#line 166 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1538{ RET_TOK( ADD); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001539 YY_BREAK
1540case 63:
1541YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001542#line 167 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1543{ RET_TOK( SUB); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001544 YY_BREAK
1545case 64:
1546YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001547#line 168 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1548{ RET_TOK( MUL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001549 YY_BREAK
1550case 65:
1551YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001552#line 169 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1553{ RET_TOK( DIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001554 YY_BREAK
1555case 66:
1556YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001557#line 170 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1558{ RET_TOK( UDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001559 YY_BREAK
1560case 67:
1561YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001562#line 171 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1563{ RET_TOK( SDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001564 YY_BREAK
1565case 68:
1566YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001567#line 172 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1568{ RET_TOK( FDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001569 YY_BREAK
1570case 69:
1571YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001572#line 173 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1573{ RET_TOK( REM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001574 YY_BREAK
1575case 70:
1576YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001577#line 174 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1578{ RET_TOK( UREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001579 YY_BREAK
1580case 71:
1581YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001582#line 175 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1583{ RET_TOK( SREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001584 YY_BREAK
1585case 72:
1586YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001587#line 176 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1588{ RET_TOK( FREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001589 YY_BREAK
1590case 73:
1591YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001592#line 177 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1593{ RET_TOK( AND); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001594 YY_BREAK
1595case 74:
1596YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001597#line 178 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1598{ RET_TOK( OR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001599 YY_BREAK
1600case 75:
1601YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001602#line 179 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1603{ RET_TOK( XOR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001604 YY_BREAK
1605case 76:
1606YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001607#line 180 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1608{ RET_TOK( SETNE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001609 YY_BREAK
1610case 77:
1611YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001612#line 181 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1613{ RET_TOK( SETEQ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001614 YY_BREAK
1615case 78:
1616YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001617#line 182 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1618{ RET_TOK( SETLT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001619 YY_BREAK
1620case 79:
1621YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001622#line 183 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1623{ RET_TOK( SETGT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001624 YY_BREAK
1625case 80:
1626YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001627#line 184 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1628{ RET_TOK( SETLE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001629 YY_BREAK
1630case 81:
1631YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001632#line 185 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1633{ RET_TOK( SETGE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001634 YY_BREAK
1635case 82:
1636YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001637#line 186 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1638{ RET_TOK(ICMP); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001639 YY_BREAK
1640case 83:
1641YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001642#line 187 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1643{ RET_TOK(FCMP); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001644 YY_BREAK
1645case 84:
1646YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001647#line 188 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1648{ RET_TOK(EQ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001649 YY_BREAK
1650case 85:
1651YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001652#line 189 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1653{ RET_TOK(NE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001654 YY_BREAK
1655case 86:
1656YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001657#line 190 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1658{ RET_TOK(SLT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001659 YY_BREAK
1660case 87:
1661YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001662#line 191 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1663{ RET_TOK(SGT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001664 YY_BREAK
1665case 88:
1666YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001667#line 192 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1668{ RET_TOK(SLE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001669 YY_BREAK
1670case 89:
1671YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001672#line 193 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1673{ RET_TOK(SGE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001674 YY_BREAK
1675case 90:
1676YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001677#line 194 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1678{ RET_TOK(OEQ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001679 YY_BREAK
1680case 91:
1681YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001682#line 195 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1683{ RET_TOK(ONE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001684 YY_BREAK
1685case 92:
1686YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001687#line 196 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1688{ RET_TOK(OLT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001689 YY_BREAK
1690case 93:
1691YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001692#line 197 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1693{ RET_TOK(OGT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001694 YY_BREAK
1695case 94:
1696YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001697#line 198 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1698{ RET_TOK(OLE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001699 YY_BREAK
1700case 95:
1701YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001702#line 199 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1703{ RET_TOK(OGE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001704 YY_BREAK
1705case 96:
1706YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001707#line 200 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1708{ RET_TOK(ORD); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001709 YY_BREAK
1710case 97:
1711YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001712#line 201 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1713{ RET_TOK(UNO); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001714 YY_BREAK
1715case 98:
1716YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001717#line 202 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1718{ RET_TOK(UEQ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001719 YY_BREAK
1720case 99:
1721YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001722#line 203 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1723{ RET_TOK(UNE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001724 YY_BREAK
1725case 100:
1726YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001727#line 204 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1728{ RET_TOK(ULT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001729 YY_BREAK
1730case 101:
1731YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001732#line 205 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1733{ RET_TOK(UGT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001734 YY_BREAK
1735case 102:
1736YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001737#line 206 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1738{ RET_TOK(ULE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001739 YY_BREAK
1740case 103:
1741YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001742#line 207 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1743{ RET_TOK(UGE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001744 YY_BREAK
1745case 104:
1746YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001747#line 209 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1748{ RET_TOK( PHI_TOK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001749 YY_BREAK
1750case 105:
1751YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001752#line 210 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1753{ RET_TOK( CALL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001754 YY_BREAK
1755case 106:
1756YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001757#line 211 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1758{ RET_TOK( CAST); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001759 YY_BREAK
1760case 107:
1761YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001762#line 212 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1763{ RET_TOK( TRUNC); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001764 YY_BREAK
1765case 108:
1766YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001767#line 213 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1768{ RET_TOK( ZEXT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001769 YY_BREAK
1770case 109:
1771YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001772#line 214 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1773{ RET_TOK( SEXT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001774 YY_BREAK
1775case 110:
1776YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001777#line 215 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1778{ RET_TOK( FPTRUNC); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001779 YY_BREAK
1780case 111:
1781YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001782#line 216 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1783{ RET_TOK( FPEXT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001784 YY_BREAK
1785case 112:
1786YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001787#line 217 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1788{ RET_TOK( FPTOUI); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001789 YY_BREAK
1790case 113:
1791YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001792#line 218 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1793{ RET_TOK( FPTOSI); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001794 YY_BREAK
Reid Spencer16244f42006-12-01 21:10:07 +00001795case 114:
1796YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001797#line 219 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1798{ RET_TOK( UITOFP); }
Reid Spencer16244f42006-12-01 21:10:07 +00001799 YY_BREAK
Reid Spencerf7bde222006-12-01 22:26:37 +00001800case 115:
1801YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001802#line 220 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1803{ RET_TOK( SITOFP); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001804 YY_BREAK
1805case 116:
1806YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001807#line 221 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1808{ RET_TOK( PTRTOINT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001809 YY_BREAK
1810case 117:
1811YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001812#line 222 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1813{ RET_TOK( INTTOPTR); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001814 YY_BREAK
1815case 118:
1816YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001817#line 223 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1818{ RET_TOK( BITCAST); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001819 YY_BREAK
1820case 119:
1821YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001822#line 224 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1823{ RET_TOK( SELECT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001824 YY_BREAK
1825case 120:
1826YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001827#line 225 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1828{ RET_TOK( SHL); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001829 YY_BREAK
1830case 121:
1831YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001832#line 226 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1833{ RET_TOK( SHR); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001834 YY_BREAK
1835case 122:
1836YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001837#line 227 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1838{ RET_TOK( ASHR); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001839 YY_BREAK
1840case 123:
1841YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001842#line 228 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1843{ RET_TOK( LSHR); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001844 YY_BREAK
1845case 124:
1846YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001847#line 229 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1848{ RET_TOK( VAARG); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001849 YY_BREAK
1850case 125:
1851YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001852#line 230 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1853{ RET_TOK( RET); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001854 YY_BREAK
1855case 126:
1856YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001857#line 231 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1858{ RET_TOK( BR); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001859 YY_BREAK
1860case 127:
1861YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001862#line 232 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1863{ RET_TOK( SWITCH); }
Reid Spencer78720742006-12-02 20:21:22 +00001864 YY_BREAK
1865case 128:
1866YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001867#line 233 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1868{ RET_TOK( INVOKE); }
Reid Spencer229e9362006-12-02 22:14:11 +00001869 YY_BREAK
1870case 129:
1871YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001872#line 234 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1873{ RET_TOK( UNWIND); }
Reid Spencer229e9362006-12-02 22:14:11 +00001874 YY_BREAK
1875case 130:
1876YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001877#line 235 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1878{ RET_TOK( EXCEPT); } // alias for unwind
Reid Spencer229e9362006-12-02 22:14:11 +00001879 YY_BREAK
1880case 131:
1881YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001882#line 236 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1883{ RET_TOK( UNREACHABLE); }
Reid Spencer229e9362006-12-02 22:14:11 +00001884 YY_BREAK
1885case 132:
1886YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001887#line 238 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1888{ RET_TOK( MALLOC); }
Reid Spencer229e9362006-12-02 22:14:11 +00001889 YY_BREAK
1890case 133:
1891YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001892#line 239 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1893{ RET_TOK( ALLOCA); }
Reid Spencer229e9362006-12-02 22:14:11 +00001894 YY_BREAK
1895case 134:
1896YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001897#line 240 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1898{ RET_TOK( FREE); }
Reid Spencer229e9362006-12-02 22:14:11 +00001899 YY_BREAK
1900case 135:
1901YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001902#line 241 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1903{ RET_TOK( LOAD); }
Reid Spencer229e9362006-12-02 22:14:11 +00001904 YY_BREAK
1905case 136:
1906YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001907#line 242 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1908{ RET_TOK( STORE); }
Reid Spencer229e9362006-12-02 22:14:11 +00001909 YY_BREAK
1910case 137:
1911YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001912#line 243 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1913{ RET_TOK( GETELEMENTPTR); }
Reid Spencer229e9362006-12-02 22:14:11 +00001914 YY_BREAK
1915case 138:
1916YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001917#line 245 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1918{ RET_TOK( EXTRACTELEMENT); }
Reid Spencer229e9362006-12-02 22:14:11 +00001919 YY_BREAK
1920case 139:
1921YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001922#line 246 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1923{ RET_TOK( INSERTELEMENT); }
Reid Spencer229e9362006-12-02 22:14:11 +00001924 YY_BREAK
1925case 140:
1926YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001927#line 247 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1928{ RET_TOK( SHUFFLEVECTOR); }
Reid Spencer229e9362006-12-02 22:14:11 +00001929 YY_BREAK
1930case 141:
1931YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001932#line 250 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1933{ RET_TOK( VAR_ID); }
Reid Spencer229e9362006-12-02 22:14:11 +00001934 YY_BREAK
1935case 142:
1936YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001937#line 251 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer229e9362006-12-02 22:14:11 +00001938{ RET_TOK( LABELSTR); }
1939 YY_BREAK
1940case 143:
1941YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001942#line 252 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1943{ RET_TOK( LABELSTR); }
Reid Spencer229e9362006-12-02 22:14:11 +00001944 YY_BREAK
1945case 144:
1946YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001947#line 253 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1948{ RET_TOK( STRINGCONSTANT ); }
Reid Spencer229e9362006-12-02 22:14:11 +00001949 YY_BREAK
1950case 145:
1951YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001952#line 254 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1953{ RET_TOK( EUINT64VAL ); }
Reid Spencer229e9362006-12-02 22:14:11 +00001954 YY_BREAK
1955case 146:
1956YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001957#line 255 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1958{ RET_TOK( ESINT64VAL ); }
Reid Spencer229e9362006-12-02 22:14:11 +00001959 YY_BREAK
1960case 147:
1961YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001962#line 256 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1963{ RET_TOK( yytext[0] == 's' ? ESINT64VAL : EUINT64VAL ); }
Reid Spencer229e9362006-12-02 22:14:11 +00001964 YY_BREAK
1965case 148:
1966YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001967#line 257 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1968{ RET_TOK( UINTVAL); }
Reid Spencer229e9362006-12-02 22:14:11 +00001969 YY_BREAK
1970case 149:
1971YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001972#line 258 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1973{ RET_TOK( SINTVAL); }
Reid Spencer229e9362006-12-02 22:14:11 +00001974 YY_BREAK
1975case 150:
1976YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001977#line 259 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1978{ RET_TOK( FPVAL); }
1979 YY_BREAK
1980case 151:
1981YY_RULE_SETUP
1982#line 260 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerf7bde222006-12-01 22:26:37 +00001983{ RET_TOK( FPVAL); }
1984 YY_BREAK
1985case YY_STATE_EOF(INITIAL):
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001986#line 261 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001987{
1988 /* Make sure to free the internal buffers for flex when we are
1989 * done reading our input!
1990 */
1991 yy_delete_buffer(YY_CURRENT_BUFFER);
1992 return EOF;
1993 }
1994 YY_BREAK
Reid Spencer229e9362006-12-02 22:14:11 +00001995case 152:
Reid Spencerf7bde222006-12-01 22:26:37 +00001996YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001997#line 269 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1998{ /* Ignore whitespace */ }
Reid Spencer78720742006-12-02 20:21:22 +00001999 YY_BREAK
Reid Spencer229e9362006-12-02 22:14:11 +00002000case 153:
Reid Spencer78720742006-12-02 20:21:22 +00002001YY_RULE_SETUP
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002002#line 270 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
2003{ return yytext[0]; }
2004 YY_BREAK
2005case 154:
2006YY_RULE_SETUP
2007#line 272 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00002008YY_FATAL_ERROR( "flex scanner jammed" );
2009 YY_BREAK
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002010#line 2011 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00002011
2012 case YY_END_OF_BUFFER:
2013 {
2014 /* Amount of text matched not including the EOB char. */
2015 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
2016
2017 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2018 *yy_cp = yy_hold_char;
2019 YY_RESTORE_YY_MORE_OFFSET
2020
2021 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
2022 {
2023 /* We're scanning a new file or input source. It's
2024 * possible that this happened because the user
2025 * just pointed yyin at a new source and called
2026 * yylex(). If so, then we have to assure
2027 * consistency between yy_current_buffer and our
2028 * globals. Here is the right place to do so, because
2029 * this is the first action (other than possibly a
2030 * back-up) that will match for the new input source.
2031 */
2032 yy_n_chars = yy_current_buffer->yy_n_chars;
2033 yy_current_buffer->yy_input_file = yyin;
2034 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
2035 }
2036
2037 /* Note that here we test for yy_c_buf_p "<=" to the position
2038 * of the first EOB in the buffer, since yy_c_buf_p will
2039 * already have been incremented past the NUL character
2040 * (since all states make transitions on EOB to the
2041 * end-of-buffer state). Contrast this with the test
2042 * in input().
2043 */
2044 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2045 { /* This was really a NUL. */
2046 yy_state_type yy_next_state;
2047
2048 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
2049
2050 yy_current_state = yy_get_previous_state();
2051
2052 /* Okay, we're now positioned to make the NUL
2053 * transition. We couldn't have
2054 * yy_get_previous_state() go ahead and do it
2055 * for us because it doesn't know how to deal
2056 * with the possibility of jamming (and we don't
2057 * want to build jamming into it because then it
2058 * will run more slowly).
2059 */
2060
2061 yy_next_state = yy_try_NUL_trans( yy_current_state );
2062
2063 yy_bp = yytext_ptr + YY_MORE_ADJ;
2064
2065 if ( yy_next_state )
2066 {
2067 /* Consume the NUL. */
2068 yy_cp = ++yy_c_buf_p;
2069 yy_current_state = yy_next_state;
2070 goto yy_match;
2071 }
2072
2073 else
2074 {
2075 yy_cp = yy_c_buf_p;
2076 goto yy_find_action;
2077 }
2078 }
2079
2080 else switch ( yy_get_next_buffer() )
2081 {
2082 case EOB_ACT_END_OF_FILE:
2083 {
2084 yy_did_buffer_switch_on_eof = 0;
2085
2086 if ( yywrap() )
2087 {
2088 /* Note: because we've taken care in
2089 * yy_get_next_buffer() to have set up
2090 * yytext, we can now set up
2091 * yy_c_buf_p so that if some total
2092 * hoser (like flex itself) wants to
2093 * call the scanner after we return the
2094 * YY_NULL, it'll still work - another
2095 * YY_NULL will get returned.
2096 */
2097 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
2098
2099 yy_act = YY_STATE_EOF(YY_START);
2100 goto do_action;
2101 }
2102
2103 else
2104 {
2105 if ( ! yy_did_buffer_switch_on_eof )
2106 YY_NEW_FILE;
2107 }
2108 break;
2109 }
2110
2111 case EOB_ACT_CONTINUE_SCAN:
2112 yy_c_buf_p =
2113 yytext_ptr + yy_amount_of_matched_text;
2114
2115 yy_current_state = yy_get_previous_state();
2116
2117 yy_cp = yy_c_buf_p;
2118 yy_bp = yytext_ptr + YY_MORE_ADJ;
2119 goto yy_match;
2120
2121 case EOB_ACT_LAST_MATCH:
2122 yy_c_buf_p =
2123 &yy_current_buffer->yy_ch_buf[yy_n_chars];
2124
2125 yy_current_state = yy_get_previous_state();
2126
2127 yy_cp = yy_c_buf_p;
2128 yy_bp = yytext_ptr + YY_MORE_ADJ;
2129 goto yy_find_action;
2130 }
2131 break;
2132 }
2133
2134 default:
2135 YY_FATAL_ERROR(
2136 "fatal flex scanner internal error--no action found" );
2137 } /* end of action switch */
2138 } /* end of scanning one token */
2139 } /* end of yylex */
2140
2141
2142/* yy_get_next_buffer - try to read in a new buffer
2143 *
2144 * Returns a code representing an action:
2145 * EOB_ACT_LAST_MATCH -
2146 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2147 * EOB_ACT_END_OF_FILE - end of file
2148 */
2149
2150static int yy_get_next_buffer()
2151 {
2152 register char *dest = yy_current_buffer->yy_ch_buf;
2153 register char *source = yytext_ptr;
2154 register int number_to_move, i;
2155 int ret_val;
2156
2157 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
2158 YY_FATAL_ERROR(
2159 "fatal flex scanner internal error--end of buffer missed" );
2160
2161 if ( yy_current_buffer->yy_fill_buffer == 0 )
2162 { /* Don't try to fill the buffer, so this is an EOF. */
2163 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
2164 {
2165 /* We matched a single character, the EOB, so
2166 * treat this as a final EOF.
2167 */
2168 return EOB_ACT_END_OF_FILE;
2169 }
2170
2171 else
2172 {
2173 /* We matched some text prior to the EOB, first
2174 * process it.
2175 */
2176 return EOB_ACT_LAST_MATCH;
2177 }
2178 }
2179
2180 /* Try to read more data. */
2181
2182 /* First move last chars to start of buffer. */
2183 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
2184
2185 for ( i = 0; i < number_to_move; ++i )
2186 *(dest++) = *(source++);
2187
2188 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2189 /* don't do the read, it's not guaranteed to return an EOF,
2190 * just force an EOF
2191 */
2192 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
2193
2194 else
2195 {
2196 int num_to_read =
2197 yy_current_buffer->yy_buf_size - number_to_move - 1;
2198
2199 while ( num_to_read <= 0 )
2200 { /* Not enough room in the buffer - grow it. */
2201#ifdef YY_USES_REJECT
2202 YY_FATAL_ERROR(
2203"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2204#else
2205
2206 /* just a shorter name for the current buffer */
2207 YY_BUFFER_STATE b = yy_current_buffer;
2208
2209 int yy_c_buf_p_offset =
2210 (int) (yy_c_buf_p - b->yy_ch_buf);
2211
2212 if ( b->yy_is_our_buffer )
2213 {
2214 int new_size = b->yy_buf_size * 2;
2215
2216 if ( new_size <= 0 )
2217 b->yy_buf_size += b->yy_buf_size / 8;
2218 else
2219 b->yy_buf_size *= 2;
2220
2221 b->yy_ch_buf = (char *)
2222 /* Include room in for 2 EOB chars. */
2223 yy_flex_realloc( (void *) b->yy_ch_buf,
2224 b->yy_buf_size + 2 );
2225 }
2226 else
2227 /* Can't grow it, we don't own it. */
2228 b->yy_ch_buf = 0;
2229
2230 if ( ! b->yy_ch_buf )
2231 YY_FATAL_ERROR(
2232 "fatal error - scanner input buffer overflow" );
2233
2234 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2235
2236 num_to_read = yy_current_buffer->yy_buf_size -
2237 number_to_move - 1;
2238#endif
2239 }
2240
2241 if ( num_to_read > YY_READ_BUF_SIZE )
2242 num_to_read = YY_READ_BUF_SIZE;
2243
2244 /* Read in more data. */
2245 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2246 yy_n_chars, num_to_read );
2247
2248 yy_current_buffer->yy_n_chars = yy_n_chars;
2249 }
2250
2251 if ( yy_n_chars == 0 )
2252 {
2253 if ( number_to_move == YY_MORE_ADJ )
2254 {
2255 ret_val = EOB_ACT_END_OF_FILE;
2256 yyrestart( yyin );
2257 }
2258
2259 else
2260 {
2261 ret_val = EOB_ACT_LAST_MATCH;
2262 yy_current_buffer->yy_buffer_status =
2263 YY_BUFFER_EOF_PENDING;
2264 }
2265 }
2266
2267 else
2268 ret_val = EOB_ACT_CONTINUE_SCAN;
2269
2270 yy_n_chars += number_to_move;
2271 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2272 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2273
2274 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2275
2276 return ret_val;
2277 }
2278
2279
2280/* yy_get_previous_state - get the state just before the EOB char was reached */
2281
2282static yy_state_type yy_get_previous_state()
2283 {
2284 register yy_state_type yy_current_state;
2285 register char *yy_cp;
2286
2287 yy_current_state = yy_start;
2288 yy_state_ptr = yy_state_buf;
2289 *yy_state_ptr++ = yy_current_state;
2290
2291 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2292 {
2293 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2294 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2295 {
2296 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002297 if ( yy_current_state >= 605 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002298 yy_c = yy_meta[(unsigned int) yy_c];
2299 }
2300 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2301 *yy_state_ptr++ = yy_current_state;
2302 }
2303
2304 return yy_current_state;
2305 }
2306
2307
2308/* yy_try_NUL_trans - try to make a transition on the NUL character
2309 *
2310 * synopsis
2311 * next_state = yy_try_NUL_trans( current_state );
2312 */
2313
2314#ifdef YY_USE_PROTOS
2315static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2316#else
2317static yy_state_type yy_try_NUL_trans( yy_current_state )
2318yy_state_type yy_current_state;
2319#endif
2320 {
2321 register int yy_is_jam;
2322
2323 register YY_CHAR yy_c = 1;
2324 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2325 {
2326 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002327 if ( yy_current_state >= 605 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002328 yy_c = yy_meta[(unsigned int) yy_c];
2329 }
2330 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002331 yy_is_jam = (yy_current_state == 604);
Reid Spencere7c3c602006-11-30 06:36:44 +00002332 if ( ! yy_is_jam )
2333 *yy_state_ptr++ = yy_current_state;
2334
2335 return yy_is_jam ? 0 : yy_current_state;
2336 }
2337
2338
2339#ifndef YY_NO_UNPUT
2340#ifdef YY_USE_PROTOS
2341static inline void yyunput( int c, register char *yy_bp )
2342#else
2343static inline void yyunput( c, yy_bp )
2344int c;
2345register char *yy_bp;
2346#endif
2347 {
2348 register char *yy_cp = yy_c_buf_p;
2349
2350 /* undo effects of setting up yytext */
2351 *yy_cp = yy_hold_char;
2352
2353 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2354 { /* need to shift things up to make room */
2355 /* +2 for EOB chars. */
2356 register int number_to_move = yy_n_chars + 2;
2357 register char *dest = &yy_current_buffer->yy_ch_buf[
2358 yy_current_buffer->yy_buf_size + 2];
2359 register char *source =
2360 &yy_current_buffer->yy_ch_buf[number_to_move];
2361
2362 while ( source > yy_current_buffer->yy_ch_buf )
2363 *--dest = *--source;
2364
2365 yy_cp += (int) (dest - source);
2366 yy_bp += (int) (dest - source);
2367 yy_current_buffer->yy_n_chars =
2368 yy_n_chars = yy_current_buffer->yy_buf_size;
2369
2370 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2371 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2372 }
2373
2374 *--yy_cp = (char) c;
2375
2376 if ( c == '\n' )
2377 --yylineno;
2378
2379 yytext_ptr = yy_bp;
2380 yy_hold_char = *yy_cp;
2381 yy_c_buf_p = yy_cp;
2382 }
2383#endif /* ifndef YY_NO_UNPUT */
2384
2385
2386#ifndef YY_NO_INPUT
2387#ifdef __cplusplus
2388static int yyinput()
2389#else
2390static int input()
2391#endif
2392 {
2393 int c;
2394
2395 *yy_c_buf_p = yy_hold_char;
2396
2397 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2398 {
2399 /* yy_c_buf_p now points to the character we want to return.
2400 * If this occurs *before* the EOB characters, then it's a
2401 * valid NUL; if not, then we've hit the end of the buffer.
2402 */
2403 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2404 /* This was really a NUL. */
2405 *yy_c_buf_p = '\0';
2406
2407 else
2408 { /* need more input */
2409 int offset = yy_c_buf_p - yytext_ptr;
2410 ++yy_c_buf_p;
2411
2412 switch ( yy_get_next_buffer() )
2413 {
2414 case EOB_ACT_LAST_MATCH:
2415 /* This happens because yy_g_n_b()
2416 * sees that we've accumulated a
2417 * token and flags that we need to
2418 * try matching the token before
2419 * proceeding. But for input(),
2420 * there's no matching to consider.
2421 * So convert the EOB_ACT_LAST_MATCH
2422 * to EOB_ACT_END_OF_FILE.
2423 */
2424
2425 /* Reset buffer status. */
2426 yyrestart( yyin );
2427
2428 /* fall through */
2429
2430 case EOB_ACT_END_OF_FILE:
2431 {
2432 if ( yywrap() )
2433 return EOF;
2434
2435 if ( ! yy_did_buffer_switch_on_eof )
2436 YY_NEW_FILE;
2437#ifdef __cplusplus
2438 return yyinput();
2439#else
2440 return input();
2441#endif
2442 }
2443
2444 case EOB_ACT_CONTINUE_SCAN:
2445 yy_c_buf_p = yytext_ptr + offset;
2446 break;
2447 }
2448 }
2449 }
2450
2451 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2452 *yy_c_buf_p = '\0'; /* preserve yytext */
2453 yy_hold_char = *++yy_c_buf_p;
2454
2455 if ( c == '\n' )
2456 ++yylineno;
2457
2458 return c;
2459 }
2460#endif /* YY_NO_INPUT */
2461
2462#ifdef YY_USE_PROTOS
2463void yyrestart( FILE *input_file )
2464#else
2465void yyrestart( input_file )
2466FILE *input_file;
2467#endif
2468 {
2469 if ( ! yy_current_buffer )
2470 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2471
2472 yy_init_buffer( yy_current_buffer, input_file );
2473 yy_load_buffer_state();
2474 }
2475
2476
2477#ifdef YY_USE_PROTOS
2478void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2479#else
2480void yy_switch_to_buffer( new_buffer )
2481YY_BUFFER_STATE new_buffer;
2482#endif
2483 {
2484 if ( yy_current_buffer == new_buffer )
2485 return;
2486
2487 if ( yy_current_buffer )
2488 {
2489 /* Flush out information for old buffer. */
2490 *yy_c_buf_p = yy_hold_char;
2491 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2492 yy_current_buffer->yy_n_chars = yy_n_chars;
2493 }
2494
2495 yy_current_buffer = new_buffer;
2496 yy_load_buffer_state();
2497
2498 /* We don't actually know whether we did this switch during
2499 * EOF (yywrap()) processing, but the only time this flag
2500 * is looked at is after yywrap() is called, so it's safe
2501 * to go ahead and always set it.
2502 */
2503 yy_did_buffer_switch_on_eof = 1;
2504 }
2505
2506
2507#ifdef YY_USE_PROTOS
2508void yy_load_buffer_state( void )
2509#else
2510void yy_load_buffer_state()
2511#endif
2512 {
2513 yy_n_chars = yy_current_buffer->yy_n_chars;
2514 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2515 yyin = yy_current_buffer->yy_input_file;
2516 yy_hold_char = *yy_c_buf_p;
2517 }
2518
2519
2520#ifdef YY_USE_PROTOS
2521YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2522#else
2523YY_BUFFER_STATE yy_create_buffer( file, size )
2524FILE *file;
2525int size;
2526#endif
2527 {
2528 YY_BUFFER_STATE b;
2529
2530 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2531 if ( ! b )
2532 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2533
2534 b->yy_buf_size = size;
2535
2536 /* yy_ch_buf has to be 2 characters longer than the size given because
2537 * we need to put in 2 end-of-buffer characters.
2538 */
2539 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2540 if ( ! b->yy_ch_buf )
2541 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2542
2543 b->yy_is_our_buffer = 1;
2544
2545 yy_init_buffer( b, file );
2546
2547 return b;
2548 }
2549
2550
2551#ifdef YY_USE_PROTOS
2552void yy_delete_buffer( YY_BUFFER_STATE b )
2553#else
2554void yy_delete_buffer( b )
2555YY_BUFFER_STATE b;
2556#endif
2557 {
2558 if ( ! b )
2559 return;
2560
2561 if ( b == yy_current_buffer )
2562 yy_current_buffer = (YY_BUFFER_STATE) 0;
2563
2564 if ( b->yy_is_our_buffer )
2565 yy_flex_free( (void *) b->yy_ch_buf );
2566
2567 yy_flex_free( (void *) b );
2568 }
2569
2570
2571
2572#ifdef YY_USE_PROTOS
2573void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2574#else
2575void yy_init_buffer( b, file )
2576YY_BUFFER_STATE b;
2577FILE *file;
2578#endif
2579
2580
2581 {
2582 yy_flush_buffer( b );
2583
2584 b->yy_input_file = file;
2585 b->yy_fill_buffer = 1;
2586
2587#if YY_ALWAYS_INTERACTIVE
2588 b->yy_is_interactive = 1;
2589#else
2590#if YY_NEVER_INTERACTIVE
2591 b->yy_is_interactive = 0;
2592#else
2593 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2594#endif
2595#endif
2596 }
2597
2598
2599#ifdef YY_USE_PROTOS
2600void yy_flush_buffer( YY_BUFFER_STATE b )
2601#else
2602void yy_flush_buffer( b )
2603YY_BUFFER_STATE b;
2604#endif
2605
2606 {
2607 if ( ! b )
2608 return;
2609
2610 b->yy_n_chars = 0;
2611
2612 /* We always need two end-of-buffer characters. The first causes
2613 * a transition to the end-of-buffer state. The second causes
2614 * a jam in that state.
2615 */
2616 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2617 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2618
2619 b->yy_buf_pos = &b->yy_ch_buf[0];
2620
2621 b->yy_at_bol = 1;
2622 b->yy_buffer_status = YY_BUFFER_NEW;
2623
2624 if ( b == yy_current_buffer )
2625 yy_load_buffer_state();
2626 }
2627
2628
2629#ifndef YY_NO_SCAN_BUFFER
2630#ifdef YY_USE_PROTOS
2631YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2632#else
2633YY_BUFFER_STATE yy_scan_buffer( base, size )
2634char *base;
2635yy_size_t size;
2636#endif
2637 {
2638 YY_BUFFER_STATE b;
2639
2640 if ( size < 2 ||
2641 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2642 base[size-1] != YY_END_OF_BUFFER_CHAR )
2643 /* They forgot to leave room for the EOB's. */
2644 return 0;
2645
2646 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2647 if ( ! b )
2648 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2649
2650 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2651 b->yy_buf_pos = b->yy_ch_buf = base;
2652 b->yy_is_our_buffer = 0;
2653 b->yy_input_file = 0;
2654 b->yy_n_chars = b->yy_buf_size;
2655 b->yy_is_interactive = 0;
2656 b->yy_at_bol = 1;
2657 b->yy_fill_buffer = 0;
2658 b->yy_buffer_status = YY_BUFFER_NEW;
2659
2660 yy_switch_to_buffer( b );
2661
2662 return b;
2663 }
2664#endif
2665
2666
2667#ifndef YY_NO_SCAN_STRING
2668#ifdef YY_USE_PROTOS
2669YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2670#else
2671YY_BUFFER_STATE yy_scan_string( yy_str )
2672yyconst char *yy_str;
2673#endif
2674 {
2675 int len;
2676 for ( len = 0; yy_str[len]; ++len )
2677 ;
2678
2679 return yy_scan_bytes( yy_str, len );
2680 }
2681#endif
2682
2683
2684#ifndef YY_NO_SCAN_BYTES
2685#ifdef YY_USE_PROTOS
2686YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2687#else
2688YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2689yyconst char *bytes;
2690int len;
2691#endif
2692 {
2693 YY_BUFFER_STATE b;
2694 char *buf;
2695 yy_size_t n;
2696 int i;
2697
2698 /* Get memory for full buffer, including space for trailing EOB's. */
2699 n = len + 2;
2700 buf = (char *) yy_flex_alloc( n );
2701 if ( ! buf )
2702 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2703
2704 for ( i = 0; i < len; ++i )
2705 buf[i] = bytes[i];
2706
2707 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2708
2709 b = yy_scan_buffer( buf, n );
2710 if ( ! b )
2711 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2712
2713 /* It's okay to grow etc. this buffer, and we should throw it
2714 * away when we're done.
2715 */
2716 b->yy_is_our_buffer = 1;
2717
2718 return b;
2719 }
2720#endif
2721
2722
2723#ifndef YY_NO_PUSH_STATE
2724#ifdef YY_USE_PROTOS
2725static void yy_push_state( int new_state )
2726#else
2727static void yy_push_state( new_state )
2728int new_state;
2729#endif
2730 {
2731 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2732 {
2733 yy_size_t new_size;
2734
2735 yy_start_stack_depth += YY_START_STACK_INCR;
2736 new_size = yy_start_stack_depth * sizeof( int );
2737
2738 if ( ! yy_start_stack )
2739 yy_start_stack = (int *) yy_flex_alloc( new_size );
2740
2741 else
2742 yy_start_stack = (int *) yy_flex_realloc(
2743 (void *) yy_start_stack, new_size );
2744
2745 if ( ! yy_start_stack )
2746 YY_FATAL_ERROR(
2747 "out of memory expanding start-condition stack" );
2748 }
2749
2750 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2751
2752 BEGIN(new_state);
2753 }
2754#endif
2755
2756
2757#ifndef YY_NO_POP_STATE
2758static void yy_pop_state()
2759 {
2760 if ( --yy_start_stack_ptr < 0 )
2761 YY_FATAL_ERROR( "start-condition stack underflow" );
2762
2763 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2764 }
2765#endif
2766
2767
2768#ifndef YY_NO_TOP_STATE
2769static int yy_top_state()
2770 {
2771 return yy_start_stack[yy_start_stack_ptr - 1];
2772 }
2773#endif
2774
2775#ifndef YY_EXIT_FAILURE
2776#define YY_EXIT_FAILURE 2
2777#endif
2778
2779#ifdef YY_USE_PROTOS
2780static void yy_fatal_error( yyconst char msg[] )
2781#else
2782static void yy_fatal_error( msg )
2783char msg[];
2784#endif
2785 {
2786 (void) fprintf( stderr, "%s\n", msg );
2787 exit( YY_EXIT_FAILURE );
2788 }
2789
2790
2791
2792/* Redefine yyless() so it works in section 3 code. */
2793
2794#undef yyless
2795#define yyless(n) \
2796 do \
2797 { \
2798 /* Undo effects of setting up yytext. */ \
2799 yytext[yyleng] = yy_hold_char; \
2800 yy_c_buf_p = yytext + n; \
2801 yy_hold_char = *yy_c_buf_p; \
2802 *yy_c_buf_p = '\0'; \
2803 yyleng = n; \
2804 } \
2805 while ( 0 )
2806
2807
2808/* Internal utility routines. */
2809
2810#ifndef yytext_ptr
2811#ifdef YY_USE_PROTOS
2812static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2813#else
2814static void yy_flex_strncpy( s1, s2, n )
2815char *s1;
2816yyconst char *s2;
2817int n;
2818#endif
2819 {
2820 register int i;
2821 for ( i = 0; i < n; ++i )
2822 s1[i] = s2[i];
2823 }
2824#endif
2825
2826#ifdef YY_NEED_STRLEN
2827#ifdef YY_USE_PROTOS
2828static int yy_flex_strlen( yyconst char *s )
2829#else
2830static int yy_flex_strlen( s )
2831yyconst char *s;
2832#endif
2833 {
2834 register int n;
2835 for ( n = 0; s[n]; ++n )
2836 ;
2837
2838 return n;
2839 }
2840#endif
2841
2842
2843#ifdef YY_USE_PROTOS
2844static void *yy_flex_alloc( yy_size_t size )
2845#else
2846static void *yy_flex_alloc( size )
2847yy_size_t size;
2848#endif
2849 {
2850 return (void *) malloc( size );
2851 }
2852
2853#ifdef YY_USE_PROTOS
2854static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
2855#else
2856static inline void *yy_flex_realloc( ptr, size )
2857void *ptr;
2858yy_size_t size;
2859#endif
2860 {
2861 /* The cast to (char *) in the following accommodates both
2862 * implementations that use char* generic pointers, and those
2863 * that use void* generic pointers. It works with the latter
2864 * because both ANSI C and C++ allow castless assignment from
2865 * any pointer type to void*, and deal with argument conversions
2866 * as though doing an assignment.
2867 */
2868 return (void *) realloc( (char *) ptr, size );
2869 }
2870
2871#ifdef YY_USE_PROTOS
2872static void yy_flex_free( void *ptr )
2873#else
2874static void yy_flex_free( ptr )
2875void *ptr;
2876#endif
2877 {
2878 free( ptr );
2879 }
2880
2881#if YY_MAIN
2882int main()
2883 {
2884 yylex();
2885 return 0;
2886 }
2887#endif
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002888#line 272 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00002889