Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1 | #line 2 "UpgradeLexer.cpp" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3 | #line 4 "UpgradeLexer.cpp" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 4 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 5 | #define YY_INT_ALIGNED short int |
| 6 | |
| 7 | /* A lexical scanner generated by flex */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 8 | |
| 9 | #define FLEX_SCANNER |
| 10 | #define YY_FLEX_MAJOR_VERSION 2 |
| 11 | #define YY_FLEX_MINOR_VERSION 5 |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 12 | #define YY_FLEX_SUBMINOR_VERSION 33 |
| 13 | #if YY_FLEX_SUBMINOR_VERSION > 0 |
| 14 | #define FLEX_BETA |
| 15 | #endif |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 16 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 17 | /* First, we deal with platform-specific or compiler-specific issues. */ |
| 18 | |
| 19 | /* begin standard C headers. */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 20 | #include <stdio.h> |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 21 | #include <string.h> |
| 22 | #include <errno.h> |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 23 | #include <stdlib.h> |
| 24 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 25 | /* end standard C headers. */ |
| 26 | |
| 27 | /* flex integer type definitions */ |
| 28 | |
| 29 | #ifndef FLEXINT_H |
| 30 | #define FLEXINT_H |
| 31 | |
| 32 | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ |
| 33 | |
| 34 | #if __STDC_VERSION__ >= 199901L |
| 35 | |
| 36 | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, |
| 37 | * if you want the limit (max/min) macros for int types. |
| 38 | */ |
| 39 | #ifndef __STDC_LIMIT_MACROS |
| 40 | #define __STDC_LIMIT_MACROS 1 |
| 41 | #endif |
| 42 | |
| 43 | #include <inttypes.h> |
| 44 | typedef int8_t flex_int8_t; |
| 45 | typedef uint8_t flex_uint8_t; |
| 46 | typedef int16_t flex_int16_t; |
| 47 | typedef uint16_t flex_uint16_t; |
| 48 | typedef int32_t flex_int32_t; |
| 49 | typedef uint32_t flex_uint32_t; |
| 50 | #else |
| 51 | typedef signed char flex_int8_t; |
| 52 | typedef short int flex_int16_t; |
| 53 | typedef int flex_int32_t; |
| 54 | typedef unsigned char flex_uint8_t; |
| 55 | typedef unsigned short int flex_uint16_t; |
| 56 | typedef unsigned int flex_uint32_t; |
| 57 | #endif /* ! C99 */ |
| 58 | |
| 59 | /* Limits of integral types. */ |
| 60 | #ifndef INT8_MIN |
| 61 | #define INT8_MIN (-128) |
| 62 | #endif |
| 63 | #ifndef INT16_MIN |
| 64 | #define INT16_MIN (-32767-1) |
| 65 | #endif |
| 66 | #ifndef INT32_MIN |
| 67 | #define INT32_MIN (-2147483647-1) |
| 68 | #endif |
| 69 | #ifndef INT8_MAX |
| 70 | #define INT8_MAX (127) |
| 71 | #endif |
| 72 | #ifndef INT16_MAX |
| 73 | #define INT16_MAX (32767) |
| 74 | #endif |
| 75 | #ifndef INT32_MAX |
| 76 | #define INT32_MAX (2147483647) |
| 77 | #endif |
| 78 | #ifndef UINT8_MAX |
| 79 | #define UINT8_MAX (255U) |
| 80 | #endif |
| 81 | #ifndef UINT16_MAX |
| 82 | #define UINT16_MAX (65535U) |
| 83 | #endif |
| 84 | #ifndef UINT32_MAX |
| 85 | #define UINT32_MAX (4294967295U) |
| 86 | #endif |
| 87 | |
| 88 | #endif /* ! FLEXINT_H */ |
| 89 | |
| 90 | #ifdef __cplusplus |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 91 | |
| 92 | /* The "const" storage-class-modifier is valid. */ |
| 93 | #define YY_USE_CONST |
| 94 | |
| 95 | #else /* ! __cplusplus */ |
| 96 | |
| 97 | #if __STDC__ |
| 98 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 99 | #define YY_USE_CONST |
| 100 | |
| 101 | #endif /* __STDC__ */ |
| 102 | #endif /* ! __cplusplus */ |
| 103 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 104 | #ifdef YY_USE_CONST |
| 105 | #define yyconst const |
| 106 | #else |
| 107 | #define yyconst |
| 108 | #endif |
| 109 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 110 | /* Returned upon end-of-file. */ |
| 111 | #define YY_NULL 0 |
| 112 | |
| 113 | /* Promotes a possibly negative, possibly signed char to an unsigned |
| 114 | * integer for use as an array index. If the signed char is negative, |
| 115 | * we want to instead treat it as an 8-bit unsigned char, hence the |
| 116 | * double cast. |
| 117 | */ |
| 118 | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
| 119 | |
| 120 | /* Enter a start condition. This macro really ought to take a parameter, |
| 121 | * but we do it the disgusting crufty way forced on us by the ()-less |
| 122 | * definition of BEGIN. |
| 123 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 124 | #define BEGIN (yy_start) = 1 + 2 * |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 125 | |
| 126 | /* Translate the current start state into a value that can be later handed |
| 127 | * to BEGIN to return to the state. The YYSTATE alias is for lex |
| 128 | * compatibility. |
| 129 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 130 | #define YY_START (((yy_start) - 1) / 2) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 131 | #define YYSTATE YY_START |
| 132 | |
| 133 | /* Action number for EOF rule of a given start state. */ |
| 134 | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
| 135 | |
| 136 | /* Special action meaning "start processing a new file". */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 137 | #define YY_NEW_FILE Upgraderestart(Upgradein ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 138 | |
| 139 | #define YY_END_OF_BUFFER_CHAR 0 |
| 140 | |
| 141 | /* Size of default input buffer. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 142 | #ifndef YY_BUF_SIZE |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 143 | #define YY_BUF_SIZE (16384*64) |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 144 | #endif |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 145 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 146 | /* The state buf must be large enough to hold one state per character in the main buffer. |
| 147 | */ |
| 148 | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
| 149 | |
| 150 | #ifndef YY_TYPEDEF_YY_BUFFER_STATE |
| 151 | #define YY_TYPEDEF_YY_BUFFER_STATE |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 152 | typedef struct yy_buffer_state *YY_BUFFER_STATE; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 153 | #endif |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 154 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 155 | extern int Upgradeleng; |
| 156 | |
| 157 | extern FILE *Upgradein, *Upgradeout; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 158 | |
| 159 | #define EOB_ACT_CONTINUE_SCAN 0 |
| 160 | #define EOB_ACT_END_OF_FILE 1 |
| 161 | #define EOB_ACT_LAST_MATCH 2 |
| 162 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 163 | /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires |
| 164 | * access to the local variable yy_act. Since yyless() is a macro, it would break |
| 165 | * existing scanners that call yyless() from OUTSIDE Upgradelex. |
| 166 | * One obvious solution it to make yy_act a global. I tried that, and saw |
| 167 | * a 5% performance hit in a non-Upgradelineno scanner, because yy_act is |
| 168 | * normally declared as a register variable-- so it is not worth it. |
| 169 | */ |
| 170 | #define YY_LESS_LINENO(n) \ |
| 171 | do { \ |
| 172 | int yyl;\ |
| 173 | for ( yyl = n; yyl < Upgradeleng; ++yyl )\ |
| 174 | if ( Upgradetext[yyl] == '\n' )\ |
| 175 | --Upgradelineno;\ |
| 176 | }while(0) |
| 177 | |
| 178 | /* Return all but the first "n" matched characters back to the input stream. */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 179 | #define yyless(n) \ |
| 180 | do \ |
| 181 | { \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 182 | /* Undo effects of setting up Upgradetext. */ \ |
| 183 | int yyless_macro_arg = (n); \ |
| 184 | YY_LESS_LINENO(yyless_macro_arg);\ |
| 185 | *yy_cp = (yy_hold_char); \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 186 | YY_RESTORE_YY_MORE_OFFSET \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 187 | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ |
| 188 | YY_DO_BEFORE_ACTION; /* set up Upgradetext again */ \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 189 | } \ |
| 190 | while ( 0 ) |
| 191 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 192 | #define unput(c) yyunput( c, (yytext_ptr) ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 193 | |
| 194 | /* The following is because we cannot portably get our hands on size_t |
| 195 | * (without autoconf's help, which isn't available because we want |
| 196 | * flex-generated scanners to compile on their own). |
| 197 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 198 | |
| 199 | #ifndef YY_TYPEDEF_YY_SIZE_T |
| 200 | #define YY_TYPEDEF_YY_SIZE_T |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 201 | typedef unsigned int yy_size_t; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 202 | #endif |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 203 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 204 | #ifndef YY_STRUCT_YY_BUFFER_STATE |
| 205 | #define YY_STRUCT_YY_BUFFER_STATE |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 206 | struct yy_buffer_state |
| 207 | { |
| 208 | FILE *yy_input_file; |
| 209 | |
| 210 | char *yy_ch_buf; /* input buffer */ |
| 211 | char *yy_buf_pos; /* current position in input buffer */ |
| 212 | |
| 213 | /* Size of input buffer in bytes, not including room for EOB |
| 214 | * characters. |
| 215 | */ |
| 216 | yy_size_t yy_buf_size; |
| 217 | |
| 218 | /* Number of characters read into yy_ch_buf, not including EOB |
| 219 | * characters. |
| 220 | */ |
| 221 | int yy_n_chars; |
| 222 | |
| 223 | /* Whether we "own" the buffer - i.e., we know we created it, |
| 224 | * and can realloc() it to grow it, and should free() it to |
| 225 | * delete it. |
| 226 | */ |
| 227 | int yy_is_our_buffer; |
| 228 | |
| 229 | /* Whether this is an "interactive" input source; if so, and |
| 230 | * if we're using stdio for input, then we want to use getc() |
| 231 | * instead of fread(), to make sure we stop fetching input after |
| 232 | * each newline. |
| 233 | */ |
| 234 | int yy_is_interactive; |
| 235 | |
| 236 | /* Whether we're considered to be at the beginning of a line. |
| 237 | * If so, '^' rules will be active on the next match, otherwise |
| 238 | * not. |
| 239 | */ |
| 240 | int yy_at_bol; |
| 241 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 242 | int yy_bs_lineno; /**< The line count. */ |
| 243 | int yy_bs_column; /**< The column count. */ |
| 244 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 245 | /* Whether to try to fill the input buffer when we reach the |
| 246 | * end of it. |
| 247 | */ |
| 248 | int yy_fill_buffer; |
| 249 | |
| 250 | int yy_buffer_status; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 251 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 252 | #define YY_BUFFER_NEW 0 |
| 253 | #define YY_BUFFER_NORMAL 1 |
| 254 | /* When an EOF's been seen but there's still some text to process |
| 255 | * then we mark the buffer as YY_EOF_PENDING, to indicate that we |
| 256 | * shouldn't try reading from the input source any more. We might |
| 257 | * still have a bunch of tokens to match, though, because of |
| 258 | * possible backing-up. |
| 259 | * |
| 260 | * When we actually see the EOF, we change the status to "new" |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 261 | * (via Upgraderestart()), so that the user can continue scanning by |
| 262 | * just pointing Upgradein at a new input file. |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 263 | */ |
| 264 | #define YY_BUFFER_EOF_PENDING 2 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 265 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 266 | }; |
| 267 | #endif /* !YY_STRUCT_YY_BUFFER_STATE */ |
| 268 | |
| 269 | /* Stack of input buffers. */ |
| 270 | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ |
| 271 | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ |
| 272 | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 273 | |
| 274 | /* We provide macros for accessing buffer states in case in the |
| 275 | * future we want to put the buffer states in a more general |
| 276 | * "scanner state". |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 277 | * |
| 278 | * Returns the top of the stack, or NULL. |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 279 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 280 | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ |
| 281 | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ |
| 282 | : NULL) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 283 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 284 | /* Same as previous macro, but useful when we know that the buffer stack is not |
| 285 | * NULL or when we need an lvalue. For internal use only. |
| 286 | */ |
| 287 | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 288 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 289 | /* yy_hold_char holds the character lost when Upgradetext is formed. */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 290 | static char yy_hold_char; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 291 | static int yy_n_chars; /* number of characters read into yy_ch_buf */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 292 | int Upgradeleng; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 293 | |
| 294 | /* Points to current character in buffer. */ |
| 295 | static char *yy_c_buf_p = (char *) 0; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 296 | static int yy_init = 0; /* whether we need to initialize */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 297 | static int yy_start = 0; /* start state number */ |
| 298 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 299 | /* Flag which is used to allow Upgradewrap()'s to do buffer switches |
| 300 | * instead of setting up a fresh Upgradein. A bit of a hack ... |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 301 | */ |
| 302 | static int yy_did_buffer_switch_on_eof; |
| 303 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 304 | void Upgraderestart (FILE *input_file ); |
| 305 | void Upgrade_switch_to_buffer (YY_BUFFER_STATE new_buffer ); |
| 306 | YY_BUFFER_STATE Upgrade_create_buffer (FILE *file,int size ); |
| 307 | void Upgrade_delete_buffer (YY_BUFFER_STATE b ); |
| 308 | void Upgrade_flush_buffer (YY_BUFFER_STATE b ); |
| 309 | void Upgradepush_buffer_state (YY_BUFFER_STATE new_buffer ); |
| 310 | void Upgradepop_buffer_state (void ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 311 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 312 | static void Upgradeensure_buffer_stack (void ); |
| 313 | static void Upgrade_load_buffer_state (void ); |
| 314 | static void Upgrade_init_buffer (YY_BUFFER_STATE b,FILE *file ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 315 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 316 | #define YY_FLUSH_BUFFER Upgrade_flush_buffer(YY_CURRENT_BUFFER ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 317 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 318 | YY_BUFFER_STATE Upgrade_scan_buffer (char *base,yy_size_t size ); |
| 319 | YY_BUFFER_STATE Upgrade_scan_string (yyconst char *yy_str ); |
| 320 | YY_BUFFER_STATE Upgrade_scan_bytes (yyconst char *bytes,int len ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 321 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 322 | void *Upgradealloc (yy_size_t ); |
| 323 | void *Upgraderealloc (void *,yy_size_t ); |
| 324 | void Upgradefree (void * ); |
| 325 | |
| 326 | #define yy_new_buffer Upgrade_create_buffer |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 327 | |
| 328 | #define yy_set_interactive(is_interactive) \ |
| 329 | { \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 330 | if ( ! YY_CURRENT_BUFFER ){ \ |
| 331 | Upgradeensure_buffer_stack (); \ |
| 332 | YY_CURRENT_BUFFER_LVALUE = \ |
| 333 | Upgrade_create_buffer(Upgradein,YY_BUF_SIZE ); \ |
| 334 | } \ |
| 335 | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 336 | } |
| 337 | |
| 338 | #define yy_set_bol(at_bol) \ |
| 339 | { \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 340 | if ( ! YY_CURRENT_BUFFER ){\ |
| 341 | Upgradeensure_buffer_stack (); \ |
| 342 | YY_CURRENT_BUFFER_LVALUE = \ |
| 343 | Upgrade_create_buffer(Upgradein,YY_BUF_SIZE ); \ |
| 344 | } \ |
| 345 | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 346 | } |
| 347 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 348 | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 349 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 350 | /* Begin user sect3 */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 351 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 352 | #define Upgradewrap(n) 1 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 353 | #define YY_SKIP_YYWRAP |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 354 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 355 | typedef unsigned char YY_CHAR; |
| 356 | |
| 357 | FILE *Upgradein = (FILE *) 0, *Upgradeout = (FILE *) 0; |
| 358 | |
| 359 | typedef int yy_state_type; |
| 360 | |
| 361 | extern int Upgradelineno; |
| 362 | |
| 363 | int Upgradelineno = 1; |
| 364 | |
| 365 | extern char *Upgradetext; |
| 366 | #define yytext_ptr Upgradetext |
| 367 | |
| 368 | static yy_state_type yy_get_previous_state (void ); |
| 369 | static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); |
| 370 | static int yy_get_next_buffer (void ); |
| 371 | static void yy_fatal_error (yyconst char msg[] ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 372 | |
| 373 | /* Done after the current pattern has been matched and before the |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 374 | * corresponding action - sets up Upgradetext. |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 375 | */ |
| 376 | #define YY_DO_BEFORE_ACTION \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 377 | (yytext_ptr) = yy_bp; \ |
| 378 | Upgradeleng = (size_t) (yy_cp - yy_bp); \ |
| 379 | (yy_hold_char) = *yy_cp; \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 380 | *yy_cp = '\0'; \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 381 | (yy_c_buf_p) = yy_cp; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 382 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 383 | #define YY_NUM_RULES 156 |
| 384 | #define YY_END_OF_BUFFER 157 |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 385 | /* This struct is not used in this scanner, |
| 386 | but its presence is necessary. */ |
| 387 | struct yy_trans_info |
| 388 | { |
| 389 | flex_int32_t yy_verify; |
| 390 | flex_int32_t yy_nxt; |
| 391 | }; |
| 392 | static yyconst flex_int16_t yy_accept[610] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 393 | { 0, |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 394 | 0, 0, 157, 155, 154, 154, 155, 155, 155, 155, |
| 395 | 155, 155, 147, 147, 1, 155, 155, 155, 155, 155, |
| 396 | 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, |
| 397 | 155, 155, 155, 155, 155, 155, 0, 146, 0, 144, |
| 398 | 143, 143, 150, 0, 148, 0, 152, 147, 0, 1, |
| 399 | 0, 0, 0, 0, 0, 0, 0, 0, 129, 0, |
| 400 | 41, 0, 0, 0, 0, 0, 0, 0, 0, 85, |
| 401 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 402 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 86, |
| 403 | 0, 0, 0, 0, 0, 0, 0, 75, 0, 0, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 404 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 405 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 406 | 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, |
| 407 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 408 | 0, 0, 0, 146, 143, 143, 152, 20, 152, 0, |
| 409 | 153, 63, 0, 0, 74, 0, 0, 39, 0, 34, |
| 410 | 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, |
| 411 | 0, 66, 0, 0, 3, 0, 0, 0, 0, 0, |
| 412 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 413 | 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 414 | 65, 25, 0, 95, 100, 98, 99, 97, 96, 0, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 415 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 416 | 101, 105, 0, 0, 70, 128, 0, 0, 0, 0, |
| 417 | 0, 0, 0, 90, 88, 121, 0, 122, 0, 0, |
| 418 | 0, 89, 87, 0, 0, 64, 0, 0, 0, 0, |
| 419 | 0, 0, 0, 0, 103, 94, 92, 0, 0, 93, |
| 420 | 0, 91, 0, 104, 0, 102, 0, 0, 0, 0, |
| 421 | 0, 0, 0, 0, 0, 0, 0, 76, 0, 0, |
| 422 | 145, 152, 0, 0, 0, 152, 0, 0, 0, 124, |
| 423 | 0, 0, 57, 106, 107, 0, 0, 0, 0, 0, |
| 424 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 425 | 84, 69, 0, 0, 0, 0, 136, 73, 0, 0, |
| 426 | |
| 427 | 83, 0, 0, 0, 0, 0, 0, 0, 0, 137, |
| 428 | 54, 123, 0, 0, 22, 0, 0, 0, 149, 0, |
| 429 | 68, 0, 0, 0, 0, 0, 0, 110, 0, 0, |
| 430 | 0, 0, 72, 0, 0, 26, 0, 0, 4, 0, |
| 431 | 61, 0, 67, 53, 0, 0, 0, 0, 0, 0, |
| 432 | 71, 0, 0, 0, 0, 56, 0, 11, 0, 0, |
| 433 | 109, 152, 36, 0, 0, 2, 0, 0, 0, 0, |
| 434 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 435 | 5, 0, 58, 112, 0, 0, 0, 0, 0, 0, |
| 436 | 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, |
| 437 | |
| 438 | 0, 0, 48, 0, 0, 78, 82, 80, 81, 79, |
| 439 | 77, 50, 0, 0, 0, 138, 0, 0, 0, 108, |
| 440 | 49, 0, 55, 21, 0, 0, 0, 0, 0, 126, |
| 441 | 0, 0, 0, 0, 0, 135, 0, 0, 45, 0, |
| 442 | 0, 0, 0, 0, 0, 0, 59, 30, 24, 0, |
| 443 | 0, 44, 114, 113, 0, 0, 7, 0, 0, 0, |
| 444 | 0, 131, 0, 33, 134, 38, 62, 0, 0, 0, |
| 445 | 120, 0, 0, 116, 130, 27, 28, 115, 0, 0, |
| 446 | 132, 51, 127, 125, 0, 0, 0, 0, 0, 119, |
| 447 | 0, 43, 0, 6, 29, 0, 0, 0, 0, 0, |
| 448 | |
| 449 | 111, 0, 0, 0, 0, 0, 0, 0, 0, 37, |
| 450 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, |
| 451 | 0, 0, 0, 0, 17, 0, 0, 0, 0, 9, |
| 452 | 118, 10, 0, 117, 0, 0, 0, 0, 35, 0, |
| 453 | 0, 0, 12, 0, 14, 13, 0, 0, 0, 0, |
| 454 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, |
| 455 | 0, 0, 0, 0, 0, 0, 0, 40, 0, 0, |
| 456 | 0, 0, 0, 15, 0, 0, 0, 0, 31, 0, |
| 457 | 0, 133, 0, 0, 0, 0, 0, 0, 0, 0, |
| 458 | 0, 0, 0, 0, 0, 139, 0, 141, 142, 16, |
| 459 | |
| 460 | 0, 46, 0, 140, 18, 47, 0, 19, 0 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 461 | } ; |
| 462 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 463 | static yyconst flex_int32_t yy_ec[256] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 464 | { 0, |
| 465 | 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, |
| 466 | 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, |
| 467 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 468 | 1, 2, 1, 4, 1, 5, 6, 1, 1, 1, |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 469 | 1, 1, 7, 1, 8, 9, 1, 10, 11, 11, |
| 470 | 11, 11, 11, 12, 11, 13, 11, 14, 15, 1, |
| 471 | 1, 1, 1, 1, 16, 16, 16, 16, 17, 16, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 472 | 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
| 473 | 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 474 | 1, 1, 1, 1, 18, 1, 19, 20, 21, 22, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 475 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 476 | 23, 24, 25, 26, 27, 5, 28, 29, 30, 31, |
| 477 | 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, |
| 478 | 42, 43, 1, 1, 1, 1, 1, 1, 1, 1, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 479 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 480 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 481 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 482 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 483 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 484 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 485 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 486 | |
| 487 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 488 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 489 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 490 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 491 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 492 | 1, 1, 1, 1, 1 |
| 493 | } ; |
| 494 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 495 | static yyconst flex_int32_t yy_meta[44] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 496 | { 0, |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 497 | 1, 1, 2, 1, 3, 1, 1, 3, 3, 3, |
| 498 | 3, 3, 3, 4, 1, 3, 3, 3, 3, 3, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 499 | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 500 | 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, |
| 501 | 3, 3, 3 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 502 | } ; |
| 503 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 504 | static yyconst flex_int16_t yy_base[615] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 505 | { 0, |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 506 | 0, 0, 1308, 1309, 1309, 1309, 1303, 1292, 36, 40, |
| 507 | 44, 50, 56, 62, 0, 63, 66, 81, 89, 47, |
| 508 | 108, 91, 105, 96, 119, 117, 144, 128, 68, 170, |
| 509 | 169, 202, 92, 111, 131, 125, 1301, 1309, 1290, 1309, |
| 510 | 0, 207, 229, 234, 239, 70, 244, 259, 264, 0, |
| 511 | 139, 145, 142, 76, 136, 156, 157, 31, 1289, 162, |
| 512 | 164, 192, 48, 172, 268, 175, 173, 221, 212, 1288, |
| 513 | 276, 278, 138, 186, 72, 279, 277, 280, 289, 249, |
| 514 | 282, 290, 216, 281, 291, 189, 294, 284, 295, 1287, |
| 515 | 297, 306, 73, 305, 316, 317, 246, 311, 318, 322, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 516 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 517 | 323, 324, 327, 329, 330, 338, 332, 348, 350, 333, |
| 518 | 337, 334, 362, 336, 364, 1286, 367, 351, 359, 371, |
| 519 | 374, 379, 375, 381, 405, 386, 389, 403, 396, 378, |
| 520 | 250, 376, 400, 1285, 0, 436, 440, 1284, 454, 471, |
| 521 | 0, 1283, 382, 406, 1282, 410, 425, 1281, 415, 1280, |
| 522 | 422, 430, 440, 456, 1279, 458, 459, 473, 412, 447, |
| 523 | 460, 1278, 474, 442, 472, 477, 480, 476, 461, 478, |
| 524 | 416, 488, 490, 491, 494, 495, 496, 492, 499, 506, |
| 525 | 507, 500, 513, 505, 508, 520, 521, 523, 524, 525, |
| 526 | 1277, 1276, 526, 1275, 1274, 1273, 1272, 1271, 1270, 527, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 527 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 528 | 1269, 1268, 529, 533, 1267, 1266, 561, 538, 537, 542, |
| 529 | 534, 572, 550, 1265, 1264, 1263, 553, 1262, 535, 575, |
| 530 | 536, 1261, 1260, 576, 577, 1259, 555, 579, 540, 580, |
| 531 | 586, 582, 585, 588, 1258, 1257, 1256, 593, 596, 1255, |
| 532 | 590, 1254, 597, 1253, 600, 1252, 601, 602, 604, 605, |
| 533 | 619, 609, 612, 618, 622, 611, 214, 1251, 628, 629, |
| 534 | 1309, 635, 643, 651, 657, 662, 651, 663, 664, 1250, |
| 535 | 665, 666, 1249, 1248, 1247, 667, 669, 672, 673, 675, |
| 536 | 676, 677, 678, 683, 679, 686, 685, 691, 690, 693, |
| 537 | 1246, 1245, 687, 697, 701, 702, 1244, 1243, 703, 707, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 538 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 539 | 1242, 708, 709, 711, 713, 714, 719, 715, 721, 1241, |
| 540 | 1240, 1239, 722, 724, 1238, 727, 729, 735, 0, 737, |
| 541 | 1237, 741, 738, 742, 747, 748, 749, 1236, 743, 635, |
| 542 | 750, 755, 1235, 760, 761, 1234, 763, 764, 1233, 767, |
| 543 | 1232, 773, 1231, 1230, 775, 776, 778, 777, 781, 780, |
| 544 | 1229, 783, 784, 789, 791, 1228, 792, 1227, 798, 793, |
| 545 | 1226, 813, 1225, 794, 795, 1224, 801, 807, 816, 817, |
| 546 | 822, 813, 796, 819, 825, 826, 828, 829, 830, 832, |
| 547 | 1223, 833, 1222, 1221, 836, 837, 831, 842, 841, 843, |
| 548 | 846, 853, 854, 855, 1220, 857, 858, 861, 862, 863, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 549 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 550 | 866, 865, 1219, 876, 860, 1218, 1217, 1216, 1215, 1214, |
| 551 | 1213, 1212, 877, 879, 880, 1211, 881, 882, 886, 1210, |
| 552 | 1209, 884, 1208, 1207, 885, 890, 888, 887, 891, 1206, |
| 553 | 898, 900, 901, 904, 907, 1205, 909, 911, 1204, 912, |
| 554 | 916, 716, 917, 914, 915, 919, 1203, 1202, 1201, 935, |
| 555 | 918, 1200, 1199, 1198, 925, 928, 1197, 938, 942, 943, |
| 556 | 930, 1196, 945, 1195, 1194, 1193, 1192, 946, 949, 954, |
| 557 | 1191, 950, 955, 1190, 1189, 1188, 1187, 1186, 956, 958, |
| 558 | 1185, 1184, 1183, 1182, 957, 960, 968, 961, 962, 1181, |
| 559 | 963, 1180, 973, 1179, 1178, 964, 975, 977, 978, 980, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 560 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 561 | 1177, 981, 983, 984, 987, 988, 992, 994, 995, 1176, |
| 562 | 997, 998, 1005, 1006, 1004, 1008, 1012, 1014, 920, 1175, |
| 563 | 1015, 1017, 1020, 1021, 1174, 1023, 1024, 1025, 1026, 1171, |
| 564 | 1162, 1160, 1029, 1159, 1027, 1044, 1032, 1028, 1158, 1045, |
| 565 | 1049, 1033, 1157, 1050, 1155, 1154, 1053, 1055, 1056, 1057, |
| 566 | 1059, 1060, 1061, 1063, 1065, 1066, 1067, 1069, 1071, 1152, |
| 567 | 1074, 1077, 1080, 1082, 1083, 1085, 1087, 1148, 1090, 1091, |
| 568 | 1096, 1097, 1098, 1147, 1095, 1101, 1102, 1103, 1145, 1107, |
| 569 | 1108, 1140, 1106, 1109, 1114, 1118, 1122, 1123, 1126, 1129, |
| 570 | 1128, 1130, 1131, 1132, 1133, 1070, 1134, 643, 552, 548, |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 571 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 572 | 1139, 444, 1144, 360, 285, 252, 1142, 133, 1309, 1177, |
| 573 | 1179, 143, 1183, 57 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 574 | } ; |
| 575 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 576 | static yyconst flex_int16_t yy_def[615] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 577 | { 0, |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 578 | 609, 1, 609, 609, 609, 609, 610, 611, 612, 609, |
| 579 | 611, 611, 611, 611, 613, 611, 611, 611, 611, 611, |
| 580 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 581 | 611, 611, 611, 611, 611, 611, 610, 609, 611, 609, |
| 582 | 614, 614, 609, 609, 611, 611, 611, 611, 611, 613, |
| 583 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 584 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 585 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 586 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 587 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 588 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 589 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 590 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 591 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 592 | 611, 611, 611, 609, 614, 614, 609, 611, 611, 611, |
| 593 | 49, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 594 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 595 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 596 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 597 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 598 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 599 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 600 | 611, 611, 611, 611, 611, 611, 49, 611, 611, 611, |
| 601 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 602 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 603 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 604 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 605 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 606 | 609, 609, 609, 609, 611, 611, 611, 611, 611, 611, |
| 607 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 608 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 609 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 610 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 611 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 612 | 611, 611, 611, 611, 611, 611, 611, 611, 207, 611, |
| 613 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 614 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 615 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 616 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 617 | 611, 609, 611, 611, 611, 611, 611, 611, 611, 611, |
| 618 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 619 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 620 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 621 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 622 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 623 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 624 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 625 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 626 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 627 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 628 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 629 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 630 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 631 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 632 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 633 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 634 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 635 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 636 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 637 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 638 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 639 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 640 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 641 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
| 642 | 611, 611, 611, 611, 611, 611, 611, 611, 611, 611, |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 643 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 644 | 611, 611, 611, 611, 611, 611, 611, 611, 0, 609, |
| 645 | 609, 609, 609, 609 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 646 | } ; |
| 647 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 648 | static yyconst flex_int16_t yy_nxt[1353] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 649 | { 0, |
| 650 | 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 651 | 14, 14, 14, 4, 15, 8, 8, 8, 16, 17, |
| 652 | 18, 19, 20, 21, 22, 8, 23, 8, 24, 25, |
| 653 | 26, 27, 28, 8, 29, 30, 31, 32, 33, 34, |
| 654 | 35, 8, 36, 42, 40, 43, 43, 43, 43, 44, |
| 655 | 44, 44, 44, 45, 45, 45, 45, 40, 46, 135, |
| 656 | 40, 40, 152, 40, 47, 48, 48, 48, 48, 40, |
| 657 | 47, 48, 48, 48, 48, 40, 40, 69, 138, 40, |
| 658 | 70, 40, 158, 40, 51, 40, 40, 71, 56, 40, |
| 659 | 102, 52, 57, 53, 40, 54, 49, 58, 55, 60, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 660 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 661 | 59, 61, 40, 172, 40, 40, 194, 64, 146, 40, |
| 662 | 128, 65, 62, 78, 83, 66, 63, 67, 40, 79, |
| 663 | 68, 40, 84, 129, 40, 80, 72, 85, 73, 74, |
| 664 | 40, 86, 40, 130, 81, 82, 75, 87, 40, 90, |
| 665 | 76, 40, 77, 131, 40, 41, 40, 133, 91, 40, |
| 666 | 88, 40, 40, 99, 92, 40, 89, 40, 40, 100, |
| 667 | 142, 147, 132, 145, 101, 148, 93, 170, 94, 40, |
| 668 | 40, 143, 95, 144, 96, 40, 97, 40, 98, 103, |
| 669 | 149, 150, 40, 40, 155, 40, 40, 115, 40, 104, |
| 670 | 153, 105, 106, 151, 107, 108, 109, 154, 110, 40, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 671 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 672 | 116, 163, 40, 117, 111, 40, 112, 113, 159, 114, |
| 673 | 118, 103, 171, 162, 188, 40, 136, 136, 136, 136, |
| 674 | 156, 119, 157, 120, 121, 40, 122, 40, 123, 40, |
| 675 | 124, 359, 125, 165, 40, 183, 126, 127, 43, 43, |
| 676 | 43, 43, 137, 44, 44, 44, 44, 47, 45, 45, |
| 677 | 45, 45, 40, 139, 139, 139, 139, 40, 164, 40, |
| 678 | 140, 257, 40, 40, 200, 40, 140, 47, 48, 48, |
| 679 | 48, 48, 40, 141, 141, 141, 141, 40, 178, 141, |
| 680 | 141, 40, 141, 141, 141, 141, 141, 141, 160, 40, |
| 681 | 40, 40, 40, 40, 40, 40, 166, 40, 40, 175, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 682 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 683 | 161, 173, 40, 40, 40, 190, 168, 40, 40, 186, |
| 684 | 40, 184, 167, 169, 179, 174, 176, 185, 40, 40, |
| 685 | 177, 187, 189, 191, 40, 180, 181, 195, 182, 40, |
| 686 | 40, 40, 201, 192, 193, 40, 40, 40, 197, 199, |
| 687 | 40, 196, 40, 40, 202, 40, 40, 40, 203, 40, |
| 688 | 40, 40, 198, 205, 214, 222, 209, 204, 210, 224, |
| 689 | 206, 40, 227, 40, 40, 225, 211, 207, 215, 223, |
| 690 | 208, 220, 40, 40, 212, 40, 216, 40, 213, 217, |
| 691 | 40, 226, 218, 232, 40, 219, 221, 40, 40, 40, |
| 692 | 228, 40, 40, 230, 40, 40, 256, 234, 229, 40, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 693 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 694 | 233, 236, 40, 240, 231, 238, 267, 235, 249, 40, |
| 695 | 258, 239, 241, 40, 250, 237, 40, 242, 40, 40, |
| 696 | 251, 252, 254, 40, 255, 40, 243, 244, 40, 40, |
| 697 | 279, 245, 269, 253, 259, 40, 246, 268, 40, 247, |
| 698 | 260, 271, 272, 40, 248, 136, 136, 136, 136, 262, |
| 699 | 262, 262, 262, 40, 292, 40, 263, 40, 273, 270, |
| 700 | 40, 284, 263, 139, 139, 139, 139, 40, 274, 40, |
| 701 | 140, 40, 40, 40, 40, 280, 140, 264, 265, 276, |
| 702 | 266, 266, 266, 266, 40, 40, 40, 40, 281, 40, |
| 703 | 40, 40, 275, 40, 277, 278, 282, 290, 285, 286, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 704 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 705 | 283, 40, 287, 40, 40, 40, 293, 40, 40, 40, |
| 706 | 291, 289, 40, 40, 288, 300, 297, 299, 40, 40, |
| 707 | 40, 40, 295, 298, 301, 296, 40, 302, 303, 304, |
| 708 | 294, 306, 308, 40, 40, 307, 40, 40, 40, 40, |
| 709 | 40, 310, 40, 305, 309, 311, 40, 40, 40, 40, |
| 710 | 40, 40, 313, 40, 315, 40, 323, 312, 330, 317, |
| 711 | 316, 40, 314, 40, 337, 40, 40, 332, 40, 318, |
| 712 | 319, 319, 319, 319, 320, 321, 319, 319, 322, 319, |
| 713 | 319, 319, 319, 319, 319, 40, 328, 329, 40, 40, |
| 714 | 40, 335, 40, 40, 324, 40, 325, 331, 40, 40, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 715 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 716 | 326, 40, 327, 40, 341, 333, 40, 336, 339, 40, |
| 717 | 40, 334, 338, 40, 40, 40, 340, 40, 40, 347, |
| 718 | 346, 342, 40, 349, 40, 40, 343, 345, 350, 344, |
| 719 | 348, 40, 40, 351, 355, 40, 352, 353, 358, 356, |
| 720 | 357, 40, 40, 354, 262, 262, 262, 262, 40, 264, |
| 721 | 264, 263, 362, 362, 362, 362, 40, 263, 413, 360, |
| 722 | 362, 362, 362, 362, 40, 361, 266, 266, 266, 266, |
| 723 | 40, 266, 266, 266, 266, 40, 40, 40, 40, 40, |
| 724 | 40, 363, 40, 364, 367, 40, 40, 368, 40, 40, |
| 725 | 40, 40, 40, 372, 365, 366, 40, 377, 40, 40, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 726 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 727 | 40, 371, 373, 40, 40, 369, 40, 375, 370, 380, |
| 728 | 40, 376, 381, 382, 40, 40, 40, 374, 378, 379, |
| 729 | 40, 40, 40, 383, 40, 389, 40, 40, 40, 40, |
| 730 | 390, 388, 40, 384, 40, 40, 385, 40, 386, 387, |
| 731 | 40, 394, 40, 391, 393, 392, 396, 395, 40, 397, |
| 732 | 40, 40, 399, 398, 40, 40, 40, 493, 405, 403, |
| 733 | 40, 40, 40, 40, 400, 401, 402, 404, 40, 407, |
| 734 | 409, 411, 414, 40, 40, 406, 40, 40, 415, 412, |
| 735 | 40, 417, 416, 408, 410, 418, 40, 420, 40, 40, |
| 736 | 40, 40, 419, 40, 40, 421, 40, 40, 422, 426, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 737 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 738 | 423, 424, 40, 425, 40, 40, 40, 40, 40, 40, |
| 739 | 427, 40, 436, 430, 40, 444, 437, 428, 429, 435, |
| 740 | 40, 433, 362, 362, 362, 362, 40, 439, 432, 40, |
| 741 | 40, 431, 40, 434, 440, 40, 438, 441, 40, 40, |
| 742 | 442, 40, 40, 40, 40, 40, 40, 443, 447, 40, |
| 743 | 40, 445, 451, 452, 40, 40, 40, 446, 448, 40, |
| 744 | 450, 455, 453, 454, 456, 449, 40, 40, 40, 457, |
| 745 | 40, 40, 458, 40, 40, 40, 40, 462, 40, 40, |
| 746 | 464, 465, 459, 460, 466, 467, 461, 463, 468, 40, |
| 747 | 40, 469, 40, 40, 40, 40, 471, 40, 40, 40, |
Reid Spencer | 7872074 | 2006-12-02 20:21:22 +0000 | [diff] [blame] | 748 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 749 | 40, 40, 473, 40, 40, 472, 475, 470, 477, 481, |
| 750 | 480, 40, 474, 40, 40, 483, 478, 40, 476, 486, |
| 751 | 40, 479, 40, 482, 40, 40, 485, 40, 40, 40, |
| 752 | 40, 40, 40, 40, 484, 489, 492, 488, 40, 494, |
| 753 | 487, 40, 491, 40, 543, 501, 496, 490, 40, 495, |
| 754 | 497, 40, 498, 499, 500, 40, 40, 502, 40, 40, |
| 755 | 503, 505, 40, 40, 504, 507, 506, 40, 40, 40, |
| 756 | 40, 40, 511, 40, 40, 40, 40, 40, 512, 509, |
| 757 | 508, 40, 513, 514, 510, 515, 40, 518, 40, 517, |
| 758 | 40, 40, 519, 40, 40, 516, 40, 40, 522, 520, |
Reid Spencer | 7872074 | 2006-12-02 20:21:22 +0000 | [diff] [blame] | 759 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 760 | 40, 40, 526, 527, 521, 40, 525, 40, 40, 523, |
| 761 | 40, 40, 529, 528, 532, 530, 524, 40, 40, 40, |
| 762 | 536, 40, 531, 537, 538, 40, 539, 40, 40, 533, |
| 763 | 40, 534, 541, 40, 40, 535, 40, 40, 40, 40, |
| 764 | 40, 40, 40, 547, 540, 40, 40, 556, 551, 553, |
| 765 | 542, 548, 544, 545, 549, 552, 546, 40, 40, 559, |
| 766 | 555, 550, 40, 40, 554, 557, 40, 558, 40, 40, |
| 767 | 40, 561, 40, 40, 40, 564, 40, 562, 40, 40, |
| 768 | 40, 567, 40, 40, 40, 571, 560, 40, 565, 573, |
| 769 | 40, 569, 563, 40, 570, 40, 40, 572, 40, 568, |
Reid Spencer | 7872074 | 2006-12-02 20:21:22 +0000 | [diff] [blame] | 770 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 771 | 40, 574, 566, 40, 40, 578, 575, 579, 40, 40, |
| 772 | 40, 40, 576, 582, 40, 40, 40, 586, 577, 40, |
| 773 | 40, 40, 40, 580, 583, 584, 585, 40, 588, 593, |
| 774 | 591, 40, 581, 589, 592, 40, 40, 587, 590, 40, |
| 775 | 594, 40, 40, 40, 40, 40, 40, 40, 595, 600, |
| 776 | 601, 602, 40, 40, 597, 40, 596, 40, 40, 606, |
| 777 | 40, 40, 598, 599, 605, 40, 607, 40, 40, 604, |
| 778 | 40, 40, 40, 40, 603, 40, 608, 37, 37, 37, |
| 779 | 37, 39, 39, 50, 40, 50, 50, 40, 40, 40, |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 780 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 781 | |
Reid Spencer | 7872074 | 2006-12-02 20:21:22 +0000 | [diff] [blame] | 782 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 783 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 784 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 785 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 786 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 787 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 788 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 789 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 790 | 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, |
| 791 | 40, 40, 40, 40, 40, 40, 40, 40, 261, 40, |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 792 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 793 | 40, 40, 40, 40, 134, 40, 38, 609, 3, 609, |
| 794 | 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, |
| 795 | 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, |
| 796 | 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, |
| 797 | 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, |
| 798 | 609, 609 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 799 | } ; |
| 800 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 801 | static yyconst flex_int16_t yy_chk[1353] = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 802 | { 0, |
| 803 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 804 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 805 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 806 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 807 | 1, 1, 1, 9, 58, 9, 9, 9, 9, 10, |
| 808 | 10, 10, 10, 11, 11, 11, 11, 11, 12, 614, |
| 809 | 20, 63, 58, 12, 13, 13, 13, 13, 13, 13, |
| 810 | 14, 14, 14, 14, 14, 14, 16, 20, 46, 17, |
| 811 | 20, 29, 63, 46, 16, 75, 93, 20, 17, 54, |
| 812 | 29, 16, 17, 16, 18, 16, 13, 17, 16, 18, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 813 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 814 | 17, 18, 19, 75, 22, 33, 93, 19, 54, 24, |
| 815 | 33, 19, 18, 22, 24, 19, 18, 19, 23, 22, |
| 816 | 19, 21, 24, 33, 34, 23, 21, 24, 21, 21, |
| 817 | 26, 24, 25, 34, 23, 23, 21, 25, 36, 26, |
| 818 | 21, 28, 21, 35, 35, 612, 608, 36, 26, 55, |
| 819 | 25, 73, 51, 28, 26, 53, 25, 27, 52, 28, |
| 820 | 51, 55, 35, 53, 28, 55, 27, 73, 27, 56, |
| 821 | 57, 52, 27, 52, 27, 60, 27, 61, 27, 30, |
| 822 | 56, 57, 31, 30, 61, 64, 67, 31, 66, 30, |
| 823 | 60, 30, 30, 57, 30, 30, 30, 60, 30, 74, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 824 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 825 | 31, 67, 86, 31, 30, 62, 30, 30, 64, 30, |
| 826 | 31, 32, 74, 66, 86, 32, 42, 42, 42, 42, |
| 827 | 62, 32, 62, 32, 32, 69, 32, 257, 32, 83, |
| 828 | 32, 257, 32, 69, 68, 83, 32, 32, 43, 43, |
| 829 | 43, 43, 44, 44, 44, 44, 44, 45, 45, 45, |
| 830 | 45, 45, 45, 47, 47, 47, 47, 47, 68, 97, |
| 831 | 47, 131, 80, 131, 97, 606, 47, 48, 48, 48, |
| 832 | 48, 48, 48, 49, 49, 49, 49, 49, 80, 49, |
| 833 | 49, 65, 49, 49, 49, 49, 49, 49, 65, 71, |
| 834 | 77, 72, 76, 78, 84, 81, 71, 88, 605, 77, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 835 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 836 | 65, 76, 79, 82, 85, 88, 72, 87, 89, 85, |
| 837 | 91, 84, 71, 72, 81, 76, 78, 84, 94, 92, |
| 838 | 79, 85, 87, 89, 98, 82, 82, 94, 82, 95, |
| 839 | 96, 99, 98, 91, 92, 100, 101, 102, 95, 96, |
| 840 | 103, 94, 104, 105, 99, 107, 110, 112, 100, 114, |
| 841 | 111, 106, 95, 102, 107, 110, 105, 101, 106, 111, |
| 842 | 102, 108, 114, 109, 118, 112, 106, 103, 107, 110, |
| 843 | 104, 109, 119, 604, 106, 113, 108, 115, 106, 108, |
| 844 | 117, 113, 108, 118, 120, 108, 109, 121, 123, 132, |
| 845 | 115, 130, 122, 117, 124, 143, 130, 120, 115, 126, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 846 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 847 | 119, 122, 127, 124, 117, 123, 143, 121, 126, 129, |
| 848 | 132, 123, 124, 133, 127, 122, 128, 124, 125, 144, |
| 849 | 128, 128, 129, 146, 129, 159, 125, 125, 149, 171, |
| 850 | 159, 125, 146, 128, 133, 151, 125, 144, 147, 125, |
| 851 | 133, 149, 151, 152, 125, 136, 136, 136, 136, 137, |
| 852 | 137, 137, 137, 153, 171, 164, 137, 602, 152, 147, |
| 853 | 160, 164, 137, 139, 139, 139, 139, 139, 153, 154, |
| 854 | 139, 156, 157, 161, 169, 160, 139, 140, 140, 156, |
| 855 | 140, 140, 140, 140, 140, 165, 158, 163, 161, 168, |
| 856 | 166, 170, 154, 167, 157, 158, 163, 169, 165, 166, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 857 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 858 | 163, 172, 167, 173, 174, 178, 172, 175, 176, 177, |
| 859 | 170, 168, 179, 182, 167, 177, 175, 176, 184, 180, |
| 860 | 181, 185, 174, 175, 178, 174, 183, 179, 180, 181, |
| 861 | 173, 182, 184, 186, 187, 183, 188, 189, 190, 193, |
| 862 | 200, 186, 203, 181, 185, 187, 204, 211, 219, 221, |
| 863 | 209, 208, 189, 229, 193, 210, 211, 188, 219, 203, |
| 864 | 200, 600, 190, 213, 229, 599, 217, 221, 227, 204, |
| 865 | 207, 207, 207, 207, 208, 209, 207, 207, 210, 207, |
| 866 | 207, 207, 207, 207, 207, 212, 213, 217, 220, 224, |
| 867 | 225, 227, 228, 230, 212, 232, 212, 220, 233, 231, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 868 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 869 | 212, 234, 212, 241, 232, 224, 238, 228, 231, 239, |
| 870 | 243, 225, 230, 245, 247, 248, 231, 249, 250, 243, |
| 871 | 241, 233, 252, 247, 256, 253, 234, 239, 248, 238, |
| 872 | 245, 254, 251, 249, 253, 255, 250, 251, 256, 254, |
| 873 | 255, 259, 260, 252, 262, 262, 262, 262, 330, 263, |
| 874 | 263, 262, 263, 263, 263, 263, 598, 262, 330, 259, |
| 875 | 264, 264, 264, 264, 267, 260, 265, 265, 265, 265, |
| 876 | 265, 266, 266, 266, 266, 266, 268, 269, 271, 272, |
| 877 | 276, 267, 277, 268, 272, 278, 279, 276, 280, 281, |
| 878 | 282, 283, 285, 280, 269, 271, 284, 285, 287, 286, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 879 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 880 | 293, 279, 281, 289, 288, 277, 290, 283, 278, 288, |
| 881 | 294, 284, 289, 290, 295, 296, 299, 282, 286, 287, |
| 882 | 300, 302, 303, 293, 304, 300, 305, 306, 308, 442, |
| 883 | 302, 299, 307, 294, 309, 313, 295, 314, 295, 296, |
| 884 | 316, 306, 317, 303, 305, 304, 308, 307, 318, 309, |
| 885 | 320, 323, 314, 313, 322, 324, 329, 442, 323, 320, |
| 886 | 325, 326, 327, 331, 316, 317, 318, 322, 332, 325, |
| 887 | 326, 327, 331, 334, 335, 324, 337, 338, 332, 329, |
| 888 | 340, 335, 334, 325, 326, 337, 342, 340, 345, 346, |
| 889 | 348, 347, 338, 350, 349, 342, 352, 353, 345, 349, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 890 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 891 | 346, 347, 354, 348, 355, 357, 360, 364, 365, 373, |
| 892 | 350, 359, 364, 354, 367, 373, 365, 352, 353, 360, |
| 893 | 368, 359, 362, 362, 362, 362, 372, 368, 357, 369, |
| 894 | 370, 355, 374, 359, 369, 371, 367, 370, 375, 376, |
| 895 | 371, 377, 378, 379, 387, 380, 382, 372, 376, 385, |
| 896 | 386, 374, 380, 382, 389, 388, 390, 375, 377, 391, |
| 897 | 379, 387, 385, 386, 388, 378, 392, 393, 394, 389, |
| 898 | 396, 397, 390, 405, 398, 399, 400, 394, 402, 401, |
| 899 | 397, 398, 391, 392, 399, 400, 393, 396, 401, 404, |
| 900 | 413, 402, 414, 415, 417, 418, 405, 422, 425, 419, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 901 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 902 | 428, 427, 414, 426, 429, 413, 417, 404, 419, 427, |
| 903 | 426, 431, 415, 432, 433, 429, 422, 434, 418, 433, |
| 904 | 435, 425, 437, 428, 438, 440, 432, 444, 445, 441, |
| 905 | 443, 451, 446, 519, 431, 437, 441, 435, 455, 443, |
| 906 | 434, 456, 440, 461, 519, 455, 445, 438, 450, 444, |
| 907 | 446, 458, 450, 450, 451, 459, 460, 456, 463, 468, |
| 908 | 458, 460, 469, 472, 459, 463, 461, 470, 473, 479, |
| 909 | 485, 480, 472, 486, 488, 489, 491, 496, 473, 469, |
| 910 | 468, 487, 479, 480, 470, 485, 493, 488, 497, 487, |
| 911 | 498, 499, 489, 500, 502, 486, 503, 504, 496, 491, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 912 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 913 | 505, 506, 500, 502, 493, 507, 499, 508, 509, 497, |
| 914 | 511, 512, 504, 503, 507, 505, 498, 515, 513, 514, |
| 915 | 512, 516, 506, 513, 514, 517, 515, 518, 521, 508, |
| 916 | 522, 509, 517, 523, 524, 511, 526, 527, 528, 529, |
| 917 | 535, 538, 533, 524, 516, 537, 542, 538, 529, 535, |
| 918 | 518, 526, 521, 522, 527, 533, 523, 536, 540, 542, |
| 919 | 537, 528, 541, 544, 536, 540, 547, 541, 548, 549, |
| 920 | 550, 547, 551, 552, 553, 550, 554, 548, 555, 556, |
| 921 | 557, 553, 558, 596, 559, 557, 544, 561, 551, 559, |
| 922 | 562, 555, 549, 563, 556, 564, 565, 558, 566, 554, |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 923 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 924 | 567, 561, 552, 569, 570, 565, 562, 566, 575, 571, |
| 925 | 572, 573, 563, 570, 576, 577, 578, 575, 564, 583, |
| 926 | 580, 581, 584, 567, 571, 572, 573, 585, 577, 584, |
| 927 | 581, 586, 569, 578, 583, 587, 588, 576, 580, 589, |
| 928 | 585, 591, 590, 592, 593, 594, 595, 597, 586, 591, |
| 929 | 592, 593, 601, 582, 588, 607, 587, 603, 579, 601, |
| 930 | 574, 568, 589, 590, 597, 560, 603, 546, 545, 595, |
| 931 | 543, 539, 534, 532, 594, 531, 607, 610, 610, 610, |
| 932 | 610, 611, 611, 613, 530, 613, 613, 525, 520, 510, |
| 933 | 501, 495, 494, 492, 490, 484, 483, 482, 481, 478, |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 934 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 935 | 477, 476, 475, 474, 471, 467, 466, 465, 464, 462, |
| 936 | 457, 454, 453, 452, 449, 448, 447, 439, 436, 430, |
| 937 | 424, 423, 421, 420, 416, 412, 411, 410, 409, 408, |
| 938 | 407, 406, 403, 395, 384, 383, 381, 366, 363, 361, |
| 939 | 358, 356, 351, 344, 343, 341, 339, 336, 333, 328, |
| 940 | 321, 315, 312, 311, 310, 301, 298, 297, 292, 291, |
| 941 | 275, 274, 273, 270, 258, 246, 244, 242, 240, 237, |
| 942 | 236, 235, 226, 223, 222, 218, 216, 215, 214, 206, |
| 943 | 205, 202, 201, 199, 198, 197, 196, 195, 194, 192, |
| 944 | 191, 162, 155, 150, 148, 145, 142, 138, 134, 116, |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 945 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 946 | 90, 70, 59, 39, 37, 8, 7, 3, 609, 609, |
| 947 | 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, |
| 948 | 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, |
| 949 | 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, |
| 950 | 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, |
| 951 | 609, 609 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 952 | } ; |
| 953 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 954 | /* Table of booleans, true if rule could match eol. */ |
| 955 | static yyconst flex_int32_t yy_rule_can_match_eol[157] = |
| 956 | { 0, |
| 957 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 958 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 959 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 960 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 961 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 962 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 963 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 964 | 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, }; |
| 965 | |
| 966 | static yy_state_type yy_last_accepting_state; |
| 967 | static char *yy_last_accepting_cpos; |
| 968 | |
| 969 | extern int Upgrade_flex_debug; |
| 970 | int Upgrade_flex_debug = 0; |
| 971 | |
| 972 | /* The intent behind this definition is that it'll catch |
| 973 | * any uses of REJECT which flex missed. |
| 974 | */ |
| 975 | #define REJECT reject_used_but_not_detected |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 976 | #define yymore() yymore_used_but_not_detected |
| 977 | #define YY_MORE_ADJ 0 |
| 978 | #define YY_RESTORE_YY_MORE_OFFSET |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 979 | char *Upgradetext; |
| 980 | #line 1 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 981 | /*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===// |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 982 | // |
| 983 | // The LLVM Compiler Infrastructure |
| 984 | // |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 985 | // This file was developed by Reid Spencer and is distributed under the |
| 986 | // University of Illinois Open Source License. See LICENSE.TXT for details. |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 987 | // |
| 988 | //===----------------------------------------------------------------------===// |
| 989 | // |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 990 | // 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] | 991 | // |
| 992 | //===----------------------------------------------------------------------===*/ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 993 | #line 28 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 319a730 | 2007-01-05 17:20:02 +0000 | [diff] [blame] | 994 | #include "UpgradeInternals.h" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 995 | #include "llvm/Module.h" |
| 996 | #include <list> |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 997 | #include "UpgradeParser.h" |
| 998 | #include <cctype> |
| 999 | #include <cstdlib> |
| 1000 | |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 1001 | #define YY_INPUT(buf,result,max_size) \ |
| 1002 | { \ |
| 1003 | if (LexInput->good() && !LexInput->eof()) { \ |
| 1004 | LexInput->read(buf,max_size); \ |
| 1005 | result = LexInput->gcount(); \ |
| 1006 | } else {\ |
| 1007 | result = YY_NULL; \ |
| 1008 | } \ |
| 1009 | } |
| 1010 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1011 | #define YY_NEVER_INTERACTIVE 1 |
Reid Spencer | 96839be | 2006-11-30 16:50:26 +0000 | [diff] [blame] | 1012 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1013 | // Construct a token value for a non-obsolete token |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1014 | #define RET_TOK(type, Enum, sym) \ |
| 1015 | Upgradelval.type = Enum; \ |
Reid Spencer | e77e35e | 2006-12-01 20:26:20 +0000 | [diff] [blame] | 1016 | return sym |
| 1017 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1018 | #define RET_TY(sym,NewTY,sign) \ |
| 1019 | Upgradelval.PrimType.T = NewTY; \ |
| 1020 | Upgradelval.PrimType.S = sign; \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1021 | return sym |
| 1022 | |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1023 | namespace llvm { |
| 1024 | |
| 1025 | // TODO: All of the static identifiers are figured out by the lexer, |
| 1026 | // these should be hashed to reduce the lexer size |
| 1027 | |
| 1028 | // UnEscapeLexed - Run through the specified buffer and change \xx codes to the |
| 1029 | // appropriate character. If AllowNull is set to false, a \00 value will cause |
| 1030 | // an exception to be thrown. |
| 1031 | // |
| 1032 | // If AllowNull is set to true, the return value of the function points to the |
| 1033 | // last character of the string in memory. |
| 1034 | // |
| 1035 | char *UnEscapeLexed(char *Buffer, bool AllowNull) { |
| 1036 | char *BOut = Buffer; |
| 1037 | for (char *BIn = Buffer; *BIn; ) { |
| 1038 | if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) { |
| 1039 | char Tmp = BIn[3]; BIn[3] = 0; // Terminate string |
| 1040 | *BOut = (char)strtol(BIn+1, 0, 16); // Convert to number |
| 1041 | if (!AllowNull && !*BOut) |
| 1042 | error("String literal cannot accept \\00 escape!"); |
| 1043 | |
| 1044 | BIn[3] = Tmp; // Restore character |
| 1045 | BIn += 3; // Skip over handled chars |
| 1046 | ++BOut; |
| 1047 | } else { |
| 1048 | *BOut++ = *BIn++; |
| 1049 | } |
| 1050 | } |
| 1051 | |
| 1052 | return BOut; |
| 1053 | } |
| 1054 | |
| 1055 | // atoull - Convert an ascii string of decimal digits into the unsigned long |
| 1056 | // long representation... this does not have to do input error checking, |
| 1057 | // because we know that the input will be matched by a suitable regex... |
| 1058 | // |
| 1059 | static uint64_t atoull(const char *Buffer) { |
| 1060 | uint64_t Result = 0; |
| 1061 | for (; *Buffer; Buffer++) { |
| 1062 | uint64_t OldRes = Result; |
| 1063 | Result *= 10; |
| 1064 | Result += *Buffer-'0'; |
| 1065 | if (Result < OldRes) // Uh, oh, overflow detected!!! |
| 1066 | error("constant bigger than 64 bits detected!"); |
| 1067 | } |
| 1068 | return Result; |
| 1069 | } |
| 1070 | |
| 1071 | static uint64_t HexIntToVal(const char *Buffer) { |
| 1072 | uint64_t Result = 0; |
| 1073 | for (; *Buffer; ++Buffer) { |
| 1074 | uint64_t OldRes = Result; |
| 1075 | Result *= 16; |
| 1076 | char C = *Buffer; |
| 1077 | if (C >= '0' && C <= '9') |
| 1078 | Result += C-'0'; |
| 1079 | else if (C >= 'A' && C <= 'F') |
| 1080 | Result += C-'A'+10; |
| 1081 | else if (C >= 'a' && C <= 'f') |
| 1082 | Result += C-'a'+10; |
| 1083 | |
| 1084 | if (Result < OldRes) // Uh, oh, overflow detected!!! |
| 1085 | error("constant bigger than 64 bits detected!"); |
| 1086 | } |
| 1087 | return Result; |
| 1088 | } |
| 1089 | |
| 1090 | |
| 1091 | // HexToFP - Convert the ascii string in hexidecimal format to the floating |
| 1092 | // point representation of it. |
| 1093 | // |
| 1094 | static double HexToFP(const char *Buffer) { |
| 1095 | // Behave nicely in the face of C TBAA rules... see: |
| 1096 | // http://www.nullstone.com/htmls/category/aliastyp.htm |
| 1097 | union { |
| 1098 | uint64_t UI; |
| 1099 | double FP; |
| 1100 | } UIntToFP; |
| 1101 | UIntToFP.UI = HexIntToVal(Buffer); |
| 1102 | |
| 1103 | assert(sizeof(double) == sizeof(uint64_t) && |
| 1104 | "Data sizes incompatible on this target!"); |
| 1105 | return UIntToFP.FP; // Cast Hex constant to double |
| 1106 | } |
| 1107 | |
| 1108 | |
| 1109 | } // End llvm namespace |
| 1110 | |
| 1111 | using namespace llvm; |
| 1112 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1113 | /* Comments start with a ; and go till end of line */ |
| 1114 | /* Variable(Value) identifiers start with a % sign */ |
| 1115 | /* Label identifiers end with a colon */ |
| 1116 | /* Quoted names can contain any character except " and \ */ |
| 1117 | /* [PN]Integer: match positive and negative literal integer values that |
| 1118 | * are preceeded by a '%' character. These represent unnamed variable slots. |
| 1119 | */ |
| 1120 | /* E[PN]Integer: match positive and negative literal integer values */ |
| 1121 | /* FPConstant - A Floating point constant. |
| 1122 | */ |
| 1123 | /* HexFPConstant - Floating point constant represented in IEEE format as a |
| 1124 | * hexadecimal number for when exponential notation is not precise enough. |
| 1125 | */ |
| 1126 | /* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing |
| 1127 | * it to deal with 64 bit numbers. |
| 1128 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1129 | #line 1130 "UpgradeLexer.cpp" |
| 1130 | |
| 1131 | #define INITIAL 0 |
| 1132 | |
| 1133 | #ifndef YY_NO_UNISTD_H |
| 1134 | /* Special case for "unistd.h", since it is non-ANSI. We include it way |
| 1135 | * down here because we want the user's section 1 to have been scanned first. |
| 1136 | * The user has a chance to override it with an option. |
| 1137 | */ |
| 1138 | #include <unistd.h> |
| 1139 | #endif |
| 1140 | |
| 1141 | #ifndef YY_EXTRA_TYPE |
| 1142 | #define YY_EXTRA_TYPE void * |
| 1143 | #endif |
| 1144 | |
| 1145 | static int yy_init_globals (void ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1146 | |
| 1147 | /* Macros after this point can all be overridden by user definitions in |
| 1148 | * section 1. |
| 1149 | */ |
| 1150 | |
| 1151 | #ifndef YY_SKIP_YYWRAP |
| 1152 | #ifdef __cplusplus |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1153 | extern "C" int Upgradewrap (void ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1154 | #else |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1155 | extern int Upgradewrap (void ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1156 | #endif |
| 1157 | #endif |
| 1158 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1159 | static inline void yyunput (int c,char *buf_ptr ); |
| 1160 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1161 | #ifndef yytext_ptr |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1162 | static void yy_flex_strncpy (char *,yyconst char *,int ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1163 | #endif |
| 1164 | |
| 1165 | #ifdef YY_NEED_STRLEN |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1166 | static int yy_flex_strlen (yyconst char * ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1167 | #endif |
| 1168 | |
| 1169 | #ifndef YY_NO_INPUT |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1170 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1171 | #ifdef __cplusplus |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1172 | static int yyinput (void ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1173 | #else |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1174 | static int input (void ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1175 | #endif |
| 1176 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1177 | #endif |
| 1178 | |
| 1179 | /* Amount of stuff to slurp up with each read. */ |
| 1180 | #ifndef YY_READ_BUF_SIZE |
| 1181 | #define YY_READ_BUF_SIZE 8192 |
| 1182 | #endif |
| 1183 | |
| 1184 | /* Copy whatever the last rule matched to the standard output. */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1185 | #ifndef ECHO |
| 1186 | /* This used to be an fputs(), but since the string might contain NUL's, |
| 1187 | * we now use fwrite(). |
| 1188 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1189 | #define ECHO (void) fwrite( Upgradetext, Upgradeleng, 1, Upgradeout ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1190 | #endif |
| 1191 | |
| 1192 | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
| 1193 | * is returned in "result". |
| 1194 | */ |
| 1195 | #ifndef YY_INPUT |
| 1196 | #define YY_INPUT(buf,result,max_size) \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1197 | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1198 | { \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1199 | int c = '*'; \ |
| 1200 | size_t n; \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1201 | for ( n = 0; n < max_size && \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1202 | (c = getc( Upgradein )) != EOF && c != '\n'; ++n ) \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1203 | buf[n] = (char) c; \ |
| 1204 | if ( c == '\n' ) \ |
| 1205 | buf[n++] = (char) c; \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1206 | if ( c == EOF && ferror( Upgradein ) ) \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1207 | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
| 1208 | result = n; \ |
| 1209 | } \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1210 | else \ |
| 1211 | { \ |
| 1212 | errno=0; \ |
| 1213 | while ( (result = fread(buf, 1, max_size, Upgradein))==0 && ferror(Upgradein)) \ |
| 1214 | { \ |
| 1215 | if( errno != EINTR) \ |
| 1216 | { \ |
| 1217 | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
| 1218 | break; \ |
| 1219 | } \ |
| 1220 | errno=0; \ |
| 1221 | clearerr(Upgradein); \ |
| 1222 | } \ |
| 1223 | }\ |
| 1224 | \ |
| 1225 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1226 | #endif |
| 1227 | |
| 1228 | /* No semi-colon after return; correct usage is to write "yyterminate();" - |
| 1229 | * we don't want an extra ';' after the "return" because that will cause |
| 1230 | * some compilers to complain about unreachable statements. |
| 1231 | */ |
| 1232 | #ifndef yyterminate |
| 1233 | #define yyterminate() return YY_NULL |
| 1234 | #endif |
| 1235 | |
| 1236 | /* Number of entries by which start-condition stack grows. */ |
| 1237 | #ifndef YY_START_STACK_INCR |
| 1238 | #define YY_START_STACK_INCR 25 |
| 1239 | #endif |
| 1240 | |
| 1241 | /* Report a fatal error. */ |
| 1242 | #ifndef YY_FATAL_ERROR |
| 1243 | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
| 1244 | #endif |
| 1245 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1246 | /* end tables serialization structures and prototypes */ |
| 1247 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1248 | /* Default declaration of generated scanner - a define so the user can |
| 1249 | * easily add parameters. |
| 1250 | */ |
| 1251 | #ifndef YY_DECL |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1252 | #define YY_DECL_IS_OURS 1 |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1253 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1254 | extern int Upgradelex (void); |
| 1255 | |
| 1256 | #define YY_DECL int Upgradelex (void) |
| 1257 | #endif /* !YY_DECL */ |
| 1258 | |
| 1259 | /* Code executed at the beginning of each rule, after Upgradetext and Upgradeleng |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1260 | * have been set up. |
| 1261 | */ |
| 1262 | #ifndef YY_USER_ACTION |
| 1263 | #define YY_USER_ACTION |
| 1264 | #endif |
| 1265 | |
| 1266 | /* Code executed at the end of each rule. */ |
| 1267 | #ifndef YY_BREAK |
| 1268 | #define YY_BREAK break; |
| 1269 | #endif |
| 1270 | |
| 1271 | #define YY_RULE_SETUP \ |
| 1272 | YY_USER_ACTION |
| 1273 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1274 | /** The main scanner function which does all the work. |
| 1275 | */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1276 | YY_DECL |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1277 | { |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1278 | register yy_state_type yy_current_state; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1279 | register char *yy_cp, *yy_bp; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1280 | register int yy_act; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1281 | |
| 1282 | #line 189 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1283 | |
| 1284 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1285 | #line 1286 "UpgradeLexer.cpp" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1286 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1287 | if ( !(yy_init) ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1288 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1289 | (yy_init) = 1; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1290 | |
| 1291 | #ifdef YY_USER_INIT |
| 1292 | YY_USER_INIT; |
| 1293 | #endif |
| 1294 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1295 | if ( ! (yy_start) ) |
| 1296 | (yy_start) = 1; /* first start state */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1297 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1298 | if ( ! Upgradein ) |
| 1299 | Upgradein = stdin; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1300 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1301 | if ( ! Upgradeout ) |
| 1302 | Upgradeout = stdout; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1303 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1304 | if ( ! YY_CURRENT_BUFFER ) { |
| 1305 | Upgradeensure_buffer_stack (); |
| 1306 | YY_CURRENT_BUFFER_LVALUE = |
| 1307 | Upgrade_create_buffer(Upgradein,YY_BUF_SIZE ); |
| 1308 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1309 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1310 | Upgrade_load_buffer_state( ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1311 | } |
| 1312 | |
| 1313 | while ( 1 ) /* loops until end-of-file is reached */ |
| 1314 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1315 | yy_cp = (yy_c_buf_p); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1316 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1317 | /* Support of Upgradetext. */ |
| 1318 | *yy_cp = (yy_hold_char); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1319 | |
| 1320 | /* yy_bp points to the position in yy_ch_buf of the start of |
| 1321 | * the current run. |
| 1322 | */ |
| 1323 | yy_bp = yy_cp; |
| 1324 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1325 | yy_current_state = (yy_start); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1326 | yy_match: |
| 1327 | do |
| 1328 | { |
| 1329 | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1330 | if ( yy_accept[yy_current_state] ) |
| 1331 | { |
| 1332 | (yy_last_accepting_state) = yy_current_state; |
| 1333 | (yy_last_accepting_cpos) = yy_cp; |
| 1334 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1335 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| 1336 | { |
| 1337 | yy_current_state = (int) yy_def[yy_current_state]; |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1338 | if ( yy_current_state >= 610 ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1339 | yy_c = yy_meta[(unsigned int) yy_c]; |
| 1340 | } |
| 1341 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1342 | ++yy_cp; |
| 1343 | } |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1344 | while ( yy_current_state != 609 ); |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1345 | yy_cp = (yy_last_accepting_cpos); |
| 1346 | yy_current_state = (yy_last_accepting_state); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1347 | |
| 1348 | yy_find_action: |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1349 | yy_act = yy_accept[yy_current_state]; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1350 | |
| 1351 | YY_DO_BEFORE_ACTION; |
| 1352 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1353 | if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1354 | { |
| 1355 | int yyl; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1356 | for ( yyl = 0; yyl < Upgradeleng; ++yyl ) |
| 1357 | if ( Upgradetext[yyl] == '\n' ) |
| 1358 | |
| 1359 | Upgradelineno++; |
| 1360 | ; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1361 | } |
| 1362 | |
| 1363 | do_action: /* This label is used only to access EOF actions. */ |
| 1364 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1365 | switch ( yy_act ) |
| 1366 | { /* beginning of action switch */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1367 | case 0: /* must back up */ |
| 1368 | /* undo the effects of YY_DO_BEFORE_ACTION */ |
| 1369 | *yy_cp = (yy_hold_char); |
| 1370 | yy_cp = (yy_last_accepting_cpos); |
| 1371 | yy_current_state = (yy_last_accepting_state); |
| 1372 | goto yy_find_action; |
| 1373 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1374 | case 1: |
| 1375 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1376 | #line 191 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1377 | { /* Ignore comments for now */ } |
| 1378 | YY_BREAK |
| 1379 | case 2: |
| 1380 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1381 | #line 193 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1382 | { return BEGINTOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1383 | YY_BREAK |
| 1384 | case 3: |
| 1385 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1386 | #line 194 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1387 | { return ENDTOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1388 | YY_BREAK |
| 1389 | case 4: |
| 1390 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1391 | #line 195 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1392 | { return TRUETOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1393 | YY_BREAK |
| 1394 | case 5: |
| 1395 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1396 | #line 196 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1397 | { return FALSETOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1398 | YY_BREAK |
| 1399 | case 6: |
| 1400 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1401 | #line 197 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1402 | { return DECLARE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1403 | YY_BREAK |
| 1404 | case 7: |
| 1405 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1406 | #line 198 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1407 | { return GLOBAL; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1408 | YY_BREAK |
| 1409 | case 8: |
| 1410 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1411 | #line 199 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1412 | { return CONSTANT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1413 | YY_BREAK |
| 1414 | case 9: |
| 1415 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1416 | #line 200 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1417 | { return INTERNAL; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1418 | YY_BREAK |
| 1419 | case 10: |
| 1420 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1421 | #line 201 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1422 | { return LINKONCE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1423 | YY_BREAK |
| 1424 | case 11: |
| 1425 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1426 | #line 202 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1427 | { return WEAK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1428 | YY_BREAK |
| 1429 | case 12: |
| 1430 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1431 | #line 203 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1432 | { return APPENDING; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1433 | YY_BREAK |
| 1434 | case 13: |
| 1435 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1436 | #line 204 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1437 | { return DLLIMPORT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1438 | YY_BREAK |
| 1439 | case 14: |
| 1440 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1441 | #line 205 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1442 | { return DLLEXPORT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1443 | YY_BREAK |
| 1444 | case 15: |
| 1445 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1446 | #line 206 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1447 | { return EXTERN_WEAK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1448 | YY_BREAK |
| 1449 | case 16: |
| 1450 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1451 | #line 207 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1452 | { return EXTERNAL; } /* Deprecated, turn into external */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1453 | YY_BREAK |
| 1454 | case 17: |
| 1455 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1456 | #line 208 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1457 | { return EXTERNAL; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1458 | YY_BREAK |
| 1459 | case 18: |
| 1460 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1461 | #line 209 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1462 | { return IMPLEMENTATION; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1463 | YY_BREAK |
| 1464 | case 19: |
| 1465 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1466 | #line 210 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1467 | { return ZEROINITIALIZER; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1468 | YY_BREAK |
| 1469 | case 20: |
| 1470 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1471 | #line 211 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1472 | { return DOTDOTDOT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1473 | YY_BREAK |
| 1474 | case 21: |
| 1475 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1476 | #line 212 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1477 | { return UNDEF; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1478 | YY_BREAK |
| 1479 | case 22: |
| 1480 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1481 | #line 213 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1482 | { return NULL_TOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1483 | YY_BREAK |
| 1484 | case 23: |
| 1485 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1486 | #line 214 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1487 | { return TO; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1488 | YY_BREAK |
| 1489 | case 24: |
| 1490 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1491 | #line 215 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1492 | { return EXCEPT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1493 | YY_BREAK |
| 1494 | case 25: |
| 1495 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1496 | #line 216 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1497 | { return NOT; } /* Deprecated, turned into XOR */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1498 | YY_BREAK |
| 1499 | case 26: |
| 1500 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1501 | #line 217 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1502 | { return TAIL; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1503 | YY_BREAK |
| 1504 | case 27: |
| 1505 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1506 | #line 218 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1507 | { return TARGET; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1508 | YY_BREAK |
| 1509 | case 28: |
| 1510 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1511 | #line 219 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1512 | { return TRIPLE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1513 | YY_BREAK |
| 1514 | case 29: |
| 1515 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1516 | #line 220 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1517 | { return DEPLIBS; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1518 | YY_BREAK |
| 1519 | case 30: |
| 1520 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1521 | #line 221 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1522 | { return ENDIAN; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1523 | YY_BREAK |
| 1524 | case 31: |
| 1525 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1526 | #line 222 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1527 | { return POINTERSIZE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1528 | YY_BREAK |
| 1529 | case 32: |
| 1530 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1531 | #line 223 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1532 | { return DATALAYOUT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1533 | YY_BREAK |
| 1534 | case 33: |
| 1535 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1536 | #line 224 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1537 | { return LITTLE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1538 | YY_BREAK |
| 1539 | case 34: |
| 1540 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1541 | #line 225 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1542 | { return BIG; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1543 | YY_BREAK |
| 1544 | case 35: |
| 1545 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1546 | #line 226 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1547 | { return VOLATILE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1548 | YY_BREAK |
| 1549 | case 36: |
| 1550 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1551 | #line 227 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1552 | { return ALIGN; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1553 | YY_BREAK |
| 1554 | case 37: |
| 1555 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1556 | #line 228 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1557 | { return SECTION; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1558 | YY_BREAK |
| 1559 | case 38: |
| 1560 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1561 | #line 229 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1562 | { return MODULE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1563 | YY_BREAK |
| 1564 | case 39: |
| 1565 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1566 | #line 230 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1567 | { return ASM_TOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1568 | YY_BREAK |
| 1569 | case 40: |
| 1570 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1571 | #line 231 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1572 | { return SIDEEFFECT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1573 | YY_BREAK |
| 1574 | case 41: |
| 1575 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1576 | #line 233 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1577 | { return CC_TOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1578 | YY_BREAK |
| 1579 | case 42: |
| 1580 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1581 | #line 234 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1582 | { return CCC_TOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1583 | YY_BREAK |
| 1584 | case 43: |
| 1585 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1586 | #line 235 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1587 | { return CSRETCC_TOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1588 | YY_BREAK |
| 1589 | case 44: |
| 1590 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1591 | #line 236 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1592 | { return FASTCC_TOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1593 | YY_BREAK |
| 1594 | case 45: |
| 1595 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1596 | #line 237 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1597 | { return COLDCC_TOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1598 | YY_BREAK |
| 1599 | case 46: |
| 1600 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1601 | #line 238 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1602 | { return X86_STDCALLCC_TOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1603 | YY_BREAK |
| 1604 | case 47: |
| 1605 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1606 | #line 239 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1607 | { return X86_FASTCALLCC_TOK; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1608 | YY_BREAK |
| 1609 | case 48: |
| 1610 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1611 | #line 241 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1612 | { RET_TY(SBYTE, Type::Int8Ty, Signed); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1613 | YY_BREAK |
| 1614 | case 49: |
| 1615 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1616 | #line 242 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1617 | { RET_TY(UBYTE, Type::Int8Ty, Unsigned); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1618 | YY_BREAK |
| 1619 | case 50: |
| 1620 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1621 | #line 243 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1622 | { RET_TY(SHORT, Type::Int16Ty, Signed); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1623 | YY_BREAK |
| 1624 | case 51: |
| 1625 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1626 | #line 244 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1627 | { RET_TY(USHORT, Type::Int16Ty, Unsigned); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1628 | YY_BREAK |
| 1629 | case 52: |
| 1630 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1631 | #line 245 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1632 | { RET_TY(INT, Type::Int32Ty, Signed); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1633 | YY_BREAK |
| 1634 | case 53: |
| 1635 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1636 | #line 246 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1637 | { RET_TY(UINT, Type::Int32Ty, Unsigned); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1638 | YY_BREAK |
| 1639 | case 54: |
| 1640 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1641 | #line 247 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1642 | { RET_TY(LONG, Type::Int64Ty, Signed); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1643 | YY_BREAK |
| 1644 | case 55: |
| 1645 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1646 | #line 248 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1647 | { RET_TY(ULONG, Type::Int64Ty, Unsigned); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1648 | YY_BREAK |
| 1649 | case 56: |
| 1650 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1651 | #line 249 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1652 | { RET_TY(VOID, Type::VoidTy, Signless ); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1653 | YY_BREAK |
| 1654 | case 57: |
| 1655 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1656 | #line 250 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1657 | { RET_TY(BOOL, Type::Int1Ty, Unsigned ); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1658 | YY_BREAK |
| 1659 | case 58: |
| 1660 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1661 | #line 251 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1662 | { RET_TY(FLOAT, Type::FloatTy, Signless ); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1663 | YY_BREAK |
| 1664 | case 59: |
| 1665 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1666 | #line 252 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1667 | { RET_TY(DOUBLE, Type::DoubleTy,Signless); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1668 | YY_BREAK |
| 1669 | case 60: |
| 1670 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1671 | #line 253 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1672 | { RET_TY(LABEL, Type::LabelTy, Signless ); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1673 | YY_BREAK |
| 1674 | case 61: |
| 1675 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1676 | #line 254 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1677 | { return TYPE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1678 | YY_BREAK |
| 1679 | case 62: |
| 1680 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1681 | #line 255 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1682 | { return OPAQUE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1683 | YY_BREAK |
| 1684 | case 63: |
| 1685 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1686 | #line 257 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1687 | { RET_TOK(BinaryOpVal, AddOp, ADD); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1688 | YY_BREAK |
| 1689 | case 64: |
| 1690 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1691 | #line 258 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1692 | { RET_TOK(BinaryOpVal, SubOp, SUB); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1693 | YY_BREAK |
| 1694 | case 65: |
| 1695 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1696 | #line 259 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1697 | { RET_TOK(BinaryOpVal, MulOp, MUL); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1698 | YY_BREAK |
| 1699 | case 66: |
| 1700 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1701 | #line 260 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1702 | { RET_TOK(BinaryOpVal, DivOp, DIV); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1703 | YY_BREAK |
| 1704 | case 67: |
| 1705 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1706 | #line 261 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1707 | { RET_TOK(BinaryOpVal, UDivOp, UDIV); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1708 | YY_BREAK |
| 1709 | case 68: |
| 1710 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1711 | #line 262 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1712 | { RET_TOK(BinaryOpVal, SDivOp, SDIV); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1713 | YY_BREAK |
| 1714 | case 69: |
| 1715 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1716 | #line 263 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1717 | { RET_TOK(BinaryOpVal, FDivOp, FDIV); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1718 | YY_BREAK |
| 1719 | case 70: |
| 1720 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1721 | #line 264 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1722 | { RET_TOK(BinaryOpVal, RemOp, REM); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1723 | YY_BREAK |
| 1724 | case 71: |
| 1725 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1726 | #line 265 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1727 | { RET_TOK(BinaryOpVal, URemOp, UREM); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1728 | YY_BREAK |
| 1729 | case 72: |
| 1730 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1731 | #line 266 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1732 | { RET_TOK(BinaryOpVal, SRemOp, SREM); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1733 | YY_BREAK |
| 1734 | case 73: |
| 1735 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1736 | #line 267 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1737 | { RET_TOK(BinaryOpVal, FRemOp, FREM); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1738 | YY_BREAK |
| 1739 | case 74: |
| 1740 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1741 | #line 268 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1742 | { RET_TOK(BinaryOpVal, AndOp, AND); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1743 | YY_BREAK |
| 1744 | case 75: |
| 1745 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1746 | #line 269 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1747 | { RET_TOK(BinaryOpVal, OrOp , OR ); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1748 | YY_BREAK |
| 1749 | case 76: |
| 1750 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1751 | #line 270 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1752 | { RET_TOK(BinaryOpVal, XorOp, XOR); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1753 | YY_BREAK |
| 1754 | case 77: |
| 1755 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1756 | #line 271 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1757 | { RET_TOK(BinaryOpVal, SetNE, SETNE); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1758 | YY_BREAK |
| 1759 | case 78: |
| 1760 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1761 | #line 272 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1762 | { RET_TOK(BinaryOpVal, SetEQ, SETEQ); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1763 | YY_BREAK |
| 1764 | case 79: |
| 1765 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1766 | #line 273 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1767 | { RET_TOK(BinaryOpVal, SetLT, SETLT); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1768 | YY_BREAK |
| 1769 | case 80: |
| 1770 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1771 | #line 274 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1772 | { RET_TOK(BinaryOpVal, SetGT, SETGT); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1773 | YY_BREAK |
| 1774 | case 81: |
| 1775 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1776 | #line 275 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1777 | { RET_TOK(BinaryOpVal, SetLE, SETLE); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1778 | YY_BREAK |
| 1779 | case 82: |
| 1780 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1781 | #line 276 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1782 | { RET_TOK(BinaryOpVal, SetGE, SETGE); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1783 | YY_BREAK |
| 1784 | case 83: |
| 1785 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1786 | #line 277 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1787 | { RET_TOK(OtherOpVal, ICmpOp, ICMP); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1788 | YY_BREAK |
| 1789 | case 84: |
| 1790 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1791 | #line 278 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1792 | { RET_TOK(OtherOpVal, FCmpOp, FCMP); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1793 | YY_BREAK |
| 1794 | case 85: |
| 1795 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1796 | #line 280 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1797 | { return EQ; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1798 | YY_BREAK |
| 1799 | case 86: |
| 1800 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1801 | #line 281 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1802 | { return NE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1803 | YY_BREAK |
| 1804 | case 87: |
| 1805 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1806 | #line 282 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1807 | { return SLT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1808 | YY_BREAK |
| 1809 | case 88: |
| 1810 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1811 | #line 283 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1812 | { return SGT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1813 | YY_BREAK |
| 1814 | case 89: |
| 1815 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1816 | #line 284 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1817 | { return SLE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1818 | YY_BREAK |
| 1819 | case 90: |
| 1820 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1821 | #line 285 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1822 | { return SGE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1823 | YY_BREAK |
| 1824 | case 91: |
| 1825 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1826 | #line 286 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1827 | { return ULT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1828 | YY_BREAK |
| 1829 | case 92: |
| 1830 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1831 | #line 287 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1832 | { return UGT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1833 | YY_BREAK |
| 1834 | case 93: |
| 1835 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1836 | #line 288 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1837 | { return ULE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1838 | YY_BREAK |
| 1839 | case 94: |
| 1840 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1841 | #line 289 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1842 | { return UGE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1843 | YY_BREAK |
| 1844 | case 95: |
| 1845 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1846 | #line 290 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1847 | { return OEQ; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1848 | YY_BREAK |
| 1849 | case 96: |
| 1850 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1851 | #line 291 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1852 | { return ONE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1853 | YY_BREAK |
| 1854 | case 97: |
| 1855 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1856 | #line 292 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1857 | { return OLT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1858 | YY_BREAK |
| 1859 | case 98: |
| 1860 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1861 | #line 293 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1862 | { return OGT; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1863 | YY_BREAK |
| 1864 | case 99: |
| 1865 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1866 | #line 294 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1867 | { return OLE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1868 | YY_BREAK |
| 1869 | case 100: |
| 1870 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1871 | #line 295 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1872 | { return OGE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1873 | YY_BREAK |
| 1874 | case 101: |
| 1875 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1876 | #line 296 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1877 | { return ORD; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1878 | YY_BREAK |
| 1879 | case 102: |
| 1880 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1881 | #line 297 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1882 | { return UNO; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1883 | YY_BREAK |
| 1884 | case 103: |
| 1885 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1886 | #line 298 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1887 | { return UEQ; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1888 | YY_BREAK |
| 1889 | case 104: |
| 1890 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1891 | #line 299 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1892 | { return UNE; } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1893 | YY_BREAK |
| 1894 | case 105: |
| 1895 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1896 | #line 301 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1897 | { RET_TOK(OtherOpVal, PHIOp, PHI_TOK); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1898 | YY_BREAK |
| 1899 | case 106: |
| 1900 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1901 | #line 302 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1902 | { RET_TOK(OtherOpVal, CallOp, CALL); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1903 | YY_BREAK |
| 1904 | case 107: |
| 1905 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1906 | #line 303 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1907 | { RET_TOK(CastOpVal, CastOp, CAST); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1908 | YY_BREAK |
| 1909 | case 108: |
| 1910 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1911 | #line 304 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1912 | { RET_TOK(CastOpVal, TruncOp, TRUNC); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1913 | YY_BREAK |
| 1914 | case 109: |
| 1915 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1916 | #line 305 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1917 | { RET_TOK(CastOpVal, ZExtOp , ZEXT); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1918 | YY_BREAK |
| 1919 | case 110: |
| 1920 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1921 | #line 306 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1922 | { RET_TOK(CastOpVal, SExtOp, SEXT); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1923 | YY_BREAK |
| 1924 | case 111: |
| 1925 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1926 | #line 307 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1927 | { RET_TOK(CastOpVal, FPTruncOp, FPTRUNC); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1928 | YY_BREAK |
| 1929 | case 112: |
| 1930 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1931 | #line 308 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1932 | { RET_TOK(CastOpVal, FPExtOp, FPEXT); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1933 | YY_BREAK |
| 1934 | case 113: |
| 1935 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1936 | #line 309 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1937 | { RET_TOK(CastOpVal, FPToUIOp, FPTOUI); } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 1938 | YY_BREAK |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame] | 1939 | case 114: |
| 1940 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1941 | #line 310 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1942 | { RET_TOK(CastOpVal, FPToSIOp, FPTOSI); } |
Reid Spencer | 16244f4 | 2006-12-01 21:10:07 +0000 | [diff] [blame] | 1943 | YY_BREAK |
Reid Spencer | f7bde22 | 2006-12-01 22:26:37 +0000 | [diff] [blame] | 1944 | case 115: |
| 1945 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1946 | #line 311 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1947 | { RET_TOK(CastOpVal, UIToFPOp, UITOFP); } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 1948 | YY_BREAK |
| 1949 | case 116: |
| 1950 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1951 | #line 312 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1952 | { RET_TOK(CastOpVal, SIToFPOp, SITOFP); } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 1953 | YY_BREAK |
| 1954 | case 117: |
| 1955 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1956 | #line 313 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1957 | { RET_TOK(CastOpVal, PtrToIntOp, PTRTOINT); } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 1958 | YY_BREAK |
| 1959 | case 118: |
| 1960 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1961 | #line 314 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1962 | { RET_TOK(CastOpVal, IntToPtrOp, INTTOPTR); } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 1963 | YY_BREAK |
| 1964 | case 119: |
| 1965 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1966 | #line 315 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1967 | { RET_TOK(CastOpVal, BitCastOp, BITCAST); } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 1968 | YY_BREAK |
| 1969 | case 120: |
| 1970 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1971 | #line 316 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1972 | { RET_TOK(OtherOpVal, SelectOp, SELECT); } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 1973 | YY_BREAK |
| 1974 | case 121: |
| 1975 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1976 | #line 317 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1977 | { RET_TOK(OtherOpVal, ShlOp, SHL); } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 1978 | YY_BREAK |
| 1979 | case 122: |
| 1980 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1981 | #line 318 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1982 | { RET_TOK(OtherOpVal, ShrOp, SHR); } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 1983 | YY_BREAK |
| 1984 | case 123: |
| 1985 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1986 | #line 319 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1987 | { RET_TOK(OtherOpVal, LShrOp, LSHR); } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 1988 | YY_BREAK |
| 1989 | case 124: |
| 1990 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1991 | #line 320 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1992 | { RET_TOK(OtherOpVal, AShrOp, ASHR); } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 1993 | YY_BREAK |
| 1994 | case 125: |
| 1995 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 1996 | #line 321 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 1997 | { return VANEXT_old; } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 1998 | YY_BREAK |
| 1999 | case 126: |
| 2000 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2001 | #line 322 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2002 | { return VAARG_old; } |
Reid Spencer | fcb5df8 | 2006-12-01 22:34:43 +0000 | [diff] [blame] | 2003 | YY_BREAK |
| 2004 | case 127: |
| 2005 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2006 | #line 323 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2007 | { RET_TOK(OtherOpVal, VAArg , VAARG); } |
Reid Spencer | 7872074 | 2006-12-02 20:21:22 +0000 | [diff] [blame] | 2008 | YY_BREAK |
| 2009 | case 128: |
| 2010 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2011 | #line 324 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2012 | { RET_TOK(TermOpVal, RetOp, RET); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2013 | YY_BREAK |
| 2014 | case 129: |
| 2015 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2016 | #line 325 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2017 | { RET_TOK(TermOpVal, BrOp, BR); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2018 | YY_BREAK |
| 2019 | case 130: |
| 2020 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2021 | #line 326 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2022 | { RET_TOK(TermOpVal, SwitchOp, SWITCH); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2023 | YY_BREAK |
| 2024 | case 131: |
| 2025 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2026 | #line 327 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2027 | { RET_TOK(TermOpVal, InvokeOp, INVOKE); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2028 | YY_BREAK |
| 2029 | case 132: |
| 2030 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2031 | #line 328 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2032 | { return UNWIND; } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2033 | YY_BREAK |
| 2034 | case 133: |
| 2035 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2036 | #line 329 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2037 | { RET_TOK(TermOpVal, UnreachableOp, UNREACHABLE); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2038 | YY_BREAK |
| 2039 | case 134: |
| 2040 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2041 | #line 331 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2042 | { RET_TOK(MemOpVal, MallocOp, MALLOC); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2043 | YY_BREAK |
| 2044 | case 135: |
| 2045 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2046 | #line 332 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2047 | { RET_TOK(MemOpVal, AllocaOp, ALLOCA); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2048 | YY_BREAK |
| 2049 | case 136: |
| 2050 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2051 | #line 333 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2052 | { RET_TOK(MemOpVal, FreeOp, FREE); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2053 | YY_BREAK |
| 2054 | case 137: |
| 2055 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2056 | #line 334 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2057 | { RET_TOK(MemOpVal, LoadOp, LOAD); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2058 | YY_BREAK |
| 2059 | case 138: |
| 2060 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2061 | #line 335 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2062 | { RET_TOK(MemOpVal, StoreOp, STORE); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2063 | YY_BREAK |
| 2064 | case 139: |
| 2065 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2066 | #line 336 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2067 | { RET_TOK(MemOpVal, GetElementPtrOp, GETELEMENTPTR); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2068 | YY_BREAK |
| 2069 | case 140: |
| 2070 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2071 | #line 338 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2072 | { RET_TOK(OtherOpVal, ExtractElementOp, EXTRACTELEMENT); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2073 | YY_BREAK |
| 2074 | case 141: |
| 2075 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2076 | #line 339 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2077 | { RET_TOK(OtherOpVal, InsertElementOp, INSERTELEMENT); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2078 | YY_BREAK |
| 2079 | case 142: |
| 2080 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2081 | #line 340 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2082 | { RET_TOK(OtherOpVal, ShuffleVectorOp, SHUFFLEVECTOR); } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2083 | YY_BREAK |
| 2084 | case 143: |
| 2085 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2086 | #line 343 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2087 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2088 | UnEscapeLexed(Upgradetext+1); |
| 2089 | Upgradelval.StrVal = strdup(Upgradetext+1); // Skip % |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2090 | return VAR_ID; |
| 2091 | } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2092 | YY_BREAK |
| 2093 | case 144: |
| 2094 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2095 | #line 348 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2096 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2097 | Upgradetext[strlen(Upgradetext)-1] = 0; // nuke colon |
| 2098 | UnEscapeLexed(Upgradetext); |
| 2099 | Upgradelval.StrVal = strdup(Upgradetext); |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2100 | return LABELSTR; |
| 2101 | } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2102 | YY_BREAK |
| 2103 | case 145: |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2104 | /* rule 145 can match eol */ |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2105 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2106 | #line 354 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2107 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2108 | Upgradetext[strlen(Upgradetext)-2] = 0; // nuke colon, end quote |
| 2109 | UnEscapeLexed(Upgradetext+1); |
| 2110 | Upgradelval.StrVal = strdup(Upgradetext+1); |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2111 | return LABELSTR; |
| 2112 | } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2113 | YY_BREAK |
| 2114 | case 146: |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2115 | /* rule 146 can match eol */ |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2116 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2117 | #line 361 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2118 | { // Note that we cannot unescape a string constant here! The |
| 2119 | // string constant might contain a \00 which would not be |
| 2120 | // understood by the string stuff. It is valid to make a |
| 2121 | // [sbyte] c"Hello World\00" constant, for example. |
| 2122 | // |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2123 | Upgradetext[strlen(Upgradetext)-1] = 0; // nuke end quote |
| 2124 | Upgradelval.StrVal = strdup(Upgradetext+1); // Nuke start quote |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2125 | return STRINGCONSTANT; |
| 2126 | } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2127 | YY_BREAK |
| 2128 | case 147: |
| 2129 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2130 | #line 372 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
| 2131 | { Upgradelval.UInt64Val = atoull(Upgradetext); return EUINT64VAL; } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2132 | YY_BREAK |
| 2133 | case 148: |
| 2134 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2135 | #line 373 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2136 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2137 | uint64_t Val = atoull(Upgradetext+1); |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2138 | // +1: we have bigger negative range |
| 2139 | if (Val > (uint64_t)INT64_MAX+1) |
| 2140 | error("Constant too large for signed 64 bits!"); |
| 2141 | Upgradelval.SInt64Val = -Val; |
| 2142 | return ESINT64VAL; |
| 2143 | } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2144 | YY_BREAK |
| 2145 | case 149: |
| 2146 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2147 | #line 381 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2148 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2149 | Upgradelval.UInt64Val = HexIntToVal(Upgradetext+3); |
| 2150 | return Upgradetext[0] == 's' ? ESINT64VAL : EUINT64VAL; |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2151 | } |
Reid Spencer | 229e936 | 2006-12-02 22:14:11 +0000 | [diff] [blame] | 2152 | YY_BREAK |
| 2153 | case 150: |
| 2154 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2155 | #line 386 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2156 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2157 | uint64_t Val = atoull(Upgradetext+1); |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2158 | if ((unsigned)Val != Val) |
| 2159 | error("Invalid value number (too large)!"); |
| 2160 | Upgradelval.UIntVal = unsigned(Val); |
| 2161 | return UINTVAL; |
| 2162 | } |
Reid Spencer | 6fd36ab | 2006-12-29 20:35:03 +0000 | [diff] [blame] | 2163 | YY_BREAK |
| 2164 | case 151: |
| 2165 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2166 | #line 393 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2167 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2168 | uint64_t Val = atoull(Upgradetext+2); |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2169 | // +1: we have bigger negative range |
| 2170 | if (Val > (uint64_t)INT32_MAX+1) |
| 2171 | error("Constant too large for signed 32 bits!"); |
| 2172 | Upgradelval.SIntVal = (int)-Val; |
| 2173 | return SINTVAL; |
| 2174 | } |
Reid Spencer | 71d2ec9 | 2006-12-31 06:02:26 +0000 | [diff] [blame] | 2175 | YY_BREAK |
| 2176 | case 152: |
| 2177 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2178 | #line 402 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
| 2179 | { Upgradelval.FPVal = atof(Upgradetext); return FPVAL; } |
Reid Spencer | 71d2ec9 | 2006-12-31 06:02:26 +0000 | [diff] [blame] | 2180 | YY_BREAK |
| 2181 | case 153: |
| 2182 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2183 | #line 403 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
| 2184 | { Upgradelval.FPVal = HexToFP(Upgradetext); return FPVAL; } |
Reid Spencer | f7bde22 | 2006-12-01 22:26:37 +0000 | [diff] [blame] | 2185 | YY_BREAK |
| 2186 | case YY_STATE_EOF(INITIAL): |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2187 | #line 405 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2188 | { |
| 2189 | /* Make sure to free the internal buffers for flex when we are |
| 2190 | * done reading our input! |
| 2191 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2192 | Upgrade_delete_buffer(YY_CURRENT_BUFFER); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2193 | return EOF; |
| 2194 | } |
| 2195 | YY_BREAK |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2196 | case 154: |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2197 | /* rule 154 can match eol */ |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2198 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2199 | #line 413 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2200 | { /* Ignore whitespace */ } |
| 2201 | YY_BREAK |
Reid Spencer | 71d2ec9 | 2006-12-31 06:02:26 +0000 | [diff] [blame] | 2202 | case 155: |
Reid Spencer | f7bde22 | 2006-12-01 22:26:37 +0000 | [diff] [blame] | 2203 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2204 | #line 414 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
| 2205 | { return Upgradetext[0]; } |
Reid Spencer | 7872074 | 2006-12-02 20:21:22 +0000 | [diff] [blame] | 2206 | YY_BREAK |
Reid Spencer | 71d2ec9 | 2006-12-31 06:02:26 +0000 | [diff] [blame] | 2207 | case 156: |
Reid Spencer | 7872074 | 2006-12-02 20:21:22 +0000 | [diff] [blame] | 2208 | YY_RULE_SETUP |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2209 | #line 416 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2210 | YY_FATAL_ERROR( "flex scanner jammed" ); |
| 2211 | YY_BREAK |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2212 | #line 2213 "UpgradeLexer.cpp" |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2213 | |
| 2214 | case YY_END_OF_BUFFER: |
| 2215 | { |
| 2216 | /* Amount of text matched not including the EOB char. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2217 | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2218 | |
| 2219 | /* Undo the effects of YY_DO_BEFORE_ACTION. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2220 | *yy_cp = (yy_hold_char); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2221 | YY_RESTORE_YY_MORE_OFFSET |
| 2222 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2223 | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2224 | { |
| 2225 | /* We're scanning a new file or input source. It's |
| 2226 | * possible that this happened because the user |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2227 | * just pointed Upgradein at a new source and called |
| 2228 | * Upgradelex(). If so, then we have to assure |
| 2229 | * consistency between YY_CURRENT_BUFFER and our |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2230 | * globals. Here is the right place to do so, because |
| 2231 | * this is the first action (other than possibly a |
| 2232 | * back-up) that will match for the new input source. |
| 2233 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2234 | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
| 2235 | YY_CURRENT_BUFFER_LVALUE->yy_input_file = Upgradein; |
| 2236 | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2237 | } |
| 2238 | |
| 2239 | /* Note that here we test for yy_c_buf_p "<=" to the position |
| 2240 | * of the first EOB in the buffer, since yy_c_buf_p will |
| 2241 | * already have been incremented past the NUL character |
| 2242 | * (since all states make transitions on EOB to the |
| 2243 | * end-of-buffer state). Contrast this with the test |
| 2244 | * in input(). |
| 2245 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2246 | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2247 | { /* This was really a NUL. */ |
| 2248 | yy_state_type yy_next_state; |
| 2249 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2250 | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2251 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2252 | yy_current_state = yy_get_previous_state( ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2253 | |
| 2254 | /* Okay, we're now positioned to make the NUL |
| 2255 | * transition. We couldn't have |
| 2256 | * yy_get_previous_state() go ahead and do it |
| 2257 | * for us because it doesn't know how to deal |
| 2258 | * with the possibility of jamming (and we don't |
| 2259 | * want to build jamming into it because then it |
| 2260 | * will run more slowly). |
| 2261 | */ |
| 2262 | |
| 2263 | yy_next_state = yy_try_NUL_trans( yy_current_state ); |
| 2264 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2265 | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2266 | |
| 2267 | if ( yy_next_state ) |
| 2268 | { |
| 2269 | /* Consume the NUL. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2270 | yy_cp = ++(yy_c_buf_p); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2271 | yy_current_state = yy_next_state; |
| 2272 | goto yy_match; |
| 2273 | } |
| 2274 | |
| 2275 | else |
| 2276 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2277 | yy_cp = (yy_last_accepting_cpos); |
| 2278 | yy_current_state = (yy_last_accepting_state); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2279 | goto yy_find_action; |
| 2280 | } |
| 2281 | } |
| 2282 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2283 | else switch ( yy_get_next_buffer( ) ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2284 | { |
| 2285 | case EOB_ACT_END_OF_FILE: |
| 2286 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2287 | (yy_did_buffer_switch_on_eof) = 0; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2288 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2289 | if ( Upgradewrap( ) ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2290 | { |
| 2291 | /* Note: because we've taken care in |
| 2292 | * yy_get_next_buffer() to have set up |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2293 | * Upgradetext, we can now set up |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2294 | * yy_c_buf_p so that if some total |
| 2295 | * hoser (like flex itself) wants to |
| 2296 | * call the scanner after we return the |
| 2297 | * YY_NULL, it'll still work - another |
| 2298 | * YY_NULL will get returned. |
| 2299 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2300 | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2301 | |
| 2302 | yy_act = YY_STATE_EOF(YY_START); |
| 2303 | goto do_action; |
| 2304 | } |
| 2305 | |
| 2306 | else |
| 2307 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2308 | if ( ! (yy_did_buffer_switch_on_eof) ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2309 | YY_NEW_FILE; |
| 2310 | } |
| 2311 | break; |
| 2312 | } |
| 2313 | |
| 2314 | case EOB_ACT_CONTINUE_SCAN: |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2315 | (yy_c_buf_p) = |
| 2316 | (yytext_ptr) + yy_amount_of_matched_text; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2317 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2318 | yy_current_state = yy_get_previous_state( ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2319 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2320 | yy_cp = (yy_c_buf_p); |
| 2321 | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2322 | goto yy_match; |
| 2323 | |
| 2324 | case EOB_ACT_LAST_MATCH: |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2325 | (yy_c_buf_p) = |
| 2326 | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2327 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2328 | yy_current_state = yy_get_previous_state( ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2329 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2330 | yy_cp = (yy_c_buf_p); |
| 2331 | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2332 | goto yy_find_action; |
| 2333 | } |
| 2334 | break; |
| 2335 | } |
| 2336 | |
| 2337 | default: |
| 2338 | YY_FATAL_ERROR( |
| 2339 | "fatal flex scanner internal error--no action found" ); |
| 2340 | } /* end of action switch */ |
| 2341 | } /* end of scanning one token */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2342 | } /* end of Upgradelex */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2343 | |
| 2344 | /* yy_get_next_buffer - try to read in a new buffer |
| 2345 | * |
| 2346 | * Returns a code representing an action: |
| 2347 | * EOB_ACT_LAST_MATCH - |
| 2348 | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
| 2349 | * EOB_ACT_END_OF_FILE - end of file |
| 2350 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2351 | static int yy_get_next_buffer (void) |
| 2352 | { |
| 2353 | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; |
| 2354 | register char *source = (yytext_ptr); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2355 | register int number_to_move, i; |
| 2356 | int ret_val; |
| 2357 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2358 | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2359 | YY_FATAL_ERROR( |
| 2360 | "fatal flex scanner internal error--end of buffer missed" ); |
| 2361 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2362 | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2363 | { /* Don't try to fill the buffer, so this is an EOF. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2364 | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2365 | { |
| 2366 | /* We matched a single character, the EOB, so |
| 2367 | * treat this as a final EOF. |
| 2368 | */ |
| 2369 | return EOB_ACT_END_OF_FILE; |
| 2370 | } |
| 2371 | |
| 2372 | else |
| 2373 | { |
| 2374 | /* We matched some text prior to the EOB, first |
| 2375 | * process it. |
| 2376 | */ |
| 2377 | return EOB_ACT_LAST_MATCH; |
| 2378 | } |
| 2379 | } |
| 2380 | |
| 2381 | /* Try to read more data. */ |
| 2382 | |
| 2383 | /* First move last chars to start of buffer. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2384 | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2385 | |
| 2386 | for ( i = 0; i < number_to_move; ++i ) |
| 2387 | *(dest++) = *(source++); |
| 2388 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2389 | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2390 | /* don't do the read, it's not guaranteed to return an EOF, |
| 2391 | * just force an EOF |
| 2392 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2393 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2394 | |
| 2395 | else |
| 2396 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2397 | int num_to_read = |
| 2398 | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2399 | |
| 2400 | while ( num_to_read <= 0 ) |
| 2401 | { /* Not enough room in the buffer - grow it. */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2402 | |
| 2403 | /* just a shorter name for the current buffer */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2404 | YY_BUFFER_STATE b = YY_CURRENT_BUFFER; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2405 | |
| 2406 | int yy_c_buf_p_offset = |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2407 | (int) ((yy_c_buf_p) - b->yy_ch_buf); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2408 | |
| 2409 | if ( b->yy_is_our_buffer ) |
| 2410 | { |
| 2411 | int new_size = b->yy_buf_size * 2; |
| 2412 | |
| 2413 | if ( new_size <= 0 ) |
| 2414 | b->yy_buf_size += b->yy_buf_size / 8; |
| 2415 | else |
| 2416 | b->yy_buf_size *= 2; |
| 2417 | |
| 2418 | b->yy_ch_buf = (char *) |
| 2419 | /* Include room in for 2 EOB chars. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2420 | Upgraderealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2421 | } |
| 2422 | else |
| 2423 | /* Can't grow it, we don't own it. */ |
| 2424 | b->yy_ch_buf = 0; |
| 2425 | |
| 2426 | if ( ! b->yy_ch_buf ) |
| 2427 | YY_FATAL_ERROR( |
| 2428 | "fatal error - scanner input buffer overflow" ); |
| 2429 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2430 | (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2431 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2432 | num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2433 | number_to_move - 1; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2434 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2435 | } |
| 2436 | |
| 2437 | if ( num_to_read > YY_READ_BUF_SIZE ) |
| 2438 | num_to_read = YY_READ_BUF_SIZE; |
| 2439 | |
| 2440 | /* Read in more data. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2441 | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), |
| 2442 | (yy_n_chars), num_to_read ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2443 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2444 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2445 | } |
| 2446 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2447 | if ( (yy_n_chars) == 0 ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2448 | { |
| 2449 | if ( number_to_move == YY_MORE_ADJ ) |
| 2450 | { |
| 2451 | ret_val = EOB_ACT_END_OF_FILE; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2452 | Upgraderestart(Upgradein ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2453 | } |
| 2454 | |
| 2455 | else |
| 2456 | { |
| 2457 | ret_val = EOB_ACT_LAST_MATCH; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2458 | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2459 | YY_BUFFER_EOF_PENDING; |
| 2460 | } |
| 2461 | } |
| 2462 | |
| 2463 | else |
| 2464 | ret_val = EOB_ACT_CONTINUE_SCAN; |
| 2465 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2466 | (yy_n_chars) += number_to_move; |
| 2467 | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; |
| 2468 | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2469 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2470 | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2471 | |
| 2472 | return ret_val; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2473 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2474 | |
| 2475 | /* yy_get_previous_state - get the state just before the EOB char was reached */ |
| 2476 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2477 | static yy_state_type yy_get_previous_state (void) |
| 2478 | { |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2479 | register yy_state_type yy_current_state; |
| 2480 | register char *yy_cp; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2481 | |
| 2482 | yy_current_state = (yy_start); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2483 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2484 | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2485 | { |
| 2486 | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2487 | if ( yy_accept[yy_current_state] ) |
| 2488 | { |
| 2489 | (yy_last_accepting_state) = yy_current_state; |
| 2490 | (yy_last_accepting_cpos) = yy_cp; |
| 2491 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2492 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| 2493 | { |
| 2494 | yy_current_state = (int) yy_def[yy_current_state]; |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2495 | if ( yy_current_state >= 610 ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2496 | yy_c = yy_meta[(unsigned int) yy_c]; |
| 2497 | } |
| 2498 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2499 | } |
| 2500 | |
| 2501 | return yy_current_state; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2502 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2503 | |
| 2504 | /* yy_try_NUL_trans - try to make a transition on the NUL character |
| 2505 | * |
| 2506 | * synopsis |
| 2507 | * next_state = yy_try_NUL_trans( current_state ); |
| 2508 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2509 | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) |
| 2510 | { |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2511 | register int yy_is_jam; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2512 | register char *yy_cp = (yy_c_buf_p); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2513 | |
| 2514 | register YY_CHAR yy_c = 1; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2515 | if ( yy_accept[yy_current_state] ) |
| 2516 | { |
| 2517 | (yy_last_accepting_state) = yy_current_state; |
| 2518 | (yy_last_accepting_cpos) = yy_cp; |
| 2519 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2520 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| 2521 | { |
| 2522 | yy_current_state = (int) yy_def[yy_current_state]; |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2523 | if ( yy_current_state >= 610 ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2524 | yy_c = yy_meta[(unsigned int) yy_c]; |
| 2525 | } |
| 2526 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
Reid Spencer | 950bf60 | 2007-01-26 08:19:09 +0000 | [diff] [blame] | 2527 | yy_is_jam = (yy_current_state == 609); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2528 | |
| 2529 | return yy_is_jam ? 0 : yy_current_state; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2530 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2531 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2532 | static inline void yyunput (int c, register char * yy_bp ) |
| 2533 | { |
| 2534 | register char *yy_cp; |
| 2535 | |
| 2536 | yy_cp = (yy_c_buf_p); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2537 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2538 | /* undo effects of setting up Upgradetext */ |
| 2539 | *yy_cp = (yy_hold_char); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2540 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2541 | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2542 | { /* need to shift things up to make room */ |
| 2543 | /* +2 for EOB chars. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2544 | register int number_to_move = (yy_n_chars) + 2; |
| 2545 | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ |
| 2546 | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2547 | register char *source = |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2548 | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2549 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2550 | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2551 | *--dest = *--source; |
| 2552 | |
| 2553 | yy_cp += (int) (dest - source); |
| 2554 | yy_bp += (int) (dest - source); |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2555 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = |
| 2556 | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2557 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2558 | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2559 | YY_FATAL_ERROR( "flex scanner push-back overflow" ); |
| 2560 | } |
| 2561 | |
| 2562 | *--yy_cp = (char) c; |
| 2563 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2564 | if ( c == '\n' ){ |
| 2565 | --Upgradelineno; |
| 2566 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2567 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2568 | (yytext_ptr) = yy_bp; |
| 2569 | (yy_hold_char) = *yy_cp; |
| 2570 | (yy_c_buf_p) = yy_cp; |
| 2571 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2572 | |
| 2573 | #ifndef YY_NO_INPUT |
| 2574 | #ifdef __cplusplus |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2575 | static int yyinput (void) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2576 | #else |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2577 | static int input (void) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2578 | #endif |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2579 | |
| 2580 | { |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2581 | int c; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2582 | |
| 2583 | *(yy_c_buf_p) = (yy_hold_char); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2584 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2585 | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2586 | { |
| 2587 | /* yy_c_buf_p now points to the character we want to return. |
| 2588 | * If this occurs *before* the EOB characters, then it's a |
| 2589 | * valid NUL; if not, then we've hit the end of the buffer. |
| 2590 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2591 | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2592 | /* This was really a NUL. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2593 | *(yy_c_buf_p) = '\0'; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2594 | |
| 2595 | else |
| 2596 | { /* need more input */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2597 | int offset = (yy_c_buf_p) - (yytext_ptr); |
| 2598 | ++(yy_c_buf_p); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2599 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2600 | switch ( yy_get_next_buffer( ) ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2601 | { |
| 2602 | case EOB_ACT_LAST_MATCH: |
| 2603 | /* This happens because yy_g_n_b() |
| 2604 | * sees that we've accumulated a |
| 2605 | * token and flags that we need to |
| 2606 | * try matching the token before |
| 2607 | * proceeding. But for input(), |
| 2608 | * there's no matching to consider. |
| 2609 | * So convert the EOB_ACT_LAST_MATCH |
| 2610 | * to EOB_ACT_END_OF_FILE. |
| 2611 | */ |
| 2612 | |
| 2613 | /* Reset buffer status. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2614 | Upgraderestart(Upgradein ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2615 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2616 | /*FALLTHROUGH*/ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2617 | |
| 2618 | case EOB_ACT_END_OF_FILE: |
| 2619 | { |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2620 | if ( Upgradewrap( ) ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2621 | return EOF; |
| 2622 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2623 | if ( ! (yy_did_buffer_switch_on_eof) ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2624 | YY_NEW_FILE; |
| 2625 | #ifdef __cplusplus |
| 2626 | return yyinput(); |
| 2627 | #else |
| 2628 | return input(); |
| 2629 | #endif |
| 2630 | } |
| 2631 | |
| 2632 | case EOB_ACT_CONTINUE_SCAN: |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2633 | (yy_c_buf_p) = (yytext_ptr) + offset; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2634 | break; |
| 2635 | } |
| 2636 | } |
| 2637 | } |
| 2638 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2639 | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ |
| 2640 | *(yy_c_buf_p) = '\0'; /* preserve Upgradetext */ |
| 2641 | (yy_hold_char) = *++(yy_c_buf_p); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2642 | |
| 2643 | if ( c == '\n' ) |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2644 | |
| 2645 | Upgradelineno++; |
| 2646 | ; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2647 | |
| 2648 | return c; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2649 | } |
| 2650 | #endif /* ifndef YY_NO_INPUT */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2651 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2652 | /** Immediately switch to a different input stream. |
| 2653 | * @param input_file A readable stream. |
| 2654 | * |
| 2655 | * @note This function does not reset the start condition to @c INITIAL . |
| 2656 | */ |
| 2657 | void Upgraderestart (FILE * input_file ) |
| 2658 | { |
| 2659 | |
| 2660 | if ( ! YY_CURRENT_BUFFER ){ |
| 2661 | Upgradeensure_buffer_stack (); |
| 2662 | YY_CURRENT_BUFFER_LVALUE = |
| 2663 | Upgrade_create_buffer(Upgradein,YY_BUF_SIZE ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2664 | } |
| 2665 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2666 | Upgrade_init_buffer(YY_CURRENT_BUFFER,input_file ); |
| 2667 | Upgrade_load_buffer_state( ); |
| 2668 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2669 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2670 | /** Switch to a different input buffer. |
| 2671 | * @param new_buffer The new input buffer. |
| 2672 | * |
| 2673 | */ |
| 2674 | void Upgrade_switch_to_buffer (YY_BUFFER_STATE new_buffer ) |
| 2675 | { |
| 2676 | |
| 2677 | /* TODO. We should be able to replace this entire function body |
| 2678 | * with |
| 2679 | * Upgradepop_buffer_state(); |
| 2680 | * Upgradepush_buffer_state(new_buffer); |
| 2681 | */ |
| 2682 | Upgradeensure_buffer_stack (); |
| 2683 | if ( YY_CURRENT_BUFFER == new_buffer ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2684 | return; |
| 2685 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2686 | if ( YY_CURRENT_BUFFER ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2687 | { |
| 2688 | /* Flush out information for old buffer. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2689 | *(yy_c_buf_p) = (yy_hold_char); |
| 2690 | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
| 2691 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2692 | } |
| 2693 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2694 | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
| 2695 | Upgrade_load_buffer_state( ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2696 | |
| 2697 | /* We don't actually know whether we did this switch during |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2698 | * EOF (Upgradewrap()) processing, but the only time this flag |
| 2699 | * is looked at is after Upgradewrap() is called, so it's safe |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2700 | * to go ahead and always set it. |
| 2701 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2702 | (yy_did_buffer_switch_on_eof) = 1; |
| 2703 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2704 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2705 | static void Upgrade_load_buffer_state (void) |
| 2706 | { |
| 2707 | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
| 2708 | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; |
| 2709 | Upgradein = YY_CURRENT_BUFFER_LVALUE->yy_input_file; |
| 2710 | (yy_hold_char) = *(yy_c_buf_p); |
| 2711 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2712 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2713 | /** Allocate and initialize an input buffer state. |
| 2714 | * @param file A readable stream. |
| 2715 | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. |
| 2716 | * |
| 2717 | * @return the allocated buffer state. |
| 2718 | */ |
| 2719 | YY_BUFFER_STATE Upgrade_create_buffer (FILE * file, int size ) |
| 2720 | { |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2721 | YY_BUFFER_STATE b; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2722 | |
| 2723 | b = (YY_BUFFER_STATE) Upgradealloc(sizeof( struct yy_buffer_state ) ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2724 | if ( ! b ) |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2725 | YY_FATAL_ERROR( "out of dynamic memory in Upgrade_create_buffer()" ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2726 | |
| 2727 | b->yy_buf_size = size; |
| 2728 | |
| 2729 | /* yy_ch_buf has to be 2 characters longer than the size given because |
| 2730 | * we need to put in 2 end-of-buffer characters. |
| 2731 | */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2732 | b->yy_ch_buf = (char *) Upgradealloc(b->yy_buf_size + 2 ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2733 | if ( ! b->yy_ch_buf ) |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2734 | YY_FATAL_ERROR( "out of dynamic memory in Upgrade_create_buffer()" ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2735 | |
| 2736 | b->yy_is_our_buffer = 1; |
| 2737 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2738 | Upgrade_init_buffer(b,file ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2739 | |
| 2740 | return b; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2741 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2742 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2743 | /** Destroy the buffer. |
| 2744 | * @param b a buffer created with Upgrade_create_buffer() |
| 2745 | * |
| 2746 | */ |
| 2747 | void Upgrade_delete_buffer (YY_BUFFER_STATE b ) |
| 2748 | { |
| 2749 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2750 | if ( ! b ) |
| 2751 | return; |
| 2752 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2753 | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
| 2754 | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2755 | |
| 2756 | if ( b->yy_is_our_buffer ) |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2757 | Upgradefree((void *) b->yy_ch_buf ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2758 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2759 | Upgradefree((void *) b ); |
| 2760 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2761 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2762 | /* Initializes or reinitializes a buffer. |
| 2763 | * This function is sometimes called more than once on the same buffer, |
| 2764 | * such as during a Upgraderestart() or at EOF. |
| 2765 | */ |
| 2766 | static void Upgrade_init_buffer (YY_BUFFER_STATE b, FILE * file ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2767 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2768 | { |
| 2769 | int oerrno = errno; |
| 2770 | |
| 2771 | Upgrade_flush_buffer(b ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2772 | |
| 2773 | b->yy_input_file = file; |
| 2774 | b->yy_fill_buffer = 1; |
| 2775 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2776 | /* If b is the current buffer, then Upgrade_init_buffer was _probably_ |
| 2777 | * called from Upgraderestart() or through yy_get_next_buffer. |
| 2778 | * In that case, we don't want to reset the lineno or column. |
| 2779 | */ |
| 2780 | if (b != YY_CURRENT_BUFFER){ |
| 2781 | b->yy_bs_lineno = 1; |
| 2782 | b->yy_bs_column = 0; |
| 2783 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2784 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2785 | b->yy_is_interactive = 0; |
| 2786 | |
| 2787 | errno = oerrno; |
| 2788 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2789 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2790 | /** Discard all buffered characters. On the next scan, YY_INPUT will be called. |
| 2791 | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
| 2792 | * |
| 2793 | */ |
| 2794 | void Upgrade_flush_buffer (YY_BUFFER_STATE b ) |
| 2795 | { |
| 2796 | if ( ! b ) |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2797 | return; |
| 2798 | |
| 2799 | b->yy_n_chars = 0; |
| 2800 | |
| 2801 | /* We always need two end-of-buffer characters. The first causes |
| 2802 | * a transition to the end-of-buffer state. The second causes |
| 2803 | * a jam in that state. |
| 2804 | */ |
| 2805 | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; |
| 2806 | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; |
| 2807 | |
| 2808 | b->yy_buf_pos = &b->yy_ch_buf[0]; |
| 2809 | |
| 2810 | b->yy_at_bol = 1; |
| 2811 | b->yy_buffer_status = YY_BUFFER_NEW; |
| 2812 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2813 | if ( b == YY_CURRENT_BUFFER ) |
| 2814 | Upgrade_load_buffer_state( ); |
| 2815 | } |
| 2816 | |
| 2817 | /** Pushes the new state onto the stack. The new state becomes |
| 2818 | * the current state. This function will allocate the stack |
| 2819 | * if necessary. |
| 2820 | * @param new_buffer The new state. |
| 2821 | * |
| 2822 | */ |
| 2823 | void Upgradepush_buffer_state (YY_BUFFER_STATE new_buffer ) |
| 2824 | { |
| 2825 | if (new_buffer == NULL) |
| 2826 | return; |
| 2827 | |
| 2828 | Upgradeensure_buffer_stack(); |
| 2829 | |
| 2830 | /* This block is copied from Upgrade_switch_to_buffer. */ |
| 2831 | if ( YY_CURRENT_BUFFER ) |
| 2832 | { |
| 2833 | /* Flush out information for old buffer. */ |
| 2834 | *(yy_c_buf_p) = (yy_hold_char); |
| 2835 | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
| 2836 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
| 2837 | } |
| 2838 | |
| 2839 | /* Only push if top exists. Otherwise, replace top. */ |
| 2840 | if (YY_CURRENT_BUFFER) |
| 2841 | (yy_buffer_stack_top)++; |
| 2842 | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
| 2843 | |
| 2844 | /* copied from Upgrade_switch_to_buffer. */ |
| 2845 | Upgrade_load_buffer_state( ); |
| 2846 | (yy_did_buffer_switch_on_eof) = 1; |
| 2847 | } |
| 2848 | |
| 2849 | /** Removes and deletes the top of the stack, if present. |
| 2850 | * The next element becomes the new top. |
| 2851 | * |
| 2852 | */ |
| 2853 | void Upgradepop_buffer_state (void) |
| 2854 | { |
| 2855 | if (!YY_CURRENT_BUFFER) |
| 2856 | return; |
| 2857 | |
| 2858 | Upgrade_delete_buffer(YY_CURRENT_BUFFER ); |
| 2859 | YY_CURRENT_BUFFER_LVALUE = NULL; |
| 2860 | if ((yy_buffer_stack_top) > 0) |
| 2861 | --(yy_buffer_stack_top); |
| 2862 | |
| 2863 | if (YY_CURRENT_BUFFER) { |
| 2864 | Upgrade_load_buffer_state( ); |
| 2865 | (yy_did_buffer_switch_on_eof) = 1; |
| 2866 | } |
| 2867 | } |
| 2868 | |
| 2869 | /* Allocates the stack if it does not exist. |
| 2870 | * Guarantees space for at least one push. |
| 2871 | */ |
| 2872 | static void Upgradeensure_buffer_stack (void) |
| 2873 | { |
| 2874 | int num_to_alloc; |
| 2875 | |
| 2876 | if (!(yy_buffer_stack)) { |
| 2877 | |
| 2878 | /* First allocation is just for 2 elements, since we don't know if this |
| 2879 | * scanner will even need a stack. We use 2 instead of 1 to avoid an |
| 2880 | * immediate realloc on the next call. |
| 2881 | */ |
| 2882 | num_to_alloc = 1; |
| 2883 | (yy_buffer_stack) = (struct yy_buffer_state**)Upgradealloc |
| 2884 | (num_to_alloc * sizeof(struct yy_buffer_state*) |
| 2885 | ); |
| 2886 | |
| 2887 | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); |
| 2888 | |
| 2889 | (yy_buffer_stack_max) = num_to_alloc; |
| 2890 | (yy_buffer_stack_top) = 0; |
| 2891 | return; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2892 | } |
| 2893 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2894 | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2895 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2896 | /* Increase the buffer to prepare for a possible push. */ |
| 2897 | int grow_size = 8 /* arbitrary grow size */; |
| 2898 | |
| 2899 | num_to_alloc = (yy_buffer_stack_max) + grow_size; |
| 2900 | (yy_buffer_stack) = (struct yy_buffer_state**)Upgraderealloc |
| 2901 | ((yy_buffer_stack), |
| 2902 | num_to_alloc * sizeof(struct yy_buffer_state*) |
| 2903 | ); |
| 2904 | |
| 2905 | /* zero only the new slots.*/ |
| 2906 | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); |
| 2907 | (yy_buffer_stack_max) = num_to_alloc; |
| 2908 | } |
| 2909 | } |
| 2910 | |
| 2911 | /** Setup the input buffer state to scan directly from a user-specified character buffer. |
| 2912 | * @param base the character buffer |
| 2913 | * @param size the size in bytes of the character buffer |
| 2914 | * |
| 2915 | * @return the newly allocated buffer state object. |
| 2916 | */ |
| 2917 | YY_BUFFER_STATE Upgrade_scan_buffer (char * base, yy_size_t size ) |
| 2918 | { |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2919 | YY_BUFFER_STATE b; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2920 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2921 | if ( size < 2 || |
| 2922 | base[size-2] != YY_END_OF_BUFFER_CHAR || |
| 2923 | base[size-1] != YY_END_OF_BUFFER_CHAR ) |
| 2924 | /* They forgot to leave room for the EOB's. */ |
| 2925 | return 0; |
| 2926 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2927 | b = (YY_BUFFER_STATE) Upgradealloc(sizeof( struct yy_buffer_state ) ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2928 | if ( ! b ) |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2929 | YY_FATAL_ERROR( "out of dynamic memory in Upgrade_scan_buffer()" ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2930 | |
| 2931 | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ |
| 2932 | b->yy_buf_pos = b->yy_ch_buf = base; |
| 2933 | b->yy_is_our_buffer = 0; |
| 2934 | b->yy_input_file = 0; |
| 2935 | b->yy_n_chars = b->yy_buf_size; |
| 2936 | b->yy_is_interactive = 0; |
| 2937 | b->yy_at_bol = 1; |
| 2938 | b->yy_fill_buffer = 0; |
| 2939 | b->yy_buffer_status = YY_BUFFER_NEW; |
| 2940 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2941 | Upgrade_switch_to_buffer(b ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2942 | |
| 2943 | return b; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2944 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2945 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2946 | /** Setup the input buffer state to scan a string. The next call to Upgradelex() will |
| 2947 | * scan from a @e copy of @a str. |
| 2948 | * @param str a NUL-terminated string to scan |
| 2949 | * |
| 2950 | * @return the newly allocated buffer state object. |
| 2951 | * @note If you want to scan bytes that may contain NUL values, then use |
| 2952 | * Upgrade_scan_bytes() instead. |
| 2953 | */ |
| 2954 | YY_BUFFER_STATE Upgrade_scan_string (yyconst char * yystr ) |
| 2955 | { |
| 2956 | |
| 2957 | return Upgrade_scan_bytes(yystr,strlen(yystr) ); |
| 2958 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2959 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2960 | /** Setup the input buffer state to scan the given bytes. The next call to Upgradelex() will |
| 2961 | * scan from a @e copy of @a bytes. |
| 2962 | * @param bytes the byte buffer to scan |
| 2963 | * @param len the number of bytes in the buffer pointed to by @a bytes. |
| 2964 | * |
| 2965 | * @return the newly allocated buffer state object. |
| 2966 | */ |
| 2967 | YY_BUFFER_STATE Upgrade_scan_bytes (yyconst char * yybytes, int _yybytes_len ) |
| 2968 | { |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2969 | YY_BUFFER_STATE b; |
| 2970 | char *buf; |
| 2971 | yy_size_t n; |
| 2972 | int i; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2973 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2974 | /* Get memory for full buffer, including space for trailing EOB's. */ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2975 | n = _yybytes_len + 2; |
| 2976 | buf = (char *) Upgradealloc(n ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2977 | if ( ! buf ) |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2978 | YY_FATAL_ERROR( "out of dynamic memory in Upgrade_scan_bytes()" ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2979 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2980 | for ( i = 0; i < _yybytes_len; ++i ) |
| 2981 | buf[i] = yybytes[i]; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2982 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2983 | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2984 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2985 | b = Upgrade_scan_buffer(buf,n ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2986 | if ( ! b ) |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2987 | YY_FATAL_ERROR( "bad buffer in Upgrade_scan_bytes()" ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2988 | |
| 2989 | /* It's okay to grow etc. this buffer, and we should throw it |
| 2990 | * away when we're done. |
| 2991 | */ |
| 2992 | b->yy_is_our_buffer = 1; |
| 2993 | |
| 2994 | return b; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 2995 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 2996 | |
| 2997 | #ifndef YY_EXIT_FAILURE |
| 2998 | #define YY_EXIT_FAILURE 2 |
| 2999 | #endif |
| 3000 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3001 | static void yy_fatal_error (yyconst char* msg ) |
| 3002 | { |
| 3003 | (void) fprintf( stderr, "%s\n", msg ); |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3004 | exit( YY_EXIT_FAILURE ); |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3005 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3006 | |
| 3007 | /* Redefine yyless() so it works in section 3 code. */ |
| 3008 | |
| 3009 | #undef yyless |
| 3010 | #define yyless(n) \ |
| 3011 | do \ |
| 3012 | { \ |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3013 | /* Undo effects of setting up Upgradetext. */ \ |
| 3014 | int yyless_macro_arg = (n); \ |
| 3015 | YY_LESS_LINENO(yyless_macro_arg);\ |
| 3016 | Upgradetext[Upgradeleng] = (yy_hold_char); \ |
| 3017 | (yy_c_buf_p) = Upgradetext + yyless_macro_arg; \ |
| 3018 | (yy_hold_char) = *(yy_c_buf_p); \ |
| 3019 | *(yy_c_buf_p) = '\0'; \ |
| 3020 | Upgradeleng = yyless_macro_arg; \ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3021 | } \ |
| 3022 | while ( 0 ) |
| 3023 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3024 | /* Accessor methods (get/set functions) to struct members. */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3025 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3026 | /** Get the current line number. |
| 3027 | * |
| 3028 | */ |
| 3029 | int Upgradeget_lineno (void) |
| 3030 | { |
| 3031 | |
| 3032 | return Upgradelineno; |
| 3033 | } |
| 3034 | |
| 3035 | /** Get the input stream. |
| 3036 | * |
| 3037 | */ |
| 3038 | FILE *Upgradeget_in (void) |
| 3039 | { |
| 3040 | return Upgradein; |
| 3041 | } |
| 3042 | |
| 3043 | /** Get the output stream. |
| 3044 | * |
| 3045 | */ |
| 3046 | FILE *Upgradeget_out (void) |
| 3047 | { |
| 3048 | return Upgradeout; |
| 3049 | } |
| 3050 | |
| 3051 | /** Get the length of the current token. |
| 3052 | * |
| 3053 | */ |
| 3054 | int Upgradeget_leng (void) |
| 3055 | { |
| 3056 | return Upgradeleng; |
| 3057 | } |
| 3058 | |
| 3059 | /** Get the current token. |
| 3060 | * |
| 3061 | */ |
| 3062 | |
| 3063 | char *Upgradeget_text (void) |
| 3064 | { |
| 3065 | return Upgradetext; |
| 3066 | } |
| 3067 | |
| 3068 | /** Set the current line number. |
| 3069 | * @param line_number |
| 3070 | * |
| 3071 | */ |
| 3072 | void Upgradeset_lineno (int line_number ) |
| 3073 | { |
| 3074 | |
| 3075 | Upgradelineno = line_number; |
| 3076 | } |
| 3077 | |
| 3078 | /** Set the input stream. This does not discard the current |
| 3079 | * input buffer. |
| 3080 | * @param in_str A readable stream. |
| 3081 | * |
| 3082 | * @see Upgrade_switch_to_buffer |
| 3083 | */ |
| 3084 | void Upgradeset_in (FILE * in_str ) |
| 3085 | { |
| 3086 | Upgradein = in_str ; |
| 3087 | } |
| 3088 | |
| 3089 | void Upgradeset_out (FILE * out_str ) |
| 3090 | { |
| 3091 | Upgradeout = out_str ; |
| 3092 | } |
| 3093 | |
| 3094 | int Upgradeget_debug (void) |
| 3095 | { |
| 3096 | return Upgrade_flex_debug; |
| 3097 | } |
| 3098 | |
| 3099 | void Upgradeset_debug (int bdebug ) |
| 3100 | { |
| 3101 | Upgrade_flex_debug = bdebug ; |
| 3102 | } |
| 3103 | |
| 3104 | static int yy_init_globals (void) |
| 3105 | { |
| 3106 | /* Initialization is the same as for the non-reentrant scanner. |
| 3107 | * This function is called from Upgradelex_destroy(), so don't allocate here. |
| 3108 | */ |
| 3109 | |
| 3110 | /* We do not touch Upgradelineno unless the option is enabled. */ |
| 3111 | Upgradelineno = 1; |
| 3112 | |
| 3113 | (yy_buffer_stack) = 0; |
| 3114 | (yy_buffer_stack_top) = 0; |
| 3115 | (yy_buffer_stack_max) = 0; |
| 3116 | (yy_c_buf_p) = (char *) 0; |
| 3117 | (yy_init) = 0; |
| 3118 | (yy_start) = 0; |
| 3119 | |
| 3120 | /* Defined in main.c */ |
| 3121 | #ifdef YY_STDINIT |
| 3122 | Upgradein = stdin; |
| 3123 | Upgradeout = stdout; |
| 3124 | #else |
| 3125 | Upgradein = (FILE *) 0; |
| 3126 | Upgradeout = (FILE *) 0; |
| 3127 | #endif |
| 3128 | |
| 3129 | /* For future reference: Set errno on error, since we are called by |
| 3130 | * Upgradelex_init() |
| 3131 | */ |
| 3132 | return 0; |
| 3133 | } |
| 3134 | |
| 3135 | /* Upgradelex_destroy is for both reentrant and non-reentrant scanners. */ |
| 3136 | int Upgradelex_destroy (void) |
| 3137 | { |
| 3138 | |
| 3139 | /* Pop the buffer stack, destroying each element. */ |
| 3140 | while(YY_CURRENT_BUFFER){ |
| 3141 | Upgrade_delete_buffer(YY_CURRENT_BUFFER ); |
| 3142 | YY_CURRENT_BUFFER_LVALUE = NULL; |
| 3143 | Upgradepop_buffer_state(); |
| 3144 | } |
| 3145 | |
| 3146 | /* Destroy the stack itself. */ |
| 3147 | Upgradefree((yy_buffer_stack) ); |
| 3148 | (yy_buffer_stack) = NULL; |
| 3149 | |
| 3150 | /* Reset the globals. This is important in a non-reentrant scanner so the next time |
| 3151 | * Upgradelex() is called, initialization will occur. */ |
| 3152 | yy_init_globals( ); |
| 3153 | |
| 3154 | return 0; |
| 3155 | } |
| 3156 | |
| 3157 | /* |
| 3158 | * Internal utility routines. |
| 3159 | */ |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3160 | |
| 3161 | #ifndef yytext_ptr |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3162 | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) |
| 3163 | { |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3164 | register int i; |
| 3165 | for ( i = 0; i < n; ++i ) |
| 3166 | s1[i] = s2[i]; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3167 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3168 | #endif |
| 3169 | |
| 3170 | #ifdef YY_NEED_STRLEN |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3171 | static int yy_flex_strlen (yyconst char * s ) |
| 3172 | { |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3173 | register int n; |
| 3174 | for ( n = 0; s[n]; ++n ) |
| 3175 | ; |
| 3176 | |
| 3177 | return n; |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3178 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3179 | #endif |
| 3180 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3181 | void *Upgradealloc (yy_size_t size ) |
| 3182 | { |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3183 | return (void *) malloc( size ); |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3184 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3185 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3186 | void *Upgraderealloc (void * ptr, yy_size_t size ) |
| 3187 | { |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3188 | /* The cast to (char *) in the following accommodates both |
| 3189 | * implementations that use char* generic pointers, and those |
| 3190 | * that use void* generic pointers. It works with the latter |
| 3191 | * because both ANSI C and C++ allow castless assignment from |
| 3192 | * any pointer type to void*, and deal with argument conversions |
| 3193 | * as though doing an assignment. |
| 3194 | */ |
| 3195 | return (void *) realloc( (char *) ptr, size ); |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3196 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3197 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3198 | void Upgradefree (void * ptr ) |
| 3199 | { |
| 3200 | free( (char *) ptr ); /* see Upgraderealloc() for (char *) cast */ |
| 3201 | } |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3202 | |
Anton Korobeynikov | 9adeaa2 | 2007-01-28 13:37:39 +0000 | [diff] [blame^] | 3203 | #define YYTABLES_NAME "yytables" |
| 3204 | |
| 3205 | #line 416 "/home/asl/proj/llvm/src/tools/llvm-upgrade/UpgradeLexer.l" |
| 3206 | |
| 3207 | |
Reid Spencer | e7c3c60 | 2006-11-30 06:36:44 +0000 | [diff] [blame] | 3208 | |