blob: 68ae9a47c5a2dc2bcf34d1a5b75dd3635c0bcf91 [file] [log] [blame]
Reid Spencer832254e2007-02-02 02:16:23 +00001#define yy_create_buffer Upgrade_create_buffer
2#define yy_delete_buffer Upgrade_delete_buffer
3#define yy_scan_buffer Upgrade_scan_buffer
4#define yy_scan_string Upgrade_scan_string
5#define yy_scan_bytes Upgrade_scan_bytes
6#define yy_flex_debug Upgrade_flex_debug
7#define yy_init_buffer Upgrade_init_buffer
8#define yy_flush_buffer Upgrade_flush_buffer
9#define yy_load_buffer_state Upgrade_load_buffer_state
10#define yy_switch_to_buffer Upgrade_switch_to_buffer
11#define yyin Upgradein
12#define yyleng Upgradeleng
13#define yylex Upgradelex
14#define yyout Upgradeout
15#define yyrestart Upgraderestart
16#define yytext Upgradetext
17#define yylineno Upgradelineno
Reid Spencere7c3c602006-11-30 06:36:44 +000018
Reid Spencer832254e2007-02-02 02:16:23 +000019#line 20 "UpgradeLexer.cpp"
20/* A lexical scanner generated by flex*/
Reid Spencere7c3c602006-11-30 06:36:44 +000021
Reid Spencer832254e2007-02-02 02:16:23 +000022/* Scanner skeleton version:
23 * $Header$
24 */
Reid Spencere7c3c602006-11-30 06:36:44 +000025
26#define FLEX_SCANNER
27#define YY_FLEX_MAJOR_VERSION 2
28#define YY_FLEX_MINOR_VERSION 5
29
30#include <stdio.h>
Reid Spencer832254e2007-02-02 02:16:23 +000031#include <unistd.h>
Reid Spencere7c3c602006-11-30 06:36:44 +000032
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +000033
Reid Spencer832254e2007-02-02 02:16:23 +000034/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
35#ifdef c_plusplus
36#ifndef __cplusplus
37#define __cplusplus
38#endif
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +000039#endif
40
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +000041
42#ifdef __cplusplus
Reid Spencere7c3c602006-11-30 06:36:44 +000043
Reid Spencer832254e2007-02-02 02:16:23 +000044#include <stdlib.h>
45
46/* Use prototypes in function declarations. */
47#define YY_USE_PROTOS
48
Reid Spencere7c3c602006-11-30 06:36:44 +000049/* The "const" storage-class-modifier is valid. */
50#define YY_USE_CONST
51
52#else /* ! __cplusplus */
53
54#if __STDC__
55
Reid Spencer832254e2007-02-02 02:16:23 +000056#define YY_USE_PROTOS
Reid Spencere7c3c602006-11-30 06:36:44 +000057#define YY_USE_CONST
58
59#endif /* __STDC__ */
60#endif /* ! __cplusplus */
61
Reid Spencer832254e2007-02-02 02:16:23 +000062#ifdef __TURBOC__
63 #pragma warn -rch
64 #pragma warn -use
65#include <io.h>
66#include <stdlib.h>
67#define YY_USE_CONST
68#define YY_USE_PROTOS
69#endif
70
Reid Spencere7c3c602006-11-30 06:36:44 +000071#ifdef YY_USE_CONST
72#define yyconst const
73#else
74#define yyconst
75#endif
76
Reid Spencer832254e2007-02-02 02:16:23 +000077
78#ifdef YY_USE_PROTOS
79#define YY_PROTO(proto) proto
80#else
81#define YY_PROTO(proto) ()
82#endif
83
Reid Spencere7c3c602006-11-30 06:36:44 +000084/* Returned upon end-of-file. */
85#define YY_NULL 0
86
87/* Promotes a possibly negative, possibly signed char to an unsigned
88 * integer for use as an array index. If the signed char is negative,
89 * we want to instead treat it as an 8-bit unsigned char, hence the
90 * double cast.
91 */
92#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
93
94/* Enter a start condition. This macro really ought to take a parameter,
95 * but we do it the disgusting crufty way forced on us by the ()-less
96 * definition of BEGIN.
97 */
Reid Spencer832254e2007-02-02 02:16:23 +000098#define BEGIN yy_start = 1 + 2 *
Reid Spencere7c3c602006-11-30 06:36:44 +000099
100/* Translate the current start state into a value that can be later handed
101 * to BEGIN to return to the state. The YYSTATE alias is for lex
102 * compatibility.
103 */
Reid Spencer832254e2007-02-02 02:16:23 +0000104#define YY_START ((yy_start - 1) / 2)
Reid Spencere7c3c602006-11-30 06:36:44 +0000105#define YYSTATE YY_START
106
107/* Action number for EOF rule of a given start state. */
108#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
109
110/* Special action meaning "start processing a new file". */
Reid Spencer832254e2007-02-02 02:16:23 +0000111#define YY_NEW_FILE yyrestart( yyin )
Reid Spencere7c3c602006-11-30 06:36:44 +0000112
113#define YY_END_OF_BUFFER_CHAR 0
114
115/* Size of default input buffer. */
116#define YY_BUF_SIZE (16384*64)
117
118typedef struct yy_buffer_state *YY_BUFFER_STATE;
119
Reid Spencer832254e2007-02-02 02:16:23 +0000120extern int yyleng;
121extern FILE *yyin, *yyout;
Reid Spencere7c3c602006-11-30 06:36:44 +0000122
123#define EOB_ACT_CONTINUE_SCAN 0
124#define EOB_ACT_END_OF_FILE 1
125#define EOB_ACT_LAST_MATCH 2
126
Reid Spencer832254e2007-02-02 02:16:23 +0000127/* The funky do-while in the following #define is used to turn the definition
128 * int a single C statement (which needs a semi-colon terminator). This
129 * avoids problems with code like:
130 *
131 * if ( condition_holds )
132 * yyless( 5 );
133 * else
134 * do_something_else();
135 *
136 * Prior to using the do-while the compiler would get upset at the
137 * "else" because it interpreted the "if" statement as being all
138 * done when it reached the ';' after the yyless() call.
139 */
140
141/* Return all but the first 'n' matched characters back to the input stream. */
142
Reid Spencere7c3c602006-11-30 06:36:44 +0000143#define yyless(n) \
144 do \
145 { \
Reid Spencer832254e2007-02-02 02:16:23 +0000146 /* Undo effects of setting up yytext. */ \
147 *yy_cp = yy_hold_char; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000148 YY_RESTORE_YY_MORE_OFFSET \
Reid Spencer832254e2007-02-02 02:16:23 +0000149 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
150 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
Reid Spencere7c3c602006-11-30 06:36:44 +0000151 } \
152 while ( 0 )
153
Reid Spencer832254e2007-02-02 02:16:23 +0000154#define unput(c) yyunput( c, yytext_ptr )
155
156/* Some routines like yy_flex_realloc() are emitted as static but are
157 not called by all lexers. This generates warnings in some compilers,
158 notably GCC. Arrange to suppress these. */
159#ifdef __GNUC__
160#define YY_MAY_BE_UNUSED __attribute__((unused))
161#else
162#define YY_MAY_BE_UNUSED
163#endif
Reid Spencere7c3c602006-11-30 06:36:44 +0000164
165/* The following is because we cannot portably get our hands on size_t
166 * (without autoconf's help, which isn't available because we want
167 * flex-generated scanners to compile on their own).
168 */
169typedef unsigned int yy_size_t;
170
Reid Spencer832254e2007-02-02 02:16:23 +0000171
Reid Spencere7c3c602006-11-30 06:36:44 +0000172struct yy_buffer_state
173 {
174 FILE *yy_input_file;
175
176 char *yy_ch_buf; /* input buffer */
177 char *yy_buf_pos; /* current position in input buffer */
178
179 /* Size of input buffer in bytes, not including room for EOB
180 * characters.
181 */
182 yy_size_t yy_buf_size;
183
184 /* Number of characters read into yy_ch_buf, not including EOB
185 * characters.
186 */
187 int yy_n_chars;
188
189 /* Whether we "own" the buffer - i.e., we know we created it,
190 * and can realloc() it to grow it, and should free() it to
191 * delete it.
192 */
193 int yy_is_our_buffer;
194
195 /* Whether this is an "interactive" input source; if so, and
196 * if we're using stdio for input, then we want to use getc()
197 * instead of fread(), to make sure we stop fetching input after
198 * each newline.
199 */
200 int yy_is_interactive;
201
202 /* Whether we're considered to be at the beginning of a line.
203 * If so, '^' rules will be active on the next match, otherwise
204 * not.
205 */
206 int yy_at_bol;
207
208 /* Whether to try to fill the input buffer when we reach the
209 * end of it.
210 */
211 int yy_fill_buffer;
212
213 int yy_buffer_status;
214#define YY_BUFFER_NEW 0
215#define YY_BUFFER_NORMAL 1
216 /* When an EOF's been seen but there's still some text to process
217 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
218 * shouldn't try reading from the input source any more. We might
219 * still have a bunch of tokens to match, though, because of
220 * possible backing-up.
221 *
222 * When we actually see the EOF, we change the status to "new"
Reid Spencer832254e2007-02-02 02:16:23 +0000223 * (via yyrestart()), so that the user can continue scanning by
224 * just pointing yyin at a new input file.
Reid Spencere7c3c602006-11-30 06:36:44 +0000225 */
226#define YY_BUFFER_EOF_PENDING 2
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000227 };
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000228
Reid Spencer832254e2007-02-02 02:16:23 +0000229static YY_BUFFER_STATE yy_current_buffer = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +0000230
231/* We provide macros for accessing buffer states in case in the
232 * future we want to put the buffer states in a more general
233 * "scanner state".
234 */
Reid Spencer832254e2007-02-02 02:16:23 +0000235#define YY_CURRENT_BUFFER yy_current_buffer
Reid Spencere7c3c602006-11-30 06:36:44 +0000236
237
Reid Spencer832254e2007-02-02 02:16:23 +0000238/* yy_hold_char holds the character lost when yytext is formed. */
Reid Spencere7c3c602006-11-30 06:36:44 +0000239static char yy_hold_char;
Reid Spencer832254e2007-02-02 02:16:23 +0000240
Reid Spencere7c3c602006-11-30 06:36:44 +0000241static int yy_n_chars; /* number of characters read into yy_ch_buf */
Reid Spencer832254e2007-02-02 02:16:23 +0000242
243
244int yyleng;
Reid Spencere7c3c602006-11-30 06:36:44 +0000245
246/* Points to current character in buffer. */
247static char *yy_c_buf_p = (char *) 0;
Reid Spencer832254e2007-02-02 02:16:23 +0000248static int yy_init = 1; /* whether we need to initialize */
Reid Spencere7c3c602006-11-30 06:36:44 +0000249static int yy_start = 0; /* start state number */
250
Reid Spencer832254e2007-02-02 02:16:23 +0000251/* Flag which is used to allow yywrap()'s to do buffer switches
252 * instead of setting up a fresh yyin. A bit of a hack ...
Reid Spencere7c3c602006-11-30 06:36:44 +0000253 */
254static int yy_did_buffer_switch_on_eof;
255
Reid Spencer832254e2007-02-02 02:16:23 +0000256void yyrestart YY_PROTO(( FILE *input_file ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000257
Reid Spencer832254e2007-02-02 02:16:23 +0000258void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
259void yy_load_buffer_state YY_PROTO(( void ));
260YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
261void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
262void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
263void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
264#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
Reid Spencere7c3c602006-11-30 06:36:44 +0000265
Reid Spencer832254e2007-02-02 02:16:23 +0000266YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
267YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
268YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000269
Reid Spencer832254e2007-02-02 02:16:23 +0000270static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
271static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED;
272static void yy_flex_free YY_PROTO(( void * ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000273
Reid Spencer832254e2007-02-02 02:16:23 +0000274#define yy_new_buffer yy_create_buffer
Reid Spencere7c3c602006-11-30 06:36:44 +0000275
276#define yy_set_interactive(is_interactive) \
277 { \
Reid Spencer832254e2007-02-02 02:16:23 +0000278 if ( ! yy_current_buffer ) \
279 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
280 yy_current_buffer->yy_is_interactive = is_interactive; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000281 }
282
283#define yy_set_bol(at_bol) \
284 { \
Reid Spencer832254e2007-02-02 02:16:23 +0000285 if ( ! yy_current_buffer ) \
286 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
287 yy_current_buffer->yy_at_bol = at_bol; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000288 }
289
Reid Spencer832254e2007-02-02 02:16:23 +0000290#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
Reid Spencere7c3c602006-11-30 06:36:44 +0000291
292
Reid Spencer832254e2007-02-02 02:16:23 +0000293#define YY_USES_REJECT
294
295#define yywrap() 1
Reid Spencere7c3c602006-11-30 06:36:44 +0000296#define YY_SKIP_YYWRAP
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000297typedef unsigned char YY_CHAR;
Reid Spencer832254e2007-02-02 02:16:23 +0000298FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000299typedef int yy_state_type;
Reid Spencer832254e2007-02-02 02:16:23 +0000300extern int yylineno;
301int yylineno = 1;
302extern char *yytext;
303#define yytext_ptr yytext
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000304
Reid Spencer832254e2007-02-02 02:16:23 +0000305static yy_state_type yy_get_previous_state YY_PROTO(( void ));
306static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
307static int yy_get_next_buffer YY_PROTO(( void ));
308static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000309
310/* Done after the current pattern has been matched and before the
Reid Spencer832254e2007-02-02 02:16:23 +0000311 * corresponding action - sets up yytext.
Reid Spencere7c3c602006-11-30 06:36:44 +0000312 */
313#define YY_DO_BEFORE_ACTION \
Reid Spencer832254e2007-02-02 02:16:23 +0000314 yytext_ptr = yy_bp; \
315 yyleng = (int) (yy_cp - yy_bp); \
316 yy_hold_char = *yy_cp; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000317 *yy_cp = '\0'; \
Reid Spencer832254e2007-02-02 02:16:23 +0000318 yy_c_buf_p = yy_cp;
Reid Spencere7c3c602006-11-30 06:36:44 +0000319
Reid Spencer785a5ae2007-02-08 00:21:40 +0000320#define YY_NUM_RULES 161
321#define YY_END_OF_BUFFER 162
322static yyconst short int yy_acclist[241] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000323 { 0,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000324 162, 160, 161, 159, 160, 161, 159, 161, 160, 161,
325 160, 161, 160, 161, 160, 161, 160, 161, 160, 161,
326 152, 160, 161, 152, 160, 161, 1, 160, 161, 160,
327 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
328 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
329 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
330 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
331 161, 160, 161, 151, 149, 148, 148, 155, 153, 157,
332 152, 1, 134, 41, 94, 62, 50, 95, 80, 23,
333 151, 148, 148, 156, 157, 20, 157, 158, 68, 79,
Reid Spencere7c3c602006-11-30 06:36:44 +0000334
Reid Spencer785a5ae2007-02-08 00:21:40 +0000335 39, 34, 42, 71, 3, 53, 56, 59, 54, 70,
336 25, 104, 109, 107, 108, 106, 105, 110, 114, 75,
337 133, 99, 97, 88, 89, 98, 96, 69, 112, 103,
338 101, 102, 100, 113, 111, 81, 150, 157, 157, 91,
339 61, 115, 116, 93, 74, 141, 78, 92, 142, 57,
340 90, 22, 154, 73, 119, 77, 26, 4, 66, 72,
341 55, 76, 60, 11, 118, 157, 36, 2, 5, 63,
342 121, 65, 48, 83, 87, 85, 86, 84, 82, 51,
343 143, 117, 49, 58, 21, 131, 140, 45, 64, 30,
344 24, 44, 123, 122, 7, 136, 33, 139, 38, 67,
Reid Spencere7c3c602006-11-30 06:36:44 +0000345
Reid Spencer785a5ae2007-02-08 00:21:40 +0000346 129, 125, 135, 27, 28, 124, 137, 52, 132, 130,
347 128, 43, 6, 29, 120, 37, 8, 17, 9, 127,
348 10, 126, 35, 12, 14, 13, 32, 40, 15, 31,
349 138, 144, 146, 147, 16, 46, 145, 18, 47, 19
Reid Spencere7c3c602006-11-30 06:36:44 +0000350 } ;
351
Reid Spencer785a5ae2007-02-08 00:21:40 +0000352static yyconst short int yy_accept[621] =
Reid Spencer832254e2007-02-02 02:16:23 +0000353 { 0,
354 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
355 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
356 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000357 60, 62, 64, 66, 68, 70, 72, 74, 74, 75,
358 75, 76, 77, 78, 79, 79, 80, 80, 81, 82,
Reid Spencer832254e2007-02-02 02:16:23 +0000359 82, 83, 83, 83, 83, 83, 83, 83, 83, 83,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000360 83, 84, 84, 85, 85, 85, 85, 85, 85, 85,
361 85, 85, 86, 86, 86, 86, 86, 86, 86, 86,
362 86, 86, 87, 87, 87, 88, 88, 88, 88, 88,
363 88, 88, 88, 88, 88, 88, 89, 89, 89, 89,
Reid Spencer832254e2007-02-02 02:16:23 +0000364
Reid Spencer785a5ae2007-02-08 00:21:40 +0000365 89, 89, 89, 89, 90, 90, 90, 90, 90, 90,
366 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
367 90, 90, 91, 91, 91, 91, 91, 91, 91, 91,
368 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
369 92, 93, 95, 96, 97, 98, 98, 99, 99, 100,
370 100, 100, 101, 101, 101, 102, 102, 103, 103, 103,
371 103, 103, 104, 104, 104, 104, 104, 104, 104, 105,
372 105, 105, 106, 106, 106, 106, 106, 106, 106, 106,
373 106, 106, 106, 106, 106, 107, 108, 109, 109, 109,
374 109, 110, 110, 110, 110, 110, 110, 110, 110, 110,
Reid Spencer832254e2007-02-02 02:16:23 +0000375
Reid Spencer785a5ae2007-02-08 00:21:40 +0000376 110, 111, 112, 112, 113, 114, 115, 116, 117, 118,
377 118, 119, 120, 120, 120, 121, 122, 122, 122, 122,
378 122, 122, 122, 122, 123, 124, 125, 125, 126, 126,
379 126, 126, 127, 128, 128, 128, 129, 129, 129, 129,
380 129, 129, 129, 129, 129, 130, 131, 132, 132, 132,
381 133, 133, 134, 134, 135, 135, 136, 136, 136, 136,
382 136, 136, 136, 136, 136, 136, 136, 136, 137, 137,
383 137, 138, 139, 139, 139, 139, 140, 140, 140, 140,
384 141, 141, 141, 142, 143, 144, 144, 144, 144, 144,
385 144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
Reid Spencer832254e2007-02-02 02:16:23 +0000386
Reid Spencer785a5ae2007-02-08 00:21:40 +0000387 144, 145, 146, 146, 146, 146, 146, 147, 148, 148,
388 148, 149, 149, 149, 149, 149, 149, 149, 149, 149,
389 150, 151, 152, 152, 152, 153, 153, 153, 153, 154,
390 154, 155, 155, 155, 155, 155, 155, 155, 156, 156,
391 156, 156, 156, 157, 157, 157, 158, 158, 158, 159,
392 159, 160, 160, 161, 162, 162, 162, 162, 162, 162,
393 162, 163, 163, 163, 163, 163, 164, 164, 165, 165,
394 165, 166, 167, 168, 168, 168, 169, 169, 169, 169,
395 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
396 169, 170, 170, 171, 172, 172, 172, 172, 172, 172,
Reid Spencer832254e2007-02-02 02:16:23 +0000397
Reid Spencer785a5ae2007-02-08 00:21:40 +0000398 172, 172, 172, 172, 172, 173, 173, 173, 173, 173,
399 173, 173, 173, 174, 174, 174, 175, 176, 177, 178,
400 179, 180, 181, 181, 181, 181, 182, 182, 182, 182,
401 183, 184, 184, 185, 186, 186, 186, 186, 186, 186,
402 187, 187, 187, 187, 187, 187, 188, 188, 188, 189,
403 189, 189, 189, 189, 189, 189, 189, 190, 191, 192,
404 192, 192, 193, 194, 195, 195, 195, 196, 196, 196,
405 196, 196, 197, 197, 198, 199, 200, 201, 201, 201,
406 201, 202, 202, 202, 203, 204, 205, 206, 207, 207,
407 207, 208, 209, 210, 211, 211, 211, 211, 211, 211,
Reid Spencer832254e2007-02-02 02:16:23 +0000408
Reid Spencer785a5ae2007-02-08 00:21:40 +0000409 212, 212, 213, 213, 214, 215, 215, 215, 215, 215,
410 215, 216, 216, 216, 216, 216, 216, 216, 216, 216,
411 217, 217, 217, 217, 217, 217, 217, 217, 217, 217,
412 218, 218, 218, 218, 218, 219, 219, 219, 219, 219,
413 220, 221, 222, 222, 223, 223, 223, 223, 223, 224,
414 224, 224, 224, 225, 225, 226, 227, 227, 227, 227,
415 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
416 228, 228, 228, 228, 228, 228, 228, 228, 229, 229,
417 229, 229, 229, 229, 230, 230, 230, 230, 230, 231,
418 231, 231, 232, 232, 232, 232, 232, 232, 232, 232,
Reid Spencer832254e2007-02-02 02:16:23 +0000419
Reid Spencer785a5ae2007-02-08 00:21:40 +0000420 232, 232, 232, 232, 232, 232, 233, 233, 234, 235,
421 236, 236, 237, 237, 238, 239, 240, 240, 241, 241
Reid Spencer832254e2007-02-02 02:16:23 +0000422 } ;
423
424static yyconst int yy_ec[256] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000425 { 0,
426 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
427 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
428 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
429 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000430 1, 1, 7, 1, 8, 9, 1, 10, 11, 12,
431 13, 14, 15, 16, 15, 17, 15, 18, 19, 1,
432 1, 1, 1, 20, 21, 21, 21, 21, 22, 21,
Reid Spencere7c3c602006-11-30 06:36:44 +0000433 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
434 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000435 1, 1, 1, 1, 23, 1, 24, 25, 26, 27,
Reid Spencere7c3c602006-11-30 06:36:44 +0000436
Reid Spencer785a5ae2007-02-08 00:21:40 +0000437 28, 29, 30, 31, 32, 5, 33, 34, 35, 36,
438 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
439 47, 48, 1, 1, 1, 1, 1, 1, 1, 1,
Reid Spencere7c3c602006-11-30 06:36:44 +0000440 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
441 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
442 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
443 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
444 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
445 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
446 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
447
448 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
452 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
453 1, 1, 1, 1, 1
454 } ;
455
Reid Spencer785a5ae2007-02-08 00:21:40 +0000456static yyconst int yy_meta[49] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000457 { 0,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000458 1, 1, 2, 1, 3, 1, 4, 5, 3, 6,
459 6, 6, 6, 6, 6, 6, 6, 7, 1, 1,
460 3, 8, 3, 3, 3, 3, 3, 8, 3, 3,
Reid Spencere7c3c602006-11-30 06:36:44 +0000461 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000462 3, 3, 3, 3, 3, 3, 3, 3
Reid Spencere7c3c602006-11-30 06:36:44 +0000463 } ;
464
Reid Spencer785a5ae2007-02-08 00:21:40 +0000465static yyconst short int yy_base[630] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000466 { 0,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000467 0, 0, 1336, 1337, 1337, 1337, 1331, 1316, 41, 0,
468 49, 59, 69, 1287, 0, 112, 69, 72, 93, 113,
469 52, 122, 74, 152, 120, 77, 136, 156, 135, 71,
470 187, 186, 224, 118, 115, 56, 153, 1328, 1337, 1313,
471 1337, 0, 256, 0, 1321, 1320, 88, 264, 1282, 283,
472 0, 1323, 140, 157, 158, 121, 164, 183, 198, 32,
473 1308, 190, 95, 175, 54, 165, 217, 162, 117, 182,
474 218, 1307, 220, 272, 185, 100, 204, 219, 235, 241,
475 264, 232, 273, 57, 1306, 284, 285, 296, 297, 299,
476 300, 226, 298, 302, 308, 1305, 303, 309, 307, 316,
Reid Spencere7c3c602006-11-30 06:36:44 +0000477
Reid Spencer785a5ae2007-02-08 00:21:40 +0000478 321, 329, 330, 332, 333, 334, 313, 337, 310, 315,
479 342, 343, 350, 353, 346, 352, 358, 363, 357, 365,
480 366, 1304, 373, 377, 381, 385, 383, 384, 389, 390,
481 402, 386, 392, 417, 418, 395, 271, 393, 403, 1303,
482 0, 0, 416, 1302, 0, 447, 0, 1315, 1300, 438,
483 428, 1299, 448, 427, 1298, 419, 1297, 451, 452, 453,
484 406, 1296, 454, 455, 456, 461, 457, 460, 1295, 465,
485 464, 470, 462, 477, 474, 480, 481, 482, 483, 485,
486 488, 486, 490, 491, 1294, 1293, 1292, 492, 493, 495,
487 506, 502, 514, 511, 494, 519, 515, 517, 520, 522,
Reid Spencere7c3c602006-11-30 06:36:44 +0000488
Reid Spencer785a5ae2007-02-08 00:21:40 +0000489 1291, 1290, 525, 1289, 1288, 1287, 1286, 1285, 1284, 523,
490 1283, 1282, 531, 529, 1281, 1280, 562, 538, 537, 540,
491 532, 567, 550, 1279, 1278, 1277, 575, 1276, 534, 533,
492 576, 1275, 1274, 535, 578, 1273, 580, 582, 581, 586,
493 584, 589, 587, 588, 1272, 1271, 1270, 591, 590, 1269,
494 592, 1268, 603, 1267, 601, 1266, 607, 608, 612, 605,
495 620, 596, 621, 616, 627, 623, 546, 1265, 628, 630,
496 1337, 630, 646, 652, 654, 656, 632, 648, 637, 1264,
497 639, 652, 1263, 1262, 1261, 651, 649, 653, 660, 661,
498 664, 662, 663, 665, 666, 668, 669, 679, 674, 675,
Reid Spencere7c3c602006-11-30 06:36:44 +0000499
Reid Spencer785a5ae2007-02-08 00:21:40 +0000500 1260, 1259, 670, 671, 682, 686, 1258, 1257, 687, 692,
501 1256, 689, 693, 696, 697, 702, 704, 700, 706, 1255,
502 1254, 1253, 708, 709, 1252, 701, 710, 712, 0, 713,
503 1251, 714, 721, 724, 730, 732, 733, 1250, 735, 736,
504 738, 739, 1249, 741, 744, 1248, 753, 746, 1247, 749,
505 1246, 755, 1245, 1244, 758, 760, 764, 766, 761, 768,
506 1243, 770, 771, 773, 774, 1242, 776, 1241, 778, 777,
507 1240, 0, 1239, 781, 779, 1238, 782, 790, 797, 796,
508 806, 794, 807, 795, 799, 808, 809, 810, 811, 813,
509 1237, 817, 1236, 1235, 822, 823, 820, 830, 826, 824,
Reid Spencere7c3c602006-11-30 06:36:44 +0000510
Reid Spencer785a5ae2007-02-08 00:21:40 +0000511 828, 831, 833, 835, 1234, 832, 844, 839, 846, 848,
512 851, 843, 1233, 855, 859, 1232, 1231, 1230, 1229, 1228,
513 1227, 1226, 860, 862, 864, 1225, 865, 863, 867, 1224,
514 1223, 866, 1222, 1221, 868, 871, 872, 869, 870, 1220,
515 875, 880, 885, 888, 889, 1219, 890, 895, 1218, 896,
516 897, 898, 900, 901, 902, 903, 1217, 1216, 1215, 911,
517 906, 1214, 1213, 1212, 915, 908, 1211, 918, 926, 929,
518 909, 1210, 931, 1209, 1208, 1207, 1206, 920, 932, 934,
519 1205, 937, 938, 1204, 1203, 1202, 1201, 1200, 940, 943,
520 1199, 1198, 1197, 1192, 941, 944, 946, 945, 948, 1181,
Reid Spencere7c3c602006-11-30 06:36:44 +0000521
Reid Spencer785a5ae2007-02-08 00:21:40 +0000522 951, 1178, 953, 1170, 1167, 958, 960, 961, 962, 963,
523 1164, 964, 965, 968, 969, 970, 971, 976, 977, 1158,
524 979, 986, 987, 989, 990, 991, 994, 997, 998, 1146,
525 1003, 1006, 1007, 1004, 1145, 1008, 1009, 1011, 1012, 1144,
526 1142, 1141, 1018, 1140, 1013, 1017, 1020, 1019, 1139, 1029,
527 1033, 1034, 1137, 1016, 1136, 1133, 1038, 1041, 1042, 1043,
528 1045, 1046, 1047, 1050, 1053, 1052, 1054, 1056, 1057, 1131,
529 1058, 1061, 1059, 1064, 1065, 1070, 1069, 1128, 1071, 1077,
530 1081, 1082, 1083, 913, 1084, 1085, 1086, 1089, 784, 1091,
531 1092, 783, 1090, 1095, 1104, 1096, 1105, 1111, 1108, 1112,
Reid Spencer229e9362006-12-02 22:14:11 +0000532
Reid Spencer785a5ae2007-02-08 00:21:40 +0000533 1113, 1115, 1116, 1117, 1119, 737, 1120, 548, 391, 349,
534 1121, 312, 1125, 270, 266, 221, 1126, 184, 1337, 1166,
535 1172, 1178, 192, 1186, 1192, 70, 1200, 1203, 1208
Reid Spencere7c3c602006-11-30 06:36:44 +0000536 } ;
537
Reid Spencer785a5ae2007-02-08 00:21:40 +0000538static yyconst short int yy_def[630] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000539 { 0,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000540 619, 1, 619, 619, 619, 619, 620, 621, 622, 623,
541 621, 621, 11, 13, 624, 622, 621, 621, 621, 621,
542 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
543 621, 621, 621, 621, 621, 621, 621, 620, 619, 621,
544 619, 625, 625, 626, 623, 11, 621, 11, 13, 11,
545 624, 627, 621, 621, 621, 621, 621, 621, 621, 621,
546 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
547 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
548 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
549 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencere7c3c602006-11-30 06:36:44 +0000550
Reid Spencer785a5ae2007-02-08 00:21:40 +0000551 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
552 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
553 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
554 621, 621, 621, 621, 621, 621, 621, 621, 621, 619,
555 625, 43, 628, 621, 48, 11, 50, 627, 621, 621,
556 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
557 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
558 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
559 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
560 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencere7c3c602006-11-30 06:36:44 +0000561
Reid Spencer785a5ae2007-02-08 00:21:40 +0000562 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
563 621, 621, 621, 621, 621, 621, 50, 621, 621, 621,
564 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
565 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
566 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
567 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
568 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
569 619, 628, 629, 629, 146, 146, 621, 621, 621, 621,
570 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
571 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencere7c3c602006-11-30 06:36:44 +0000572
Reid Spencer785a5ae2007-02-08 00:21:40 +0000573 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
574 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
575 621, 621, 621, 621, 621, 621, 621, 621, 217, 621,
576 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
577 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
578 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
579 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
580 621, 274, 621, 621, 621, 621, 621, 621, 621, 621,
581 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
582 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencere7c3c602006-11-30 06:36:44 +0000583
Reid Spencer785a5ae2007-02-08 00:21:40 +0000584 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
585 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
586 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
587 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
588 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
589 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
590 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
591 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
592 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
593 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencere7c3c602006-11-30 06:36:44 +0000594
Reid Spencer785a5ae2007-02-08 00:21:40 +0000595 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
596 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
597 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
598 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
599 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
600 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
601 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
602 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
603 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
604 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencer229e9362006-12-02 22:14:11 +0000605
Reid Spencer785a5ae2007-02-08 00:21:40 +0000606 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
607 621, 621, 621, 621, 621, 621, 621, 621, 0, 619,
608 619, 619, 619, 619, 619, 619, 619, 619, 619
Reid Spencere7c3c602006-11-30 06:36:44 +0000609 } ;
610
Reid Spencer785a5ae2007-02-08 00:21:40 +0000611static yyconst short int yy_nxt[1386] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000612 { 0,
613 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000614 14, 14, 14, 14, 14, 14, 14, 4, 15, 16,
615 8, 8, 8, 17, 18, 19, 20, 21, 22, 23,
616 8, 24, 8, 25, 26, 27, 28, 29, 8, 30,
617 31, 32, 33, 34, 35, 36, 8, 37, 43, 41,
618 44, 44, 44, 44, 44, 44, 44, 44, 46, 46,
619 46, 46, 46, 46, 46, 46, 41, 47, 159, 41,
620 187, 41, 137, 41, 41, 44, 41, 48, 49, 49,
621 49, 49, 49, 49, 49, 49, 41, 71, 41, 41,
622 72, 41, 138, 165, 41, 53, 144, 73, 108, 58,
Reid Spencere7c3c602006-11-30 06:36:44 +0000623
Reid Spencer785a5ae2007-02-08 00:21:40 +0000624 93, 80, 54, 59, 55, 41, 56, 81, 60, 57,
625 41, 61, 41, 94, 50, 52, 62, 41, 63, 95,
626 162, 619, 619, 619, 619, 619, 619, 619, 619, 64,
627 41, 178, 41, 65, 41, 41, 66, 41, 41, 41,
628 67, 134, 136, 89, 68, 74, 69, 75, 76, 70,
629 170, 90, 41, 41, 135, 77, 91, 41, 153, 78,
630 92, 79, 82, 96, 83, 105, 149, 84, 85, 41,
631 41, 106, 97, 41, 41, 41, 107, 86, 98, 41,
632 139, 41, 41, 99, 152, 100, 87, 88, 150, 101,
633 151, 102, 41, 103, 154, 104, 109, 45, 155, 41,
Reid Spencere7c3c602006-11-30 06:36:44 +0000634
Reid Spencer785a5ae2007-02-08 00:21:40 +0000635 41, 41, 41, 41, 41, 169, 166, 41, 163, 121,
636 164, 110, 156, 111, 112, 41, 113, 114, 115, 177,
637 116, 41, 122, 160, 171, 123, 117, 157, 118, 119,
638 161, 120, 124, 109, 41, 41, 41, 41, 41, 158,
639 179, 41, 167, 41, 172, 173, 180, 185, 125, 41,
640 126, 127, 41, 128, 168, 129, 198, 130, 41, 131,
641 181, 174, 182, 132, 133, 142, 142, 142, 142, 142,
642 142, 142, 142, 145, 145, 145, 145, 145, 145, 145,
643 145, 41, 183, 41, 186, 146, 267, 41, 41, 41,
644 41, 146, 147, 147, 147, 147, 147, 147, 147, 147,
Reid Spencere7c3c602006-11-30 06:36:44 +0000645
Reid Spencer785a5ae2007-02-08 00:21:40 +0000646 184, 41, 41, 147, 147, 175, 147, 147, 147, 147,
647 147, 147, 176, 41, 41, 41, 41, 41, 188, 41,
648 41, 193, 189, 196, 41, 41, 41, 41, 200, 41,
649 41, 199, 41, 41, 194, 197, 190, 191, 41, 192,
650 195, 201, 203, 205, 202, 204, 41, 41, 207, 41,
651 41, 41, 214, 210, 41, 217, 209, 206, 211, 41,
652 41, 218, 208, 41, 212, 213, 41, 41, 220, 41,
653 41, 215, 230, 219, 41, 41, 221, 224, 216, 232,
654 41, 236, 41, 41, 222, 234, 226, 231, 223, 227,
655 41, 225, 228, 233, 41, 229, 237, 238, 41, 235,
Reid Spencere7c3c602006-11-30 06:36:44 +0000656
Reid Spencer785a5ae2007-02-08 00:21:40 +0000657 41, 41, 41, 41, 240, 239, 41, 41, 41, 41,
658 41, 246, 41, 259, 242, 241, 244, 250, 266, 41,
659 41, 245, 260, 41, 248, 247, 251, 243, 253, 254,
660 249, 252, 268, 255, 41, 41, 41, 273, 256, 261,
661 262, 257, 269, 273, 41, 41, 258, 285, 270, 264,
662 281, 265, 263, 274, 275, 41, 276, 276, 276, 276,
663 276, 276, 276, 276, 278, 41, 280, 277, 41, 41,
664 41, 41, 41, 41, 41, 279, 282, 41, 41, 41,
665 286, 41, 41, 288, 289, 283, 284, 41, 294, 296,
666 290, 41, 292, 291, 41, 287, 293, 41, 41, 41,
Reid Spencere7c3c602006-11-30 06:36:44 +0000667
Reid Spencer785a5ae2007-02-08 00:21:40 +0000668 41, 295, 41, 41, 297, 41, 303, 41, 41, 41,
669 41, 41, 41, 307, 299, 310, 298, 309, 301, 41,
670 308, 300, 313, 41, 305, 302, 312, 306, 41, 311,
671 304, 41, 41, 314, 41, 319, 41, 41, 316, 41,
672 41, 317, 41, 318, 321, 320, 41, 315, 41, 41,
673 41, 41, 41, 323, 41, 41, 322, 41, 325, 333,
674 341, 326, 340, 41, 324, 41, 327, 41, 369, 343,
675 328, 329, 329, 329, 329, 329, 329, 329, 329, 330,
676 331, 332, 329, 329, 41, 329, 329, 329, 329, 329,
677 329, 338, 41, 41, 334, 41, 335, 41, 41, 41,
Reid Spencere7c3c602006-11-30 06:36:44 +0000678
Reid Spencer785a5ae2007-02-08 00:21:40 +0000679 336, 41, 337, 41, 41, 41, 41, 41, 41, 41,
680 347, 349, 342, 41, 339, 346, 351, 344, 41, 350,
681 41, 345, 41, 348, 41, 41, 355, 356, 352, 41,
682 357, 353, 354, 41, 359, 364, 358, 41, 41, 360,
683 41, 362, 366, 363, 41, 41, 361, 41, 365, 41,
684 367, 273, 274, 274, 41, 368, 41, 273, 619, 619,
685 619, 40, 619, 40, 370, 41, 41, 373, 41, 41,
686 41, 371, 375, 374, 376, 377, 378, 41, 41, 41,
687 41, 41, 41, 41, 382, 41, 41, 41, 41, 387,
688 379, 41, 41, 381, 380, 383, 41, 385, 386, 41,
Reid Spencere7c3c602006-11-30 06:36:44 +0000689
Reid Spencer785a5ae2007-02-08 00:21:40 +0000690 392, 391, 390, 41, 41, 388, 41, 384, 389, 41,
691 41, 393, 394, 41, 41, 399, 400, 41, 41, 41,
692 398, 41, 395, 41, 396, 41, 41, 41, 397, 41,
693 41, 41, 401, 403, 404, 402, 406, 405, 41, 407,
694 413, 41, 409, 410, 408, 414, 415, 41, 412, 41,
695 41, 411, 41, 41, 41, 41, 41, 417, 41, 419,
696 421, 41, 416, 41, 423, 424, 41, 425, 426, 427,
697 41, 418, 41, 420, 430, 41, 422, 41, 41, 429,
698 428, 41, 431, 41, 436, 41, 432, 41, 41, 433,
699 41, 41, 434, 41, 41, 41, 41, 435, 41, 41,
Reid Spencere7c3c602006-11-30 06:36:44 +0000700
Reid Spencer785a5ae2007-02-08 00:21:40 +0000701 41, 41, 440, 437, 446, 447, 443, 41, 445, 438,
702 439, 41, 41, 41, 41, 449, 41, 442, 444, 441,
703 450, 451, 448, 41, 41, 41, 41, 41, 41, 452,
704 41, 454, 455, 453, 41, 457, 456, 41, 461, 41,
705 41, 41, 462, 41, 458, 41, 460, 41, 41, 41,
706 41, 459, 41, 463, 464, 465, 41, 466, 468, 467,
707 41, 41, 472, 41, 475, 41, 470, 473, 41, 469,
708 471, 474, 41, 476, 479, 477, 41, 41, 478, 41,
709 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
710 483, 480, 41, 482, 487, 485, 490, 41, 491, 493,
Reid Spencer78720742006-12-02 20:21:22 +0000711
Reid Spencer785a5ae2007-02-08 00:21:40 +0000712 481, 484, 41, 488, 486, 41, 41, 41, 496, 489,
713 492, 495, 41, 41, 41, 41, 494, 41, 41, 41,
714 41, 499, 502, 41, 498, 41, 41, 504, 41, 497,
715 41, 501, 41, 508, 509, 41, 500, 41, 506, 507,
716 511, 505, 512, 41, 503, 513, 41, 510, 41, 41,
717 516, 41, 515, 514, 41, 41, 517, 41, 41, 518,
718 41, 41, 41, 41, 521, 41, 522, 519, 41, 520,
719 41, 523, 527, 524, 525, 41, 528, 41, 41, 41,
720 41, 41, 41, 529, 526, 41, 41, 41, 41, 531,
721 536, 537, 530, 41, 41, 535, 41, 532, 542, 533,
Reid Spencer78720742006-12-02 20:21:22 +0000722
Reid Spencer785a5ae2007-02-08 00:21:40 +0000723 538, 539, 540, 41, 41, 534, 41, 41, 41, 541,
724 547, 41, 548, 546, 41, 41, 543, 549, 544, 551,
725 41, 41, 545, 41, 41, 41, 41, 553, 41, 41,
726 41, 557, 550, 41, 41, 41, 41, 41, 552, 561,
727 563, 558, 564, 566, 559, 554, 41, 555, 556, 562,
728 41, 41, 560, 565, 567, 41, 568, 570, 41, 41,
729 41, 571, 41, 41, 41, 569, 574, 41, 572, 41,
730 41, 41, 577, 41, 41, 41, 41, 581, 41, 575,
731 583, 41, 41, 573, 579, 580, 41, 41, 41, 582,
732 584, 578, 588, 576, 41, 585, 586, 589, 41, 41,
Reid Spencer78720742006-12-02 20:21:22 +0000733
Reid Spencer785a5ae2007-02-08 00:21:40 +0000734 41, 41, 41, 41, 592, 587, 41, 41, 41, 41,
735 590, 596, 41, 41, 593, 594, 595, 598, 591, 601,
736 603, 41, 41, 602, 599, 41, 597, 600, 41, 41,
737 41, 605, 41, 41, 41, 604, 41, 41, 41, 610,
738 611, 612, 41, 41, 606, 41, 616, 607, 41, 608,
739 41, 609, 617, 41, 41, 615, 41, 41, 41, 41,
740 614, 41, 41, 41, 613, 618, 38, 38, 38, 38,
741 38, 38, 38, 38, 40, 41, 40, 40, 40, 40,
742 42, 41, 42, 42, 41, 42, 51, 41, 51, 51,
743 51, 51, 51, 51, 141, 41, 141, 141, 41, 141,
Reid Spencer229e9362006-12-02 22:14:11 +0000744
Reid Spencer785a5ae2007-02-08 00:21:40 +0000745 148, 148, 148, 148, 148, 148, 148, 148, 272, 41,
746 272, 372, 372, 372, 41, 41, 41, 41, 41, 41,
747 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
748 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
749 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
750 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
751 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
752 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
753 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
754 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
Reid Spencer229e9362006-12-02 22:14:11 +0000755
Reid Spencer785a5ae2007-02-08 00:21:40 +0000756 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
757 41, 41, 41, 41, 41, 41, 41, 41, 39, 41,
758 271, 41, 41, 41, 41, 41, 39, 40, 48, 143,
759 41, 140, 40, 41, 39, 619, 3, 619, 619, 619,
760 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
761 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
762 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
763 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
764 619, 619, 619, 619, 619
Reid Spencere7c3c602006-11-30 06:36:44 +0000765 } ;
766
Reid Spencer785a5ae2007-02-08 00:21:40 +0000767static yyconst short int yy_chk[1386] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000768 { 0,
769 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
770 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
771 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
772 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000773 1, 1, 1, 1, 1, 1, 1, 1, 9, 60,
774 9, 9, 9, 9, 9, 9, 9, 9, 11, 11,
775 11, 11, 11, 11, 11, 11, 11, 12, 60, 21,
776 84, 65, 36, 36, 84, 626, 12, 13, 13, 13,
777 13, 13, 13, 13, 13, 13, 17, 21, 30, 18,
778 21, 23, 36, 65, 26, 17, 47, 21, 30, 18,
Reid Spencere7c3c602006-11-30 06:36:44 +0000779
Reid Spencer785a5ae2007-02-08 00:21:40 +0000780 26, 23, 17, 18, 17, 47, 17, 23, 18, 17,
781 19, 18, 63, 26, 13, 16, 19, 76, 19, 26,
782 63, 16, 16, 16, 16, 16, 16, 16, 16, 19,
783 20, 76, 35, 19, 69, 34, 20, 25, 56, 22,
784 20, 34, 35, 25, 20, 22, 20, 22, 22, 20,
785 69, 25, 29, 27, 34, 22, 25, 53, 56, 22,
786 25, 22, 24, 27, 24, 29, 53, 24, 24, 24,
787 37, 29, 27, 28, 54, 55, 29, 24, 27, 68,
788 37, 57, 66, 28, 55, 28, 24, 24, 54, 28,
789 54, 28, 64, 28, 57, 28, 31, 623, 57, 70,
Reid Spencere7c3c602006-11-30 06:36:44 +0000790
Reid Spencer785a5ae2007-02-08 00:21:40 +0000791 58, 618, 75, 32, 31, 68, 66, 62, 64, 32,
792 64, 31, 58, 31, 31, 59, 31, 31, 31, 75,
793 31, 77, 32, 62, 70, 32, 31, 59, 31, 31,
794 62, 31, 32, 33, 67, 71, 78, 73, 616, 59,
795 77, 33, 67, 92, 71, 73, 78, 82, 33, 82,
796 33, 33, 79, 33, 67, 33, 92, 33, 80, 33,
797 78, 73, 79, 33, 33, 43, 43, 43, 43, 43,
798 43, 43, 43, 48, 48, 48, 48, 48, 48, 48,
799 48, 81, 80, 615, 83, 48, 137, 614, 137, 74,
800 83, 48, 50, 50, 50, 50, 50, 50, 50, 50,
Reid Spencere7c3c602006-11-30 06:36:44 +0000801
Reid Spencer785a5ae2007-02-08 00:21:40 +0000802 81, 86, 87, 50, 50, 74, 50, 50, 50, 50,
803 50, 50, 74, 88, 89, 93, 90, 91, 86, 94,
804 97, 89, 87, 91, 99, 95, 98, 109, 94, 612,
805 107, 93, 110, 100, 90, 91, 88, 88, 101, 88,
806 90, 95, 98, 100, 97, 99, 102, 103, 101, 104,
807 105, 106, 107, 103, 108, 109, 102, 100, 104, 111,
808 112, 110, 101, 115, 105, 106, 610, 113, 112, 116,
809 114, 108, 115, 111, 119, 117, 112, 113, 108, 116,
810 118, 119, 120, 121, 112, 117, 114, 115, 112, 114,
811 123, 113, 114, 116, 124, 114, 120, 121, 125, 118,
Reid Spencere7c3c602006-11-30 06:36:44 +0000812
Reid Spencer785a5ae2007-02-08 00:21:40 +0000813 127, 128, 126, 132, 123, 121, 129, 130, 609, 133,
814 138, 128, 136, 132, 124, 123, 126, 130, 136, 131,
815 139, 127, 133, 161, 129, 128, 130, 125, 131, 131,
816 129, 130, 138, 131, 134, 135, 156, 143, 131, 134,
817 134, 131, 139, 143, 154, 151, 131, 161, 139, 135,
818 156, 135, 134, 146, 146, 150, 146, 146, 146, 146,
819 146, 146, 146, 146, 151, 153, 154, 150, 158, 159,
820 160, 163, 164, 165, 167, 153, 158, 168, 166, 173,
821 163, 171, 170, 165, 166, 159, 160, 172, 171, 173,
822 167, 175, 170, 168, 174, 164, 170, 176, 177, 178,
Reid Spencere7c3c602006-11-30 06:36:44 +0000823
Reid Spencer785a5ae2007-02-08 00:21:40 +0000824 179, 172, 180, 182, 174, 181, 179, 183, 184, 188,
825 189, 195, 190, 182, 175, 184, 174, 183, 177, 192,
826 182, 176, 190, 191, 181, 178, 189, 181, 194, 188,
827 180, 193, 197, 191, 198, 195, 196, 199, 192, 200,
828 210, 193, 203, 194, 197, 196, 214, 191, 213, 221,
829 230, 229, 234, 199, 219, 218, 198, 220, 203, 221,
830 230, 210, 229, 267, 200, 608, 213, 223, 267, 234,
831 214, 217, 217, 217, 217, 217, 217, 217, 217, 218,
832 219, 220, 217, 217, 222, 217, 217, 217, 217, 217,
833 217, 223, 227, 231, 222, 235, 222, 237, 239, 238,
Reid Spencere7c3c602006-11-30 06:36:44 +0000834
Reid Spencer785a5ae2007-02-08 00:21:40 +0000835 222, 241, 222, 240, 243, 244, 242, 249, 248, 251,
836 239, 241, 231, 262, 227, 238, 242, 235, 255, 241,
837 253, 237, 260, 240, 257, 258, 249, 251, 243, 259,
838 253, 244, 248, 264, 257, 262, 255, 261, 263, 258,
839 266, 260, 264, 261, 265, 269, 259, 270, 263, 277,
840 265, 272, 273, 273, 279, 266, 281, 272, 274, 274,
841 275, 275, 276, 276, 269, 278, 287, 277, 286, 282,
842 288, 270, 279, 278, 281, 282, 286, 289, 290, 292,
843 293, 291, 294, 295, 290, 296, 297, 303, 304, 295,
844 287, 299, 300, 289, 288, 291, 298, 293, 294, 305,
Reid Spencere7c3c602006-11-30 06:36:44 +0000845
Reid Spencer785a5ae2007-02-08 00:21:40 +0000846 300, 299, 298, 306, 309, 296, 312, 292, 297, 310,
847 313, 303, 304, 314, 315, 310, 312, 318, 326, 316,
848 309, 317, 305, 319, 305, 323, 324, 327, 306, 328,
849 330, 332, 313, 315, 316, 314, 318, 317, 333, 319,
850 330, 334, 324, 326, 323, 332, 333, 335, 328, 336,
851 337, 327, 339, 340, 606, 341, 342, 335, 344, 336,
852 337, 345, 334, 348, 340, 341, 350, 342, 344, 345,
853 347, 335, 352, 336, 350, 355, 339, 356, 359, 348,
854 347, 357, 352, 358, 359, 360, 355, 362, 363, 356,
855 364, 365, 357, 367, 370, 369, 375, 358, 374, 377,
Reid Spencere7c3c602006-11-30 06:36:44 +0000856
Reid Spencer785a5ae2007-02-08 00:21:40 +0000857 592, 589, 364, 360, 374, 375, 369, 378, 370, 362,
858 363, 382, 384, 380, 379, 378, 385, 367, 369, 365,
859 379, 380, 377, 381, 383, 386, 387, 388, 389, 381,
860 390, 383, 384, 382, 392, 386, 385, 397, 390, 395,
861 396, 400, 392, 399, 387, 401, 389, 398, 402, 406,
862 403, 388, 404, 395, 396, 397, 408, 398, 400, 399,
863 412, 407, 404, 409, 408, 410, 402, 406, 411, 401,
864 403, 407, 414, 409, 412, 410, 415, 423, 411, 424,
865 428, 425, 427, 432, 429, 435, 438, 439, 436, 437,
866 424, 414, 441, 423, 429, 427, 436, 442, 437, 439,
Reid Spencere7c3c602006-11-30 06:36:44 +0000867
Reid Spencer785a5ae2007-02-08 00:21:40 +0000868 415, 425, 443, 432, 428, 444, 445, 447, 443, 435,
869 438, 442, 448, 450, 451, 452, 441, 453, 454, 455,
870 456, 447, 451, 461, 445, 466, 471, 453, 460, 444,
871 584, 450, 465, 460, 460, 468, 448, 478, 455, 456,
872 465, 454, 466, 469, 452, 468, 470, 461, 473, 479,
873 471, 480, 470, 469, 482, 483, 473, 489, 495, 478,
874 490, 496, 498, 497, 482, 499, 483, 479, 501, 480,
875 503, 489, 497, 490, 495, 506, 498, 507, 508, 509,
876 510, 512, 513, 499, 496, 514, 515, 516, 517, 503,
877 510, 512, 501, 518, 519, 509, 521, 506, 517, 507,
Reid Spencere7c3c602006-11-30 06:36:44 +0000878
Reid Spencer785a5ae2007-02-08 00:21:40 +0000879 513, 514, 515, 522, 523, 508, 524, 525, 526, 516,
880 523, 527, 524, 522, 528, 529, 518, 525, 519, 527,
881 531, 534, 521, 532, 533, 536, 537, 529, 538, 539,
882 545, 534, 526, 554, 546, 543, 548, 547, 528, 539,
883 545, 536, 546, 548, 537, 531, 550, 532, 533, 543,
884 551, 552, 538, 547, 550, 557, 551, 554, 558, 559,
885 560, 557, 561, 562, 563, 552, 560, 564, 558, 566,
886 565, 567, 563, 568, 569, 571, 573, 567, 572, 561,
887 569, 574, 575, 559, 565, 566, 577, 576, 579, 568,
888 571, 564, 575, 562, 580, 572, 573, 576, 581, 582,
Reid Spencere7c3c602006-11-30 06:36:44 +0000889
Reid Spencer785a5ae2007-02-08 00:21:40 +0000890 583, 585, 586, 587, 580, 574, 588, 593, 590, 591,
891 577, 585, 594, 596, 581, 582, 583, 587, 579, 591,
892 594, 595, 597, 593, 588, 599, 586, 590, 598, 600,
893 601, 596, 602, 603, 604, 595, 605, 607, 611, 601,
894 602, 603, 613, 617, 597, 578, 611, 598, 570, 599,
895 556, 600, 613, 555, 553, 607, 549, 544, 542, 541,
896 605, 540, 535, 530, 604, 617, 620, 620, 620, 620,
897 620, 620, 620, 620, 621, 520, 621, 621, 621, 621,
898 622, 511, 622, 622, 505, 622, 624, 504, 624, 624,
899 624, 624, 624, 624, 625, 502, 625, 625, 500, 625,
Reid Spencerfcb5df82006-12-01 22:34:43 +0000900
Reid Spencer785a5ae2007-02-08 00:21:40 +0000901 627, 627, 627, 627, 627, 627, 627, 627, 628, 494,
902 628, 629, 629, 629, 493, 492, 491, 488, 487, 486,
903 485, 484, 481, 477, 476, 475, 474, 472, 467, 464,
904 463, 462, 459, 458, 457, 449, 446, 440, 434, 433,
905 431, 430, 426, 422, 421, 420, 419, 418, 417, 416,
906 413, 405, 394, 393, 391, 376, 373, 371, 368, 366,
907 361, 354, 353, 351, 349, 346, 343, 338, 331, 325,
908 322, 321, 320, 311, 308, 307, 302, 301, 285, 284,
909 283, 280, 268, 256, 254, 252, 250, 247, 246, 245,
910 236, 233, 232, 228, 226, 225, 224, 216, 215, 212,
Reid Spencer229e9362006-12-02 22:14:11 +0000911
Reid Spencer785a5ae2007-02-08 00:21:40 +0000912 211, 209, 208, 207, 206, 205, 204, 202, 201, 187,
913 186, 185, 169, 162, 157, 155, 152, 149, 148, 144,
914 140, 122, 96, 85, 72, 61, 52, 49, 46, 45,
915 40, 38, 14, 8, 7, 3, 619, 619, 619, 619,
916 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
917 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
918 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
919 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
920 619, 619, 619, 619, 619
Reid Spencere7c3c602006-11-30 06:36:44 +0000921 } ;
922
Reid Spencer832254e2007-02-02 02:16:23 +0000923static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
924static char *yy_full_match;
925static int yy_lp;
926#define REJECT \
927{ \
928*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
929yy_cp = yy_full_match; /* restore poss. backed-over text */ \
930++yy_lp; \
931goto find_rule; \
932}
Reid Spencere7c3c602006-11-30 06:36:44 +0000933#define yymore() yymore_used_but_not_detected
934#define YY_MORE_ADJ 0
935#define YY_RESTORE_YY_MORE_OFFSET
Reid Spencer832254e2007-02-02 02:16:23 +0000936char *yytext;
Reid Spencer5eb77c72007-03-15 03:26:42 +0000937#line 1 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +0000938#define INITIAL 0
Reid Spencer96839be2006-11-30 16:50:26 +0000939/*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===//
Reid Spencere7c3c602006-11-30 06:36:44 +0000940//
941// The LLVM Compiler Infrastructure
942//
Reid Spencer96839be2006-11-30 16:50:26 +0000943// This file was developed by Reid Spencer and is distributed under the
944// University of Illinois Open Source License. See LICENSE.TXT for details.
Reid Spencere7c3c602006-11-30 06:36:44 +0000945//
946//===----------------------------------------------------------------------===//
947//
Reid Spencer96839be2006-11-30 16:50:26 +0000948// This file implements the flex scanner for LLVM 1.9 assembly languages files.
Reid Spencere7c3c602006-11-30 06:36:44 +0000949//
950//===----------------------------------------------------------------------===*/
Reid Spencer832254e2007-02-02 02:16:23 +0000951#define YY_NEVER_INTERACTIVE 1
Reid Spencer5eb77c72007-03-15 03:26:42 +0000952#line 28 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer319a7302007-01-05 17:20:02 +0000953#include "UpgradeInternals.h"
Reid Spencer950bf602007-01-26 08:19:09 +0000954#include "llvm/Module.h"
955#include <list>
Reid Spencere7c3c602006-11-30 06:36:44 +0000956#include "UpgradeParser.h"
957#include <cctype>
958#include <cstdlib>
959
Reid Spencer96839be2006-11-30 16:50:26 +0000960#define YY_INPUT(buf,result,max_size) \
961{ \
962 if (LexInput->good() && !LexInput->eof()) { \
963 LexInput->read(buf,max_size); \
964 result = LexInput->gcount(); \
965 } else {\
966 result = YY_NULL; \
967 } \
968}
969
Reid Spencer950bf602007-01-26 08:19:09 +0000970#define YY_NEVER_INTERACTIVE 1
Reid Spencer96839be2006-11-30 16:50:26 +0000971
Reid Spencere7c3c602006-11-30 06:36:44 +0000972// Construct a token value for a non-obsolete token
Reid Spencer950bf602007-01-26 08:19:09 +0000973#define RET_TOK(type, Enum, sym) \
974 Upgradelval.type = Enum; \
Reid Spencere77e35e2006-12-01 20:26:20 +0000975 return sym
976
Reid Spencer950bf602007-01-26 08:19:09 +0000977#define RET_TY(sym,NewTY,sign) \
978 Upgradelval.PrimType.T = NewTY; \
Reid Spencerbb1fd572007-03-21 17:15:50 +0000979 switch (sign) { \
980 case 0: Upgradelval.PrimType.S.makeSignless(); break; \
981 case 1: Upgradelval.PrimType.S.makeUnsigned(); break; \
982 case 2: Upgradelval.PrimType.S.makeSigned(); break; \
983 default: assert(0 && "Invalid sign kind"); break; \
984 }\
Reid Spencere7c3c602006-11-30 06:36:44 +0000985 return sym
986
Reid Spencer950bf602007-01-26 08:19:09 +0000987namespace llvm {
988
989// TODO: All of the static identifiers are figured out by the lexer,
990// these should be hashed to reduce the lexer size
991
992// UnEscapeLexed - Run through the specified buffer and change \xx codes to the
993// appropriate character. If AllowNull is set to false, a \00 value will cause
994// an exception to be thrown.
995//
996// If AllowNull is set to true, the return value of the function points to the
997// last character of the string in memory.
998//
999char *UnEscapeLexed(char *Buffer, bool AllowNull) {
1000 char *BOut = Buffer;
1001 for (char *BIn = Buffer; *BIn; ) {
1002 if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) {
1003 char Tmp = BIn[3]; BIn[3] = 0; // Terminate string
1004 *BOut = (char)strtol(BIn+1, 0, 16); // Convert to number
1005 if (!AllowNull && !*BOut)
1006 error("String literal cannot accept \\00 escape!");
1007
1008 BIn[3] = Tmp; // Restore character
1009 BIn += 3; // Skip over handled chars
1010 ++BOut;
1011 } else {
1012 *BOut++ = *BIn++;
1013 }
1014 }
1015
1016 return BOut;
1017}
1018
1019// atoull - Convert an ascii string of decimal digits into the unsigned long
1020// long representation... this does not have to do input error checking,
1021// because we know that the input will be matched by a suitable regex...
1022//
1023static uint64_t atoull(const char *Buffer) {
1024 uint64_t Result = 0;
1025 for (; *Buffer; Buffer++) {
1026 uint64_t OldRes = Result;
1027 Result *= 10;
1028 Result += *Buffer-'0';
1029 if (Result < OldRes) // Uh, oh, overflow detected!!!
1030 error("constant bigger than 64 bits detected!");
1031 }
1032 return Result;
1033}
1034
1035static uint64_t HexIntToVal(const char *Buffer) {
1036 uint64_t Result = 0;
1037 for (; *Buffer; ++Buffer) {
1038 uint64_t OldRes = Result;
1039 Result *= 16;
1040 char C = *Buffer;
1041 if (C >= '0' && C <= '9')
1042 Result += C-'0';
1043 else if (C >= 'A' && C <= 'F')
1044 Result += C-'A'+10;
1045 else if (C >= 'a' && C <= 'f')
1046 Result += C-'a'+10;
1047
1048 if (Result < OldRes) // Uh, oh, overflow detected!!!
1049 error("constant bigger than 64 bits detected!");
1050 }
1051 return Result;
1052}
1053
1054
1055// HexToFP - Convert the ascii string in hexidecimal format to the floating
1056// point representation of it.
1057//
1058static double HexToFP(const char *Buffer) {
1059 // Behave nicely in the face of C TBAA rules... see:
1060 // http://www.nullstone.com/htmls/category/aliastyp.htm
1061 union {
1062 uint64_t UI;
1063 double FP;
1064 } UIntToFP;
1065 UIntToFP.UI = HexIntToVal(Buffer);
1066
1067 assert(sizeof(double) == sizeof(uint64_t) &&
1068 "Data sizes incompatible on this target!");
1069 return UIntToFP.FP; // Cast Hex constant to double
1070}
1071
1072
1073} // End llvm namespace
1074
1075using namespace llvm;
1076
Reid Spencere7c3c602006-11-30 06:36:44 +00001077/* Comments start with a ; and go till end of line */
1078/* Variable(Value) identifiers start with a % sign */
1079/* Label identifiers end with a colon */
1080/* Quoted names can contain any character except " and \ */
1081/* [PN]Integer: match positive and negative literal integer values that
1082 * are preceeded by a '%' character. These represent unnamed variable slots.
1083 */
1084/* E[PN]Integer: match positive and negative literal integer values */
1085/* FPConstant - A Floating point constant.
1086 */
1087/* HexFPConstant - Floating point constant represented in IEEE format as a
1088 * hexadecimal number for when exponential notation is not precise enough.
1089 */
1090/* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
1091 * it to deal with 64 bit numbers.
1092 */
Reid Spencerbb1fd572007-03-21 17:15:50 +00001093#line 1094 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00001094
1095/* Macros after this point can all be overridden by user definitions in
1096 * section 1.
1097 */
1098
1099#ifndef YY_SKIP_YYWRAP
1100#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001101extern "C" int yywrap YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001102#else
Reid Spencer832254e2007-02-02 02:16:23 +00001103extern int yywrap YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001104#endif
1105#endif
1106
Reid Spencer832254e2007-02-02 02:16:23 +00001107#ifndef YY_NO_UNPUT
1108static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1109#endif
1110
Reid Spencere7c3c602006-11-30 06:36:44 +00001111#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00001112static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001113#endif
1114
1115#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00001116static int yy_flex_strlen YY_PROTO(( yyconst char * ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001117#endif
1118
1119#ifndef YY_NO_INPUT
1120#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001121static int yyinput YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001122#else
Reid Spencer832254e2007-02-02 02:16:23 +00001123static int input YY_PROTO(( void ));
1124#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001125#endif
1126
Reid Spencer832254e2007-02-02 02:16:23 +00001127#if YY_STACK_USED
1128static int yy_start_stack_ptr = 0;
1129static int yy_start_stack_depth = 0;
1130static int *yy_start_stack = 0;
1131#ifndef YY_NO_PUSH_STATE
1132static void yy_push_state YY_PROTO(( int new_state ));
1133#endif
1134#ifndef YY_NO_POP_STATE
1135static void yy_pop_state YY_PROTO(( void ));
1136#endif
1137#ifndef YY_NO_TOP_STATE
1138static int yy_top_state YY_PROTO(( void ));
1139#endif
1140
1141#else
1142#define YY_NO_PUSH_STATE 1
1143#define YY_NO_POP_STATE 1
1144#define YY_NO_TOP_STATE 1
1145#endif
1146
1147#ifdef YY_MALLOC_DECL
1148YY_MALLOC_DECL
1149#else
1150#if __STDC__
1151#ifndef __cplusplus
1152#include <stdlib.h>
1153#endif
1154#else
1155/* Just try to get by without declaring the routines. This will fail
1156 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1157 * or sizeof(void*) != sizeof(int).
1158 */
1159#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001160#endif
1161
1162/* Amount of stuff to slurp up with each read. */
1163#ifndef YY_READ_BUF_SIZE
1164#define YY_READ_BUF_SIZE 8192
1165#endif
1166
1167/* Copy whatever the last rule matched to the standard output. */
Reid Spencer832254e2007-02-02 02:16:23 +00001168
Reid Spencere7c3c602006-11-30 06:36:44 +00001169#ifndef ECHO
1170/* This used to be an fputs(), but since the string might contain NUL's,
1171 * we now use fwrite().
1172 */
Reid Spencer832254e2007-02-02 02:16:23 +00001173#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
Reid Spencere7c3c602006-11-30 06:36:44 +00001174#endif
1175
1176/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1177 * is returned in "result".
1178 */
1179#ifndef YY_INPUT
1180#define YY_INPUT(buf,result,max_size) \
Reid Spencer832254e2007-02-02 02:16:23 +00001181 if ( yy_current_buffer->yy_is_interactive ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001182 { \
Reid Spencer832254e2007-02-02 02:16:23 +00001183 int c = '*', n; \
Reid Spencere7c3c602006-11-30 06:36:44 +00001184 for ( n = 0; n < max_size && \
Reid Spencer832254e2007-02-02 02:16:23 +00001185 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001186 buf[n] = (char) c; \
1187 if ( c == '\n' ) \
1188 buf[n++] = (char) c; \
Reid Spencer832254e2007-02-02 02:16:23 +00001189 if ( c == EOF && ferror( yyin ) ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001190 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1191 result = n; \
1192 } \
Reid Spencer832254e2007-02-02 02:16:23 +00001193 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1194 && ferror( yyin ) ) \
1195 YY_FATAL_ERROR( "input in flex scanner failed" );
Reid Spencere7c3c602006-11-30 06:36:44 +00001196#endif
1197
1198/* No semi-colon after return; correct usage is to write "yyterminate();" -
1199 * we don't want an extra ';' after the "return" because that will cause
1200 * some compilers to complain about unreachable statements.
1201 */
1202#ifndef yyterminate
1203#define yyterminate() return YY_NULL
1204#endif
1205
1206/* Number of entries by which start-condition stack grows. */
1207#ifndef YY_START_STACK_INCR
1208#define YY_START_STACK_INCR 25
1209#endif
1210
1211/* Report a fatal error. */
1212#ifndef YY_FATAL_ERROR
1213#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1214#endif
1215
1216/* Default declaration of generated scanner - a define so the user can
1217 * easily add parameters.
1218 */
1219#ifndef YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001220#define YY_DECL int yylex YY_PROTO(( void ))
1221#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001222
Reid Spencer832254e2007-02-02 02:16:23 +00001223/* Code executed at the beginning of each rule, after yytext and yyleng
Reid Spencere7c3c602006-11-30 06:36:44 +00001224 * have been set up.
1225 */
1226#ifndef YY_USER_ACTION
1227#define YY_USER_ACTION
1228#endif
1229
1230/* Code executed at the end of each rule. */
1231#ifndef YY_BREAK
1232#define YY_BREAK break;
1233#endif
1234
1235#define YY_RULE_SETUP \
1236 YY_USER_ACTION
1237
1238YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001239 {
Reid Spencere7c3c602006-11-30 06:36:44 +00001240 register yy_state_type yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00001241 register char *yy_cp = NULL, *yy_bp = NULL;
Reid Spencere7c3c602006-11-30 06:36:44 +00001242 register int yy_act;
Reid Spencer832254e2007-02-02 02:16:23 +00001243
Reid Spencerbb1fd572007-03-21 17:15:50 +00001244#line 194 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001245
1246
Reid Spencerbb1fd572007-03-21 17:15:50 +00001247#line 1248 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00001248
Reid Spencer832254e2007-02-02 02:16:23 +00001249 if ( yy_init )
Reid Spencere7c3c602006-11-30 06:36:44 +00001250 {
Reid Spencer832254e2007-02-02 02:16:23 +00001251 yy_init = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00001252
1253#ifdef YY_USER_INIT
1254 YY_USER_INIT;
1255#endif
1256
Reid Spencer832254e2007-02-02 02:16:23 +00001257 if ( ! yy_start )
1258 yy_start = 1; /* first start state */
Reid Spencere7c3c602006-11-30 06:36:44 +00001259
Reid Spencer832254e2007-02-02 02:16:23 +00001260 if ( ! yyin )
1261 yyin = stdin;
Reid Spencere7c3c602006-11-30 06:36:44 +00001262
Reid Spencer832254e2007-02-02 02:16:23 +00001263 if ( ! yyout )
1264 yyout = stdout;
Reid Spencere7c3c602006-11-30 06:36:44 +00001265
Reid Spencer832254e2007-02-02 02:16:23 +00001266 if ( ! yy_current_buffer )
1267 yy_current_buffer =
1268 yy_create_buffer( yyin, YY_BUF_SIZE );
Reid Spencere7c3c602006-11-30 06:36:44 +00001269
Reid Spencer832254e2007-02-02 02:16:23 +00001270 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00001271 }
1272
1273 while ( 1 ) /* loops until end-of-file is reached */
1274 {
Reid Spencer832254e2007-02-02 02:16:23 +00001275 yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00001276
Reid Spencer832254e2007-02-02 02:16:23 +00001277 /* Support of yytext. */
1278 *yy_cp = yy_hold_char;
Reid Spencere7c3c602006-11-30 06:36:44 +00001279
1280 /* yy_bp points to the position in yy_ch_buf of the start of
1281 * the current run.
1282 */
1283 yy_bp = yy_cp;
1284
Reid Spencer832254e2007-02-02 02:16:23 +00001285 yy_current_state = yy_start;
1286 yy_state_ptr = yy_state_buf;
1287 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00001288yy_match:
1289 do
1290 {
1291 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1292 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1293 {
1294 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer785a5ae2007-02-08 00:21:40 +00001295 if ( yy_current_state >= 620 )
Reid Spencere7c3c602006-11-30 06:36:44 +00001296 yy_c = yy_meta[(unsigned int) yy_c];
1297 }
1298 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00001299 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00001300 ++yy_cp;
1301 }
Reid Spencer785a5ae2007-02-08 00:21:40 +00001302 while ( yy_current_state != 619 );
Reid Spencere7c3c602006-11-30 06:36:44 +00001303
1304yy_find_action:
Reid Spencer832254e2007-02-02 02:16:23 +00001305 yy_current_state = *--yy_state_ptr;
1306 yy_lp = yy_accept[yy_current_state];
1307find_rule: /* we branch to this label when backing up */
1308 for ( ; ; ) /* until we find what rule we matched */
1309 {
1310 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1311 {
1312 yy_act = yy_acclist[yy_lp];
1313 {
1314 yy_full_match = yy_cp;
1315 break;
1316 }
1317 }
1318 --yy_cp;
1319 yy_current_state = *--yy_state_ptr;
1320 yy_lp = yy_accept[yy_current_state];
1321 }
Reid Spencere7c3c602006-11-30 06:36:44 +00001322
1323 YY_DO_BEFORE_ACTION;
1324
Reid Spencer832254e2007-02-02 02:16:23 +00001325 if ( yy_act != YY_END_OF_BUFFER )
Reid Spencere7c3c602006-11-30 06:36:44 +00001326 {
1327 int yyl;
Reid Spencer832254e2007-02-02 02:16:23 +00001328 for ( yyl = 0; yyl < yyleng; ++yyl )
1329 if ( yytext[yyl] == '\n' )
1330 ++yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00001331 }
1332
1333do_action: /* This label is used only to access EOF actions. */
1334
Reid Spencer832254e2007-02-02 02:16:23 +00001335
Reid Spencere7c3c602006-11-30 06:36:44 +00001336 switch ( yy_act )
1337 { /* beginning of action switch */
1338case 1:
1339YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001340#line 196 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001341{ /* Ignore comments for now */ }
1342 YY_BREAK
1343case 2:
1344YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001345#line 198 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001346{ return BEGINTOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001347 YY_BREAK
1348case 3:
1349YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001350#line 199 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001351{ return ENDTOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001352 YY_BREAK
1353case 4:
1354YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001355#line 200 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001356{ return TRUETOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001357 YY_BREAK
1358case 5:
1359YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001360#line 201 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001361{ return FALSETOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001362 YY_BREAK
1363case 6:
1364YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001365#line 202 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001366{ return DECLARE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001367 YY_BREAK
1368case 7:
1369YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001370#line 203 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001371{ return GLOBAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001372 YY_BREAK
1373case 8:
1374YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001375#line 204 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001376{ return CONSTANT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001377 YY_BREAK
1378case 9:
1379YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001380#line 205 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001381{ return INTERNAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001382 YY_BREAK
1383case 10:
1384YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001385#line 206 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001386{ return LINKONCE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001387 YY_BREAK
1388case 11:
1389YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001390#line 207 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001391{ return WEAK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001392 YY_BREAK
1393case 12:
1394YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001395#line 208 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001396{ return APPENDING; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001397 YY_BREAK
1398case 13:
1399YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001400#line 209 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001401{ return DLLIMPORT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001402 YY_BREAK
1403case 14:
1404YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001405#line 210 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001406{ return DLLEXPORT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001407 YY_BREAK
1408case 15:
1409YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001410#line 211 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001411{ return EXTERN_WEAK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001412 YY_BREAK
1413case 16:
1414YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001415#line 212 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001416{ return EXTERNAL; } /* Deprecated, turn into external */
Reid Spencere7c3c602006-11-30 06:36:44 +00001417 YY_BREAK
1418case 17:
1419YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001420#line 213 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001421{ return EXTERNAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001422 YY_BREAK
1423case 18:
1424YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001425#line 214 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001426{ return IMPLEMENTATION; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001427 YY_BREAK
1428case 19:
1429YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001430#line 215 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001431{ return ZEROINITIALIZER; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001432 YY_BREAK
1433case 20:
1434YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001435#line 216 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001436{ return DOTDOTDOT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001437 YY_BREAK
1438case 21:
1439YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001440#line 217 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001441{ return UNDEF; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001442 YY_BREAK
1443case 22:
1444YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001445#line 218 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001446{ return NULL_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001447 YY_BREAK
1448case 23:
1449YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001450#line 219 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001451{ return TO; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001452 YY_BREAK
1453case 24:
1454YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001455#line 220 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001456{ return EXCEPT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001457 YY_BREAK
1458case 25:
1459YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001460#line 221 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001461{ return NOT; } /* Deprecated, turned into XOR */
Reid Spencere7c3c602006-11-30 06:36:44 +00001462 YY_BREAK
1463case 26:
1464YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001465#line 222 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001466{ return TAIL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001467 YY_BREAK
1468case 27:
1469YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001470#line 223 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001471{ return TARGET; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001472 YY_BREAK
1473case 28:
1474YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001475#line 224 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001476{ return TRIPLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001477 YY_BREAK
1478case 29:
1479YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001480#line 225 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001481{ return DEPLIBS; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001482 YY_BREAK
1483case 30:
1484YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001485#line 226 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001486{ return ENDIAN; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001487 YY_BREAK
1488case 31:
1489YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001490#line 227 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001491{ return POINTERSIZE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001492 YY_BREAK
1493case 32:
1494YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001495#line 228 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001496{ return DATALAYOUT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001497 YY_BREAK
1498case 33:
1499YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001500#line 229 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001501{ return LITTLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001502 YY_BREAK
1503case 34:
1504YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001505#line 230 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001506{ return BIG; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001507 YY_BREAK
1508case 35:
1509YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001510#line 231 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001511{ return VOLATILE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001512 YY_BREAK
1513case 36:
1514YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001515#line 232 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001516{ return ALIGN; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001517 YY_BREAK
1518case 37:
1519YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001520#line 233 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001521{ return SECTION; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001522 YY_BREAK
1523case 38:
1524YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001525#line 234 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001526{ return MODULE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001527 YY_BREAK
1528case 39:
1529YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001530#line 235 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001531{ return ASM_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001532 YY_BREAK
1533case 40:
1534YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001535#line 236 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001536{ return SIDEEFFECT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001537 YY_BREAK
1538case 41:
1539YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001540#line 238 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001541{ return CC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001542 YY_BREAK
1543case 42:
1544YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001545#line 239 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001546{ return CCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001547 YY_BREAK
1548case 43:
1549YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001550#line 240 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001551{ return CSRETCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001552 YY_BREAK
1553case 44:
1554YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001555#line 241 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001556{ return FASTCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001557 YY_BREAK
1558case 45:
1559YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001560#line 242 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001561{ return COLDCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001562 YY_BREAK
1563case 46:
1564YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001565#line 243 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001566{ return X86_STDCALLCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001567 YY_BREAK
1568case 47:
1569YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001570#line 244 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001571{ return X86_FASTCALLCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001572 YY_BREAK
1573case 48:
1574YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001575#line 246 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1576{ RET_TY(SBYTE, Type::Int8Ty, 2); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001577 YY_BREAK
1578case 49:
1579YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001580#line 247 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1581{ RET_TY(UBYTE, Type::Int8Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001582 YY_BREAK
1583case 50:
1584YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001585#line 248 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1586{ RET_TY(UBYTE, Type::Int8Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001587 YY_BREAK
1588case 51:
1589YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001590#line 249 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1591{ RET_TY(SHORT, Type::Int16Ty, 2); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001592 YY_BREAK
1593case 52:
1594YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001595#line 250 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1596{ RET_TY(USHORT, Type::Int16Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001597 YY_BREAK
1598case 53:
1599YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001600#line 251 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1601{ RET_TY(USHORT, Type::Int16Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001602 YY_BREAK
1603case 54:
1604YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001605#line 252 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1606{ RET_TY(INT, Type::Int32Ty, 2); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001607 YY_BREAK
1608case 55:
1609YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001610#line 253 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1611{ RET_TY(UINT, Type::Int32Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001612 YY_BREAK
1613case 56:
1614YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001615#line 254 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1616{ RET_TY(UINT, Type::Int32Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001617 YY_BREAK
1618case 57:
1619YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001620#line 255 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1621{ RET_TY(LONG, Type::Int64Ty, 2); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001622 YY_BREAK
1623case 58:
1624YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001625#line 256 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1626{ RET_TY(ULONG, Type::Int64Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001627 YY_BREAK
1628case 59:
1629YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001630#line 257 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1631{ RET_TY(ULONG, Type::Int64Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001632 YY_BREAK
1633case 60:
1634YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001635#line 258 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1636{ RET_TY(VOID, Type::VoidTy, 0); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001637 YY_BREAK
1638case 61:
1639YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001640#line 259 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1641{ RET_TY(BOOL, Type::Int1Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001642 YY_BREAK
1643case 62:
1644YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001645#line 260 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1646{ RET_TY(BOOL, Type::Int1Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001647 YY_BREAK
1648case 63:
1649YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001650#line 261 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1651{ RET_TY(FLOAT, Type::FloatTy, 0); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001652 YY_BREAK
1653case 64:
1654YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001655#line 262 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1656{ RET_TY(DOUBLE, Type::DoubleTy,0); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001657 YY_BREAK
1658case 65:
1659YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001660#line 263 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
1661{ RET_TY(LABEL, Type::LabelTy, 0); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001662 YY_BREAK
1663case 66:
1664YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001665#line 264 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001666{ return TYPE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001667 YY_BREAK
1668case 67:
1669YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001670#line 265 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001671{ return OPAQUE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001672 YY_BREAK
1673case 68:
1674YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001675#line 267 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001676{ RET_TOK(BinaryOpVal, AddOp, ADD); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001677 YY_BREAK
1678case 69:
1679YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001680#line 268 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001681{ RET_TOK(BinaryOpVal, SubOp, SUB); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001682 YY_BREAK
1683case 70:
1684YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001685#line 269 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001686{ RET_TOK(BinaryOpVal, MulOp, MUL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001687 YY_BREAK
1688case 71:
1689YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001690#line 270 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001691{ RET_TOK(BinaryOpVal, DivOp, DIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001692 YY_BREAK
1693case 72:
1694YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001695#line 271 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001696{ RET_TOK(BinaryOpVal, UDivOp, UDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001697 YY_BREAK
1698case 73:
1699YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001700#line 272 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001701{ RET_TOK(BinaryOpVal, SDivOp, SDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001702 YY_BREAK
1703case 74:
1704YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001705#line 273 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001706{ RET_TOK(BinaryOpVal, FDivOp, FDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001707 YY_BREAK
1708case 75:
1709YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001710#line 274 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001711{ RET_TOK(BinaryOpVal, RemOp, REM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001712 YY_BREAK
1713case 76:
1714YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001715#line 275 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001716{ RET_TOK(BinaryOpVal, URemOp, UREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001717 YY_BREAK
1718case 77:
1719YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001720#line 276 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001721{ RET_TOK(BinaryOpVal, SRemOp, SREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001722 YY_BREAK
1723case 78:
1724YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001725#line 277 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001726{ RET_TOK(BinaryOpVal, FRemOp, FREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001727 YY_BREAK
1728case 79:
1729YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001730#line 278 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001731{ RET_TOK(BinaryOpVal, AndOp, AND); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001732 YY_BREAK
1733case 80:
1734YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001735#line 279 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001736{ RET_TOK(BinaryOpVal, OrOp , OR ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001737 YY_BREAK
1738case 81:
1739YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001740#line 280 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001741{ RET_TOK(BinaryOpVal, XorOp, XOR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001742 YY_BREAK
1743case 82:
1744YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001745#line 281 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001746{ RET_TOK(BinaryOpVal, SetNE, SETNE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001747 YY_BREAK
1748case 83:
1749YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001750#line 282 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001751{ RET_TOK(BinaryOpVal, SetEQ, SETEQ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001752 YY_BREAK
1753case 84:
1754YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001755#line 283 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001756{ RET_TOK(BinaryOpVal, SetLT, SETLT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001757 YY_BREAK
1758case 85:
1759YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001760#line 284 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001761{ RET_TOK(BinaryOpVal, SetGT, SETGT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001762 YY_BREAK
1763case 86:
1764YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001765#line 285 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001766{ RET_TOK(BinaryOpVal, SetLE, SETLE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001767 YY_BREAK
1768case 87:
1769YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001770#line 286 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001771{ RET_TOK(BinaryOpVal, SetGE, SETGE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001772 YY_BREAK
1773case 88:
1774YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001775#line 287 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001776{ RET_TOK(BinaryOpVal, ShlOp, SHL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001777 YY_BREAK
1778case 89:
1779YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001780#line 288 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001781{ RET_TOK(BinaryOpVal, ShrOp, SHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001782 YY_BREAK
1783case 90:
1784YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001785#line 289 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001786{ RET_TOK(BinaryOpVal, LShrOp, LSHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001787 YY_BREAK
1788case 91:
1789YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001790#line 290 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001791{ RET_TOK(BinaryOpVal, AShrOp, ASHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001792 YY_BREAK
1793case 92:
1794YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001795#line 292 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001796{ RET_TOK(OtherOpVal, ICmpOp, ICMP); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001797 YY_BREAK
1798case 93:
1799YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001800#line 293 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001801{ RET_TOK(OtherOpVal, FCmpOp, FCMP); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001802 YY_BREAK
1803case 94:
1804YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001805#line 295 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001806{ return EQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001807 YY_BREAK
1808case 95:
1809YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001810#line 296 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001811{ return NE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001812 YY_BREAK
1813case 96:
1814YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001815#line 297 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001816{ return SLT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001817 YY_BREAK
1818case 97:
1819YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001820#line 298 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001821{ return SGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001822 YY_BREAK
1823case 98:
1824YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001825#line 299 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001826{ return SLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001827 YY_BREAK
1828case 99:
1829YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001830#line 300 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001831{ return SGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001832 YY_BREAK
1833case 100:
1834YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001835#line 301 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001836{ return ULT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001837 YY_BREAK
1838case 101:
1839YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001840#line 302 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001841{ return UGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001842 YY_BREAK
1843case 102:
1844YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001845#line 303 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001846{ return ULE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001847 YY_BREAK
1848case 103:
1849YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001850#line 304 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001851{ return UGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001852 YY_BREAK
1853case 104:
1854YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001855#line 305 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001856{ return OEQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001857 YY_BREAK
1858case 105:
1859YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001860#line 306 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001861{ return ONE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001862 YY_BREAK
1863case 106:
1864YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001865#line 307 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001866{ return OLT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001867 YY_BREAK
1868case 107:
1869YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001870#line 308 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001871{ return OGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001872 YY_BREAK
1873case 108:
1874YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001875#line 309 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001876{ return OLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001877 YY_BREAK
1878case 109:
1879YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001880#line 310 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001881{ return OGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001882 YY_BREAK
1883case 110:
1884YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001885#line 311 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001886{ return ORD; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001887 YY_BREAK
1888case 111:
1889YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001890#line 312 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001891{ return UNO; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001892 YY_BREAK
1893case 112:
1894YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001895#line 313 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001896{ return UEQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001897 YY_BREAK
1898case 113:
1899YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001900#line 314 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001901{ return UNE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001902 YY_BREAK
Reid Spencer16244f42006-12-01 21:10:07 +00001903case 114:
1904YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001905#line 316 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001906{ RET_TOK(OtherOpVal, PHIOp, PHI_TOK); }
Reid Spencer16244f42006-12-01 21:10:07 +00001907 YY_BREAK
Reid Spencerf7bde222006-12-01 22:26:37 +00001908case 115:
1909YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001910#line 317 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001911{ RET_TOK(OtherOpVal, CallOp, CALL); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001912 YY_BREAK
1913case 116:
1914YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001915#line 318 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001916{ RET_TOK(CastOpVal, CastOp, CAST); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001917 YY_BREAK
1918case 117:
1919YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001920#line 319 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001921{ RET_TOK(CastOpVal, TruncOp, TRUNC); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001922 YY_BREAK
1923case 118:
1924YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001925#line 320 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001926{ RET_TOK(CastOpVal, ZExtOp , ZEXT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001927 YY_BREAK
1928case 119:
1929YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001930#line 321 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001931{ RET_TOK(CastOpVal, SExtOp, SEXT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001932 YY_BREAK
1933case 120:
1934YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001935#line 322 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001936{ RET_TOK(CastOpVal, FPTruncOp, FPTRUNC); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001937 YY_BREAK
1938case 121:
1939YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001940#line 323 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001941{ RET_TOK(CastOpVal, FPExtOp, FPEXT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001942 YY_BREAK
1943case 122:
1944YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001945#line 324 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001946{ RET_TOK(CastOpVal, FPToUIOp, FPTOUI); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001947 YY_BREAK
1948case 123:
1949YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001950#line 325 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001951{ RET_TOK(CastOpVal, FPToSIOp, FPTOSI); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001952 YY_BREAK
1953case 124:
1954YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001955#line 326 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001956{ RET_TOK(CastOpVal, UIToFPOp, UITOFP); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001957 YY_BREAK
1958case 125:
1959YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001960#line 327 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001961{ RET_TOK(CastOpVal, SIToFPOp, SITOFP); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001962 YY_BREAK
1963case 126:
1964YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001965#line 328 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001966{ RET_TOK(CastOpVal, PtrToIntOp, PTRTOINT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001967 YY_BREAK
1968case 127:
1969YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001970#line 329 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001971{ RET_TOK(CastOpVal, IntToPtrOp, INTTOPTR); }
Reid Spencer78720742006-12-02 20:21:22 +00001972 YY_BREAK
1973case 128:
1974YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001975#line 330 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001976{ RET_TOK(CastOpVal, BitCastOp, BITCAST); }
Reid Spencer229e9362006-12-02 22:14:11 +00001977 YY_BREAK
1978case 129:
1979YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001980#line 331 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001981{ RET_TOK(OtherOpVal, SelectOp, SELECT); }
Reid Spencer229e9362006-12-02 22:14:11 +00001982 YY_BREAK
1983case 130:
1984YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001985#line 332 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001986{ return VANEXT_old; }
Reid Spencer229e9362006-12-02 22:14:11 +00001987 YY_BREAK
1988case 131:
1989YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001990#line 333 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001991{ return VAARG_old; }
Reid Spencer229e9362006-12-02 22:14:11 +00001992 YY_BREAK
1993case 132:
1994YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00001995#line 334 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001996{ RET_TOK(OtherOpVal, VAArg , VAARG); }
Reid Spencer229e9362006-12-02 22:14:11 +00001997 YY_BREAK
1998case 133:
1999YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002000#line 335 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002001{ RET_TOK(TermOpVal, RetOp, RET); }
Reid Spencer229e9362006-12-02 22:14:11 +00002002 YY_BREAK
2003case 134:
2004YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002005#line 336 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002006{ RET_TOK(TermOpVal, BrOp, BR); }
Reid Spencer229e9362006-12-02 22:14:11 +00002007 YY_BREAK
2008case 135:
2009YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002010#line 337 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002011{ RET_TOK(TermOpVal, SwitchOp, SWITCH); }
Reid Spencer229e9362006-12-02 22:14:11 +00002012 YY_BREAK
2013case 136:
2014YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002015#line 338 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002016{ RET_TOK(TermOpVal, InvokeOp, INVOKE); }
Reid Spencer229e9362006-12-02 22:14:11 +00002017 YY_BREAK
2018case 137:
2019YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002020#line 339 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002021{ return UNWIND; }
Reid Spencer229e9362006-12-02 22:14:11 +00002022 YY_BREAK
2023case 138:
2024YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002025#line 340 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002026{ RET_TOK(TermOpVal, UnreachableOp, UNREACHABLE); }
Reid Spencer229e9362006-12-02 22:14:11 +00002027 YY_BREAK
2028case 139:
2029YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002030#line 342 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002031{ RET_TOK(MemOpVal, MallocOp, MALLOC); }
Reid Spencer229e9362006-12-02 22:14:11 +00002032 YY_BREAK
2033case 140:
2034YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002035#line 343 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002036{ RET_TOK(MemOpVal, AllocaOp, ALLOCA); }
Reid Spencer229e9362006-12-02 22:14:11 +00002037 YY_BREAK
2038case 141:
2039YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002040#line 344 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002041{ RET_TOK(MemOpVal, FreeOp, FREE); }
Reid Spencer229e9362006-12-02 22:14:11 +00002042 YY_BREAK
2043case 142:
2044YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002045#line 345 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002046{ RET_TOK(MemOpVal, LoadOp, LOAD); }
Reid Spencer229e9362006-12-02 22:14:11 +00002047 YY_BREAK
2048case 143:
2049YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002050#line 346 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002051{ RET_TOK(MemOpVal, StoreOp, STORE); }
2052 YY_BREAK
2053case 144:
2054YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002055#line 347 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002056{ RET_TOK(MemOpVal, GetElementPtrOp, GETELEMENTPTR); }
2057 YY_BREAK
2058case 145:
2059YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002060#line 349 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002061{ RET_TOK(OtherOpVal, ExtractElementOp, EXTRACTELEMENT); }
2062 YY_BREAK
2063case 146:
2064YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002065#line 350 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002066{ RET_TOK(OtherOpVal, InsertElementOp, INSERTELEMENT); }
2067 YY_BREAK
2068case 147:
2069YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002070#line 351 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002071{ RET_TOK(OtherOpVal, ShuffleVectorOp, SHUFFLEVECTOR); }
2072 YY_BREAK
2073case 148:
2074YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002075#line 354 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002076{
Reid Spencer832254e2007-02-02 02:16:23 +00002077 UnEscapeLexed(yytext+1);
2078 Upgradelval.StrVal = strdup(yytext+1); // Skip %
Reid Spencer950bf602007-01-26 08:19:09 +00002079 return VAR_ID;
2080 }
Reid Spencer229e9362006-12-02 22:14:11 +00002081 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002082case 149:
Reid Spencer229e9362006-12-02 22:14:11 +00002083YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002084#line 359 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002085{
Reid Spencer832254e2007-02-02 02:16:23 +00002086 yytext[strlen(yytext)-1] = 0; // nuke colon
2087 UnEscapeLexed(yytext);
2088 Upgradelval.StrVal = strdup(yytext);
Reid Spencer950bf602007-01-26 08:19:09 +00002089 return LABELSTR;
2090 }
Reid Spencer229e9362006-12-02 22:14:11 +00002091 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002092case 150:
Reid Spencer229e9362006-12-02 22:14:11 +00002093YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002094#line 365 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002095{
Reid Spencer832254e2007-02-02 02:16:23 +00002096 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
2097 UnEscapeLexed(yytext+1);
2098 Upgradelval.StrVal = strdup(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002099 return LABELSTR;
2100 }
Reid Spencer229e9362006-12-02 22:14:11 +00002101 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002102case 151:
Reid Spencer229e9362006-12-02 22:14:11 +00002103YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002104#line 372 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002105{ // Note that we cannot unescape a string constant here! The
2106 // string constant might contain a \00 which would not be
2107 // understood by the string stuff. It is valid to make a
2108 // [sbyte] c"Hello World\00" constant, for example.
2109 //
Reid Spencer832254e2007-02-02 02:16:23 +00002110 yytext[strlen(yytext)-1] = 0; // nuke end quote
2111 Upgradelval.StrVal = strdup(yytext+1); // Nuke start quote
Reid Spencer950bf602007-01-26 08:19:09 +00002112 return STRINGCONSTANT;
2113 }
Reid Spencer229e9362006-12-02 22:14:11 +00002114 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002115case 152:
Reid Spencer229e9362006-12-02 22:14:11 +00002116YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002117#line 383 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002118{ Upgradelval.UInt64Val = atoull(yytext); return EUINT64VAL; }
Reid Spencer229e9362006-12-02 22:14:11 +00002119 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002120case 153:
Reid Spencer229e9362006-12-02 22:14:11 +00002121YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002122#line 384 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002123{
Reid Spencer832254e2007-02-02 02:16:23 +00002124 uint64_t Val = atoull(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002125 // +1: we have bigger negative range
2126 if (Val > (uint64_t)INT64_MAX+1)
2127 error("Constant too large for signed 64 bits!");
2128 Upgradelval.SInt64Val = -Val;
2129 return ESINT64VAL;
2130 }
Reid Spencer229e9362006-12-02 22:14:11 +00002131 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002132case 154:
Reid Spencer229e9362006-12-02 22:14:11 +00002133YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002134#line 392 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002135{
Reid Spencer832254e2007-02-02 02:16:23 +00002136 Upgradelval.UInt64Val = HexIntToVal(yytext+3);
2137 return yytext[0] == 's' ? ESINT64VAL : EUINT64VAL;
Reid Spencer950bf602007-01-26 08:19:09 +00002138 }
Reid Spencer229e9362006-12-02 22:14:11 +00002139 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002140case 155:
Reid Spencer229e9362006-12-02 22:14:11 +00002141YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002142#line 397 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002143{
Reid Spencer832254e2007-02-02 02:16:23 +00002144 uint64_t Val = atoull(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002145 if ((unsigned)Val != Val)
2146 error("Invalid value number (too large)!");
2147 Upgradelval.UIntVal = unsigned(Val);
2148 return UINTVAL;
2149 }
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002150 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002151case 156:
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002152YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002153#line 404 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002154{
Reid Spencer832254e2007-02-02 02:16:23 +00002155 uint64_t Val = atoull(yytext+2);
Reid Spencer950bf602007-01-26 08:19:09 +00002156 // +1: we have bigger negative range
2157 if (Val > (uint64_t)INT32_MAX+1)
2158 error("Constant too large for signed 32 bits!");
2159 Upgradelval.SIntVal = (int)-Val;
2160 return SINTVAL;
2161 }
Reid Spencer71d2ec92006-12-31 06:02:26 +00002162 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002163case 157:
Reid Spencer71d2ec92006-12-31 06:02:26 +00002164YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002165#line 413 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002166{ Upgradelval.FPVal = atof(yytext); return FPVAL; }
Reid Spencer71d2ec92006-12-31 06:02:26 +00002167 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002168case 158:
Reid Spencer71d2ec92006-12-31 06:02:26 +00002169YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002170#line 414 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002171{ Upgradelval.FPVal = HexToFP(yytext); return FPVAL; }
Reid Spencerf7bde222006-12-01 22:26:37 +00002172 YY_BREAK
2173case YY_STATE_EOF(INITIAL):
Reid Spencerbb1fd572007-03-21 17:15:50 +00002174#line 416 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00002175{
2176 /* Make sure to free the internal buffers for flex when we are
2177 * done reading our input!
2178 */
Reid Spencer832254e2007-02-02 02:16:23 +00002179 yy_delete_buffer(YY_CURRENT_BUFFER);
Reid Spencere7c3c602006-11-30 06:36:44 +00002180 return EOF;
2181 }
2182 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002183case 159:
Reid Spencer950bf602007-01-26 08:19:09 +00002184YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002185#line 424 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002186{ /* Ignore whitespace */ }
2187 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002188case 160:
Reid Spencerf7bde222006-12-01 22:26:37 +00002189YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002190#line 425 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002191{ return yytext[0]; }
Reid Spencer78720742006-12-02 20:21:22 +00002192 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002193case 161:
Reid Spencer78720742006-12-02 20:21:22 +00002194YY_RULE_SETUP
Reid Spencerbb1fd572007-03-21 17:15:50 +00002195#line 427 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00002196YY_FATAL_ERROR( "flex scanner jammed" );
2197 YY_BREAK
Reid Spencerbb1fd572007-03-21 17:15:50 +00002198#line 2199 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00002199
2200 case YY_END_OF_BUFFER:
2201 {
2202 /* Amount of text matched not including the EOB char. */
Reid Spencer832254e2007-02-02 02:16:23 +00002203 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002204
2205 /* Undo the effects of YY_DO_BEFORE_ACTION. */
Reid Spencer832254e2007-02-02 02:16:23 +00002206 *yy_cp = yy_hold_char;
Reid Spencere7c3c602006-11-30 06:36:44 +00002207 YY_RESTORE_YY_MORE_OFFSET
2208
Reid Spencer832254e2007-02-02 02:16:23 +00002209 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
Reid Spencere7c3c602006-11-30 06:36:44 +00002210 {
2211 /* We're scanning a new file or input source. It's
2212 * possible that this happened because the user
Reid Spencer832254e2007-02-02 02:16:23 +00002213 * just pointed yyin at a new source and called
2214 * yylex(). If so, then we have to assure
2215 * consistency between yy_current_buffer and our
Reid Spencere7c3c602006-11-30 06:36:44 +00002216 * globals. Here is the right place to do so, because
2217 * this is the first action (other than possibly a
2218 * back-up) that will match for the new input source.
2219 */
Reid Spencer832254e2007-02-02 02:16:23 +00002220 yy_n_chars = yy_current_buffer->yy_n_chars;
2221 yy_current_buffer->yy_input_file = yyin;
2222 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
Reid Spencere7c3c602006-11-30 06:36:44 +00002223 }
2224
2225 /* Note that here we test for yy_c_buf_p "<=" to the position
2226 * of the first EOB in the buffer, since yy_c_buf_p will
2227 * already have been incremented past the NUL character
2228 * (since all states make transitions on EOB to the
2229 * end-of-buffer state). Contrast this with the test
2230 * in input().
2231 */
Reid Spencer832254e2007-02-02 02:16:23 +00002232 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002233 { /* This was really a NUL. */
2234 yy_state_type yy_next_state;
2235
Reid Spencer832254e2007-02-02 02:16:23 +00002236 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
Reid Spencere7c3c602006-11-30 06:36:44 +00002237
Reid Spencer832254e2007-02-02 02:16:23 +00002238 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002239
2240 /* Okay, we're now positioned to make the NUL
2241 * transition. We couldn't have
2242 * yy_get_previous_state() go ahead and do it
2243 * for us because it doesn't know how to deal
2244 * with the possibility of jamming (and we don't
2245 * want to build jamming into it because then it
2246 * will run more slowly).
2247 */
2248
2249 yy_next_state = yy_try_NUL_trans( yy_current_state );
2250
Reid Spencer832254e2007-02-02 02:16:23 +00002251 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002252
2253 if ( yy_next_state )
2254 {
2255 /* Consume the NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002256 yy_cp = ++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002257 yy_current_state = yy_next_state;
2258 goto yy_match;
2259 }
2260
2261 else
2262 {
Reid Spencer832254e2007-02-02 02:16:23 +00002263 yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002264 goto yy_find_action;
2265 }
2266 }
2267
Reid Spencer832254e2007-02-02 02:16:23 +00002268 else switch ( yy_get_next_buffer() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002269 {
2270 case EOB_ACT_END_OF_FILE:
2271 {
Reid Spencer832254e2007-02-02 02:16:23 +00002272 yy_did_buffer_switch_on_eof = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002273
Reid Spencer832254e2007-02-02 02:16:23 +00002274 if ( yywrap() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002275 {
2276 /* Note: because we've taken care in
2277 * yy_get_next_buffer() to have set up
Reid Spencer832254e2007-02-02 02:16:23 +00002278 * yytext, we can now set up
Reid Spencere7c3c602006-11-30 06:36:44 +00002279 * yy_c_buf_p so that if some total
2280 * hoser (like flex itself) wants to
2281 * call the scanner after we return the
2282 * YY_NULL, it'll still work - another
2283 * YY_NULL will get returned.
2284 */
Reid Spencer832254e2007-02-02 02:16:23 +00002285 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002286
2287 yy_act = YY_STATE_EOF(YY_START);
2288 goto do_action;
2289 }
2290
2291 else
2292 {
Reid Spencer832254e2007-02-02 02:16:23 +00002293 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencere7c3c602006-11-30 06:36:44 +00002294 YY_NEW_FILE;
2295 }
2296 break;
2297 }
2298
2299 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002300 yy_c_buf_p =
2301 yytext_ptr + yy_amount_of_matched_text;
Reid Spencere7c3c602006-11-30 06:36:44 +00002302
Reid Spencer832254e2007-02-02 02:16:23 +00002303 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002304
Reid Spencer832254e2007-02-02 02:16:23 +00002305 yy_cp = yy_c_buf_p;
2306 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002307 goto yy_match;
2308
2309 case EOB_ACT_LAST_MATCH:
Reid Spencer832254e2007-02-02 02:16:23 +00002310 yy_c_buf_p =
2311 &yy_current_buffer->yy_ch_buf[yy_n_chars];
Reid Spencere7c3c602006-11-30 06:36:44 +00002312
Reid Spencer832254e2007-02-02 02:16:23 +00002313 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002314
Reid Spencer832254e2007-02-02 02:16:23 +00002315 yy_cp = yy_c_buf_p;
2316 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002317 goto yy_find_action;
2318 }
2319 break;
2320 }
2321
2322 default:
2323 YY_FATAL_ERROR(
2324 "fatal flex scanner internal error--no action found" );
2325 } /* end of action switch */
2326 } /* end of scanning one token */
Reid Spencer832254e2007-02-02 02:16:23 +00002327 } /* end of yylex */
2328
Reid Spencere7c3c602006-11-30 06:36:44 +00002329
2330/* yy_get_next_buffer - try to read in a new buffer
2331 *
2332 * Returns a code representing an action:
2333 * EOB_ACT_LAST_MATCH -
2334 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2335 * EOB_ACT_END_OF_FILE - end of file
2336 */
Reid Spencer832254e2007-02-02 02:16:23 +00002337
2338static int yy_get_next_buffer()
2339 {
2340 register char *dest = yy_current_buffer->yy_ch_buf;
2341 register char *source = yytext_ptr;
Reid Spencere7c3c602006-11-30 06:36:44 +00002342 register int number_to_move, i;
2343 int ret_val;
2344
Reid Spencer832254e2007-02-02 02:16:23 +00002345 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002346 YY_FATAL_ERROR(
2347 "fatal flex scanner internal error--end of buffer missed" );
2348
Reid Spencer832254e2007-02-02 02:16:23 +00002349 if ( yy_current_buffer->yy_fill_buffer == 0 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002350 { /* Don't try to fill the buffer, so this is an EOF. */
Reid Spencer832254e2007-02-02 02:16:23 +00002351 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002352 {
2353 /* We matched a single character, the EOB, so
2354 * treat this as a final EOF.
2355 */
2356 return EOB_ACT_END_OF_FILE;
2357 }
2358
2359 else
2360 {
2361 /* We matched some text prior to the EOB, first
2362 * process it.
2363 */
2364 return EOB_ACT_LAST_MATCH;
2365 }
2366 }
2367
2368 /* Try to read more data. */
2369
2370 /* First move last chars to start of buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002371 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002372
2373 for ( i = 0; i < number_to_move; ++i )
2374 *(dest++) = *(source++);
2375
Reid Spencer832254e2007-02-02 02:16:23 +00002376 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
Reid Spencere7c3c602006-11-30 06:36:44 +00002377 /* don't do the read, it's not guaranteed to return an EOF,
2378 * just force an EOF
2379 */
Reid Spencer832254e2007-02-02 02:16:23 +00002380 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002381
2382 else
2383 {
Reid Spencer832254e2007-02-02 02:16:23 +00002384 int num_to_read =
2385 yy_current_buffer->yy_buf_size - number_to_move - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002386
2387 while ( num_to_read <= 0 )
2388 { /* Not enough room in the buffer - grow it. */
Reid Spencer832254e2007-02-02 02:16:23 +00002389#ifdef YY_USES_REJECT
2390 YY_FATAL_ERROR(
2391"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2392#else
Reid Spencere7c3c602006-11-30 06:36:44 +00002393
2394 /* just a shorter name for the current buffer */
Reid Spencer832254e2007-02-02 02:16:23 +00002395 YY_BUFFER_STATE b = yy_current_buffer;
Reid Spencere7c3c602006-11-30 06:36:44 +00002396
2397 int yy_c_buf_p_offset =
Reid Spencer832254e2007-02-02 02:16:23 +00002398 (int) (yy_c_buf_p - b->yy_ch_buf);
Reid Spencere7c3c602006-11-30 06:36:44 +00002399
2400 if ( b->yy_is_our_buffer )
2401 {
2402 int new_size = b->yy_buf_size * 2;
2403
2404 if ( new_size <= 0 )
2405 b->yy_buf_size += b->yy_buf_size / 8;
2406 else
2407 b->yy_buf_size *= 2;
2408
2409 b->yy_ch_buf = (char *)
2410 /* Include room in for 2 EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002411 yy_flex_realloc( (void *) b->yy_ch_buf,
2412 b->yy_buf_size + 2 );
Reid Spencere7c3c602006-11-30 06:36:44 +00002413 }
2414 else
2415 /* Can't grow it, we don't own it. */
2416 b->yy_ch_buf = 0;
2417
2418 if ( ! b->yy_ch_buf )
2419 YY_FATAL_ERROR(
2420 "fatal error - scanner input buffer overflow" );
2421
Reid Spencer832254e2007-02-02 02:16:23 +00002422 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
Reid Spencere7c3c602006-11-30 06:36:44 +00002423
Reid Spencer832254e2007-02-02 02:16:23 +00002424 num_to_read = yy_current_buffer->yy_buf_size -
Reid Spencere7c3c602006-11-30 06:36:44 +00002425 number_to_move - 1;
Reid Spencer832254e2007-02-02 02:16:23 +00002426#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002427 }
2428
2429 if ( num_to_read > YY_READ_BUF_SIZE )
2430 num_to_read = YY_READ_BUF_SIZE;
2431
2432 /* Read in more data. */
Reid Spencer832254e2007-02-02 02:16:23 +00002433 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2434 yy_n_chars, num_to_read );
Reid Spencere7c3c602006-11-30 06:36:44 +00002435
Reid Spencer832254e2007-02-02 02:16:23 +00002436 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencere7c3c602006-11-30 06:36:44 +00002437 }
2438
Reid Spencer832254e2007-02-02 02:16:23 +00002439 if ( yy_n_chars == 0 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002440 {
2441 if ( number_to_move == YY_MORE_ADJ )
2442 {
2443 ret_val = EOB_ACT_END_OF_FILE;
Reid Spencer832254e2007-02-02 02:16:23 +00002444 yyrestart( yyin );
Reid Spencere7c3c602006-11-30 06:36:44 +00002445 }
2446
2447 else
2448 {
2449 ret_val = EOB_ACT_LAST_MATCH;
Reid Spencer832254e2007-02-02 02:16:23 +00002450 yy_current_buffer->yy_buffer_status =
Reid Spencere7c3c602006-11-30 06:36:44 +00002451 YY_BUFFER_EOF_PENDING;
2452 }
2453 }
2454
2455 else
2456 ret_val = EOB_ACT_CONTINUE_SCAN;
2457
Reid Spencer832254e2007-02-02 02:16:23 +00002458 yy_n_chars += number_to_move;
2459 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2460 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
Reid Spencere7c3c602006-11-30 06:36:44 +00002461
Reid Spencer832254e2007-02-02 02:16:23 +00002462 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
Reid Spencere7c3c602006-11-30 06:36:44 +00002463
2464 return ret_val;
Reid Spencer832254e2007-02-02 02:16:23 +00002465 }
2466
Reid Spencere7c3c602006-11-30 06:36:44 +00002467
2468/* yy_get_previous_state - get the state just before the EOB char was reached */
2469
Reid Spencer832254e2007-02-02 02:16:23 +00002470static yy_state_type yy_get_previous_state()
2471 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002472 register yy_state_type yy_current_state;
2473 register char *yy_cp;
2474
Reid Spencer832254e2007-02-02 02:16:23 +00002475 yy_current_state = yy_start;
2476 yy_state_ptr = yy_state_buf;
2477 *yy_state_ptr++ = yy_current_state;
2478
2479 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
Reid Spencere7c3c602006-11-30 06:36:44 +00002480 {
2481 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2482 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2483 {
2484 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer785a5ae2007-02-08 00:21:40 +00002485 if ( yy_current_state >= 620 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002486 yy_c = yy_meta[(unsigned int) yy_c];
2487 }
2488 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00002489 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00002490 }
2491
2492 return yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002493 }
2494
Reid Spencere7c3c602006-11-30 06:36:44 +00002495
2496/* yy_try_NUL_trans - try to make a transition on the NUL character
2497 *
2498 * synopsis
2499 * next_state = yy_try_NUL_trans( current_state );
2500 */
Reid Spencer832254e2007-02-02 02:16:23 +00002501
2502#ifdef YY_USE_PROTOS
2503static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2504#else
2505static yy_state_type yy_try_NUL_trans( yy_current_state )
2506yy_state_type yy_current_state;
2507#endif
2508 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002509 register int yy_is_jam;
2510
2511 register YY_CHAR yy_c = 1;
2512 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2513 {
2514 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer785a5ae2007-02-08 00:21:40 +00002515 if ( yy_current_state >= 620 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002516 yy_c = yy_meta[(unsigned int) yy_c];
2517 }
2518 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer785a5ae2007-02-08 00:21:40 +00002519 yy_is_jam = (yy_current_state == 619);
Reid Spencer832254e2007-02-02 02:16:23 +00002520 if ( ! yy_is_jam )
2521 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00002522
2523 return yy_is_jam ? 0 : yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002524 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002525
2526
Reid Spencer832254e2007-02-02 02:16:23 +00002527#ifndef YY_NO_UNPUT
2528#ifdef YY_USE_PROTOS
2529static inline void yyunput( int c, register char *yy_bp )
2530#else
2531static inline void yyunput( c, yy_bp )
2532int c;
2533register char *yy_bp;
2534#endif
2535 {
2536 register char *yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002537
Reid Spencer832254e2007-02-02 02:16:23 +00002538 /* undo effects of setting up yytext */
2539 *yy_cp = yy_hold_char;
2540
2541 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002542 { /* need to shift things up to make room */
2543 /* +2 for EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002544 register int number_to_move = yy_n_chars + 2;
2545 register char *dest = &yy_current_buffer->yy_ch_buf[
2546 yy_current_buffer->yy_buf_size + 2];
Reid Spencere7c3c602006-11-30 06:36:44 +00002547 register char *source =
Reid Spencer832254e2007-02-02 02:16:23 +00002548 &yy_current_buffer->yy_ch_buf[number_to_move];
Reid Spencere7c3c602006-11-30 06:36:44 +00002549
Reid Spencer832254e2007-02-02 02:16:23 +00002550 while ( source > yy_current_buffer->yy_ch_buf )
Reid Spencere7c3c602006-11-30 06:36:44 +00002551 *--dest = *--source;
2552
2553 yy_cp += (int) (dest - source);
2554 yy_bp += (int) (dest - source);
Reid Spencer832254e2007-02-02 02:16:23 +00002555 yy_current_buffer->yy_n_chars =
2556 yy_n_chars = yy_current_buffer->yy_buf_size;
Reid Spencere7c3c602006-11-30 06:36:44 +00002557
Reid Spencer832254e2007-02-02 02:16:23 +00002558 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002559 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2560 }
2561
2562 *--yy_cp = (char) c;
2563
Reid Spencer832254e2007-02-02 02:16:23 +00002564 if ( c == '\n' )
2565 --yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00002566
Reid Spencer832254e2007-02-02 02:16:23 +00002567 yytext_ptr = yy_bp;
2568 yy_hold_char = *yy_cp;
2569 yy_c_buf_p = yy_cp;
2570 }
2571#endif /* ifndef YY_NO_UNPUT */
2572
Reid Spencere7c3c602006-11-30 06:36:44 +00002573
2574#ifndef YY_NO_INPUT
2575#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00002576static int yyinput()
Reid Spencere7c3c602006-11-30 06:36:44 +00002577#else
Reid Spencer832254e2007-02-02 02:16:23 +00002578static int input()
Reid Spencere7c3c602006-11-30 06:36:44 +00002579#endif
Reid Spencer832254e2007-02-02 02:16:23 +00002580 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002581 int c;
2582
Reid Spencer832254e2007-02-02 02:16:23 +00002583 *yy_c_buf_p = yy_hold_char;
2584
2585 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
Reid Spencere7c3c602006-11-30 06:36:44 +00002586 {
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 */
Reid Spencer832254e2007-02-02 02:16:23 +00002591 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002592 /* This was really a NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002593 *yy_c_buf_p = '\0';
Reid Spencere7c3c602006-11-30 06:36:44 +00002594
2595 else
2596 { /* need more input */
Reid Spencer832254e2007-02-02 02:16:23 +00002597 int offset = yy_c_buf_p - yytext_ptr;
2598 ++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002599
Reid Spencer832254e2007-02-02 02:16:23 +00002600 switch ( yy_get_next_buffer() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002601 {
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. */
Reid Spencer832254e2007-02-02 02:16:23 +00002614 yyrestart( yyin );
Reid Spencere7c3c602006-11-30 06:36:44 +00002615
Reid Spencer832254e2007-02-02 02:16:23 +00002616 /* fall through */
Reid Spencere7c3c602006-11-30 06:36:44 +00002617
2618 case EOB_ACT_END_OF_FILE:
2619 {
Reid Spencer832254e2007-02-02 02:16:23 +00002620 if ( yywrap() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002621 return EOF;
2622
Reid Spencer832254e2007-02-02 02:16:23 +00002623 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencere7c3c602006-11-30 06:36:44 +00002624 YY_NEW_FILE;
2625#ifdef __cplusplus
2626 return yyinput();
2627#else
2628 return input();
2629#endif
2630 }
2631
2632 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002633 yy_c_buf_p = yytext_ptr + offset;
Reid Spencere7c3c602006-11-30 06:36:44 +00002634 break;
2635 }
2636 }
2637 }
2638
Reid Spencer832254e2007-02-02 02:16:23 +00002639 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2640 *yy_c_buf_p = '\0'; /* preserve yytext */
2641 yy_hold_char = *++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002642
2643 if ( c == '\n' )
Reid Spencer832254e2007-02-02 02:16:23 +00002644 ++yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00002645
2646 return c;
Reid Spencer832254e2007-02-02 02:16:23 +00002647 }
2648#endif /* YY_NO_INPUT */
Reid Spencere7c3c602006-11-30 06:36:44 +00002649
Reid Spencer832254e2007-02-02 02:16:23 +00002650#ifdef YY_USE_PROTOS
2651void yyrestart( FILE *input_file )
2652#else
2653void yyrestart( input_file )
2654FILE *input_file;
2655#endif
2656 {
2657 if ( ! yy_current_buffer )
2658 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2659
2660 yy_init_buffer( yy_current_buffer, input_file );
2661 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002662 }
2663
2664
Reid Spencer832254e2007-02-02 02:16:23 +00002665#ifdef YY_USE_PROTOS
2666void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2667#else
2668void yy_switch_to_buffer( new_buffer )
2669YY_BUFFER_STATE new_buffer;
2670#endif
2671 {
2672 if ( yy_current_buffer == new_buffer )
Reid Spencere7c3c602006-11-30 06:36:44 +00002673 return;
2674
Reid Spencer832254e2007-02-02 02:16:23 +00002675 if ( yy_current_buffer )
Reid Spencere7c3c602006-11-30 06:36:44 +00002676 {
2677 /* Flush out information for old buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002678 *yy_c_buf_p = yy_hold_char;
2679 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2680 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencere7c3c602006-11-30 06:36:44 +00002681 }
2682
Reid Spencer832254e2007-02-02 02:16:23 +00002683 yy_current_buffer = new_buffer;
2684 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002685
2686 /* We don't actually know whether we did this switch during
Reid Spencer832254e2007-02-02 02:16:23 +00002687 * EOF (yywrap()) processing, but the only time this flag
2688 * is looked at is after yywrap() is called, so it's safe
Reid Spencere7c3c602006-11-30 06:36:44 +00002689 * to go ahead and always set it.
2690 */
Reid Spencer832254e2007-02-02 02:16:23 +00002691 yy_did_buffer_switch_on_eof = 1;
2692 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002693
2694
Reid Spencer832254e2007-02-02 02:16:23 +00002695#ifdef YY_USE_PROTOS
2696void yy_load_buffer_state( void )
2697#else
2698void yy_load_buffer_state()
2699#endif
2700 {
2701 yy_n_chars = yy_current_buffer->yy_n_chars;
2702 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2703 yyin = yy_current_buffer->yy_input_file;
2704 yy_hold_char = *yy_c_buf_p;
2705 }
2706
2707
2708#ifdef YY_USE_PROTOS
2709YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2710#else
2711YY_BUFFER_STATE yy_create_buffer( file, size )
2712FILE *file;
2713int size;
2714#endif
2715 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002716 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002717
2718 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencere7c3c602006-11-30 06:36:44 +00002719 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002720 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002721
2722 b->yy_buf_size = size;
2723
2724 /* yy_ch_buf has to be 2 characters longer than the size given because
2725 * we need to put in 2 end-of-buffer characters.
2726 */
Reid Spencer832254e2007-02-02 02:16:23 +00002727 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
Reid Spencere7c3c602006-11-30 06:36:44 +00002728 if ( ! b->yy_ch_buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002729 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002730
2731 b->yy_is_our_buffer = 1;
2732
Reid Spencer832254e2007-02-02 02:16:23 +00002733 yy_init_buffer( b, file );
Reid Spencere7c3c602006-11-30 06:36:44 +00002734
2735 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002736 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002737
Reid Spencer832254e2007-02-02 02:16:23 +00002738
2739#ifdef YY_USE_PROTOS
2740void yy_delete_buffer( YY_BUFFER_STATE b )
2741#else
2742void yy_delete_buffer( b )
2743YY_BUFFER_STATE b;
2744#endif
2745 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002746 if ( ! b )
2747 return;
2748
Reid Spencer832254e2007-02-02 02:16:23 +00002749 if ( b == yy_current_buffer )
2750 yy_current_buffer = (YY_BUFFER_STATE) 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002751
2752 if ( b->yy_is_our_buffer )
Reid Spencer832254e2007-02-02 02:16:23 +00002753 yy_flex_free( (void *) b->yy_ch_buf );
Reid Spencere7c3c602006-11-30 06:36:44 +00002754
Reid Spencer832254e2007-02-02 02:16:23 +00002755 yy_flex_free( (void *) b );
2756 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002757
2758
Reid Spencer832254e2007-02-02 02:16:23 +00002759
2760#ifdef YY_USE_PROTOS
2761void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2762#else
2763void yy_init_buffer( b, file )
2764YY_BUFFER_STATE b;
2765FILE *file;
2766#endif
2767
2768
2769 {
2770 yy_flush_buffer( b );
Reid Spencere7c3c602006-11-30 06:36:44 +00002771
2772 b->yy_input_file = file;
2773 b->yy_fill_buffer = 1;
2774
Reid Spencer832254e2007-02-02 02:16:23 +00002775#if YY_ALWAYS_INTERACTIVE
2776 b->yy_is_interactive = 1;
2777#else
2778#if YY_NEVER_INTERACTIVE
2779 b->yy_is_interactive = 0;
2780#else
2781 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2782#endif
2783#endif
2784 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002785
2786
Reid Spencer832254e2007-02-02 02:16:23 +00002787#ifdef YY_USE_PROTOS
2788void yy_flush_buffer( YY_BUFFER_STATE b )
2789#else
2790void yy_flush_buffer( b )
2791YY_BUFFER_STATE b;
2792#endif
2793
2794 {
2795 if ( ! b )
Reid Spencere7c3c602006-11-30 06:36:44 +00002796 return;
2797
2798 b->yy_n_chars = 0;
2799
2800 /* We always need two end-of-buffer characters. The first causes
2801 * a transition to the end-of-buffer state. The second causes
2802 * a jam in that state.
2803 */
2804 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2805 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2806
2807 b->yy_buf_pos = &b->yy_ch_buf[0];
2808
2809 b->yy_at_bol = 1;
2810 b->yy_buffer_status = YY_BUFFER_NEW;
2811
Reid Spencer832254e2007-02-02 02:16:23 +00002812 if ( b == yy_current_buffer )
2813 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002814 }
2815
2816
Reid Spencer832254e2007-02-02 02:16:23 +00002817#ifndef YY_NO_SCAN_BUFFER
2818#ifdef YY_USE_PROTOS
2819YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2820#else
2821YY_BUFFER_STATE yy_scan_buffer( base, size )
2822char *base;
2823yy_size_t size;
2824#endif
2825 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002826 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002827
Reid Spencere7c3c602006-11-30 06:36:44 +00002828 if ( size < 2 ||
2829 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2830 base[size-1] != YY_END_OF_BUFFER_CHAR )
2831 /* They forgot to leave room for the EOB's. */
2832 return 0;
2833
Reid Spencer832254e2007-02-02 02:16:23 +00002834 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencere7c3c602006-11-30 06:36:44 +00002835 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002836 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002837
2838 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2839 b->yy_buf_pos = b->yy_ch_buf = base;
2840 b->yy_is_our_buffer = 0;
2841 b->yy_input_file = 0;
2842 b->yy_n_chars = b->yy_buf_size;
2843 b->yy_is_interactive = 0;
2844 b->yy_at_bol = 1;
2845 b->yy_fill_buffer = 0;
2846 b->yy_buffer_status = YY_BUFFER_NEW;
2847
Reid Spencer832254e2007-02-02 02:16:23 +00002848 yy_switch_to_buffer( b );
Reid Spencere7c3c602006-11-30 06:36:44 +00002849
2850 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002851 }
2852#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002853
2854
Reid Spencer832254e2007-02-02 02:16:23 +00002855#ifndef YY_NO_SCAN_STRING
2856#ifdef YY_USE_PROTOS
2857YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2858#else
2859YY_BUFFER_STATE yy_scan_string( yy_str )
2860yyconst char *yy_str;
2861#endif
2862 {
2863 int len;
2864 for ( len = 0; yy_str[len]; ++len )
2865 ;
2866
2867 return yy_scan_bytes( yy_str, len );
2868 }
2869#endif
2870
2871
2872#ifndef YY_NO_SCAN_BYTES
2873#ifdef YY_USE_PROTOS
2874YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2875#else
2876YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2877yyconst char *bytes;
2878int len;
2879#endif
2880 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002881 YY_BUFFER_STATE b;
2882 char *buf;
2883 yy_size_t n;
2884 int i;
Reid Spencer832254e2007-02-02 02:16:23 +00002885
Reid Spencere7c3c602006-11-30 06:36:44 +00002886 /* Get memory for full buffer, including space for trailing EOB's. */
Reid Spencer832254e2007-02-02 02:16:23 +00002887 n = len + 2;
2888 buf = (char *) yy_flex_alloc( n );
Reid Spencere7c3c602006-11-30 06:36:44 +00002889 if ( ! buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002890 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002891
Reid Spencer832254e2007-02-02 02:16:23 +00002892 for ( i = 0; i < len; ++i )
2893 buf[i] = bytes[i];
Reid Spencere7c3c602006-11-30 06:36:44 +00002894
Reid Spencer832254e2007-02-02 02:16:23 +00002895 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
Reid Spencere7c3c602006-11-30 06:36:44 +00002896
Reid Spencer832254e2007-02-02 02:16:23 +00002897 b = yy_scan_buffer( buf, n );
Reid Spencere7c3c602006-11-30 06:36:44 +00002898 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002899 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002900
2901 /* It's okay to grow etc. this buffer, and we should throw it
2902 * away when we're done.
2903 */
2904 b->yy_is_our_buffer = 1;
2905
2906 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002907 }
2908#endif
2909
2910
2911#ifndef YY_NO_PUSH_STATE
2912#ifdef YY_USE_PROTOS
2913static void yy_push_state( int new_state )
2914#else
2915static void yy_push_state( new_state )
2916int new_state;
2917#endif
2918 {
2919 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2920 {
2921 yy_size_t new_size;
2922
2923 yy_start_stack_depth += YY_START_STACK_INCR;
2924 new_size = yy_start_stack_depth * sizeof( int );
2925
2926 if ( ! yy_start_stack )
2927 yy_start_stack = (int *) yy_flex_alloc( new_size );
2928
2929 else
2930 yy_start_stack = (int *) yy_flex_realloc(
2931 (void *) yy_start_stack, new_size );
2932
2933 if ( ! yy_start_stack )
2934 YY_FATAL_ERROR(
2935 "out of memory expanding start-condition stack" );
2936 }
2937
2938 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2939
2940 BEGIN(new_state);
2941 }
2942#endif
2943
2944
2945#ifndef YY_NO_POP_STATE
2946static void yy_pop_state()
2947 {
2948 if ( --yy_start_stack_ptr < 0 )
2949 YY_FATAL_ERROR( "start-condition stack underflow" );
2950
2951 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2952 }
2953#endif
2954
2955
2956#ifndef YY_NO_TOP_STATE
2957static int yy_top_state()
2958 {
2959 return yy_start_stack[yy_start_stack_ptr - 1];
2960 }
2961#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002962
2963#ifndef YY_EXIT_FAILURE
2964#define YY_EXIT_FAILURE 2
2965#endif
2966
Reid Spencer832254e2007-02-02 02:16:23 +00002967#ifdef YY_USE_PROTOS
2968static void yy_fatal_error( yyconst char msg[] )
2969#else
2970static void yy_fatal_error( msg )
2971char msg[];
2972#endif
2973 {
2974 (void) fprintf( stderr, "%s\n", msg );
Reid Spencere7c3c602006-11-30 06:36:44 +00002975 exit( YY_EXIT_FAILURE );
Reid Spencer832254e2007-02-02 02:16:23 +00002976 }
2977
2978
Reid Spencere7c3c602006-11-30 06:36:44 +00002979
2980/* Redefine yyless() so it works in section 3 code. */
2981
2982#undef yyless
2983#define yyless(n) \
2984 do \
2985 { \
Reid Spencer832254e2007-02-02 02:16:23 +00002986 /* Undo effects of setting up yytext. */ \
2987 yytext[yyleng] = yy_hold_char; \
2988 yy_c_buf_p = yytext + n; \
2989 yy_hold_char = *yy_c_buf_p; \
2990 *yy_c_buf_p = '\0'; \
2991 yyleng = n; \
Reid Spencere7c3c602006-11-30 06:36:44 +00002992 } \
2993 while ( 0 )
2994
2995
Reid Spencer832254e2007-02-02 02:16:23 +00002996/* Internal utility routines. */
Reid Spencere7c3c602006-11-30 06:36:44 +00002997
2998#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00002999#ifdef YY_USE_PROTOS
3000static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
3001#else
3002static void yy_flex_strncpy( s1, s2, n )
3003char *s1;
3004yyconst char *s2;
3005int n;
3006#endif
3007 {
Reid Spencere7c3c602006-11-30 06:36:44 +00003008 register int i;
3009 for ( i = 0; i < n; ++i )
3010 s1[i] = s2[i];
Reid Spencer832254e2007-02-02 02:16:23 +00003011 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003012#endif
3013
3014#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00003015#ifdef YY_USE_PROTOS
3016static int yy_flex_strlen( yyconst char *s )
3017#else
3018static int yy_flex_strlen( s )
3019yyconst char *s;
3020#endif
3021 {
Reid Spencere7c3c602006-11-30 06:36:44 +00003022 register int n;
3023 for ( n = 0; s[n]; ++n )
3024 ;
3025
3026 return n;
Reid Spencer832254e2007-02-02 02:16:23 +00003027 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003028#endif
3029
Reid Spencere7c3c602006-11-30 06:36:44 +00003030
Reid Spencer832254e2007-02-02 02:16:23 +00003031#ifdef YY_USE_PROTOS
3032static void *yy_flex_alloc( yy_size_t size )
3033#else
3034static void *yy_flex_alloc( size )
3035yy_size_t size;
3036#endif
3037 {
3038 return (void *) malloc( size );
3039 }
3040
3041#ifdef YY_USE_PROTOS
3042static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
3043#else
3044static inline void *yy_flex_realloc( ptr, size )
3045void *ptr;
3046yy_size_t size;
3047#endif
3048 {
Reid Spencere7c3c602006-11-30 06:36:44 +00003049 /* The cast to (char *) in the following accommodates both
3050 * implementations that use char* generic pointers, and those
3051 * that use void* generic pointers. It works with the latter
3052 * because both ANSI C and C++ allow castless assignment from
3053 * any pointer type to void*, and deal with argument conversions
3054 * as though doing an assignment.
3055 */
3056 return (void *) realloc( (char *) ptr, size );
Reid Spencer832254e2007-02-02 02:16:23 +00003057 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003058
Reid Spencer832254e2007-02-02 02:16:23 +00003059#ifdef YY_USE_PROTOS
3060static void yy_flex_free( void *ptr )
3061#else
3062static void yy_flex_free( ptr )
3063void *ptr;
3064#endif
3065 {
3066 free( ptr );
3067 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003068
Reid Spencer832254e2007-02-02 02:16:23 +00003069#if YY_MAIN
3070int main()
3071 {
3072 yylex();
3073 return 0;
3074 }
3075#endif
Reid Spencerbb1fd572007-03-21 17:15:50 +00003076#line 427 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00003077