Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1 | #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 | |
| 118 | typedef struct yy_buffer_state *YY_BUFFER_STATE; |
| 119 | |
| 120 | extern int yyleng; |
| 121 | extern 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 | */ |
| 169 | typedef unsigned int yy_size_t; |
| 170 | |
| 171 | |
| 172 | struct 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 | |
| 229 | static 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. */ |
| 239 | static char yy_hold_char; |
| 240 | |
| 241 | static int yy_n_chars; /* number of characters read into yy_ch_buf */ |
| 242 | |
| 243 | |
| 244 | int yyleng; |
| 245 | |
| 246 | /* Points to current character in buffer. */ |
| 247 | static char *yy_c_buf_p = (char *) 0; |
| 248 | static int yy_init = 1; /* whether we need to initialize */ |
| 249 | static 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 | */ |
| 254 | static int yy_did_buffer_switch_on_eof; |
| 255 | |
| 256 | void yyrestart YY_PROTO(( FILE *input_file )); |
| 257 | |
| 258 | void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); |
| 259 | void yy_load_buffer_state YY_PROTO(( void )); |
| 260 | YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); |
| 261 | void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); |
| 262 | void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); |
| 263 | void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); |
| 264 | #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) |
| 265 | |
| 266 | YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); |
| 267 | YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); |
| 268 | YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); |
| 269 | |
| 270 | static void *yy_flex_alloc YY_PROTO(( yy_size_t )); |
| 271 | static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED; |
| 272 | static 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 |
| 297 | typedef unsigned char YY_CHAR; |
| 298 | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; |
| 299 | typedef int yy_state_type; |
| 300 | extern int yylineno; |
| 301 | int yylineno = 1; |
| 302 | extern char *yytext; |
| 303 | #define yytext_ptr yytext |
| 304 | |
| 305 | static yy_state_type yy_get_previous_state YY_PROTO(( void )); |
| 306 | static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); |
| 307 | static int yy_get_next_buffer YY_PROTO(( void )); |
| 308 | static 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 Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 320 | #define YY_NUM_RULES 117 |
| 321 | #define YY_END_OF_BUFFER 118 |
| 322 | static yyconst short int yy_acclist[195] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 323 | { 0, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 324 | 118, 116, 117, 115, 116, 117, 115, 117, 116, 117, |
| 325 | 116, 117, 116, 117, 116, 117, 116, 117, 116, 117, |
| 326 | 108, 116, 117, 108, 116, 117, 1, 116, 117, 116, |
| 327 | 117, 116, 117, 116, 117, 116, 117, 116, 117, 116, |
| 328 | 117, 116, 117, 116, 117, 116, 117, 116, 117, 116, |
| 329 | 117, 116, 117, 116, 117, 116, 117, 116, 117, 116, |
| 330 | 117, 116, 117, 116, 117, 116, 117, 116, 117, 116, |
| 331 | 117, 107, 105, 104, 104, 111, 109, 113, 108, 1, |
| 332 | 89, 38, 72, 22, 107, 104, 104, 112, 113, 19, |
| 333 | 113, 114, 60, 71, 36, 31, 39, 63, 3, 51, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 334 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 335 | 62, 80, 67, 88, 84, 61, 73, 106, 113, 113, |
| 336 | 86, 46, 81, 82, 66, 97, 70, 98, 53, 85, |
| 337 | 21, 110, 65, 69, 23, 4, 59, 64, 52, 68, |
| 338 | 45, 11, 113, 33, 2, 5, 55, 57, 47, 75, |
| 339 | 79, 77, 78, 76, 74, 49, 99, 48, 54, 20, |
| 340 | 96, 42, 56, 27, 93, 41, 7, 91, 30, 95, |
| 341 | 35, 58, 83, 90, 24, 25, 92, 50, 87, 40, |
| 342 | 6, 26, 34, 8, 16, 9, 10, 32, 12, 14, |
| 343 | 13, 29, 37, 15, 28, 94, 100, 102, 103, 43, |
| 344 | 101, 17, 44, 18 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 345 | |
| 346 | } ; |
| 347 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 348 | static yyconst short int yy_accept[511] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 349 | { 0, |
| 350 | 1, 1, 1, 2, 4, 7, 9, 11, 13, 15, |
| 351 | 17, 19, 21, 24, 27, 30, 32, 34, 36, 38, |
| 352 | 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, |
| 353 | 60, 62, 64, 66, 68, 70, 72, 72, 73, 73, |
| 354 | 74, 75, 76, 77, 77, 78, 78, 79, 80, 80, |
| 355 | 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, |
| 356 | 82, 83, 83, 83, 83, 83, 83, 83, 83, 83, |
| 357 | 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, |
| 358 | 83, 83, 83, 83, 83, 83, 83, 83, 84, 84, |
| 359 | 84, 84, 84, 84, 84, 84, 84, 84, 84, 84, |
| 360 | |
| 361 | 84, 84, 84, 85, 85, 85, 85, 85, 85, 85, |
| 362 | 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, |
| 363 | 87, 89, 90, 91, 92, 92, 93, 94, 94, 94, |
| 364 | 95, 95, 95, 96, 96, 97, 97, 97, 97, 98, |
| 365 | 98, 98, 98, 98, 98, 98, 99, 99, 99, 100, |
| 366 | 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 367 | 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, |
| 368 | 101, 102, 102, 102, 103, 103, 104, 105, 105, 105, |
| 369 | 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 370 | 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, |
| 371 | |
| 372 | 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 373 | 107, 108, 108, 109, 110, 110, 110, 110, 111, 111, |
| 374 | 111, 111, 112, 112, 113, 114, 115, 115, 115, 115, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 375 | 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 376 | 115, 115, 116, 116, 117, 118, 118, 118, 118, 118, |
| 377 | 118, 118, 118, 118, 118, 119, 120, 121, 121, 121, |
| 378 | 122, 122, 122, 123, 123, 124, 124, 124, 124, 124, |
| 379 | 124, 124, 124, 124, 124, 125, 125, 125, 126, 126, |
| 380 | 126, 127, 128, 128, 129, 130, 130, 130, 130, 130, |
| 381 | 131, 131, 131, 132, 132, 133, 133, 133, 134, 135, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 382 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 383 | 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, |
| 384 | 136, 136, 136, 136, 136, 136, 137, 137, 138, 138, |
| 385 | 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, |
| 386 | 139, 139, 140, 140, 140, 141, 142, 143, 144, 145, |
| 387 | 146, 147, 147, 147, 148, 148, 148, 148, 149, 150, |
| 388 | 151, 151, 151, 151, 151, 151, 151, 151, 151, 152, |
| 389 | 152, 153, 153, 153, 153, 153, 153, 153, 153, 154, |
| 390 | 155, 156, 156, 156, 157, 157, 158, 158, 158, 158, |
| 391 | 159, 159, 160, 161, 162, 163, 163, 163, 164, 164, |
| 392 | 164, 165, 166, 167, 167, 168, 169, 170, 170, 170, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 393 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 394 | 170, 170, 170, 170, 171, 171, 172, 173, 173, 173, |
| 395 | 173, 173, 173, 173, 173, 173, 173, 173, 173, 174, |
| 396 | 174, 174, 174, 174, 174, 174, 174, 174, 175, 175, |
| 397 | 175, 175, 175, 176, 176, 176, 176, 176, 177, 178, |
| 398 | 178, 178, 178, 178, 179, 179, 179, 179, 180, 180, |
| 399 | 181, 182, 182, 182, 182, 182, 182, 182, 182, 182, |
| 400 | 182, 182, 182, 182, 183, 183, 183, 183, 183, 183, |
| 401 | 183, 183, 184, 184, 184, 184, 184, 185, 185, 185, |
| 402 | 185, 185, 186, 186, 187, 187, 187, 187, 187, 187, |
| 403 | 187, 187, 187, 187, 187, 187, 187, 188, 188, 189, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 404 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 405 | 190, 190, 191, 191, 192, 193, 194, 194, 195, 195 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 406 | } ; |
| 407 | |
| 408 | static yyconst int yy_ec[256] = |
| 409 | { 0, |
| 410 | 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, |
| 411 | 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, |
| 412 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 413 | 1, 2, 1, 4, 1, 5, 6, 1, 1, 1, |
| 414 | 1, 1, 7, 1, 8, 9, 1, 10, 11, 11, |
| 415 | 11, 11, 11, 12, 11, 13, 11, 14, 15, 1, |
| 416 | 1, 1, 1, 1, 16, 16, 16, 16, 17, 16, |
| 417 | 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
| 418 | 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
| 419 | 1, 1, 1, 1, 18, 1, 19, 20, 21, 22, |
| 420 | |
| 421 | 23, 24, 25, 26, 27, 5, 28, 29, 30, 31, |
| 422 | 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, |
| 423 | 42, 43, 1, 1, 1, 1, 1, 1, 1, 1, |
| 424 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 425 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 426 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 427 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 428 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 429 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 430 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 431 | |
| 432 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 433 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 434 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 435 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 436 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 437 | 1, 1, 1, 1, 1 |
| 438 | } ; |
| 439 | |
| 440 | static yyconst int yy_meta[44] = |
| 441 | { 0, |
| 442 | 1, 1, 2, 1, 3, 1, 1, 3, 3, 3, |
| 443 | 3, 3, 3, 4, 1, 3, 3, 3, 3, 3, |
| 444 | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
| 445 | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
| 446 | 3, 3, 3 |
| 447 | } ; |
| 448 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 449 | static yyconst short int yy_base[515] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 450 | { 0, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 451 | 0, 0, 1108, 1109, 1109, 1109, 1103, 1092, 36, 40, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 452 | 44, 50, 56, 62, 0, 63, 66, 81, 89, 47, |
| 453 | 100, 97, 76, 96, 111, 46, 48, 110, 68, 140, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 454 | 126, 171, 119, 123, 73, 125, 1101, 1109, 1090, 1109, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 455 | 0, 159, 176, 199, 204, 95, 209, 224, 229, 0, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 456 | 130, 165, 133, 120, 169, 151, 159, 31, 1089, 168, |
| 457 | 143, 230, 189, 191, 233, 117, 145, 187, 241, 243, |
| 458 | 242, 246, 244, 251, 248, 254, 255, 253, 176, 256, |
| 459 | 263, 258, 267, 261, 277, 281, 283, 1088, 284, 285, |
| 460 | 286, 287, 265, 290, 300, 295, 291, 308, 294, 305, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 461 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 462 | 316, 318, 1087, 320, 306, 304, 321, 324, 322, 327, |
| 463 | 328, 289, 213, 330, 342, 338, 346, 349, 1086, 0, |
| 464 | 358, 362, 1085, 376, 393, 0, 1084, 351, 350, 1083, |
| 465 | 369, 363, 1082, 364, 1081, 366, 380, 382, 1080, 388, |
| 466 | 394, 397, 398, 399, 400, 1079, 404, 401, 408, 402, |
| 467 | 409, 410, 412, 419, 420, 422, 424, 423, 426, 427, |
| 468 | 428, 434, 439, 113, 440, 442, 443, 445, 446, 447, |
| 469 | 1078, 449, 453, 1077, 451, 1076, 1075, 478, 455, 457, |
| 470 | 456, 458, 489, 1074, 469, 460, 492, 491, 472, 1073, |
| 471 | 494, 495, 497, 496, 502, 503, 499, 505, 509, 514, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 472 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 473 | 516, 518, 513, 519, 520, 523, 521, 534, 533, 536, |
| 474 | 1072, 524, 1109, 547, 555, 561, 565, 570, 555, 571, |
| 475 | 573, 1071, 574, 1070, 1069, 1068, 575, 576, 577, 579, |
| 476 | 580, 583, 581, 586, 588, 584, 587, 592, 593, 595, |
| 477 | 605, 1067, 597, 1066, 1065, 601, 609, 610, 607, 611, |
| 478 | 615, 618, 617, 621, 1064, 1063, 1062, 622, 623, 1061, |
| 479 | 624, 626, 0, 625, 1060, 630, 637, 627, 641, 642, |
| 480 | 645, 639, 646, 652, 1059, 657, 653, 1058, 658, 655, |
| 481 | 1057, 1056, 659, 1055, 1054, 663, 669, 671, 672, 1053, |
| 482 | 673, 675, 1052, 677, 1051, 680, 678, 685, 1050, 687, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 483 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 484 | 685, 1049, 688, 698, 697, 701, 686, 459, 699, 705, |
| 485 | 708, 709, 710, 711, 712, 1048, 713, 1047, 714, 715, |
| 486 | 716, 721, 722, 725, 1046, 729, 727, 731, 740, 741, |
| 487 | 742, 1045, 735, 737, 1044, 1043, 1042, 1041, 1040, 1039, |
| 488 | 1038, 743, 745, 1037, 747, 748, 752, 1036, 1035, 1034, |
| 489 | 756, 754, 757, 764, 765, 767, 766, 768, 1033, 769, |
| 490 | 1032, 770, 774, 773, 777, 776, 779, 784, 1031, 1030, |
| 491 | 1029, 788, 783, 1028, 791, 1027, 790, 794, 795, 1026, |
| 492 | 804, 1025, 1024, 1023, 1022, 796, 805, 1021, 809, 810, |
| 493 | 1020, 1019, 1018, 812, 1017, 1016, 1015, 808, 813, 819, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 494 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 495 | 815, 814, 816, 1014, 825, 1013, 1012, 821, 826, 326, |
| 496 | 829, 832, 836, 833, 834, 837, 846, 838, 1011, 840, |
| 497 | 848, 851, 853, 854, 859, 858, 861, 1010, 863, 867, |
| 498 | 868, 864, 1009, 869, 871, 870, 874, 1008, 1005, 876, |
| 499 | 885, 875, 880, 995, 892, 895, 896, 993, 878, 992, |
| 500 | 991, 897, 898, 903, 905, 904, 879, 906, 911, 912, |
| 501 | 914, 915, 916, 990, 917, 922, 918, 923, 924, 932, |
| 502 | 925, 988, 935, 928, 936, 939, 987, 940, 929, 942, |
| 503 | 945, 983, 947, 982, 953, 950, 956, 958, 959, 960, |
| 504 | 961, 964, 963, 966, 967, 971, 979, 972, 830, 631, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 505 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 506 | 974, 541, 977, 537, 462, 383, 976, 216, 1109, 1011, |
| 507 | 1013, 226, 1017, 76 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 508 | } ; |
| 509 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 510 | static yyconst short int yy_def[515] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 511 | { 0, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 512 | 509, 1, 509, 509, 509, 509, 510, 511, 512, 509, |
| 513 | 511, 511, 511, 511, 513, 511, 511, 511, 511, 511, |
| 514 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 515 | 511, 511, 511, 511, 511, 511, 510, 509, 511, 509, |
| 516 | 514, 514, 509, 509, 511, 511, 511, 511, 511, 513, |
| 517 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 518 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 519 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 520 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 521 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 522 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 523 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 524 | 511, 511, 511, 511, 511, 511, 511, 511, 509, 514, |
| 525 | 514, 509, 511, 511, 511, 49, 511, 511, 511, 511, |
| 526 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 527 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 528 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 529 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 530 | 511, 511, 511, 511, 511, 511, 511, 49, 511, 511, |
| 531 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 532 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 533 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 534 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 535 | 511, 511, 509, 509, 509, 509, 511, 511, 511, 511, |
| 536 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 537 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 538 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 539 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 540 | 511, 511, 178, 511, 511, 511, 511, 511, 511, 511, |
| 541 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 542 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 543 | 511, 511, 511, 511, 511, 511, 511, 509, 511, 511, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 544 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 545 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 546 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 547 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 548 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 549 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 550 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 551 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 552 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 553 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 554 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 555 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 556 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 557 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 558 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 559 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 560 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 561 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 562 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 563 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 564 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
| 565 | 511, 511, 511, 511, 511, 511, 511, 511, 511, 511, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 566 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 567 | 511, 511, 511, 511, 511, 511, 511, 511, 0, 509, |
| 568 | 509, 509, 509, 509 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 569 | } ; |
| 570 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 571 | static yyconst short int yy_nxt[1153] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 572 | { 0, |
| 573 | 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, |
| 574 | 14, 14, 14, 4, 15, 8, 8, 8, 16, 17, |
| 575 | 18, 19, 20, 21, 22, 8, 23, 8, 24, 25, |
| 576 | 26, 27, 28, 8, 29, 30, 31, 32, 33, 34, |
| 577 | 35, 8, 36, 42, 40, 43, 43, 43, 43, 44, |
| 578 | 44, 44, 44, 45, 45, 45, 45, 40, 46, 40, |
| 579 | 40, 40, 136, 40, 47, 48, 48, 48, 48, 40, |
| 580 | 47, 48, 48, 48, 48, 40, 40, 69, 120, 40, |
| 581 | 87, 40, 88, 86, 51, 116, 40, 70, 56, 40, |
| 582 | 91, 52, 57, 53, 40, 54, 49, 58, 55, 60, |
| 583 | |
| 584 | 59, 61, 40, 123, 117, 77, 78, 64, 40, 40, |
| 585 | 40, 65, 62, 40, 79, 66, 63, 67, 71, 75, |
| 586 | 68, 72, 80, 40, 40, 76, 40, 81, 73, 83, |
| 587 | 40, 82, 40, 40, 74, 89, 40, 113, 40, 40, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 588 | 253, 90, 84, 40, 102, 115, 40, 118, 85, 92, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 589 | 114, 127, 131, 40, 130, 146, 40, 103, 40, 93, |
| 590 | 104, 94, 95, 139, 40, 96, 97, 105, 121, 121, |
| 591 | 121, 121, 40, 147, 98, 134, 99, 100, 40, 101, |
| 592 | 92, 40, 40, 135, 40, 43, 43, 43, 43, 40, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 593 | 106, 128, 107, 129, 132, 163, 137, 108, 133, 109, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 594 | |
| 595 | 40, 110, 40, 138, 40, 111, 112, 122, 44, 44, |
| 596 | 44, 44, 47, 45, 45, 45, 45, 40, 124, 124, |
| 597 | 124, 124, 40, 142, 148, 125, 40, 143, 41, 40, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 598 | 206, 125, 47, 48, 48, 48, 48, 40, 126, 126, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 599 | 126, 126, 40, 40, 126, 126, 40, 126, 126, 126, |
| 600 | 126, 126, 126, 144, 40, 40, 40, 40, 140, 40, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 601 | 141, 40, 149, 150, 40, 145, 40, 40, 40, 40, |
| 602 | 152, 40, 154, 156, 40, 155, 40, 153, 40, 151, |
| 603 | 40, 166, 170, 168, 157, 158, 164, 159, 160, 161, |
| 604 | 40, 162, 165, 167, 40, 169, 40, 40, 40, 40, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 605 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 606 | 40, 173, 40, 40, 40, 171, 179, 40, 40, 172, |
| 607 | 174, 175, 187, 40, 205, 176, 180, 40, 40, 40, |
| 608 | 181, 40, 177, 184, 190, 189, 185, 178, 182, 40, |
| 609 | 188, 40, 186, 40, 40, 40, 183, 40, 196, 40, |
| 610 | 40, 40, 191, 40, 192, 197, 194, 198, 201, 210, |
| 611 | 204, 40, 193, 200, 199, 40, 207, 195, 208, 40, |
| 612 | 209, 202, 40, 40, 40, 432, 203, 121, 121, 121, |
| 613 | 121, 214, 214, 214, 214, 219, 40, 40, 215, 40, |
| 614 | 211, 220, 40, 212, 215, 124, 124, 124, 124, 40, |
| 615 | 223, 221, 125, 40, 224, 40, 40, 222, 125, 216, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 616 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 617 | 217, 40, 218, 218, 218, 218, 40, 40, 225, 227, |
| 618 | 40, 40, 40, 40, 40, 40, 230, 40, 226, 229, |
| 619 | 235, 40, 40, 40, 237, 40, 233, 231, 232, 228, |
| 620 | 234, 238, 40, 40, 236, 40, 40, 40, 243, 40, |
| 621 | 40, 40, 247, 239, 244, 240, 246, 40, 241, 249, |
| 622 | 250, 245, 40, 40, 248, 40, 40, 242, 40, 40, |
| 623 | 40, 252, 40, 255, 40, 251, 40, 256, 40, 40, |
| 624 | 40, 40, 40, 40, 258, 40, 254, 260, 366, 257, |
| 625 | 267, 262, 40, 273, 259, 40, 261, 263, 263, 263, |
| 626 | 263, 264, 266, 263, 263, 265, 263, 263, 263, 263, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 627 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 628 | 263, 263, 40, 272, 40, 40, 276, 40, 40, 40, |
| 629 | 40, 268, 40, 269, 274, 40, 40, 270, 40, 271, |
| 630 | 275, 279, 40, 278, 281, 282, 40, 40, 280, 40, |
| 631 | 277, 40, 40, 40, 40, 283, 40, 40, 287, 289, |
| 632 | 288, 292, 293, 284, 286, 285, 40, 40, 290, 40, |
| 633 | 40, 291, 294, 296, 40, 297, 214, 214, 214, 214, |
| 634 | 295, 216, 216, 215, 298, 298, 298, 298, 40, 215, |
| 635 | 298, 298, 298, 298, 218, 218, 218, 218, 40, 218, |
| 636 | 218, 218, 218, 40, 40, 299, 40, 40, 40, 40, |
| 637 | 40, 300, 40, 40, 40, 303, 40, 40, 307, 40, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 638 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 639 | 40, 40, 312, 301, 302, 40, 40, 306, 40, 308, |
| 640 | 40, 315, 304, 305, 40, 310, 311, 316, 40, 313, |
| 641 | 40, 309, 40, 40, 40, 317, 314, 320, 40, 319, |
| 642 | 40, 40, 321, 318, 40, 40, 40, 40, 40, 40, |
| 643 | 40, 322, 324, 40, 40, 323, 325, 332, 326, 327, |
| 644 | 40, 329, 40, 328, 40, 40, 333, 334, 40, 40, |
| 645 | 335, 330, 331, 336, 338, 40, 40, 340, 40, 342, |
| 646 | 40, 40, 40, 345, 343, 341, 40, 337, 339, 344, |
| 647 | 346, 348, 40, 347, 40, 40, 40, 349, 40, 351, |
| 648 | 40, 40, 350, 40, 298, 298, 298, 298, 40, 40, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 649 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 650 | 40, 40, 352, 356, 358, 359, 360, 353, 361, 354, |
| 651 | 40, 40, 40, 355, 40, 357, 362, 363, 40, 364, |
| 652 | 365, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 653 | 369, 367, 373, 374, 40, 40, 375, 368, 40, 370, |
| 654 | 40, 372, 40, 376, 40, 377, 371, 380, 40, 382, |
| 655 | 40, 383, 379, 40, 40, 40, 40, 378, 40, 381, |
| 656 | 40, 40, 384, 385, 386, 40, 387, 40, 390, 40, |
| 657 | 40, 389, 391, 388, 393, 395, 394, 40, 40, 40, |
| 658 | 40, 40, 40, 40, 392, 399, 40, 40, 397, 40, |
| 659 | 40, 398, 40, 396, 404, 402, 40, 40, 401, 406, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 660 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 661 | 403, 40, 400, 40, 40, 410, 411, 40, 40, 40, |
| 662 | 408, 407, 414, 416, 405, 409, 415, 40, 40, 412, |
| 663 | 413, 40, 40, 40, 417, 40, 40, 40, 40, 40, |
| 664 | 418, 420, 40, 421, 40, 419, 423, 422, 40, 40, |
| 665 | 425, 426, 40, 40, 427, 40, 40, 40, 424, 40, |
| 666 | 40, 40, 428, 40, 434, 430, 429, 433, 435, 40, |
| 667 | 431, 40, 437, 436, 40, 438, 40, 40, 439, 443, |
| 668 | 442, 40, 40, 440, 40, 444, 40, 40, 441, 446, |
| 669 | 40, 40, 40, 40, 40, 448, 452, 40, 40, 40, |
| 670 | 445, 40, 40, 40, 447, 459, 456, 453, 40, 460, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 671 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 672 | 449, 454, 457, 450, 451, 40, 455, 458, 40, 40, |
| 673 | 40, 40, 461, 462, 464, 465, 40, 40, 40, 40, |
| 674 | 466, 470, 463, 468, 40, 40, 471, 40, 40, 40, |
| 675 | 40, 40, 474, 469, 476, 40, 40, 40, 40, 467, |
| 676 | 473, 40, 40, 475, 477, 40, 481, 472, 40, 40, |
| 677 | 479, 478, 40, 40, 482, 40, 485, 484, 40, 480, |
| 678 | 40, 483, 488, 40, 486, 489, 40, 487, 490, 40, |
| 679 | 494, 40, 40, 40, 40, 491, 40, 40, 492, 40, |
| 680 | 40, 493, 495, 501, 40, 40, 502, 40, 496, 40, |
| 681 | 40, 498, 40, 497, 506, 40, 40, 499, 500, 507, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 682 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 683 | 40, 40, 505, 40, 40, 40, 40, 504, 40, 503, |
| 684 | 508, 37, 37, 37, 37, 39, 39, 50, 40, 50, |
| 685 | 50, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 686 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 687 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 688 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 689 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 690 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 691 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 692 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 213, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 693 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 694 | 40, 40, 40, 40, 119, 40, 38, 509, 3, 509, |
| 695 | 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, |
| 696 | 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, |
| 697 | 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, |
| 698 | 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, |
| 699 | 509, 509 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 700 | } ; |
| 701 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 702 | static yyconst short int yy_chk[1153] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 703 | { 0, |
| 704 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 705 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 706 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 707 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 708 | 1, 1, 1, 9, 58, 9, 9, 9, 9, 10, |
| 709 | 10, 10, 10, 11, 11, 11, 11, 11, 12, 26, |
| 710 | 20, 27, 58, 12, 13, 13, 13, 13, 13, 13, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 711 | 14, 14, 14, 14, 14, 14, 16, 20, 514, 17, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 712 | 27, 29, 27, 26, 16, 35, 35, 20, 17, 23, |
| 713 | 29, 16, 17, 16, 18, 16, 13, 17, 16, 18, |
| 714 | |
| 715 | 17, 18, 19, 46, 35, 23, 23, 19, 46, 24, |
| 716 | 22, 19, 18, 21, 24, 19, 18, 19, 21, 22, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 717 | 19, 21, 24, 28, 25, 22, 164, 24, 21, 25, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 718 | 66, 24, 33, 54, 21, 28, 34, 33, 36, 31, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 719 | 164, 28, 25, 51, 31, 34, 53, 36, 25, 30, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 720 | 33, 51, 54, 30, 53, 66, 61, 31, 67, 30, |
| 721 | 31, 30, 30, 61, 56, 30, 30, 31, 42, 42, |
| 722 | 42, 42, 57, 67, 30, 56, 30, 30, 52, 30, |
| 723 | 32, 60, 55, 57, 32, 43, 43, 43, 43, 79, |
| 724 | 32, 52, 32, 52, 55, 79, 60, 32, 55, 32, |
| 725 | |
| 726 | 68, 32, 63, 60, 64, 32, 32, 44, 44, 44, |
| 727 | 44, 44, 45, 45, 45, 45, 45, 45, 47, 47, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 728 | 47, 47, 47, 63, 68, 47, 113, 64, 512, 508, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 729 | 113, 47, 48, 48, 48, 48, 48, 48, 49, 49, |
| 730 | 49, 49, 49, 62, 49, 49, 65, 49, 49, 49, |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 731 | 49, 49, 49, 65, 69, 71, 70, 73, 62, 72, |
| 732 | 62, 75, 69, 70, 74, 65, 78, 76, 77, 80, |
| 733 | 71, 82, 72, 74, 84, 73, 81, 71, 93, 70, |
| 734 | 83, 81, 84, 82, 75, 76, 80, 77, 78, 78, |
| 735 | 85, 78, 80, 81, 86, 83, 87, 89, 90, 91, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 736 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 737 | 92, 87, 112, 94, 97, 85, 93, 99, 96, 86, |
| 738 | 89, 90, 97, 95, 112, 91, 94, 106, 100, 105, |
| 739 | 95, 98, 91, 96, 100, 99, 96, 92, 95, 101, |
| 740 | 98, 102, 96, 104, 107, 109, 95, 108, 105, 410, |
| 741 | 110, 111, 101, 114, 102, 106, 104, 107, 110, 116, |
| 742 | 111, 116, 102, 109, 108, 115, 114, 104, 114, 117, |
| 743 | 115, 110, 118, 129, 128, 410, 110, 121, 121, 121, |
| 744 | 121, 122, 122, 122, 122, 128, 132, 134, 122, 136, |
| 745 | 117, 129, 131, 118, 122, 124, 124, 124, 124, 124, |
| 746 | 134, 131, 124, 137, 136, 138, 506, 132, 124, 125, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 747 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 748 | 125, 140, 125, 125, 125, 125, 125, 141, 137, 140, |
| 749 | 142, 143, 144, 145, 148, 150, 143, 147, 138, 142, |
| 750 | 148, 149, 151, 152, 150, 153, 147, 144, 145, 141, |
| 751 | 147, 151, 154, 155, 149, 156, 158, 157, 155, 159, |
| 752 | 160, 161, 158, 151, 156, 152, 157, 162, 153, 160, |
| 753 | 161, 156, 163, 165, 159, 166, 167, 154, 168, 169, |
| 754 | 170, 163, 172, 166, 175, 162, 173, 167, 179, 181, |
| 755 | 180, 182, 308, 186, 169, 505, 165, 172, 308, 168, |
| 756 | 182, 175, 185, 186, 170, 189, 173, 178, 178, 178, |
| 757 | 178, 179, 181, 178, 178, 180, 178, 178, 178, 178, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 758 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 759 | 178, 178, 183, 185, 188, 187, 189, 191, 192, 194, |
| 760 | 193, 183, 197, 183, 187, 195, 196, 183, 198, 183, |
| 761 | 188, 193, 199, 192, 195, 196, 203, 200, 194, 201, |
| 762 | 191, 202, 204, 205, 207, 197, 206, 212, 201, 203, |
| 763 | 202, 206, 207, 198, 200, 199, 209, 208, 204, 210, |
| 764 | 504, 205, 208, 210, 502, 212, 214, 214, 214, 214, |
| 765 | 209, 215, 215, 214, 215, 215, 215, 215, 219, 214, |
| 766 | 216, 216, 216, 216, 217, 217, 217, 217, 217, 218, |
| 767 | 218, 218, 218, 218, 220, 219, 221, 223, 227, 228, |
| 768 | 229, 220, 230, 231, 233, 227, 232, 236, 231, 234, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 769 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 770 | 237, 235, 236, 221, 223, 238, 239, 230, 240, 232, |
| 771 | 243, 239, 228, 229, 246, 234, 235, 240, 241, 237, |
| 772 | 249, 233, 247, 248, 250, 241, 238, 247, 251, 246, |
| 773 | 253, 252, 248, 243, 254, 258, 259, 261, 264, 262, |
| 774 | 268, 249, 251, 266, 500, 250, 252, 264, 253, 254, |
| 775 | 267, 259, 272, 258, 269, 270, 266, 267, 271, 273, |
| 776 | 268, 261, 262, 269, 270, 274, 277, 271, 280, 273, |
| 777 | 276, 279, 283, 277, 274, 272, 286, 269, 270, 276, |
| 778 | 279, 283, 287, 280, 288, 289, 291, 286, 292, 288, |
| 779 | 294, 297, 287, 296, 298, 298, 298, 298, 301, 307, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 780 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 781 | 300, 303, 289, 296, 297, 300, 301, 291, 303, 292, |
| 782 | 305, 304, 309, 294, 306, 296, 304, 305, 310, 306, |
| 783 | 307, 311, 312, 313, 314, 315, 317, 319, 320, 321, |
| 784 | 311, 309, 315, 317, 322, 323, 319, 310, 324, 312, |
| 785 | 327, 314, 326, 320, 328, 321, 313, 324, 333, 327, |
| 786 | 334, 328, 323, 329, 330, 331, 342, 322, 343, 326, |
| 787 | 345, 346, 329, 330, 331, 347, 333, 352, 343, 351, |
| 788 | 353, 342, 345, 334, 347, 352, 351, 354, 355, 357, |
| 789 | 356, 358, 360, 362, 346, 356, 364, 363, 354, 366, |
| 790 | 365, 355, 367, 353, 363, 360, 373, 368, 358, 365, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 791 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 792 | 362, 372, 357, 377, 375, 372, 372, 378, 379, 386, |
| 793 | 367, 366, 377, 379, 364, 368, 378, 381, 387, 373, |
| 794 | 375, 398, 389, 390, 381, 394, 399, 402, 401, 403, |
| 795 | 386, 389, 400, 390, 408, 387, 398, 394, 405, 409, |
| 796 | 400, 401, 411, 499, 402, 412, 414, 415, 399, 413, |
| 797 | 416, 418, 403, 420, 412, 408, 405, 411, 413, 417, |
| 798 | 409, 421, 415, 414, 422, 416, 423, 424, 417, 422, |
| 799 | 421, 426, 425, 418, 427, 423, 429, 432, 420, 425, |
| 800 | 430, 431, 434, 436, 435, 427, 432, 437, 442, 440, |
| 801 | 424, 449, 457, 443, 426, 442, 437, 434, 441, 443, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 802 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 803 | 429, 435, 440, 430, 431, 445, 436, 441, 446, 447, |
| 804 | 452, 453, 445, 446, 449, 452, 454, 456, 455, 458, |
| 805 | 453, 457, 447, 455, 459, 460, 458, 461, 462, 463, |
| 806 | 465, 467, 461, 456, 463, 466, 468, 469, 471, 454, |
| 807 | 460, 474, 479, 462, 465, 470, 469, 459, 473, 475, |
| 808 | 467, 466, 476, 478, 470, 480, 474, 473, 481, 468, |
| 809 | 483, 471, 478, 486, 475, 479, 485, 476, 480, 487, |
| 810 | 486, 488, 489, 490, 491, 481, 493, 492, 483, 494, |
| 811 | 495, 485, 487, 493, 496, 498, 494, 501, 488, 507, |
| 812 | 503, 490, 497, 489, 501, 484, 482, 491, 492, 503, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 813 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 814 | 477, 472, 498, 464, 451, 450, 448, 496, 444, 495, |
| 815 | 507, 510, 510, 510, 510, 511, 511, 513, 439, 513, |
| 816 | 513, 438, 433, 428, 419, 407, 406, 404, 397, 396, |
| 817 | 395, 393, 392, 391, 388, 385, 384, 383, 382, 380, |
| 818 | 376, 374, 371, 370, 369, 361, 359, 350, 349, 348, |
| 819 | 344, 341, 340, 339, 338, 337, 336, 335, 332, 325, |
| 820 | 318, 316, 302, 299, 295, 293, 290, 285, 284, 282, |
| 821 | 281, 278, 275, 265, 260, 257, 256, 255, 245, 244, |
| 822 | 242, 226, 225, 224, 222, 211, 190, 184, 177, 176, |
| 823 | 174, 171, 146, 139, 135, 133, 130, 127, 123, 119, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 824 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 825 | 103, 88, 59, 39, 37, 8, 7, 3, 509, 509, |
| 826 | 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, |
| 827 | 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, |
| 828 | 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, |
| 829 | 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, |
| 830 | 509, 509 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 831 | } ; |
| 832 | |
| 833 | static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr; |
| 834 | static char *yy_full_match; |
| 835 | static int yy_lp; |
| 836 | #define REJECT \ |
| 837 | { \ |
| 838 | *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \ |
| 839 | yy_cp = yy_full_match; /* restore poss. backed-over text */ \ |
| 840 | ++yy_lp; \ |
| 841 | goto find_rule; \ |
| 842 | } |
| 843 | #define yymore() yymore_used_but_not_detected |
| 844 | #define YY_MORE_ADJ 0 |
| 845 | #define YY_RESTORE_YY_MORE_OFFSET |
| 846 | char *yytext; |
| 847 | #line 1 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 848 | #define INITIAL 0 |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 849 | /*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===// |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 850 | // |
| 851 | // The LLVM Compiler Infrastructure |
| 852 | // |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 853 | // This file was developed by Reid Spencer and is distributed under the |
| 854 | // University of Illinois Open Source License. See LICENSE.TXT for details. |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 855 | // |
| 856 | //===----------------------------------------------------------------------===// |
| 857 | // |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 858 | // This file implements the flex scanner for LLVM 1.9 assembly languages files. |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 859 | // |
| 860 | //===----------------------------------------------------------------------===*/ |
| 861 | #define YY_NEVER_INTERACTIVE 1 |
| 862 | #line 28 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 863 | |
| 864 | #include "ParserInternals.h" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 865 | #include "UpgradeParser.h" |
| 866 | #include <cctype> |
| 867 | #include <cstdlib> |
| 868 | |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 869 | #define YY_INPUT(buf,result,max_size) \ |
| 870 | { \ |
| 871 | if (LexInput->good() && !LexInput->eof()) { \ |
| 872 | LexInput->read(buf,max_size); \ |
| 873 | result = LexInput->gcount(); \ |
| 874 | } else {\ |
| 875 | result = YY_NULL; \ |
| 876 | } \ |
| 877 | } |
| 878 | |
| 879 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 880 | // Construct a token value for a non-obsolete token |
| 881 | #define RET_TOK(sym) \ |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 882 | Upgradelval.String = new std::string(yytext); \ |
| 883 | return sym |
| 884 | |
| 885 | #define RET_TY(sym,OldTY,NewTY,sign) \ |
| 886 | Upgradelval.Type.newTy = new std::string(NewTY); \ |
| 887 | Upgradelval.Type.oldTy = OldTY; \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 888 | return sym |
| 889 | |
| 890 | #define YY_NEVER_INTERACTIVE 1 |
| 891 | /* Comments start with a ; and go till end of line */ |
| 892 | /* Variable(Value) identifiers start with a % sign */ |
| 893 | /* Label identifiers end with a colon */ |
| 894 | /* Quoted names can contain any character except " and \ */ |
| 895 | /* [PN]Integer: match positive and negative literal integer values that |
| 896 | * are preceeded by a '%' character. These represent unnamed variable slots. |
| 897 | */ |
| 898 | /* E[PN]Integer: match positive and negative literal integer values */ |
| 899 | /* FPConstant - A Floating point constant. |
| 900 | */ |
| 901 | /* HexFPConstant - Floating point constant represented in IEEE format as a |
| 902 | * hexadecimal number for when exponential notation is not precise enough. |
| 903 | */ |
| 904 | /* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing |
| 905 | * it to deal with 64 bit numbers. |
| 906 | */ |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 907 | #line 908 "UpgradeLexer.cpp" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 908 | |
| 909 | /* Macros after this point can all be overridden by user definitions in |
| 910 | * section 1. |
| 911 | */ |
| 912 | |
| 913 | #ifndef YY_SKIP_YYWRAP |
| 914 | #ifdef __cplusplus |
| 915 | extern "C" int yywrap YY_PROTO(( void )); |
| 916 | #else |
| 917 | extern int yywrap YY_PROTO(( void )); |
| 918 | #endif |
| 919 | #endif |
| 920 | |
| 921 | #ifndef YY_NO_UNPUT |
| 922 | static inline void yyunput YY_PROTO(( int c, char *buf_ptr )); |
| 923 | #endif |
| 924 | |
| 925 | #ifndef yytext_ptr |
| 926 | static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); |
| 927 | #endif |
| 928 | |
| 929 | #ifdef YY_NEED_STRLEN |
| 930 | static int yy_flex_strlen YY_PROTO(( yyconst char * )); |
| 931 | #endif |
| 932 | |
| 933 | #ifndef YY_NO_INPUT |
| 934 | #ifdef __cplusplus |
| 935 | static int yyinput YY_PROTO(( void )); |
| 936 | #else |
| 937 | static int input YY_PROTO(( void )); |
| 938 | #endif |
| 939 | #endif |
| 940 | |
| 941 | #if YY_STACK_USED |
| 942 | static int yy_start_stack_ptr = 0; |
| 943 | static int yy_start_stack_depth = 0; |
| 944 | static int *yy_start_stack = 0; |
| 945 | #ifndef YY_NO_PUSH_STATE |
| 946 | static void yy_push_state YY_PROTO(( int new_state )); |
| 947 | #endif |
| 948 | #ifndef YY_NO_POP_STATE |
| 949 | static void yy_pop_state YY_PROTO(( void )); |
| 950 | #endif |
| 951 | #ifndef YY_NO_TOP_STATE |
| 952 | static int yy_top_state YY_PROTO(( void )); |
| 953 | #endif |
| 954 | |
| 955 | #else |
| 956 | #define YY_NO_PUSH_STATE 1 |
| 957 | #define YY_NO_POP_STATE 1 |
| 958 | #define YY_NO_TOP_STATE 1 |
| 959 | #endif |
| 960 | |
| 961 | #ifdef YY_MALLOC_DECL |
| 962 | YY_MALLOC_DECL |
| 963 | #else |
| 964 | #if __STDC__ |
| 965 | #ifndef __cplusplus |
| 966 | #include <stdlib.h> |
| 967 | #endif |
| 968 | #else |
| 969 | /* Just try to get by without declaring the routines. This will fail |
| 970 | * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) |
| 971 | * or sizeof(void*) != sizeof(int). |
| 972 | */ |
| 973 | #endif |
| 974 | #endif |
| 975 | |
| 976 | /* Amount of stuff to slurp up with each read. */ |
| 977 | #ifndef YY_READ_BUF_SIZE |
| 978 | #define YY_READ_BUF_SIZE 8192 |
| 979 | #endif |
| 980 | |
| 981 | /* Copy whatever the last rule matched to the standard output. */ |
| 982 | |
| 983 | #ifndef ECHO |
| 984 | /* This used to be an fputs(), but since the string might contain NUL's, |
| 985 | * we now use fwrite(). |
| 986 | */ |
| 987 | #define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) |
| 988 | #endif |
| 989 | |
| 990 | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
| 991 | * is returned in "result". |
| 992 | */ |
| 993 | #ifndef YY_INPUT |
| 994 | #define YY_INPUT(buf,result,max_size) \ |
| 995 | if ( yy_current_buffer->yy_is_interactive ) \ |
| 996 | { \ |
| 997 | int c = '*', n; \ |
| 998 | for ( n = 0; n < max_size && \ |
| 999 | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
| 1000 | buf[n] = (char) c; \ |
| 1001 | if ( c == '\n' ) \ |
| 1002 | buf[n++] = (char) c; \ |
| 1003 | if ( c == EOF && ferror( yyin ) ) \ |
| 1004 | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
| 1005 | result = n; \ |
| 1006 | } \ |
| 1007 | else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ |
| 1008 | && ferror( yyin ) ) \ |
| 1009 | YY_FATAL_ERROR( "input in flex scanner failed" ); |
| 1010 | #endif |
| 1011 | |
| 1012 | /* No semi-colon after return; correct usage is to write "yyterminate();" - |
| 1013 | * we don't want an extra ';' after the "return" because that will cause |
| 1014 | * some compilers to complain about unreachable statements. |
| 1015 | */ |
| 1016 | #ifndef yyterminate |
| 1017 | #define yyterminate() return YY_NULL |
| 1018 | #endif |
| 1019 | |
| 1020 | /* Number of entries by which start-condition stack grows. */ |
| 1021 | #ifndef YY_START_STACK_INCR |
| 1022 | #define YY_START_STACK_INCR 25 |
| 1023 | #endif |
| 1024 | |
| 1025 | /* Report a fatal error. */ |
| 1026 | #ifndef YY_FATAL_ERROR |
| 1027 | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
| 1028 | #endif |
| 1029 | |
| 1030 | /* Default declaration of generated scanner - a define so the user can |
| 1031 | * easily add parameters. |
| 1032 | */ |
| 1033 | #ifndef YY_DECL |
| 1034 | #define YY_DECL int yylex YY_PROTO(( void )) |
| 1035 | #endif |
| 1036 | |
| 1037 | /* Code executed at the beginning of each rule, after yytext and yyleng |
| 1038 | * have been set up. |
| 1039 | */ |
| 1040 | #ifndef YY_USER_ACTION |
| 1041 | #define YY_USER_ACTION |
| 1042 | #endif |
| 1043 | |
| 1044 | /* Code executed at the end of each rule. */ |
| 1045 | #ifndef YY_BREAK |
| 1046 | #define YY_BREAK break; |
| 1047 | #endif |
| 1048 | |
| 1049 | #define YY_RULE_SETUP \ |
| 1050 | YY_USER_ACTION |
| 1051 | |
| 1052 | YY_DECL |
| 1053 | { |
| 1054 | register yy_state_type yy_current_state; |
| 1055 | register char *yy_cp = NULL, *yy_bp = NULL; |
| 1056 | register int yy_act; |
| 1057 | |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1058 | #line 98 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1059 | |
| 1060 | |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1061 | #line 1062 "UpgradeLexer.cpp" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1062 | |
| 1063 | if ( yy_init ) |
| 1064 | { |
| 1065 | yy_init = 0; |
| 1066 | |
| 1067 | #ifdef YY_USER_INIT |
| 1068 | YY_USER_INIT; |
| 1069 | #endif |
| 1070 | |
| 1071 | if ( ! yy_start ) |
| 1072 | yy_start = 1; /* first start state */ |
| 1073 | |
| 1074 | if ( ! yyin ) |
| 1075 | yyin = stdin; |
| 1076 | |
| 1077 | if ( ! yyout ) |
| 1078 | yyout = stdout; |
| 1079 | |
| 1080 | if ( ! yy_current_buffer ) |
| 1081 | yy_current_buffer = |
| 1082 | yy_create_buffer( yyin, YY_BUF_SIZE ); |
| 1083 | |
| 1084 | yy_load_buffer_state(); |
| 1085 | } |
| 1086 | |
| 1087 | while ( 1 ) /* loops until end-of-file is reached */ |
| 1088 | { |
| 1089 | yy_cp = yy_c_buf_p; |
| 1090 | |
| 1091 | /* Support of yytext. */ |
| 1092 | *yy_cp = yy_hold_char; |
| 1093 | |
| 1094 | /* yy_bp points to the position in yy_ch_buf of the start of |
| 1095 | * the current run. |
| 1096 | */ |
| 1097 | yy_bp = yy_cp; |
| 1098 | |
| 1099 | yy_current_state = yy_start; |
| 1100 | yy_state_ptr = yy_state_buf; |
| 1101 | *yy_state_ptr++ = yy_current_state; |
| 1102 | yy_match: |
| 1103 | do |
| 1104 | { |
| 1105 | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; |
| 1106 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| 1107 | { |
| 1108 | yy_current_state = (int) yy_def[yy_current_state]; |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1109 | if ( yy_current_state >= 510 ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1110 | yy_c = yy_meta[(unsigned int) yy_c]; |
| 1111 | } |
| 1112 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
| 1113 | *yy_state_ptr++ = yy_current_state; |
| 1114 | ++yy_cp; |
| 1115 | } |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1116 | while ( yy_current_state != 509 ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1117 | |
| 1118 | yy_find_action: |
| 1119 | yy_current_state = *--yy_state_ptr; |
| 1120 | yy_lp = yy_accept[yy_current_state]; |
| 1121 | find_rule: /* we branch to this label when backing up */ |
| 1122 | for ( ; ; ) /* until we find what rule we matched */ |
| 1123 | { |
| 1124 | if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] ) |
| 1125 | { |
| 1126 | yy_act = yy_acclist[yy_lp]; |
| 1127 | { |
| 1128 | yy_full_match = yy_cp; |
| 1129 | break; |
| 1130 | } |
| 1131 | } |
| 1132 | --yy_cp; |
| 1133 | yy_current_state = *--yy_state_ptr; |
| 1134 | yy_lp = yy_accept[yy_current_state]; |
| 1135 | } |
| 1136 | |
| 1137 | YY_DO_BEFORE_ACTION; |
| 1138 | |
| 1139 | if ( yy_act != YY_END_OF_BUFFER ) |
| 1140 | { |
| 1141 | int yyl; |
| 1142 | for ( yyl = 0; yyl < yyleng; ++yyl ) |
| 1143 | if ( yytext[yyl] == '\n' ) |
| 1144 | ++yylineno; |
| 1145 | } |
| 1146 | |
| 1147 | do_action: /* This label is used only to access EOF actions. */ |
| 1148 | |
| 1149 | |
| 1150 | switch ( yy_act ) |
| 1151 | { /* beginning of action switch */ |
| 1152 | case 1: |
| 1153 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1154 | #line 100 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1155 | { /* Ignore comments for now */ } |
| 1156 | YY_BREAK |
| 1157 | case 2: |
| 1158 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1159 | #line 102 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1160 | { RET_TOK( BEGINTOK); } |
| 1161 | YY_BREAK |
| 1162 | case 3: |
| 1163 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1164 | #line 103 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1165 | { RET_TOK( ENDTOK); } |
| 1166 | YY_BREAK |
| 1167 | case 4: |
| 1168 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1169 | #line 104 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1170 | { RET_TOK( TRUETOK); } |
| 1171 | YY_BREAK |
| 1172 | case 5: |
| 1173 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1174 | #line 105 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1175 | { RET_TOK( FALSETOK); } |
| 1176 | YY_BREAK |
| 1177 | case 6: |
| 1178 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1179 | #line 106 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1180 | { RET_TOK( DECLARE); } |
| 1181 | YY_BREAK |
| 1182 | case 7: |
| 1183 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1184 | #line 107 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1185 | { RET_TOK( GLOBAL); } |
| 1186 | YY_BREAK |
| 1187 | case 8: |
| 1188 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1189 | #line 108 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1190 | { RET_TOK( CONSTANT); } |
| 1191 | YY_BREAK |
| 1192 | case 9: |
| 1193 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1194 | #line 109 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1195 | { RET_TOK( INTERNAL); } |
| 1196 | YY_BREAK |
| 1197 | case 10: |
| 1198 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1199 | #line 110 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1200 | { RET_TOK( LINKONCE); } |
| 1201 | YY_BREAK |
| 1202 | case 11: |
| 1203 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1204 | #line 111 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1205 | { RET_TOK( WEAK); } |
| 1206 | YY_BREAK |
| 1207 | case 12: |
| 1208 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1209 | #line 112 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1210 | { RET_TOK( APPENDING); } |
| 1211 | YY_BREAK |
| 1212 | case 13: |
| 1213 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1214 | #line 113 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1215 | { RET_TOK( DLLIMPORT); } |
| 1216 | YY_BREAK |
| 1217 | case 14: |
| 1218 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1219 | #line 114 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1220 | { RET_TOK( DLLEXPORT); } |
| 1221 | YY_BREAK |
| 1222 | case 15: |
| 1223 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1224 | #line 115 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1225 | { RET_TOK( EXTERN_WEAK); } |
| 1226 | YY_BREAK |
| 1227 | case 16: |
| 1228 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1229 | #line 116 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1230 | { RET_TOK( EXTERNAL); } |
| 1231 | YY_BREAK |
| 1232 | case 17: |
| 1233 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1234 | #line 117 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1235 | { RET_TOK( IMPLEMENTATION); } |
| 1236 | YY_BREAK |
| 1237 | case 18: |
| 1238 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1239 | #line 118 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1240 | { RET_TOK( ZEROINITIALIZER); } |
| 1241 | YY_BREAK |
| 1242 | case 19: |
| 1243 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1244 | #line 119 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1245 | { RET_TOK( DOTDOTDOT); } |
| 1246 | YY_BREAK |
| 1247 | case 20: |
| 1248 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1249 | #line 120 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1250 | { RET_TOK( UNDEF); } |
| 1251 | YY_BREAK |
| 1252 | case 21: |
| 1253 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1254 | #line 121 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1255 | { RET_TOK( NULL_TOK); } |
| 1256 | YY_BREAK |
| 1257 | case 22: |
| 1258 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1259 | #line 122 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1260 | { RET_TOK( TO); } |
| 1261 | YY_BREAK |
| 1262 | case 23: |
| 1263 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1264 | #line 123 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1265 | { RET_TOK( TAIL); } |
| 1266 | YY_BREAK |
| 1267 | case 24: |
| 1268 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1269 | #line 124 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1270 | { RET_TOK( TARGET); } |
| 1271 | YY_BREAK |
| 1272 | case 25: |
| 1273 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1274 | #line 125 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1275 | { RET_TOK( TRIPLE); } |
| 1276 | YY_BREAK |
| 1277 | case 26: |
| 1278 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1279 | #line 126 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1280 | { RET_TOK( DEPLIBS); } |
| 1281 | YY_BREAK |
| 1282 | case 27: |
| 1283 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1284 | #line 127 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1285 | { RET_TOK( ENDIAN); } |
| 1286 | YY_BREAK |
| 1287 | case 28: |
| 1288 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1289 | #line 128 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1290 | { RET_TOK( POINTERSIZE); } |
| 1291 | YY_BREAK |
| 1292 | case 29: |
| 1293 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1294 | #line 129 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1295 | { RET_TOK( DATALAYOUT); } |
| 1296 | YY_BREAK |
| 1297 | case 30: |
| 1298 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1299 | #line 130 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1300 | { RET_TOK( LITTLE); } |
| 1301 | YY_BREAK |
| 1302 | case 31: |
| 1303 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1304 | #line 131 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1305 | { RET_TOK( BIG); } |
| 1306 | YY_BREAK |
| 1307 | case 32: |
| 1308 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1309 | #line 132 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1310 | { RET_TOK( VOLATILE); } |
| 1311 | YY_BREAK |
| 1312 | case 33: |
| 1313 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1314 | #line 133 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1315 | { RET_TOK( ALIGN); } |
| 1316 | YY_BREAK |
| 1317 | case 34: |
| 1318 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1319 | #line 134 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1320 | { RET_TOK( SECTION); } |
| 1321 | YY_BREAK |
| 1322 | case 35: |
| 1323 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1324 | #line 135 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1325 | { RET_TOK( MODULE); } |
| 1326 | YY_BREAK |
| 1327 | case 36: |
| 1328 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1329 | #line 136 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1330 | { RET_TOK( ASM_TOK); } |
| 1331 | YY_BREAK |
| 1332 | case 37: |
| 1333 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1334 | #line 137 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1335 | { RET_TOK( SIDEEFFECT); } |
| 1336 | YY_BREAK |
| 1337 | case 38: |
| 1338 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1339 | #line 139 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1340 | { RET_TOK( CC_TOK); } |
| 1341 | YY_BREAK |
| 1342 | case 39: |
| 1343 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1344 | #line 140 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1345 | { RET_TOK( CCC_TOK); } |
| 1346 | YY_BREAK |
| 1347 | case 40: |
| 1348 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1349 | #line 141 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1350 | { RET_TOK( CSRETCC_TOK); } |
| 1351 | YY_BREAK |
| 1352 | case 41: |
| 1353 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1354 | #line 142 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1355 | { RET_TOK( FASTCC_TOK); } |
| 1356 | YY_BREAK |
| 1357 | case 42: |
| 1358 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1359 | #line 143 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1360 | { RET_TOK( COLDCC_TOK); } |
| 1361 | YY_BREAK |
| 1362 | case 43: |
| 1363 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1364 | #line 144 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1365 | { RET_TOK( X86_STDCALLCC_TOK); } |
| 1366 | YY_BREAK |
| 1367 | case 44: |
| 1368 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1369 | #line 145 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1370 | { RET_TOK( X86_FASTCALLCC_TOK); } |
| 1371 | YY_BREAK |
| 1372 | case 45: |
| 1373 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1374 | #line 147 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1375 | { RET_TY(VOID,VoidTy,"void",false); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1376 | YY_BREAK |
| 1377 | case 46: |
| 1378 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1379 | #line 148 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1380 | { RET_TY(BOOL,BoolTy,"bool",false); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1381 | YY_BREAK |
| 1382 | case 47: |
| 1383 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1384 | #line 149 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1385 | { RET_TY(SBYTE,SByteTy,"sbyte",true); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1386 | YY_BREAK |
| 1387 | case 48: |
| 1388 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1389 | #line 150 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1390 | { RET_TY(UBYTE,UByteTy,"ubyte",false); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1391 | YY_BREAK |
| 1392 | case 49: |
| 1393 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1394 | #line 151 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1395 | { RET_TY(SHORT,ShortTy,"short",true); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1396 | YY_BREAK |
| 1397 | case 50: |
| 1398 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1399 | #line 152 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1400 | { RET_TY(USHORT,UShortTy,"ushort",false); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1401 | YY_BREAK |
| 1402 | case 51: |
| 1403 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1404 | #line 153 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1405 | { RET_TY(INT,IntTy,"int",true); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1406 | YY_BREAK |
| 1407 | case 52: |
| 1408 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1409 | #line 154 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1410 | { RET_TY(UINT,UIntTy,"uint",false); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1411 | YY_BREAK |
| 1412 | case 53: |
| 1413 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1414 | #line 155 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1415 | { RET_TY(LONG,LongTy,"long",true); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1416 | YY_BREAK |
| 1417 | case 54: |
| 1418 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1419 | #line 156 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1420 | { RET_TY(ULONG,ULongTy,"ulong",false); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1421 | YY_BREAK |
| 1422 | case 55: |
| 1423 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1424 | #line 157 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1425 | { RET_TY(FLOAT,FloatTy,"float",false); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1426 | YY_BREAK |
| 1427 | case 56: |
| 1428 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1429 | #line 158 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1430 | { RET_TY(DOUBLE,DoubleTy,"double",false); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1431 | YY_BREAK |
| 1432 | case 57: |
| 1433 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1434 | #line 159 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1435 | { RET_TY(LABEL,LabelTy,"label",false); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1436 | YY_BREAK |
| 1437 | case 58: |
| 1438 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1439 | #line 160 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1440 | { RET_TY(OPAQUE,OpaqueTy,"opaque",false); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1441 | YY_BREAK |
| 1442 | case 59: |
| 1443 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1444 | #line 161 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1445 | { RET_TOK(TYPE); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1446 | YY_BREAK |
| 1447 | case 60: |
| 1448 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1449 | #line 163 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1450 | { RET_TOK( ADD); } |
| 1451 | YY_BREAK |
| 1452 | case 61: |
| 1453 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1454 | #line 164 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1455 | { RET_TOK( SUB); } |
| 1456 | YY_BREAK |
| 1457 | case 62: |
| 1458 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1459 | #line 165 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1460 | { RET_TOK( MUL); } |
| 1461 | YY_BREAK |
| 1462 | case 63: |
| 1463 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1464 | #line 166 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1465 | { RET_TOK( UDIV); } |
| 1466 | YY_BREAK |
| 1467 | case 64: |
| 1468 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1469 | #line 167 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1470 | { RET_TOK( UDIV); } |
| 1471 | YY_BREAK |
| 1472 | case 65: |
| 1473 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1474 | #line 168 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1475 | { RET_TOK( SDIV); } |
| 1476 | YY_BREAK |
| 1477 | case 66: |
| 1478 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1479 | #line 169 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1480 | { RET_TOK( FDIV); } |
| 1481 | YY_BREAK |
| 1482 | case 67: |
| 1483 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1484 | #line 170 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1485 | { RET_TOK( UREM); } |
| 1486 | YY_BREAK |
| 1487 | case 68: |
| 1488 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1489 | #line 171 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1490 | { RET_TOK( UREM); } |
| 1491 | YY_BREAK |
| 1492 | case 69: |
| 1493 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1494 | #line 172 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1495 | { RET_TOK( SREM); } |
| 1496 | YY_BREAK |
| 1497 | case 70: |
| 1498 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1499 | #line 173 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1500 | { RET_TOK( FREM); } |
| 1501 | YY_BREAK |
| 1502 | case 71: |
| 1503 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1504 | #line 174 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1505 | { RET_TOK( AND); } |
| 1506 | YY_BREAK |
| 1507 | case 72: |
| 1508 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1509 | #line 175 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1510 | { RET_TOK( OR); } |
| 1511 | YY_BREAK |
| 1512 | case 73: |
| 1513 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1514 | #line 176 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1515 | { RET_TOK( XOR); } |
| 1516 | YY_BREAK |
| 1517 | case 74: |
| 1518 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1519 | #line 177 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1520 | { RET_TOK( SETNE); } |
| 1521 | YY_BREAK |
| 1522 | case 75: |
| 1523 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1524 | #line 178 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1525 | { RET_TOK( SETEQ); } |
| 1526 | YY_BREAK |
| 1527 | case 76: |
| 1528 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1529 | #line 179 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1530 | { RET_TOK( SETLT); } |
| 1531 | YY_BREAK |
| 1532 | case 77: |
| 1533 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1534 | #line 180 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1535 | { RET_TOK( SETGT); } |
| 1536 | YY_BREAK |
| 1537 | case 78: |
| 1538 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1539 | #line 181 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1540 | { RET_TOK( SETLE); } |
| 1541 | YY_BREAK |
| 1542 | case 79: |
| 1543 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1544 | #line 182 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1545 | { RET_TOK( SETGE); } |
| 1546 | YY_BREAK |
| 1547 | case 80: |
| 1548 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1549 | #line 184 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1550 | { RET_TOK( PHI_TOK); } |
| 1551 | YY_BREAK |
| 1552 | case 81: |
| 1553 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1554 | #line 185 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1555 | { RET_TOK( CALL); } |
| 1556 | YY_BREAK |
| 1557 | case 82: |
| 1558 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1559 | #line 186 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1560 | { RET_TOK( CAST); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1561 | YY_BREAK |
| 1562 | case 83: |
| 1563 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1564 | #line 187 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1565 | { RET_TOK( SELECT); } |
| 1566 | YY_BREAK |
| 1567 | case 84: |
| 1568 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1569 | #line 188 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1570 | { RET_TOK( SHL); } |
| 1571 | YY_BREAK |
| 1572 | case 85: |
| 1573 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1574 | #line 189 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1575 | { RET_TOK( LSHR); } |
| 1576 | YY_BREAK |
| 1577 | case 86: |
| 1578 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1579 | #line 190 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1580 | { RET_TOK( ASHR); } |
| 1581 | YY_BREAK |
| 1582 | case 87: |
| 1583 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1584 | #line 191 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1585 | { RET_TOK( VAARG); } |
| 1586 | YY_BREAK |
| 1587 | case 88: |
| 1588 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1589 | #line 192 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1590 | { RET_TOK( RET); } |
| 1591 | YY_BREAK |
| 1592 | case 89: |
| 1593 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1594 | #line 193 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1595 | { RET_TOK( BR); } |
| 1596 | YY_BREAK |
| 1597 | case 90: |
| 1598 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1599 | #line 194 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1600 | { RET_TOK( SWITCH); } |
| 1601 | YY_BREAK |
| 1602 | case 91: |
| 1603 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1604 | #line 195 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1605 | { RET_TOK( INVOKE); } |
| 1606 | YY_BREAK |
| 1607 | case 92: |
| 1608 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1609 | #line 196 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1610 | { RET_TOK( UNWIND); } |
| 1611 | YY_BREAK |
| 1612 | case 93: |
| 1613 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1614 | #line 197 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1615 | { RET_TOK( UNWIND); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1616 | YY_BREAK |
| 1617 | case 94: |
| 1618 | YY_RULE_SETUP |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1619 | #line 198 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1620 | { RET_TOK( UNREACHABLE); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1621 | YY_BREAK |
| 1622 | case 95: |
| 1623 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1624 | #line 200 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1625 | { RET_TOK( MALLOC); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1626 | YY_BREAK |
| 1627 | case 96: |
| 1628 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1629 | #line 201 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1630 | { RET_TOK( ALLOCA); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1631 | YY_BREAK |
| 1632 | case 97: |
| 1633 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1634 | #line 202 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1635 | { RET_TOK( FREE); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1636 | YY_BREAK |
| 1637 | case 98: |
| 1638 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1639 | #line 203 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1640 | { RET_TOK( LOAD); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1641 | YY_BREAK |
| 1642 | case 99: |
| 1643 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1644 | #line 204 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1645 | { RET_TOK( STORE); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1646 | YY_BREAK |
| 1647 | case 100: |
| 1648 | YY_RULE_SETUP |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1649 | #line 205 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1650 | { RET_TOK( GETELEMENTPTR); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1651 | YY_BREAK |
| 1652 | case 101: |
| 1653 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1654 | #line 207 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1655 | { RET_TOK( EXTRACTELEMENT); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1656 | YY_BREAK |
| 1657 | case 102: |
| 1658 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1659 | #line 208 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1660 | { RET_TOK( INSERTELEMENT); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1661 | YY_BREAK |
| 1662 | case 103: |
| 1663 | YY_RULE_SETUP |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1664 | #line 209 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1665 | { RET_TOK( SHUFFLEVECTOR); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1666 | YY_BREAK |
| 1667 | case 104: |
| 1668 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1669 | #line 212 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1670 | { RET_TOK( VAR_ID); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1671 | YY_BREAK |
| 1672 | case 105: |
| 1673 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1674 | #line 213 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1675 | { RET_TOK( LABELSTR); } |
| 1676 | YY_BREAK |
| 1677 | case 106: |
| 1678 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1679 | #line 214 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1680 | { RET_TOK( LABELSTR); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1681 | YY_BREAK |
| 1682 | case 107: |
| 1683 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1684 | #line 215 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1685 | { RET_TOK( STRINGCONSTANT ); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1686 | YY_BREAK |
| 1687 | case 108: |
| 1688 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1689 | #line 216 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1690 | { RET_TOK( EUINT64VAL ); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1691 | YY_BREAK |
| 1692 | case 109: |
| 1693 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1694 | #line 217 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1695 | { RET_TOK( ESINT64VAL ); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1696 | YY_BREAK |
| 1697 | case 110: |
| 1698 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1699 | #line 218 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1700 | { RET_TOK( yytext[0] == 's' ? ESINT64VAL : EUINT64VAL ); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1701 | YY_BREAK |
| 1702 | case 111: |
| 1703 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1704 | #line 219 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1705 | { RET_TOK( UINTVAL); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1706 | YY_BREAK |
| 1707 | case 112: |
| 1708 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1709 | #line 220 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1710 | { RET_TOK( SINTVAL); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1711 | YY_BREAK |
| 1712 | case 113: |
| 1713 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1714 | #line 221 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1715 | { RET_TOK( FPVAL); } |
| 1716 | YY_BREAK |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1717 | case 114: |
| 1718 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1719 | #line 222 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1720 | { RET_TOK( FPVAL); } |
| 1721 | YY_BREAK |
| 1722 | case YY_STATE_EOF(INITIAL): |
| 1723 | #line 223 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1724 | { |
| 1725 | /* Make sure to free the internal buffers for flex when we are |
| 1726 | * done reading our input! |
| 1727 | */ |
| 1728 | yy_delete_buffer(YY_CURRENT_BUFFER); |
| 1729 | return EOF; |
| 1730 | } |
| 1731 | YY_BREAK |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1732 | case 115: |
| 1733 | YY_RULE_SETUP |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1734 | #line 231 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1735 | { /* Ignore whitespace */ } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1736 | YY_BREAK |
| 1737 | case 116: |
| 1738 | YY_RULE_SETUP |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1739 | #line 232 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
| 1740 | { return yytext[0]; } |
| 1741 | YY_BREAK |
| 1742 | case 117: |
| 1743 | YY_RULE_SETUP |
| 1744 | #line 234 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1745 | YY_FATAL_ERROR( "flex scanner jammed" ); |
| 1746 | YY_BREAK |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 1747 | #line 1748 "UpgradeLexer.cpp" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1748 | |
| 1749 | case YY_END_OF_BUFFER: |
| 1750 | { |
| 1751 | /* Amount of text matched not including the EOB char. */ |
| 1752 | int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; |
| 1753 | |
| 1754 | /* Undo the effects of YY_DO_BEFORE_ACTION. */ |
| 1755 | *yy_cp = yy_hold_char; |
| 1756 | YY_RESTORE_YY_MORE_OFFSET |
| 1757 | |
| 1758 | if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) |
| 1759 | { |
| 1760 | /* We're scanning a new file or input source. It's |
| 1761 | * possible that this happened because the user |
| 1762 | * just pointed yyin at a new source and called |
| 1763 | * yylex(). If so, then we have to assure |
| 1764 | * consistency between yy_current_buffer and our |
| 1765 | * globals. Here is the right place to do so, because |
| 1766 | * this is the first action (other than possibly a |
| 1767 | * back-up) that will match for the new input source. |
| 1768 | */ |
| 1769 | yy_n_chars = yy_current_buffer->yy_n_chars; |
| 1770 | yy_current_buffer->yy_input_file = yyin; |
| 1771 | yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; |
| 1772 | } |
| 1773 | |
| 1774 | /* Note that here we test for yy_c_buf_p "<=" to the position |
| 1775 | * of the first EOB in the buffer, since yy_c_buf_p will |
| 1776 | * already have been incremented past the NUL character |
| 1777 | * (since all states make transitions on EOB to the |
| 1778 | * end-of-buffer state). Contrast this with the test |
| 1779 | * in input(). |
| 1780 | */ |
| 1781 | if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) |
| 1782 | { /* This was really a NUL. */ |
| 1783 | yy_state_type yy_next_state; |
| 1784 | |
| 1785 | yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; |
| 1786 | |
| 1787 | yy_current_state = yy_get_previous_state(); |
| 1788 | |
| 1789 | /* Okay, we're now positioned to make the NUL |
| 1790 | * transition. We couldn't have |
| 1791 | * yy_get_previous_state() go ahead and do it |
| 1792 | * for us because it doesn't know how to deal |
| 1793 | * with the possibility of jamming (and we don't |
| 1794 | * want to build jamming into it because then it |
| 1795 | * will run more slowly). |
| 1796 | */ |
| 1797 | |
| 1798 | yy_next_state = yy_try_NUL_trans( yy_current_state ); |
| 1799 | |
| 1800 | yy_bp = yytext_ptr + YY_MORE_ADJ; |
| 1801 | |
| 1802 | if ( yy_next_state ) |
| 1803 | { |
| 1804 | /* Consume the NUL. */ |
| 1805 | yy_cp = ++yy_c_buf_p; |
| 1806 | yy_current_state = yy_next_state; |
| 1807 | goto yy_match; |
| 1808 | } |
| 1809 | |
| 1810 | else |
| 1811 | { |
| 1812 | yy_cp = yy_c_buf_p; |
| 1813 | goto yy_find_action; |
| 1814 | } |
| 1815 | } |
| 1816 | |
| 1817 | else switch ( yy_get_next_buffer() ) |
| 1818 | { |
| 1819 | case EOB_ACT_END_OF_FILE: |
| 1820 | { |
| 1821 | yy_did_buffer_switch_on_eof = 0; |
| 1822 | |
| 1823 | if ( yywrap() ) |
| 1824 | { |
| 1825 | /* Note: because we've taken care in |
| 1826 | * yy_get_next_buffer() to have set up |
| 1827 | * yytext, we can now set up |
| 1828 | * yy_c_buf_p so that if some total |
| 1829 | * hoser (like flex itself) wants to |
| 1830 | * call the scanner after we return the |
| 1831 | * YY_NULL, it'll still work - another |
| 1832 | * YY_NULL will get returned. |
| 1833 | */ |
| 1834 | yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; |
| 1835 | |
| 1836 | yy_act = YY_STATE_EOF(YY_START); |
| 1837 | goto do_action; |
| 1838 | } |
| 1839 | |
| 1840 | else |
| 1841 | { |
| 1842 | if ( ! yy_did_buffer_switch_on_eof ) |
| 1843 | YY_NEW_FILE; |
| 1844 | } |
| 1845 | break; |
| 1846 | } |
| 1847 | |
| 1848 | case EOB_ACT_CONTINUE_SCAN: |
| 1849 | yy_c_buf_p = |
| 1850 | yytext_ptr + yy_amount_of_matched_text; |
| 1851 | |
| 1852 | yy_current_state = yy_get_previous_state(); |
| 1853 | |
| 1854 | yy_cp = yy_c_buf_p; |
| 1855 | yy_bp = yytext_ptr + YY_MORE_ADJ; |
| 1856 | goto yy_match; |
| 1857 | |
| 1858 | case EOB_ACT_LAST_MATCH: |
| 1859 | yy_c_buf_p = |
| 1860 | &yy_current_buffer->yy_ch_buf[yy_n_chars]; |
| 1861 | |
| 1862 | yy_current_state = yy_get_previous_state(); |
| 1863 | |
| 1864 | yy_cp = yy_c_buf_p; |
| 1865 | yy_bp = yytext_ptr + YY_MORE_ADJ; |
| 1866 | goto yy_find_action; |
| 1867 | } |
| 1868 | break; |
| 1869 | } |
| 1870 | |
| 1871 | default: |
| 1872 | YY_FATAL_ERROR( |
| 1873 | "fatal flex scanner internal error--no action found" ); |
| 1874 | } /* end of action switch */ |
| 1875 | } /* end of scanning one token */ |
| 1876 | } /* end of yylex */ |
| 1877 | |
| 1878 | |
| 1879 | /* yy_get_next_buffer - try to read in a new buffer |
| 1880 | * |
| 1881 | * Returns a code representing an action: |
| 1882 | * EOB_ACT_LAST_MATCH - |
| 1883 | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
| 1884 | * EOB_ACT_END_OF_FILE - end of file |
| 1885 | */ |
| 1886 | |
| 1887 | static int yy_get_next_buffer() |
| 1888 | { |
| 1889 | register char *dest = yy_current_buffer->yy_ch_buf; |
| 1890 | register char *source = yytext_ptr; |
| 1891 | register int number_to_move, i; |
| 1892 | int ret_val; |
| 1893 | |
| 1894 | if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) |
| 1895 | YY_FATAL_ERROR( |
| 1896 | "fatal flex scanner internal error--end of buffer missed" ); |
| 1897 | |
| 1898 | if ( yy_current_buffer->yy_fill_buffer == 0 ) |
| 1899 | { /* Don't try to fill the buffer, so this is an EOF. */ |
| 1900 | if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) |
| 1901 | { |
| 1902 | /* We matched a single character, the EOB, so |
| 1903 | * treat this as a final EOF. |
| 1904 | */ |
| 1905 | return EOB_ACT_END_OF_FILE; |
| 1906 | } |
| 1907 | |
| 1908 | else |
| 1909 | { |
| 1910 | /* We matched some text prior to the EOB, first |
| 1911 | * process it. |
| 1912 | */ |
| 1913 | return EOB_ACT_LAST_MATCH; |
| 1914 | } |
| 1915 | } |
| 1916 | |
| 1917 | /* Try to read more data. */ |
| 1918 | |
| 1919 | /* First move last chars to start of buffer. */ |
| 1920 | number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; |
| 1921 | |
| 1922 | for ( i = 0; i < number_to_move; ++i ) |
| 1923 | *(dest++) = *(source++); |
| 1924 | |
| 1925 | if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) |
| 1926 | /* don't do the read, it's not guaranteed to return an EOF, |
| 1927 | * just force an EOF |
| 1928 | */ |
| 1929 | yy_current_buffer->yy_n_chars = yy_n_chars = 0; |
| 1930 | |
| 1931 | else |
| 1932 | { |
| 1933 | int num_to_read = |
| 1934 | yy_current_buffer->yy_buf_size - number_to_move - 1; |
| 1935 | |
| 1936 | while ( num_to_read <= 0 ) |
| 1937 | { /* Not enough room in the buffer - grow it. */ |
| 1938 | #ifdef YY_USES_REJECT |
| 1939 | YY_FATAL_ERROR( |
| 1940 | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); |
| 1941 | #else |
| 1942 | |
| 1943 | /* just a shorter name for the current buffer */ |
| 1944 | YY_BUFFER_STATE b = yy_current_buffer; |
| 1945 | |
| 1946 | int yy_c_buf_p_offset = |
| 1947 | (int) (yy_c_buf_p - b->yy_ch_buf); |
| 1948 | |
| 1949 | if ( b->yy_is_our_buffer ) |
| 1950 | { |
| 1951 | int new_size = b->yy_buf_size * 2; |
| 1952 | |
| 1953 | if ( new_size <= 0 ) |
| 1954 | b->yy_buf_size += b->yy_buf_size / 8; |
| 1955 | else |
| 1956 | b->yy_buf_size *= 2; |
| 1957 | |
| 1958 | b->yy_ch_buf = (char *) |
| 1959 | /* Include room in for 2 EOB chars. */ |
| 1960 | yy_flex_realloc( (void *) b->yy_ch_buf, |
| 1961 | b->yy_buf_size + 2 ); |
| 1962 | } |
| 1963 | else |
| 1964 | /* Can't grow it, we don't own it. */ |
| 1965 | b->yy_ch_buf = 0; |
| 1966 | |
| 1967 | if ( ! b->yy_ch_buf ) |
| 1968 | YY_FATAL_ERROR( |
| 1969 | "fatal error - scanner input buffer overflow" ); |
| 1970 | |
| 1971 | yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; |
| 1972 | |
| 1973 | num_to_read = yy_current_buffer->yy_buf_size - |
| 1974 | number_to_move - 1; |
| 1975 | #endif |
| 1976 | } |
| 1977 | |
| 1978 | if ( num_to_read > YY_READ_BUF_SIZE ) |
| 1979 | num_to_read = YY_READ_BUF_SIZE; |
| 1980 | |
| 1981 | /* Read in more data. */ |
| 1982 | YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), |
| 1983 | yy_n_chars, num_to_read ); |
| 1984 | |
| 1985 | yy_current_buffer->yy_n_chars = yy_n_chars; |
| 1986 | } |
| 1987 | |
| 1988 | if ( yy_n_chars == 0 ) |
| 1989 | { |
| 1990 | if ( number_to_move == YY_MORE_ADJ ) |
| 1991 | { |
| 1992 | ret_val = EOB_ACT_END_OF_FILE; |
| 1993 | yyrestart( yyin ); |
| 1994 | } |
| 1995 | |
| 1996 | else |
| 1997 | { |
| 1998 | ret_val = EOB_ACT_LAST_MATCH; |
| 1999 | yy_current_buffer->yy_buffer_status = |
| 2000 | YY_BUFFER_EOF_PENDING; |
| 2001 | } |
| 2002 | } |
| 2003 | |
| 2004 | else |
| 2005 | ret_val = EOB_ACT_CONTINUE_SCAN; |
| 2006 | |
| 2007 | yy_n_chars += number_to_move; |
| 2008 | yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; |
| 2009 | yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; |
| 2010 | |
| 2011 | yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; |
| 2012 | |
| 2013 | return ret_val; |
| 2014 | } |
| 2015 | |
| 2016 | |
| 2017 | /* yy_get_previous_state - get the state just before the EOB char was reached */ |
| 2018 | |
| 2019 | static yy_state_type yy_get_previous_state() |
| 2020 | { |
| 2021 | register yy_state_type yy_current_state; |
| 2022 | register char *yy_cp; |
| 2023 | |
| 2024 | yy_current_state = yy_start; |
| 2025 | yy_state_ptr = yy_state_buf; |
| 2026 | *yy_state_ptr++ = yy_current_state; |
| 2027 | |
| 2028 | for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) |
| 2029 | { |
| 2030 | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
| 2031 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| 2032 | { |
| 2033 | yy_current_state = (int) yy_def[yy_current_state]; |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 2034 | if ( yy_current_state >= 510 ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2035 | yy_c = yy_meta[(unsigned int) yy_c]; |
| 2036 | } |
| 2037 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
| 2038 | *yy_state_ptr++ = yy_current_state; |
| 2039 | } |
| 2040 | |
| 2041 | return yy_current_state; |
| 2042 | } |
| 2043 | |
| 2044 | |
| 2045 | /* yy_try_NUL_trans - try to make a transition on the NUL character |
| 2046 | * |
| 2047 | * synopsis |
| 2048 | * next_state = yy_try_NUL_trans( current_state ); |
| 2049 | */ |
| 2050 | |
| 2051 | #ifdef YY_USE_PROTOS |
| 2052 | static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) |
| 2053 | #else |
| 2054 | static yy_state_type yy_try_NUL_trans( yy_current_state ) |
| 2055 | yy_state_type yy_current_state; |
| 2056 | #endif |
| 2057 | { |
| 2058 | register int yy_is_jam; |
| 2059 | |
| 2060 | register YY_CHAR yy_c = 1; |
| 2061 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| 2062 | { |
| 2063 | yy_current_state = (int) yy_def[yy_current_state]; |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 2064 | if ( yy_current_state >= 510 ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2065 | yy_c = yy_meta[(unsigned int) yy_c]; |
| 2066 | } |
| 2067 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 2068 | yy_is_jam = (yy_current_state == 509); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2069 | if ( ! yy_is_jam ) |
| 2070 | *yy_state_ptr++ = yy_current_state; |
| 2071 | |
| 2072 | return yy_is_jam ? 0 : yy_current_state; |
| 2073 | } |
| 2074 | |
| 2075 | |
| 2076 | #ifndef YY_NO_UNPUT |
| 2077 | #ifdef YY_USE_PROTOS |
| 2078 | static inline void yyunput( int c, register char *yy_bp ) |
| 2079 | #else |
| 2080 | static inline void yyunput( c, yy_bp ) |
| 2081 | int c; |
| 2082 | register char *yy_bp; |
| 2083 | #endif |
| 2084 | { |
| 2085 | register char *yy_cp = yy_c_buf_p; |
| 2086 | |
| 2087 | /* undo effects of setting up yytext */ |
| 2088 | *yy_cp = yy_hold_char; |
| 2089 | |
| 2090 | if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) |
| 2091 | { /* need to shift things up to make room */ |
| 2092 | /* +2 for EOB chars. */ |
| 2093 | register int number_to_move = yy_n_chars + 2; |
| 2094 | register char *dest = &yy_current_buffer->yy_ch_buf[ |
| 2095 | yy_current_buffer->yy_buf_size + 2]; |
| 2096 | register char *source = |
| 2097 | &yy_current_buffer->yy_ch_buf[number_to_move]; |
| 2098 | |
| 2099 | while ( source > yy_current_buffer->yy_ch_buf ) |
| 2100 | *--dest = *--source; |
| 2101 | |
| 2102 | yy_cp += (int) (dest - source); |
| 2103 | yy_bp += (int) (dest - source); |
| 2104 | yy_current_buffer->yy_n_chars = |
| 2105 | yy_n_chars = yy_current_buffer->yy_buf_size; |
| 2106 | |
| 2107 | if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) |
| 2108 | YY_FATAL_ERROR( "flex scanner push-back overflow" ); |
| 2109 | } |
| 2110 | |
| 2111 | *--yy_cp = (char) c; |
| 2112 | |
| 2113 | if ( c == '\n' ) |
| 2114 | --yylineno; |
| 2115 | |
| 2116 | yytext_ptr = yy_bp; |
| 2117 | yy_hold_char = *yy_cp; |
| 2118 | yy_c_buf_p = yy_cp; |
| 2119 | } |
| 2120 | #endif /* ifndef YY_NO_UNPUT */ |
| 2121 | |
| 2122 | |
| 2123 | #ifndef YY_NO_INPUT |
| 2124 | #ifdef __cplusplus |
| 2125 | static int yyinput() |
| 2126 | #else |
| 2127 | static int input() |
| 2128 | #endif |
| 2129 | { |
| 2130 | int c; |
| 2131 | |
| 2132 | *yy_c_buf_p = yy_hold_char; |
| 2133 | |
| 2134 | if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) |
| 2135 | { |
| 2136 | /* yy_c_buf_p now points to the character we want to return. |
| 2137 | * If this occurs *before* the EOB characters, then it's a |
| 2138 | * valid NUL; if not, then we've hit the end of the buffer. |
| 2139 | */ |
| 2140 | if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) |
| 2141 | /* This was really a NUL. */ |
| 2142 | *yy_c_buf_p = '\0'; |
| 2143 | |
| 2144 | else |
| 2145 | { /* need more input */ |
| 2146 | int offset = yy_c_buf_p - yytext_ptr; |
| 2147 | ++yy_c_buf_p; |
| 2148 | |
| 2149 | switch ( yy_get_next_buffer() ) |
| 2150 | { |
| 2151 | case EOB_ACT_LAST_MATCH: |
| 2152 | /* This happens because yy_g_n_b() |
| 2153 | * sees that we've accumulated a |
| 2154 | * token and flags that we need to |
| 2155 | * try matching the token before |
| 2156 | * proceeding. But for input(), |
| 2157 | * there's no matching to consider. |
| 2158 | * So convert the EOB_ACT_LAST_MATCH |
| 2159 | * to EOB_ACT_END_OF_FILE. |
| 2160 | */ |
| 2161 | |
| 2162 | /* Reset buffer status. */ |
| 2163 | yyrestart( yyin ); |
| 2164 | |
| 2165 | /* fall through */ |
| 2166 | |
| 2167 | case EOB_ACT_END_OF_FILE: |
| 2168 | { |
| 2169 | if ( yywrap() ) |
| 2170 | return EOF; |
| 2171 | |
| 2172 | if ( ! yy_did_buffer_switch_on_eof ) |
| 2173 | YY_NEW_FILE; |
| 2174 | #ifdef __cplusplus |
| 2175 | return yyinput(); |
| 2176 | #else |
| 2177 | return input(); |
| 2178 | #endif |
| 2179 | } |
| 2180 | |
| 2181 | case EOB_ACT_CONTINUE_SCAN: |
| 2182 | yy_c_buf_p = yytext_ptr + offset; |
| 2183 | break; |
| 2184 | } |
| 2185 | } |
| 2186 | } |
| 2187 | |
| 2188 | c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ |
| 2189 | *yy_c_buf_p = '\0'; /* preserve yytext */ |
| 2190 | yy_hold_char = *++yy_c_buf_p; |
| 2191 | |
| 2192 | if ( c == '\n' ) |
| 2193 | ++yylineno; |
| 2194 | |
| 2195 | return c; |
| 2196 | } |
| 2197 | #endif /* YY_NO_INPUT */ |
| 2198 | |
| 2199 | #ifdef YY_USE_PROTOS |
| 2200 | void yyrestart( FILE *input_file ) |
| 2201 | #else |
| 2202 | void yyrestart( input_file ) |
| 2203 | FILE *input_file; |
| 2204 | #endif |
| 2205 | { |
| 2206 | if ( ! yy_current_buffer ) |
| 2207 | yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); |
| 2208 | |
| 2209 | yy_init_buffer( yy_current_buffer, input_file ); |
| 2210 | yy_load_buffer_state(); |
| 2211 | } |
| 2212 | |
| 2213 | |
| 2214 | #ifdef YY_USE_PROTOS |
| 2215 | void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) |
| 2216 | #else |
| 2217 | void yy_switch_to_buffer( new_buffer ) |
| 2218 | YY_BUFFER_STATE new_buffer; |
| 2219 | #endif |
| 2220 | { |
| 2221 | if ( yy_current_buffer == new_buffer ) |
| 2222 | return; |
| 2223 | |
| 2224 | if ( yy_current_buffer ) |
| 2225 | { |
| 2226 | /* Flush out information for old buffer. */ |
| 2227 | *yy_c_buf_p = yy_hold_char; |
| 2228 | yy_current_buffer->yy_buf_pos = yy_c_buf_p; |
| 2229 | yy_current_buffer->yy_n_chars = yy_n_chars; |
| 2230 | } |
| 2231 | |
| 2232 | yy_current_buffer = new_buffer; |
| 2233 | yy_load_buffer_state(); |
| 2234 | |
| 2235 | /* We don't actually know whether we did this switch during |
| 2236 | * EOF (yywrap()) processing, but the only time this flag |
| 2237 | * is looked at is after yywrap() is called, so it's safe |
| 2238 | * to go ahead and always set it. |
| 2239 | */ |
| 2240 | yy_did_buffer_switch_on_eof = 1; |
| 2241 | } |
| 2242 | |
| 2243 | |
| 2244 | #ifdef YY_USE_PROTOS |
| 2245 | void yy_load_buffer_state( void ) |
| 2246 | #else |
| 2247 | void yy_load_buffer_state() |
| 2248 | #endif |
| 2249 | { |
| 2250 | yy_n_chars = yy_current_buffer->yy_n_chars; |
| 2251 | yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; |
| 2252 | yyin = yy_current_buffer->yy_input_file; |
| 2253 | yy_hold_char = *yy_c_buf_p; |
| 2254 | } |
| 2255 | |
| 2256 | |
| 2257 | #ifdef YY_USE_PROTOS |
| 2258 | YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) |
| 2259 | #else |
| 2260 | YY_BUFFER_STATE yy_create_buffer( file, size ) |
| 2261 | FILE *file; |
| 2262 | int size; |
| 2263 | #endif |
| 2264 | { |
| 2265 | YY_BUFFER_STATE b; |
| 2266 | |
| 2267 | b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); |
| 2268 | if ( ! b ) |
| 2269 | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
| 2270 | |
| 2271 | b->yy_buf_size = size; |
| 2272 | |
| 2273 | /* yy_ch_buf has to be 2 characters longer than the size given because |
| 2274 | * we need to put in 2 end-of-buffer characters. |
| 2275 | */ |
| 2276 | b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); |
| 2277 | if ( ! b->yy_ch_buf ) |
| 2278 | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
| 2279 | |
| 2280 | b->yy_is_our_buffer = 1; |
| 2281 | |
| 2282 | yy_init_buffer( b, file ); |
| 2283 | |
| 2284 | return b; |
| 2285 | } |
| 2286 | |
| 2287 | |
| 2288 | #ifdef YY_USE_PROTOS |
| 2289 | void yy_delete_buffer( YY_BUFFER_STATE b ) |
| 2290 | #else |
| 2291 | void yy_delete_buffer( b ) |
| 2292 | YY_BUFFER_STATE b; |
| 2293 | #endif |
| 2294 | { |
| 2295 | if ( ! b ) |
| 2296 | return; |
| 2297 | |
| 2298 | if ( b == yy_current_buffer ) |
| 2299 | yy_current_buffer = (YY_BUFFER_STATE) 0; |
| 2300 | |
| 2301 | if ( b->yy_is_our_buffer ) |
| 2302 | yy_flex_free( (void *) b->yy_ch_buf ); |
| 2303 | |
| 2304 | yy_flex_free( (void *) b ); |
| 2305 | } |
| 2306 | |
| 2307 | |
| 2308 | |
| 2309 | #ifdef YY_USE_PROTOS |
| 2310 | void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) |
| 2311 | #else |
| 2312 | void yy_init_buffer( b, file ) |
| 2313 | YY_BUFFER_STATE b; |
| 2314 | FILE *file; |
| 2315 | #endif |
| 2316 | |
| 2317 | |
| 2318 | { |
| 2319 | yy_flush_buffer( b ); |
| 2320 | |
| 2321 | b->yy_input_file = file; |
| 2322 | b->yy_fill_buffer = 1; |
| 2323 | |
| 2324 | #if YY_ALWAYS_INTERACTIVE |
| 2325 | b->yy_is_interactive = 1; |
| 2326 | #else |
| 2327 | #if YY_NEVER_INTERACTIVE |
| 2328 | b->yy_is_interactive = 0; |
| 2329 | #else |
| 2330 | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; |
| 2331 | #endif |
| 2332 | #endif |
| 2333 | } |
| 2334 | |
| 2335 | |
| 2336 | #ifdef YY_USE_PROTOS |
| 2337 | void yy_flush_buffer( YY_BUFFER_STATE b ) |
| 2338 | #else |
| 2339 | void yy_flush_buffer( b ) |
| 2340 | YY_BUFFER_STATE b; |
| 2341 | #endif |
| 2342 | |
| 2343 | { |
| 2344 | if ( ! b ) |
| 2345 | return; |
| 2346 | |
| 2347 | b->yy_n_chars = 0; |
| 2348 | |
| 2349 | /* We always need two end-of-buffer characters. The first causes |
| 2350 | * a transition to the end-of-buffer state. The second causes |
| 2351 | * a jam in that state. |
| 2352 | */ |
| 2353 | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; |
| 2354 | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; |
| 2355 | |
| 2356 | b->yy_buf_pos = &b->yy_ch_buf[0]; |
| 2357 | |
| 2358 | b->yy_at_bol = 1; |
| 2359 | b->yy_buffer_status = YY_BUFFER_NEW; |
| 2360 | |
| 2361 | if ( b == yy_current_buffer ) |
| 2362 | yy_load_buffer_state(); |
| 2363 | } |
| 2364 | |
| 2365 | |
| 2366 | #ifndef YY_NO_SCAN_BUFFER |
| 2367 | #ifdef YY_USE_PROTOS |
| 2368 | YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) |
| 2369 | #else |
| 2370 | YY_BUFFER_STATE yy_scan_buffer( base, size ) |
| 2371 | char *base; |
| 2372 | yy_size_t size; |
| 2373 | #endif |
| 2374 | { |
| 2375 | YY_BUFFER_STATE b; |
| 2376 | |
| 2377 | if ( size < 2 || |
| 2378 | base[size-2] != YY_END_OF_BUFFER_CHAR || |
| 2379 | base[size-1] != YY_END_OF_BUFFER_CHAR ) |
| 2380 | /* They forgot to leave room for the EOB's. */ |
| 2381 | return 0; |
| 2382 | |
| 2383 | b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); |
| 2384 | if ( ! b ) |
| 2385 | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); |
| 2386 | |
| 2387 | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ |
| 2388 | b->yy_buf_pos = b->yy_ch_buf = base; |
| 2389 | b->yy_is_our_buffer = 0; |
| 2390 | b->yy_input_file = 0; |
| 2391 | b->yy_n_chars = b->yy_buf_size; |
| 2392 | b->yy_is_interactive = 0; |
| 2393 | b->yy_at_bol = 1; |
| 2394 | b->yy_fill_buffer = 0; |
| 2395 | b->yy_buffer_status = YY_BUFFER_NEW; |
| 2396 | |
| 2397 | yy_switch_to_buffer( b ); |
| 2398 | |
| 2399 | return b; |
| 2400 | } |
| 2401 | #endif |
| 2402 | |
| 2403 | |
| 2404 | #ifndef YY_NO_SCAN_STRING |
| 2405 | #ifdef YY_USE_PROTOS |
| 2406 | YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) |
| 2407 | #else |
| 2408 | YY_BUFFER_STATE yy_scan_string( yy_str ) |
| 2409 | yyconst char *yy_str; |
| 2410 | #endif |
| 2411 | { |
| 2412 | int len; |
| 2413 | for ( len = 0; yy_str[len]; ++len ) |
| 2414 | ; |
| 2415 | |
| 2416 | return yy_scan_bytes( yy_str, len ); |
| 2417 | } |
| 2418 | #endif |
| 2419 | |
| 2420 | |
| 2421 | #ifndef YY_NO_SCAN_BYTES |
| 2422 | #ifdef YY_USE_PROTOS |
| 2423 | YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) |
| 2424 | #else |
| 2425 | YY_BUFFER_STATE yy_scan_bytes( bytes, len ) |
| 2426 | yyconst char *bytes; |
| 2427 | int len; |
| 2428 | #endif |
| 2429 | { |
| 2430 | YY_BUFFER_STATE b; |
| 2431 | char *buf; |
| 2432 | yy_size_t n; |
| 2433 | int i; |
| 2434 | |
| 2435 | /* Get memory for full buffer, including space for trailing EOB's. */ |
| 2436 | n = len + 2; |
| 2437 | buf = (char *) yy_flex_alloc( n ); |
| 2438 | if ( ! buf ) |
| 2439 | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); |
| 2440 | |
| 2441 | for ( i = 0; i < len; ++i ) |
| 2442 | buf[i] = bytes[i]; |
| 2443 | |
| 2444 | buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; |
| 2445 | |
| 2446 | b = yy_scan_buffer( buf, n ); |
| 2447 | if ( ! b ) |
| 2448 | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); |
| 2449 | |
| 2450 | /* It's okay to grow etc. this buffer, and we should throw it |
| 2451 | * away when we're done. |
| 2452 | */ |
| 2453 | b->yy_is_our_buffer = 1; |
| 2454 | |
| 2455 | return b; |
| 2456 | } |
| 2457 | #endif |
| 2458 | |
| 2459 | |
| 2460 | #ifndef YY_NO_PUSH_STATE |
| 2461 | #ifdef YY_USE_PROTOS |
| 2462 | static void yy_push_state( int new_state ) |
| 2463 | #else |
| 2464 | static void yy_push_state( new_state ) |
| 2465 | int new_state; |
| 2466 | #endif |
| 2467 | { |
| 2468 | if ( yy_start_stack_ptr >= yy_start_stack_depth ) |
| 2469 | { |
| 2470 | yy_size_t new_size; |
| 2471 | |
| 2472 | yy_start_stack_depth += YY_START_STACK_INCR; |
| 2473 | new_size = yy_start_stack_depth * sizeof( int ); |
| 2474 | |
| 2475 | if ( ! yy_start_stack ) |
| 2476 | yy_start_stack = (int *) yy_flex_alloc( new_size ); |
| 2477 | |
| 2478 | else |
| 2479 | yy_start_stack = (int *) yy_flex_realloc( |
| 2480 | (void *) yy_start_stack, new_size ); |
| 2481 | |
| 2482 | if ( ! yy_start_stack ) |
| 2483 | YY_FATAL_ERROR( |
| 2484 | "out of memory expanding start-condition stack" ); |
| 2485 | } |
| 2486 | |
| 2487 | yy_start_stack[yy_start_stack_ptr++] = YY_START; |
| 2488 | |
| 2489 | BEGIN(new_state); |
| 2490 | } |
| 2491 | #endif |
| 2492 | |
| 2493 | |
| 2494 | #ifndef YY_NO_POP_STATE |
| 2495 | static void yy_pop_state() |
| 2496 | { |
| 2497 | if ( --yy_start_stack_ptr < 0 ) |
| 2498 | YY_FATAL_ERROR( "start-condition stack underflow" ); |
| 2499 | |
| 2500 | BEGIN(yy_start_stack[yy_start_stack_ptr]); |
| 2501 | } |
| 2502 | #endif |
| 2503 | |
| 2504 | |
| 2505 | #ifndef YY_NO_TOP_STATE |
| 2506 | static int yy_top_state() |
| 2507 | { |
| 2508 | return yy_start_stack[yy_start_stack_ptr - 1]; |
| 2509 | } |
| 2510 | #endif |
| 2511 | |
| 2512 | #ifndef YY_EXIT_FAILURE |
| 2513 | #define YY_EXIT_FAILURE 2 |
| 2514 | #endif |
| 2515 | |
| 2516 | #ifdef YY_USE_PROTOS |
| 2517 | static void yy_fatal_error( yyconst char msg[] ) |
| 2518 | #else |
| 2519 | static void yy_fatal_error( msg ) |
| 2520 | char msg[]; |
| 2521 | #endif |
| 2522 | { |
| 2523 | (void) fprintf( stderr, "%s\n", msg ); |
| 2524 | exit( YY_EXIT_FAILURE ); |
| 2525 | } |
| 2526 | |
| 2527 | |
| 2528 | |
| 2529 | /* Redefine yyless() so it works in section 3 code. */ |
| 2530 | |
| 2531 | #undef yyless |
| 2532 | #define yyless(n) \ |
| 2533 | do \ |
| 2534 | { \ |
| 2535 | /* Undo effects of setting up yytext. */ \ |
| 2536 | yytext[yyleng] = yy_hold_char; \ |
| 2537 | yy_c_buf_p = yytext + n; \ |
| 2538 | yy_hold_char = *yy_c_buf_p; \ |
| 2539 | *yy_c_buf_p = '\0'; \ |
| 2540 | yyleng = n; \ |
| 2541 | } \ |
| 2542 | while ( 0 ) |
| 2543 | |
| 2544 | |
| 2545 | /* Internal utility routines. */ |
| 2546 | |
| 2547 | #ifndef yytext_ptr |
| 2548 | #ifdef YY_USE_PROTOS |
| 2549 | static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) |
| 2550 | #else |
| 2551 | static void yy_flex_strncpy( s1, s2, n ) |
| 2552 | char *s1; |
| 2553 | yyconst char *s2; |
| 2554 | int n; |
| 2555 | #endif |
| 2556 | { |
| 2557 | register int i; |
| 2558 | for ( i = 0; i < n; ++i ) |
| 2559 | s1[i] = s2[i]; |
| 2560 | } |
| 2561 | #endif |
| 2562 | |
| 2563 | #ifdef YY_NEED_STRLEN |
| 2564 | #ifdef YY_USE_PROTOS |
| 2565 | static int yy_flex_strlen( yyconst char *s ) |
| 2566 | #else |
| 2567 | static int yy_flex_strlen( s ) |
| 2568 | yyconst char *s; |
| 2569 | #endif |
| 2570 | { |
| 2571 | register int n; |
| 2572 | for ( n = 0; s[n]; ++n ) |
| 2573 | ; |
| 2574 | |
| 2575 | return n; |
| 2576 | } |
| 2577 | #endif |
| 2578 | |
| 2579 | |
| 2580 | #ifdef YY_USE_PROTOS |
| 2581 | static void *yy_flex_alloc( yy_size_t size ) |
| 2582 | #else |
| 2583 | static void *yy_flex_alloc( size ) |
| 2584 | yy_size_t size; |
| 2585 | #endif |
| 2586 | { |
| 2587 | return (void *) malloc( size ); |
| 2588 | } |
| 2589 | |
| 2590 | #ifdef YY_USE_PROTOS |
| 2591 | static inline void *yy_flex_realloc( void *ptr, yy_size_t size ) |
| 2592 | #else |
| 2593 | static inline void *yy_flex_realloc( ptr, size ) |
| 2594 | void *ptr; |
| 2595 | yy_size_t size; |
| 2596 | #endif |
| 2597 | { |
| 2598 | /* The cast to (char *) in the following accommodates both |
| 2599 | * implementations that use char* generic pointers, and those |
| 2600 | * that use void* generic pointers. It works with the latter |
| 2601 | * because both ANSI C and C++ allow castless assignment from |
| 2602 | * any pointer type to void*, and deal with argument conversions |
| 2603 | * as though doing an assignment. |
| 2604 | */ |
| 2605 | return (void *) realloc( (char *) ptr, size ); |
| 2606 | } |
| 2607 | |
| 2608 | #ifdef YY_USE_PROTOS |
| 2609 | static void yy_flex_free( void *ptr ) |
| 2610 | #else |
| 2611 | static void yy_flex_free( ptr ) |
| 2612 | void *ptr; |
| 2613 | #endif |
| 2614 | { |
| 2615 | free( ptr ); |
| 2616 | } |
| 2617 | |
| 2618 | #if YY_MAIN |
| 2619 | int main() |
| 2620 | { |
| 2621 | yylex(); |
| 2622 | return 0; |
| 2623 | } |
| 2624 | #endif |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame^] | 2625 | #line 234 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2626 | |