blob: fec5f784ad19a27dd08f9bdbfab936d1d73904af [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 Spenceref9b9a72007-02-05 20:47:22 +0000937#line 1 "/proj/llvm/llvm-3/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 Spenceref9b9a72007-02-05 20:47:22 +0000952#line 28 "/proj/llvm/llvm-3/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; \
979 Upgradelval.PrimType.S = sign; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000980 return sym
981
Reid Spencer950bf602007-01-26 08:19:09 +0000982namespace llvm {
983
984// TODO: All of the static identifiers are figured out by the lexer,
985// these should be hashed to reduce the lexer size
986
987// UnEscapeLexed - Run through the specified buffer and change \xx codes to the
988// appropriate character. If AllowNull is set to false, a \00 value will cause
989// an exception to be thrown.
990//
991// If AllowNull is set to true, the return value of the function points to the
992// last character of the string in memory.
993//
994char *UnEscapeLexed(char *Buffer, bool AllowNull) {
995 char *BOut = Buffer;
996 for (char *BIn = Buffer; *BIn; ) {
997 if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) {
998 char Tmp = BIn[3]; BIn[3] = 0; // Terminate string
999 *BOut = (char)strtol(BIn+1, 0, 16); // Convert to number
1000 if (!AllowNull && !*BOut)
1001 error("String literal cannot accept \\00 escape!");
1002
1003 BIn[3] = Tmp; // Restore character
1004 BIn += 3; // Skip over handled chars
1005 ++BOut;
1006 } else {
1007 *BOut++ = *BIn++;
1008 }
1009 }
1010
1011 return BOut;
1012}
1013
1014// atoull - Convert an ascii string of decimal digits into the unsigned long
1015// long representation... this does not have to do input error checking,
1016// because we know that the input will be matched by a suitable regex...
1017//
1018static uint64_t atoull(const char *Buffer) {
1019 uint64_t Result = 0;
1020 for (; *Buffer; Buffer++) {
1021 uint64_t OldRes = Result;
1022 Result *= 10;
1023 Result += *Buffer-'0';
1024 if (Result < OldRes) // Uh, oh, overflow detected!!!
1025 error("constant bigger than 64 bits detected!");
1026 }
1027 return Result;
1028}
1029
1030static uint64_t HexIntToVal(const char *Buffer) {
1031 uint64_t Result = 0;
1032 for (; *Buffer; ++Buffer) {
1033 uint64_t OldRes = Result;
1034 Result *= 16;
1035 char C = *Buffer;
1036 if (C >= '0' && C <= '9')
1037 Result += C-'0';
1038 else if (C >= 'A' && C <= 'F')
1039 Result += C-'A'+10;
1040 else if (C >= 'a' && C <= 'f')
1041 Result += C-'a'+10;
1042
1043 if (Result < OldRes) // Uh, oh, overflow detected!!!
1044 error("constant bigger than 64 bits detected!");
1045 }
1046 return Result;
1047}
1048
1049
1050// HexToFP - Convert the ascii string in hexidecimal format to the floating
1051// point representation of it.
1052//
1053static double HexToFP(const char *Buffer) {
1054 // Behave nicely in the face of C TBAA rules... see:
1055 // http://www.nullstone.com/htmls/category/aliastyp.htm
1056 union {
1057 uint64_t UI;
1058 double FP;
1059 } UIntToFP;
1060 UIntToFP.UI = HexIntToVal(Buffer);
1061
1062 assert(sizeof(double) == sizeof(uint64_t) &&
1063 "Data sizes incompatible on this target!");
1064 return UIntToFP.FP; // Cast Hex constant to double
1065}
1066
1067
1068} // End llvm namespace
1069
1070using namespace llvm;
1071
Reid Spencere7c3c602006-11-30 06:36:44 +00001072/* Comments start with a ; and go till end of line */
1073/* Variable(Value) identifiers start with a % sign */
1074/* Label identifiers end with a colon */
1075/* Quoted names can contain any character except " and \ */
1076/* [PN]Integer: match positive and negative literal integer values that
1077 * are preceeded by a '%' character. These represent unnamed variable slots.
1078 */
1079/* E[PN]Integer: match positive and negative literal integer values */
1080/* FPConstant - A Floating point constant.
1081 */
1082/* HexFPConstant - Floating point constant represented in IEEE format as a
1083 * hexadecimal number for when exponential notation is not precise enough.
1084 */
1085/* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
1086 * it to deal with 64 bit numbers.
1087 */
Reid Spencer785a5ae2007-02-08 00:21:40 +00001088#line 1089 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00001089
1090/* Macros after this point can all be overridden by user definitions in
1091 * section 1.
1092 */
1093
1094#ifndef YY_SKIP_YYWRAP
1095#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001096extern "C" int yywrap YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001097#else
Reid Spencer832254e2007-02-02 02:16:23 +00001098extern int yywrap YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001099#endif
1100#endif
1101
Reid Spencer832254e2007-02-02 02:16:23 +00001102#ifndef YY_NO_UNPUT
1103static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1104#endif
1105
Reid Spencere7c3c602006-11-30 06:36:44 +00001106#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00001107static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001108#endif
1109
1110#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00001111static int yy_flex_strlen YY_PROTO(( yyconst char * ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001112#endif
1113
1114#ifndef YY_NO_INPUT
1115#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001116static int yyinput YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001117#else
Reid Spencer832254e2007-02-02 02:16:23 +00001118static int input YY_PROTO(( void ));
1119#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001120#endif
1121
Reid Spencer832254e2007-02-02 02:16:23 +00001122#if YY_STACK_USED
1123static int yy_start_stack_ptr = 0;
1124static int yy_start_stack_depth = 0;
1125static int *yy_start_stack = 0;
1126#ifndef YY_NO_PUSH_STATE
1127static void yy_push_state YY_PROTO(( int new_state ));
1128#endif
1129#ifndef YY_NO_POP_STATE
1130static void yy_pop_state YY_PROTO(( void ));
1131#endif
1132#ifndef YY_NO_TOP_STATE
1133static int yy_top_state YY_PROTO(( void ));
1134#endif
1135
1136#else
1137#define YY_NO_PUSH_STATE 1
1138#define YY_NO_POP_STATE 1
1139#define YY_NO_TOP_STATE 1
1140#endif
1141
1142#ifdef YY_MALLOC_DECL
1143YY_MALLOC_DECL
1144#else
1145#if __STDC__
1146#ifndef __cplusplus
1147#include <stdlib.h>
1148#endif
1149#else
1150/* Just try to get by without declaring the routines. This will fail
1151 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1152 * or sizeof(void*) != sizeof(int).
1153 */
1154#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001155#endif
1156
1157/* Amount of stuff to slurp up with each read. */
1158#ifndef YY_READ_BUF_SIZE
1159#define YY_READ_BUF_SIZE 8192
1160#endif
1161
1162/* Copy whatever the last rule matched to the standard output. */
Reid Spencer832254e2007-02-02 02:16:23 +00001163
Reid Spencere7c3c602006-11-30 06:36:44 +00001164#ifndef ECHO
1165/* This used to be an fputs(), but since the string might contain NUL's,
1166 * we now use fwrite().
1167 */
Reid Spencer832254e2007-02-02 02:16:23 +00001168#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
Reid Spencere7c3c602006-11-30 06:36:44 +00001169#endif
1170
1171/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1172 * is returned in "result".
1173 */
1174#ifndef YY_INPUT
1175#define YY_INPUT(buf,result,max_size) \
Reid Spencer832254e2007-02-02 02:16:23 +00001176 if ( yy_current_buffer->yy_is_interactive ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001177 { \
Reid Spencer832254e2007-02-02 02:16:23 +00001178 int c = '*', n; \
Reid Spencere7c3c602006-11-30 06:36:44 +00001179 for ( n = 0; n < max_size && \
Reid Spencer832254e2007-02-02 02:16:23 +00001180 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001181 buf[n] = (char) c; \
1182 if ( c == '\n' ) \
1183 buf[n++] = (char) c; \
Reid Spencer832254e2007-02-02 02:16:23 +00001184 if ( c == EOF && ferror( yyin ) ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001185 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1186 result = n; \
1187 } \
Reid Spencer832254e2007-02-02 02:16:23 +00001188 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1189 && ferror( yyin ) ) \
1190 YY_FATAL_ERROR( "input in flex scanner failed" );
Reid Spencere7c3c602006-11-30 06:36:44 +00001191#endif
1192
1193/* No semi-colon after return; correct usage is to write "yyterminate();" -
1194 * we don't want an extra ';' after the "return" because that will cause
1195 * some compilers to complain about unreachable statements.
1196 */
1197#ifndef yyterminate
1198#define yyterminate() return YY_NULL
1199#endif
1200
1201/* Number of entries by which start-condition stack grows. */
1202#ifndef YY_START_STACK_INCR
1203#define YY_START_STACK_INCR 25
1204#endif
1205
1206/* Report a fatal error. */
1207#ifndef YY_FATAL_ERROR
1208#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1209#endif
1210
1211/* Default declaration of generated scanner - a define so the user can
1212 * easily add parameters.
1213 */
1214#ifndef YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001215#define YY_DECL int yylex YY_PROTO(( void ))
1216#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001217
Reid Spencer832254e2007-02-02 02:16:23 +00001218/* Code executed at the beginning of each rule, after yytext and yyleng
Reid Spencere7c3c602006-11-30 06:36:44 +00001219 * have been set up.
1220 */
1221#ifndef YY_USER_ACTION
1222#define YY_USER_ACTION
1223#endif
1224
1225/* Code executed at the end of each rule. */
1226#ifndef YY_BREAK
1227#define YY_BREAK break;
1228#endif
1229
1230#define YY_RULE_SETUP \
1231 YY_USER_ACTION
1232
1233YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001234 {
Reid Spencere7c3c602006-11-30 06:36:44 +00001235 register yy_state_type yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00001236 register char *yy_cp = NULL, *yy_bp = NULL;
Reid Spencere7c3c602006-11-30 06:36:44 +00001237 register int yy_act;
Reid Spencer832254e2007-02-02 02:16:23 +00001238
Reid Spenceref9b9a72007-02-05 20:47:22 +00001239#line 189 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001240
1241
Reid Spencer785a5ae2007-02-08 00:21:40 +00001242#line 1243 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00001243
Reid Spencer832254e2007-02-02 02:16:23 +00001244 if ( yy_init )
Reid Spencere7c3c602006-11-30 06:36:44 +00001245 {
Reid Spencer832254e2007-02-02 02:16:23 +00001246 yy_init = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00001247
1248#ifdef YY_USER_INIT
1249 YY_USER_INIT;
1250#endif
1251
Reid Spencer832254e2007-02-02 02:16:23 +00001252 if ( ! yy_start )
1253 yy_start = 1; /* first start state */
Reid Spencere7c3c602006-11-30 06:36:44 +00001254
Reid Spencer832254e2007-02-02 02:16:23 +00001255 if ( ! yyin )
1256 yyin = stdin;
Reid Spencere7c3c602006-11-30 06:36:44 +00001257
Reid Spencer832254e2007-02-02 02:16:23 +00001258 if ( ! yyout )
1259 yyout = stdout;
Reid Spencere7c3c602006-11-30 06:36:44 +00001260
Reid Spencer832254e2007-02-02 02:16:23 +00001261 if ( ! yy_current_buffer )
1262 yy_current_buffer =
1263 yy_create_buffer( yyin, YY_BUF_SIZE );
Reid Spencere7c3c602006-11-30 06:36:44 +00001264
Reid Spencer832254e2007-02-02 02:16:23 +00001265 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00001266 }
1267
1268 while ( 1 ) /* loops until end-of-file is reached */
1269 {
Reid Spencer832254e2007-02-02 02:16:23 +00001270 yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00001271
Reid Spencer832254e2007-02-02 02:16:23 +00001272 /* Support of yytext. */
1273 *yy_cp = yy_hold_char;
Reid Spencere7c3c602006-11-30 06:36:44 +00001274
1275 /* yy_bp points to the position in yy_ch_buf of the start of
1276 * the current run.
1277 */
1278 yy_bp = yy_cp;
1279
Reid Spencer832254e2007-02-02 02:16:23 +00001280 yy_current_state = yy_start;
1281 yy_state_ptr = yy_state_buf;
1282 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00001283yy_match:
1284 do
1285 {
1286 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1287 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1288 {
1289 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer785a5ae2007-02-08 00:21:40 +00001290 if ( yy_current_state >= 620 )
Reid Spencere7c3c602006-11-30 06:36:44 +00001291 yy_c = yy_meta[(unsigned int) yy_c];
1292 }
1293 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00001294 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00001295 ++yy_cp;
1296 }
Reid Spencer785a5ae2007-02-08 00:21:40 +00001297 while ( yy_current_state != 619 );
Reid Spencere7c3c602006-11-30 06:36:44 +00001298
1299yy_find_action:
Reid Spencer832254e2007-02-02 02:16:23 +00001300 yy_current_state = *--yy_state_ptr;
1301 yy_lp = yy_accept[yy_current_state];
1302find_rule: /* we branch to this label when backing up */
1303 for ( ; ; ) /* until we find what rule we matched */
1304 {
1305 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1306 {
1307 yy_act = yy_acclist[yy_lp];
1308 {
1309 yy_full_match = yy_cp;
1310 break;
1311 }
1312 }
1313 --yy_cp;
1314 yy_current_state = *--yy_state_ptr;
1315 yy_lp = yy_accept[yy_current_state];
1316 }
Reid Spencere7c3c602006-11-30 06:36:44 +00001317
1318 YY_DO_BEFORE_ACTION;
1319
Reid Spencer832254e2007-02-02 02:16:23 +00001320 if ( yy_act != YY_END_OF_BUFFER )
Reid Spencere7c3c602006-11-30 06:36:44 +00001321 {
1322 int yyl;
Reid Spencer832254e2007-02-02 02:16:23 +00001323 for ( yyl = 0; yyl < yyleng; ++yyl )
1324 if ( yytext[yyl] == '\n' )
1325 ++yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00001326 }
1327
1328do_action: /* This label is used only to access EOF actions. */
1329
Reid Spencer832254e2007-02-02 02:16:23 +00001330
Reid Spencere7c3c602006-11-30 06:36:44 +00001331 switch ( yy_act )
1332 { /* beginning of action switch */
1333case 1:
1334YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001335#line 191 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001336{ /* Ignore comments for now */ }
1337 YY_BREAK
1338case 2:
1339YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001340#line 193 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001341{ return BEGINTOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001342 YY_BREAK
1343case 3:
1344YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001345#line 194 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001346{ return ENDTOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001347 YY_BREAK
1348case 4:
1349YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001350#line 195 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001351{ return TRUETOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001352 YY_BREAK
1353case 5:
1354YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001355#line 196 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001356{ return FALSETOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001357 YY_BREAK
1358case 6:
1359YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001360#line 197 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001361{ return DECLARE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001362 YY_BREAK
1363case 7:
1364YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001365#line 198 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001366{ return GLOBAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001367 YY_BREAK
1368case 8:
1369YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001370#line 199 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001371{ return CONSTANT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001372 YY_BREAK
1373case 9:
1374YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001375#line 200 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001376{ return INTERNAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001377 YY_BREAK
1378case 10:
1379YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001380#line 201 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001381{ return LINKONCE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001382 YY_BREAK
1383case 11:
1384YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001385#line 202 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001386{ return WEAK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001387 YY_BREAK
1388case 12:
1389YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001390#line 203 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001391{ return APPENDING; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001392 YY_BREAK
1393case 13:
1394YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001395#line 204 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001396{ return DLLIMPORT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001397 YY_BREAK
1398case 14:
1399YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001400#line 205 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001401{ return DLLEXPORT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001402 YY_BREAK
1403case 15:
1404YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001405#line 206 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001406{ return EXTERN_WEAK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001407 YY_BREAK
1408case 16:
1409YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001410#line 207 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001411{ return EXTERNAL; } /* Deprecated, turn into external */
Reid Spencere7c3c602006-11-30 06:36:44 +00001412 YY_BREAK
1413case 17:
1414YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001415#line 208 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001416{ return EXTERNAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001417 YY_BREAK
1418case 18:
1419YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001420#line 209 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001421{ return IMPLEMENTATION; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001422 YY_BREAK
1423case 19:
1424YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001425#line 210 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001426{ return ZEROINITIALIZER; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001427 YY_BREAK
1428case 20:
1429YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001430#line 211 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001431{ return DOTDOTDOT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001432 YY_BREAK
1433case 21:
1434YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001435#line 212 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001436{ return UNDEF; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001437 YY_BREAK
1438case 22:
1439YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001440#line 213 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001441{ return NULL_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001442 YY_BREAK
1443case 23:
1444YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001445#line 214 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001446{ return TO; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001447 YY_BREAK
1448case 24:
1449YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001450#line 215 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001451{ return EXCEPT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001452 YY_BREAK
1453case 25:
1454YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001455#line 216 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001456{ return NOT; } /* Deprecated, turned into XOR */
Reid Spencere7c3c602006-11-30 06:36:44 +00001457 YY_BREAK
1458case 26:
1459YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001460#line 217 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001461{ return TAIL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001462 YY_BREAK
1463case 27:
1464YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001465#line 218 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001466{ return TARGET; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001467 YY_BREAK
1468case 28:
1469YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001470#line 219 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001471{ return TRIPLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001472 YY_BREAK
1473case 29:
1474YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001475#line 220 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001476{ return DEPLIBS; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001477 YY_BREAK
1478case 30:
1479YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001480#line 221 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001481{ return ENDIAN; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001482 YY_BREAK
1483case 31:
1484YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001485#line 222 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001486{ return POINTERSIZE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001487 YY_BREAK
1488case 32:
1489YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001490#line 223 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001491{ return DATALAYOUT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001492 YY_BREAK
1493case 33:
1494YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001495#line 224 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001496{ return LITTLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001497 YY_BREAK
1498case 34:
1499YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001500#line 225 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001501{ return BIG; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001502 YY_BREAK
1503case 35:
1504YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001505#line 226 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001506{ return VOLATILE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001507 YY_BREAK
1508case 36:
1509YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001510#line 227 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001511{ return ALIGN; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001512 YY_BREAK
1513case 37:
1514YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001515#line 228 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001516{ return SECTION; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001517 YY_BREAK
1518case 38:
1519YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001520#line 229 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001521{ return MODULE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001522 YY_BREAK
1523case 39:
1524YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001525#line 230 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001526{ return ASM_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001527 YY_BREAK
1528case 40:
1529YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001530#line 231 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001531{ return SIDEEFFECT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001532 YY_BREAK
1533case 41:
1534YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001535#line 233 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001536{ return CC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001537 YY_BREAK
1538case 42:
1539YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001540#line 234 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001541{ return CCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001542 YY_BREAK
1543case 43:
1544YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001545#line 235 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001546{ return CSRETCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001547 YY_BREAK
1548case 44:
1549YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001550#line 236 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001551{ return FASTCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001552 YY_BREAK
1553case 45:
1554YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001555#line 237 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001556{ return COLDCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001557 YY_BREAK
1558case 46:
1559YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001560#line 238 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001561{ return X86_STDCALLCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001562 YY_BREAK
1563case 47:
1564YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001565#line 239 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001566{ return X86_FASTCALLCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001567 YY_BREAK
1568case 48:
1569YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001570#line 241 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001571{ RET_TY(SBYTE, Type::Int8Ty, Signed); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001572 YY_BREAK
1573case 49:
1574YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001575#line 242 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001576{ RET_TY(UBYTE, Type::Int8Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001577 YY_BREAK
1578case 50:
1579YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001580#line 243 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001581{ RET_TY(UBYTE, Type::Int8Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001582 YY_BREAK
1583case 51:
1584YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001585#line 244 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001586{ RET_TY(SHORT, Type::Int16Ty, Signed); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001587 YY_BREAK
1588case 52:
1589YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001590#line 245 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001591{ RET_TY(USHORT, Type::Int16Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001592 YY_BREAK
1593case 53:
1594YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001595#line 246 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001596{ RET_TY(USHORT, Type::Int16Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001597 YY_BREAK
1598case 54:
1599YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001600#line 247 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001601{ RET_TY(INT, Type::Int32Ty, Signed); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001602 YY_BREAK
1603case 55:
1604YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001605#line 248 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001606{ RET_TY(UINT, Type::Int32Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001607 YY_BREAK
1608case 56:
1609YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001610#line 249 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001611{ RET_TY(UINT, Type::Int32Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001612 YY_BREAK
1613case 57:
1614YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001615#line 250 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001616{ RET_TY(LONG, Type::Int64Ty, Signed); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001617 YY_BREAK
1618case 58:
1619YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001620#line 251 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001621{ RET_TY(ULONG, Type::Int64Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001622 YY_BREAK
1623case 59:
1624YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001625#line 252 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001626{ RET_TY(ULONG, Type::Int64Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001627 YY_BREAK
1628case 60:
1629YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001630#line 253 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001631{ RET_TY(VOID, Type::VoidTy, Signless ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001632 YY_BREAK
1633case 61:
1634YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001635#line 254 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001636{ RET_TY(BOOL, Type::Int1Ty, Unsigned ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001637 YY_BREAK
1638case 62:
1639YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001640#line 255 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001641{ RET_TY(BOOL, Type::Int1Ty, Unsigned ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001642 YY_BREAK
1643case 63:
1644YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001645#line 256 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1646{ RET_TY(FLOAT, Type::FloatTy, Signless ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001647 YY_BREAK
1648case 64:
1649YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001650#line 257 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1651{ RET_TY(DOUBLE, Type::DoubleTy,Signless); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001652 YY_BREAK
1653case 65:
1654YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001655#line 258 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1656{ RET_TY(LABEL, Type::LabelTy, Signless ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001657 YY_BREAK
1658case 66:
1659YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001660#line 259 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1661{ return TYPE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001662 YY_BREAK
1663case 67:
1664YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001665#line 260 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1666{ return OPAQUE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001667 YY_BREAK
1668case 68:
1669YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001670#line 262 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001671{ RET_TOK(BinaryOpVal, AddOp, ADD); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001672 YY_BREAK
1673case 69:
1674YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001675#line 263 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001676{ RET_TOK(BinaryOpVal, SubOp, SUB); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001677 YY_BREAK
1678case 70:
1679YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001680#line 264 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001681{ RET_TOK(BinaryOpVal, MulOp, MUL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001682 YY_BREAK
1683case 71:
1684YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001685#line 265 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001686{ RET_TOK(BinaryOpVal, DivOp, DIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001687 YY_BREAK
1688case 72:
1689YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001690#line 266 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001691{ RET_TOK(BinaryOpVal, UDivOp, UDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001692 YY_BREAK
1693case 73:
1694YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001695#line 267 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001696{ RET_TOK(BinaryOpVal, SDivOp, SDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001697 YY_BREAK
1698case 74:
1699YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001700#line 268 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001701{ RET_TOK(BinaryOpVal, FDivOp, FDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001702 YY_BREAK
1703case 75:
1704YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001705#line 269 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001706{ RET_TOK(BinaryOpVal, RemOp, REM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001707 YY_BREAK
1708case 76:
1709YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001710#line 270 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001711{ RET_TOK(BinaryOpVal, URemOp, UREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001712 YY_BREAK
1713case 77:
1714YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001715#line 271 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001716{ RET_TOK(BinaryOpVal, SRemOp, SREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001717 YY_BREAK
1718case 78:
1719YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001720#line 272 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001721{ RET_TOK(BinaryOpVal, FRemOp, FREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001722 YY_BREAK
1723case 79:
1724YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001725#line 273 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001726{ RET_TOK(BinaryOpVal, AndOp, AND); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001727 YY_BREAK
1728case 80:
1729YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001730#line 274 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001731{ RET_TOK(BinaryOpVal, OrOp , OR ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001732 YY_BREAK
1733case 81:
1734YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001735#line 275 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001736{ RET_TOK(BinaryOpVal, XorOp, XOR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001737 YY_BREAK
1738case 82:
1739YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001740#line 276 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001741{ RET_TOK(BinaryOpVal, SetNE, SETNE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001742 YY_BREAK
1743case 83:
1744YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001745#line 277 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001746{ RET_TOK(BinaryOpVal, SetEQ, SETEQ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001747 YY_BREAK
1748case 84:
1749YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001750#line 278 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001751{ RET_TOK(BinaryOpVal, SetLT, SETLT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001752 YY_BREAK
1753case 85:
1754YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001755#line 279 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001756{ RET_TOK(BinaryOpVal, SetGT, SETGT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001757 YY_BREAK
1758case 86:
1759YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001760#line 280 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001761{ RET_TOK(BinaryOpVal, SetLE, SETLE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001762 YY_BREAK
1763case 87:
1764YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001765#line 281 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1766{ RET_TOK(BinaryOpVal, SetGE, SETGE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001767 YY_BREAK
1768case 88:
1769YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001770#line 282 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1771{ RET_TOK(BinaryOpVal, ShlOp, SHL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001772 YY_BREAK
1773case 89:
1774YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001775#line 283 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1776{ RET_TOK(BinaryOpVal, ShrOp, SHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001777 YY_BREAK
1778case 90:
1779YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001780#line 284 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1781{ RET_TOK(BinaryOpVal, LShrOp, LSHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001782 YY_BREAK
1783case 91:
1784YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001785#line 285 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1786{ RET_TOK(BinaryOpVal, AShrOp, ASHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001787 YY_BREAK
1788case 92:
1789YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001790#line 287 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1791{ RET_TOK(OtherOpVal, ICmpOp, ICMP); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001792 YY_BREAK
1793case 93:
1794YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001795#line 288 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1796{ RET_TOK(OtherOpVal, FCmpOp, FCMP); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001797 YY_BREAK
1798case 94:
1799YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001800#line 290 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001801{ return EQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001802 YY_BREAK
1803case 95:
1804YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001805#line 291 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001806{ return NE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001807 YY_BREAK
1808case 96:
1809YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001810#line 292 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001811{ return SLT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001812 YY_BREAK
1813case 97:
1814YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001815#line 293 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001816{ return SGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001817 YY_BREAK
1818case 98:
1819YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001820#line 294 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001821{ return SLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001822 YY_BREAK
1823case 99:
1824YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001825#line 295 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001826{ return SGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001827 YY_BREAK
1828case 100:
1829YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001830#line 296 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001831{ return ULT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001832 YY_BREAK
1833case 101:
1834YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001835#line 297 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001836{ return UGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001837 YY_BREAK
1838case 102:
1839YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001840#line 298 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001841{ return ULE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001842 YY_BREAK
1843case 103:
1844YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001845#line 299 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001846{ return UGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001847 YY_BREAK
1848case 104:
1849YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001850#line 300 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001851{ return OEQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001852 YY_BREAK
1853case 105:
1854YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001855#line 301 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001856{ return ONE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001857 YY_BREAK
1858case 106:
1859YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001860#line 302 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001861{ return OLT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001862 YY_BREAK
1863case 107:
1864YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001865#line 303 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001866{ return OGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001867 YY_BREAK
1868case 108:
1869YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001870#line 304 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001871{ return OLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001872 YY_BREAK
1873case 109:
1874YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001875#line 305 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1876{ return OGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001877 YY_BREAK
1878case 110:
1879YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001880#line 306 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1881{ return ORD; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001882 YY_BREAK
1883case 111:
1884YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001885#line 307 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1886{ return UNO; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001887 YY_BREAK
1888case 112:
1889YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001890#line 308 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1891{ return UEQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001892 YY_BREAK
1893case 113:
1894YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00001895#line 309 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
1896{ return UNE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001897 YY_BREAK
Reid Spencer16244f42006-12-01 21:10:07 +00001898case 114:
1899YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001900#line 311 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001901{ RET_TOK(OtherOpVal, PHIOp, PHI_TOK); }
Reid Spencer16244f42006-12-01 21:10:07 +00001902 YY_BREAK
Reid Spencerf7bde222006-12-01 22:26:37 +00001903case 115:
1904YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001905#line 312 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001906{ RET_TOK(OtherOpVal, CallOp, CALL); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001907 YY_BREAK
1908case 116:
1909YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001910#line 313 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001911{ RET_TOK(CastOpVal, CastOp, CAST); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001912 YY_BREAK
1913case 117:
1914YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001915#line 314 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001916{ RET_TOK(CastOpVal, TruncOp, TRUNC); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001917 YY_BREAK
1918case 118:
1919YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001920#line 315 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001921{ RET_TOK(CastOpVal, ZExtOp , ZEXT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001922 YY_BREAK
1923case 119:
1924YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001925#line 316 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001926{ RET_TOK(CastOpVal, SExtOp, SEXT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001927 YY_BREAK
1928case 120:
1929YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001930#line 317 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001931{ RET_TOK(CastOpVal, FPTruncOp, FPTRUNC); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001932 YY_BREAK
1933case 121:
1934YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001935#line 318 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001936{ RET_TOK(CastOpVal, FPExtOp, FPEXT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001937 YY_BREAK
1938case 122:
1939YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001940#line 319 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001941{ RET_TOK(CastOpVal, FPToUIOp, FPTOUI); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001942 YY_BREAK
1943case 123:
1944YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001945#line 320 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001946{ RET_TOK(CastOpVal, FPToSIOp, FPTOSI); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001947 YY_BREAK
1948case 124:
1949YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001950#line 321 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001951{ RET_TOK(CastOpVal, UIToFPOp, UITOFP); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001952 YY_BREAK
1953case 125:
1954YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001955#line 322 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001956{ RET_TOK(CastOpVal, SIToFPOp, SITOFP); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001957 YY_BREAK
1958case 126:
1959YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001960#line 323 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001961{ RET_TOK(CastOpVal, PtrToIntOp, PTRTOINT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001962 YY_BREAK
1963case 127:
1964YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001965#line 324 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001966{ RET_TOK(CastOpVal, IntToPtrOp, INTTOPTR); }
Reid Spencer78720742006-12-02 20:21:22 +00001967 YY_BREAK
1968case 128:
1969YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001970#line 325 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001971{ RET_TOK(CastOpVal, BitCastOp, BITCAST); }
Reid Spencer229e9362006-12-02 22:14:11 +00001972 YY_BREAK
1973case 129:
1974YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001975#line 326 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001976{ RET_TOK(OtherOpVal, SelectOp, SELECT); }
Reid Spencer229e9362006-12-02 22:14:11 +00001977 YY_BREAK
1978case 130:
1979YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001980#line 327 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001981{ return VANEXT_old; }
Reid Spencer229e9362006-12-02 22:14:11 +00001982 YY_BREAK
1983case 131:
1984YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001985#line 328 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001986{ return VAARG_old; }
Reid Spencer229e9362006-12-02 22:14:11 +00001987 YY_BREAK
1988case 132:
1989YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001990#line 329 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001991{ RET_TOK(OtherOpVal, VAArg , VAARG); }
Reid Spencer229e9362006-12-02 22:14:11 +00001992 YY_BREAK
1993case 133:
1994YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001995#line 330 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001996{ RET_TOK(TermOpVal, RetOp, RET); }
Reid Spencer229e9362006-12-02 22:14:11 +00001997 YY_BREAK
1998case 134:
1999YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002000#line 331 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2001{ RET_TOK(TermOpVal, BrOp, BR); }
Reid Spencer229e9362006-12-02 22:14:11 +00002002 YY_BREAK
2003case 135:
2004YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002005#line 332 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2006{ RET_TOK(TermOpVal, SwitchOp, SWITCH); }
Reid Spencer229e9362006-12-02 22:14:11 +00002007 YY_BREAK
2008case 136:
2009YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002010#line 333 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2011{ RET_TOK(TermOpVal, InvokeOp, INVOKE); }
Reid Spencer229e9362006-12-02 22:14:11 +00002012 YY_BREAK
2013case 137:
2014YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002015#line 334 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2016{ return UNWIND; }
Reid Spencer229e9362006-12-02 22:14:11 +00002017 YY_BREAK
2018case 138:
2019YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002020#line 335 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2021{ RET_TOK(TermOpVal, UnreachableOp, UNREACHABLE); }
Reid Spencer229e9362006-12-02 22:14:11 +00002022 YY_BREAK
2023case 139:
2024YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00002025#line 337 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002026{ RET_TOK(MemOpVal, MallocOp, MALLOC); }
Reid Spencer229e9362006-12-02 22:14:11 +00002027 YY_BREAK
2028case 140:
2029YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002030#line 338 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2031{ RET_TOK(MemOpVal, AllocaOp, ALLOCA); }
Reid Spencer229e9362006-12-02 22:14:11 +00002032 YY_BREAK
2033case 141:
2034YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002035#line 339 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2036{ RET_TOK(MemOpVal, FreeOp, FREE); }
Reid Spencer229e9362006-12-02 22:14:11 +00002037 YY_BREAK
2038case 142:
2039YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002040#line 340 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2041{ RET_TOK(MemOpVal, LoadOp, LOAD); }
Reid Spencer229e9362006-12-02 22:14:11 +00002042 YY_BREAK
2043case 143:
2044YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002045#line 341 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2046{ RET_TOK(MemOpVal, StoreOp, STORE); }
2047 YY_BREAK
2048case 144:
2049YY_RULE_SETUP
2050#line 342 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2051{ RET_TOK(MemOpVal, GetElementPtrOp, GETELEMENTPTR); }
2052 YY_BREAK
2053case 145:
2054YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00002055#line 344 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002056{ RET_TOK(OtherOpVal, ExtractElementOp, EXTRACTELEMENT); }
2057 YY_BREAK
2058case 146:
2059YY_RULE_SETUP
2060#line 345 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2061{ RET_TOK(OtherOpVal, InsertElementOp, INSERTELEMENT); }
2062 YY_BREAK
2063case 147:
2064YY_RULE_SETUP
2065#line 346 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
2066{ RET_TOK(OtherOpVal, ShuffleVectorOp, SHUFFLEVECTOR); }
2067 YY_BREAK
2068case 148:
2069YY_RULE_SETUP
2070#line 349 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002071{
Reid Spencer832254e2007-02-02 02:16:23 +00002072 UnEscapeLexed(yytext+1);
2073 Upgradelval.StrVal = strdup(yytext+1); // Skip %
Reid Spencer950bf602007-01-26 08:19:09 +00002074 return VAR_ID;
2075 }
Reid Spencer229e9362006-12-02 22:14:11 +00002076 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002077case 149:
Reid Spencer229e9362006-12-02 22:14:11 +00002078YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002079#line 354 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002080{
Reid Spencer832254e2007-02-02 02:16:23 +00002081 yytext[strlen(yytext)-1] = 0; // nuke colon
2082 UnEscapeLexed(yytext);
2083 Upgradelval.StrVal = strdup(yytext);
Reid Spencer950bf602007-01-26 08:19:09 +00002084 return LABELSTR;
2085 }
Reid Spencer229e9362006-12-02 22:14:11 +00002086 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002087case 150:
Reid Spencer229e9362006-12-02 22:14:11 +00002088YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002089#line 360 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002090{
Reid Spencer832254e2007-02-02 02:16:23 +00002091 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
2092 UnEscapeLexed(yytext+1);
2093 Upgradelval.StrVal = strdup(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002094 return LABELSTR;
2095 }
Reid Spencer229e9362006-12-02 22:14:11 +00002096 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002097case 151:
Reid Spencer229e9362006-12-02 22:14:11 +00002098YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002099#line 367 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002100{ // Note that we cannot unescape a string constant here! The
2101 // string constant might contain a \00 which would not be
2102 // understood by the string stuff. It is valid to make a
2103 // [sbyte] c"Hello World\00" constant, for example.
2104 //
Reid Spencer832254e2007-02-02 02:16:23 +00002105 yytext[strlen(yytext)-1] = 0; // nuke end quote
2106 Upgradelval.StrVal = strdup(yytext+1); // Nuke start quote
Reid Spencer950bf602007-01-26 08:19:09 +00002107 return STRINGCONSTANT;
2108 }
Reid Spencer229e9362006-12-02 22:14:11 +00002109 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002110case 152:
Reid Spencer229e9362006-12-02 22:14:11 +00002111YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002112#line 378 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002113{ Upgradelval.UInt64Val = atoull(yytext); return EUINT64VAL; }
Reid Spencer229e9362006-12-02 22:14:11 +00002114 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002115case 153:
Reid Spencer229e9362006-12-02 22:14:11 +00002116YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002117#line 379 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002118{
Reid Spencer832254e2007-02-02 02:16:23 +00002119 uint64_t Val = atoull(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002120 // +1: we have bigger negative range
2121 if (Val > (uint64_t)INT64_MAX+1)
2122 error("Constant too large for signed 64 bits!");
2123 Upgradelval.SInt64Val = -Val;
2124 return ESINT64VAL;
2125 }
Reid Spencer229e9362006-12-02 22:14:11 +00002126 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002127case 154:
Reid Spencer229e9362006-12-02 22:14:11 +00002128YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002129#line 387 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002130{
Reid Spencer832254e2007-02-02 02:16:23 +00002131 Upgradelval.UInt64Val = HexIntToVal(yytext+3);
2132 return yytext[0] == 's' ? ESINT64VAL : EUINT64VAL;
Reid Spencer950bf602007-01-26 08:19:09 +00002133 }
Reid Spencer229e9362006-12-02 22:14:11 +00002134 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002135case 155:
Reid Spencer229e9362006-12-02 22:14:11 +00002136YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002137#line 392 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002138{
Reid Spencer832254e2007-02-02 02:16:23 +00002139 uint64_t Val = atoull(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002140 if ((unsigned)Val != Val)
2141 error("Invalid value number (too large)!");
2142 Upgradelval.UIntVal = unsigned(Val);
2143 return UINTVAL;
2144 }
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002145 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002146case 156:
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002147YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002148#line 399 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002149{
Reid Spencer832254e2007-02-02 02:16:23 +00002150 uint64_t Val = atoull(yytext+2);
Reid Spencer950bf602007-01-26 08:19:09 +00002151 // +1: we have bigger negative range
2152 if (Val > (uint64_t)INT32_MAX+1)
2153 error("Constant too large for signed 32 bits!");
2154 Upgradelval.SIntVal = (int)-Val;
2155 return SINTVAL;
2156 }
Reid Spencer71d2ec92006-12-31 06:02:26 +00002157 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002158case 157:
Reid Spencer71d2ec92006-12-31 06:02:26 +00002159YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002160#line 408 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002161{ Upgradelval.FPVal = atof(yytext); return FPVAL; }
Reid Spencer71d2ec92006-12-31 06:02:26 +00002162 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002163case 158:
Reid Spencer71d2ec92006-12-31 06:02:26 +00002164YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002165#line 409 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002166{ Upgradelval.FPVal = HexToFP(yytext); return FPVAL; }
Reid Spencerf7bde222006-12-01 22:26:37 +00002167 YY_BREAK
2168case YY_STATE_EOF(INITIAL):
Reid Spencer785a5ae2007-02-08 00:21:40 +00002169#line 411 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00002170{
2171 /* Make sure to free the internal buffers for flex when we are
2172 * done reading our input!
2173 */
Reid Spencer832254e2007-02-02 02:16:23 +00002174 yy_delete_buffer(YY_CURRENT_BUFFER);
Reid Spencere7c3c602006-11-30 06:36:44 +00002175 return EOF;
2176 }
2177 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002178case 159:
Reid Spencer950bf602007-01-26 08:19:09 +00002179YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002180#line 419 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002181{ /* Ignore whitespace */ }
2182 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002183case 160:
Reid Spencerf7bde222006-12-01 22:26:37 +00002184YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002185#line 420 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002186{ return yytext[0]; }
Reid Spencer78720742006-12-02 20:21:22 +00002187 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002188case 161:
Reid Spencer78720742006-12-02 20:21:22 +00002189YY_RULE_SETUP
Reid Spencer785a5ae2007-02-08 00:21:40 +00002190#line 422 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00002191YY_FATAL_ERROR( "flex scanner jammed" );
2192 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002193#line 2194 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00002194
2195 case YY_END_OF_BUFFER:
2196 {
2197 /* Amount of text matched not including the EOB char. */
Reid Spencer832254e2007-02-02 02:16:23 +00002198 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002199
2200 /* Undo the effects of YY_DO_BEFORE_ACTION. */
Reid Spencer832254e2007-02-02 02:16:23 +00002201 *yy_cp = yy_hold_char;
Reid Spencere7c3c602006-11-30 06:36:44 +00002202 YY_RESTORE_YY_MORE_OFFSET
2203
Reid Spencer832254e2007-02-02 02:16:23 +00002204 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
Reid Spencere7c3c602006-11-30 06:36:44 +00002205 {
2206 /* We're scanning a new file or input source. It's
2207 * possible that this happened because the user
Reid Spencer832254e2007-02-02 02:16:23 +00002208 * just pointed yyin at a new source and called
2209 * yylex(). If so, then we have to assure
2210 * consistency between yy_current_buffer and our
Reid Spencere7c3c602006-11-30 06:36:44 +00002211 * globals. Here is the right place to do so, because
2212 * this is the first action (other than possibly a
2213 * back-up) that will match for the new input source.
2214 */
Reid Spencer832254e2007-02-02 02:16:23 +00002215 yy_n_chars = yy_current_buffer->yy_n_chars;
2216 yy_current_buffer->yy_input_file = yyin;
2217 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
Reid Spencere7c3c602006-11-30 06:36:44 +00002218 }
2219
2220 /* Note that here we test for yy_c_buf_p "<=" to the position
2221 * of the first EOB in the buffer, since yy_c_buf_p will
2222 * already have been incremented past the NUL character
2223 * (since all states make transitions on EOB to the
2224 * end-of-buffer state). Contrast this with the test
2225 * in input().
2226 */
Reid Spencer832254e2007-02-02 02:16:23 +00002227 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002228 { /* This was really a NUL. */
2229 yy_state_type yy_next_state;
2230
Reid Spencer832254e2007-02-02 02:16:23 +00002231 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
Reid Spencere7c3c602006-11-30 06:36:44 +00002232
Reid Spencer832254e2007-02-02 02:16:23 +00002233 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002234
2235 /* Okay, we're now positioned to make the NUL
2236 * transition. We couldn't have
2237 * yy_get_previous_state() go ahead and do it
2238 * for us because it doesn't know how to deal
2239 * with the possibility of jamming (and we don't
2240 * want to build jamming into it because then it
2241 * will run more slowly).
2242 */
2243
2244 yy_next_state = yy_try_NUL_trans( yy_current_state );
2245
Reid Spencer832254e2007-02-02 02:16:23 +00002246 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002247
2248 if ( yy_next_state )
2249 {
2250 /* Consume the NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002251 yy_cp = ++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002252 yy_current_state = yy_next_state;
2253 goto yy_match;
2254 }
2255
2256 else
2257 {
Reid Spencer832254e2007-02-02 02:16:23 +00002258 yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002259 goto yy_find_action;
2260 }
2261 }
2262
Reid Spencer832254e2007-02-02 02:16:23 +00002263 else switch ( yy_get_next_buffer() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002264 {
2265 case EOB_ACT_END_OF_FILE:
2266 {
Reid Spencer832254e2007-02-02 02:16:23 +00002267 yy_did_buffer_switch_on_eof = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002268
Reid Spencer832254e2007-02-02 02:16:23 +00002269 if ( yywrap() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002270 {
2271 /* Note: because we've taken care in
2272 * yy_get_next_buffer() to have set up
Reid Spencer832254e2007-02-02 02:16:23 +00002273 * yytext, we can now set up
Reid Spencere7c3c602006-11-30 06:36:44 +00002274 * yy_c_buf_p so that if some total
2275 * hoser (like flex itself) wants to
2276 * call the scanner after we return the
2277 * YY_NULL, it'll still work - another
2278 * YY_NULL will get returned.
2279 */
Reid Spencer832254e2007-02-02 02:16:23 +00002280 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002281
2282 yy_act = YY_STATE_EOF(YY_START);
2283 goto do_action;
2284 }
2285
2286 else
2287 {
Reid Spencer832254e2007-02-02 02:16:23 +00002288 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencere7c3c602006-11-30 06:36:44 +00002289 YY_NEW_FILE;
2290 }
2291 break;
2292 }
2293
2294 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002295 yy_c_buf_p =
2296 yytext_ptr + yy_amount_of_matched_text;
Reid Spencere7c3c602006-11-30 06:36:44 +00002297
Reid Spencer832254e2007-02-02 02:16:23 +00002298 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002299
Reid Spencer832254e2007-02-02 02:16:23 +00002300 yy_cp = yy_c_buf_p;
2301 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002302 goto yy_match;
2303
2304 case EOB_ACT_LAST_MATCH:
Reid Spencer832254e2007-02-02 02:16:23 +00002305 yy_c_buf_p =
2306 &yy_current_buffer->yy_ch_buf[yy_n_chars];
Reid Spencere7c3c602006-11-30 06:36:44 +00002307
Reid Spencer832254e2007-02-02 02:16:23 +00002308 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002309
Reid Spencer832254e2007-02-02 02:16:23 +00002310 yy_cp = yy_c_buf_p;
2311 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002312 goto yy_find_action;
2313 }
2314 break;
2315 }
2316
2317 default:
2318 YY_FATAL_ERROR(
2319 "fatal flex scanner internal error--no action found" );
2320 } /* end of action switch */
2321 } /* end of scanning one token */
Reid Spencer832254e2007-02-02 02:16:23 +00002322 } /* end of yylex */
2323
Reid Spencere7c3c602006-11-30 06:36:44 +00002324
2325/* yy_get_next_buffer - try to read in a new buffer
2326 *
2327 * Returns a code representing an action:
2328 * EOB_ACT_LAST_MATCH -
2329 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2330 * EOB_ACT_END_OF_FILE - end of file
2331 */
Reid Spencer832254e2007-02-02 02:16:23 +00002332
2333static int yy_get_next_buffer()
2334 {
2335 register char *dest = yy_current_buffer->yy_ch_buf;
2336 register char *source = yytext_ptr;
Reid Spencere7c3c602006-11-30 06:36:44 +00002337 register int number_to_move, i;
2338 int ret_val;
2339
Reid Spencer832254e2007-02-02 02:16:23 +00002340 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002341 YY_FATAL_ERROR(
2342 "fatal flex scanner internal error--end of buffer missed" );
2343
Reid Spencer832254e2007-02-02 02:16:23 +00002344 if ( yy_current_buffer->yy_fill_buffer == 0 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002345 { /* Don't try to fill the buffer, so this is an EOF. */
Reid Spencer832254e2007-02-02 02:16:23 +00002346 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002347 {
2348 /* We matched a single character, the EOB, so
2349 * treat this as a final EOF.
2350 */
2351 return EOB_ACT_END_OF_FILE;
2352 }
2353
2354 else
2355 {
2356 /* We matched some text prior to the EOB, first
2357 * process it.
2358 */
2359 return EOB_ACT_LAST_MATCH;
2360 }
2361 }
2362
2363 /* Try to read more data. */
2364
2365 /* First move last chars to start of buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002366 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002367
2368 for ( i = 0; i < number_to_move; ++i )
2369 *(dest++) = *(source++);
2370
Reid Spencer832254e2007-02-02 02:16:23 +00002371 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
Reid Spencere7c3c602006-11-30 06:36:44 +00002372 /* don't do the read, it's not guaranteed to return an EOF,
2373 * just force an EOF
2374 */
Reid Spencer832254e2007-02-02 02:16:23 +00002375 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002376
2377 else
2378 {
Reid Spencer832254e2007-02-02 02:16:23 +00002379 int num_to_read =
2380 yy_current_buffer->yy_buf_size - number_to_move - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002381
2382 while ( num_to_read <= 0 )
2383 { /* Not enough room in the buffer - grow it. */
Reid Spencer832254e2007-02-02 02:16:23 +00002384#ifdef YY_USES_REJECT
2385 YY_FATAL_ERROR(
2386"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2387#else
Reid Spencere7c3c602006-11-30 06:36:44 +00002388
2389 /* just a shorter name for the current buffer */
Reid Spencer832254e2007-02-02 02:16:23 +00002390 YY_BUFFER_STATE b = yy_current_buffer;
Reid Spencere7c3c602006-11-30 06:36:44 +00002391
2392 int yy_c_buf_p_offset =
Reid Spencer832254e2007-02-02 02:16:23 +00002393 (int) (yy_c_buf_p - b->yy_ch_buf);
Reid Spencere7c3c602006-11-30 06:36:44 +00002394
2395 if ( b->yy_is_our_buffer )
2396 {
2397 int new_size = b->yy_buf_size * 2;
2398
2399 if ( new_size <= 0 )
2400 b->yy_buf_size += b->yy_buf_size / 8;
2401 else
2402 b->yy_buf_size *= 2;
2403
2404 b->yy_ch_buf = (char *)
2405 /* Include room in for 2 EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002406 yy_flex_realloc( (void *) b->yy_ch_buf,
2407 b->yy_buf_size + 2 );
Reid Spencere7c3c602006-11-30 06:36:44 +00002408 }
2409 else
2410 /* Can't grow it, we don't own it. */
2411 b->yy_ch_buf = 0;
2412
2413 if ( ! b->yy_ch_buf )
2414 YY_FATAL_ERROR(
2415 "fatal error - scanner input buffer overflow" );
2416
Reid Spencer832254e2007-02-02 02:16:23 +00002417 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
Reid Spencere7c3c602006-11-30 06:36:44 +00002418
Reid Spencer832254e2007-02-02 02:16:23 +00002419 num_to_read = yy_current_buffer->yy_buf_size -
Reid Spencere7c3c602006-11-30 06:36:44 +00002420 number_to_move - 1;
Reid Spencer832254e2007-02-02 02:16:23 +00002421#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002422 }
2423
2424 if ( num_to_read > YY_READ_BUF_SIZE )
2425 num_to_read = YY_READ_BUF_SIZE;
2426
2427 /* Read in more data. */
Reid Spencer832254e2007-02-02 02:16:23 +00002428 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2429 yy_n_chars, num_to_read );
Reid Spencere7c3c602006-11-30 06:36:44 +00002430
Reid Spencer832254e2007-02-02 02:16:23 +00002431 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencere7c3c602006-11-30 06:36:44 +00002432 }
2433
Reid Spencer832254e2007-02-02 02:16:23 +00002434 if ( yy_n_chars == 0 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002435 {
2436 if ( number_to_move == YY_MORE_ADJ )
2437 {
2438 ret_val = EOB_ACT_END_OF_FILE;
Reid Spencer832254e2007-02-02 02:16:23 +00002439 yyrestart( yyin );
Reid Spencere7c3c602006-11-30 06:36:44 +00002440 }
2441
2442 else
2443 {
2444 ret_val = EOB_ACT_LAST_MATCH;
Reid Spencer832254e2007-02-02 02:16:23 +00002445 yy_current_buffer->yy_buffer_status =
Reid Spencere7c3c602006-11-30 06:36:44 +00002446 YY_BUFFER_EOF_PENDING;
2447 }
2448 }
2449
2450 else
2451 ret_val = EOB_ACT_CONTINUE_SCAN;
2452
Reid Spencer832254e2007-02-02 02:16:23 +00002453 yy_n_chars += number_to_move;
2454 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2455 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
Reid Spencere7c3c602006-11-30 06:36:44 +00002456
Reid Spencer832254e2007-02-02 02:16:23 +00002457 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
Reid Spencere7c3c602006-11-30 06:36:44 +00002458
2459 return ret_val;
Reid Spencer832254e2007-02-02 02:16:23 +00002460 }
2461
Reid Spencere7c3c602006-11-30 06:36:44 +00002462
2463/* yy_get_previous_state - get the state just before the EOB char was reached */
2464
Reid Spencer832254e2007-02-02 02:16:23 +00002465static yy_state_type yy_get_previous_state()
2466 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002467 register yy_state_type yy_current_state;
2468 register char *yy_cp;
2469
Reid Spencer832254e2007-02-02 02:16:23 +00002470 yy_current_state = yy_start;
2471 yy_state_ptr = yy_state_buf;
2472 *yy_state_ptr++ = yy_current_state;
2473
2474 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
Reid Spencere7c3c602006-11-30 06:36:44 +00002475 {
2476 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2477 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2478 {
2479 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer785a5ae2007-02-08 00:21:40 +00002480 if ( yy_current_state >= 620 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002481 yy_c = yy_meta[(unsigned int) yy_c];
2482 }
2483 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00002484 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00002485 }
2486
2487 return yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002488 }
2489
Reid Spencere7c3c602006-11-30 06:36:44 +00002490
2491/* yy_try_NUL_trans - try to make a transition on the NUL character
2492 *
2493 * synopsis
2494 * next_state = yy_try_NUL_trans( current_state );
2495 */
Reid Spencer832254e2007-02-02 02:16:23 +00002496
2497#ifdef YY_USE_PROTOS
2498static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2499#else
2500static yy_state_type yy_try_NUL_trans( yy_current_state )
2501yy_state_type yy_current_state;
2502#endif
2503 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002504 register int yy_is_jam;
2505
2506 register YY_CHAR yy_c = 1;
2507 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2508 {
2509 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer785a5ae2007-02-08 00:21:40 +00002510 if ( yy_current_state >= 620 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002511 yy_c = yy_meta[(unsigned int) yy_c];
2512 }
2513 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer785a5ae2007-02-08 00:21:40 +00002514 yy_is_jam = (yy_current_state == 619);
Reid Spencer832254e2007-02-02 02:16:23 +00002515 if ( ! yy_is_jam )
2516 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00002517
2518 return yy_is_jam ? 0 : yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002519 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002520
2521
Reid Spencer832254e2007-02-02 02:16:23 +00002522#ifndef YY_NO_UNPUT
2523#ifdef YY_USE_PROTOS
2524static inline void yyunput( int c, register char *yy_bp )
2525#else
2526static inline void yyunput( c, yy_bp )
2527int c;
2528register char *yy_bp;
2529#endif
2530 {
2531 register char *yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002532
Reid Spencer832254e2007-02-02 02:16:23 +00002533 /* undo effects of setting up yytext */
2534 *yy_cp = yy_hold_char;
2535
2536 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002537 { /* need to shift things up to make room */
2538 /* +2 for EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002539 register int number_to_move = yy_n_chars + 2;
2540 register char *dest = &yy_current_buffer->yy_ch_buf[
2541 yy_current_buffer->yy_buf_size + 2];
Reid Spencere7c3c602006-11-30 06:36:44 +00002542 register char *source =
Reid Spencer832254e2007-02-02 02:16:23 +00002543 &yy_current_buffer->yy_ch_buf[number_to_move];
Reid Spencere7c3c602006-11-30 06:36:44 +00002544
Reid Spencer832254e2007-02-02 02:16:23 +00002545 while ( source > yy_current_buffer->yy_ch_buf )
Reid Spencere7c3c602006-11-30 06:36:44 +00002546 *--dest = *--source;
2547
2548 yy_cp += (int) (dest - source);
2549 yy_bp += (int) (dest - source);
Reid Spencer832254e2007-02-02 02:16:23 +00002550 yy_current_buffer->yy_n_chars =
2551 yy_n_chars = yy_current_buffer->yy_buf_size;
Reid Spencere7c3c602006-11-30 06:36:44 +00002552
Reid Spencer832254e2007-02-02 02:16:23 +00002553 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002554 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2555 }
2556
2557 *--yy_cp = (char) c;
2558
Reid Spencer832254e2007-02-02 02:16:23 +00002559 if ( c == '\n' )
2560 --yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00002561
Reid Spencer832254e2007-02-02 02:16:23 +00002562 yytext_ptr = yy_bp;
2563 yy_hold_char = *yy_cp;
2564 yy_c_buf_p = yy_cp;
2565 }
2566#endif /* ifndef YY_NO_UNPUT */
2567
Reid Spencere7c3c602006-11-30 06:36:44 +00002568
2569#ifndef YY_NO_INPUT
2570#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00002571static int yyinput()
Reid Spencere7c3c602006-11-30 06:36:44 +00002572#else
Reid Spencer832254e2007-02-02 02:16:23 +00002573static int input()
Reid Spencere7c3c602006-11-30 06:36:44 +00002574#endif
Reid Spencer832254e2007-02-02 02:16:23 +00002575 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002576 int c;
2577
Reid Spencer832254e2007-02-02 02:16:23 +00002578 *yy_c_buf_p = yy_hold_char;
2579
2580 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
Reid Spencere7c3c602006-11-30 06:36:44 +00002581 {
2582 /* yy_c_buf_p now points to the character we want to return.
2583 * If this occurs *before* the EOB characters, then it's a
2584 * valid NUL; if not, then we've hit the end of the buffer.
2585 */
Reid Spencer832254e2007-02-02 02:16:23 +00002586 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002587 /* This was really a NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002588 *yy_c_buf_p = '\0';
Reid Spencere7c3c602006-11-30 06:36:44 +00002589
2590 else
2591 { /* need more input */
Reid Spencer832254e2007-02-02 02:16:23 +00002592 int offset = yy_c_buf_p - yytext_ptr;
2593 ++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002594
Reid Spencer832254e2007-02-02 02:16:23 +00002595 switch ( yy_get_next_buffer() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002596 {
2597 case EOB_ACT_LAST_MATCH:
2598 /* This happens because yy_g_n_b()
2599 * sees that we've accumulated a
2600 * token and flags that we need to
2601 * try matching the token before
2602 * proceeding. But for input(),
2603 * there's no matching to consider.
2604 * So convert the EOB_ACT_LAST_MATCH
2605 * to EOB_ACT_END_OF_FILE.
2606 */
2607
2608 /* Reset buffer status. */
Reid Spencer832254e2007-02-02 02:16:23 +00002609 yyrestart( yyin );
Reid Spencere7c3c602006-11-30 06:36:44 +00002610
Reid Spencer832254e2007-02-02 02:16:23 +00002611 /* fall through */
Reid Spencere7c3c602006-11-30 06:36:44 +00002612
2613 case EOB_ACT_END_OF_FILE:
2614 {
Reid Spencer832254e2007-02-02 02:16:23 +00002615 if ( yywrap() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002616 return EOF;
2617
Reid Spencer832254e2007-02-02 02:16:23 +00002618 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencere7c3c602006-11-30 06:36:44 +00002619 YY_NEW_FILE;
2620#ifdef __cplusplus
2621 return yyinput();
2622#else
2623 return input();
2624#endif
2625 }
2626
2627 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002628 yy_c_buf_p = yytext_ptr + offset;
Reid Spencere7c3c602006-11-30 06:36:44 +00002629 break;
2630 }
2631 }
2632 }
2633
Reid Spencer832254e2007-02-02 02:16:23 +00002634 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2635 *yy_c_buf_p = '\0'; /* preserve yytext */
2636 yy_hold_char = *++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002637
2638 if ( c == '\n' )
Reid Spencer832254e2007-02-02 02:16:23 +00002639 ++yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00002640
2641 return c;
Reid Spencer832254e2007-02-02 02:16:23 +00002642 }
2643#endif /* YY_NO_INPUT */
Reid Spencere7c3c602006-11-30 06:36:44 +00002644
Reid Spencer832254e2007-02-02 02:16:23 +00002645#ifdef YY_USE_PROTOS
2646void yyrestart( FILE *input_file )
2647#else
2648void yyrestart( input_file )
2649FILE *input_file;
2650#endif
2651 {
2652 if ( ! yy_current_buffer )
2653 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2654
2655 yy_init_buffer( yy_current_buffer, input_file );
2656 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002657 }
2658
2659
Reid Spencer832254e2007-02-02 02:16:23 +00002660#ifdef YY_USE_PROTOS
2661void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2662#else
2663void yy_switch_to_buffer( new_buffer )
2664YY_BUFFER_STATE new_buffer;
2665#endif
2666 {
2667 if ( yy_current_buffer == new_buffer )
Reid Spencere7c3c602006-11-30 06:36:44 +00002668 return;
2669
Reid Spencer832254e2007-02-02 02:16:23 +00002670 if ( yy_current_buffer )
Reid Spencere7c3c602006-11-30 06:36:44 +00002671 {
2672 /* Flush out information for old buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002673 *yy_c_buf_p = yy_hold_char;
2674 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2675 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencere7c3c602006-11-30 06:36:44 +00002676 }
2677
Reid Spencer832254e2007-02-02 02:16:23 +00002678 yy_current_buffer = new_buffer;
2679 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002680
2681 /* We don't actually know whether we did this switch during
Reid Spencer832254e2007-02-02 02:16:23 +00002682 * EOF (yywrap()) processing, but the only time this flag
2683 * is looked at is after yywrap() is called, so it's safe
Reid Spencere7c3c602006-11-30 06:36:44 +00002684 * to go ahead and always set it.
2685 */
Reid Spencer832254e2007-02-02 02:16:23 +00002686 yy_did_buffer_switch_on_eof = 1;
2687 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002688
2689
Reid Spencer832254e2007-02-02 02:16:23 +00002690#ifdef YY_USE_PROTOS
2691void yy_load_buffer_state( void )
2692#else
2693void yy_load_buffer_state()
2694#endif
2695 {
2696 yy_n_chars = yy_current_buffer->yy_n_chars;
2697 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2698 yyin = yy_current_buffer->yy_input_file;
2699 yy_hold_char = *yy_c_buf_p;
2700 }
2701
2702
2703#ifdef YY_USE_PROTOS
2704YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2705#else
2706YY_BUFFER_STATE yy_create_buffer( file, size )
2707FILE *file;
2708int size;
2709#endif
2710 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002711 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002712
2713 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencere7c3c602006-11-30 06:36:44 +00002714 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002715 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002716
2717 b->yy_buf_size = size;
2718
2719 /* yy_ch_buf has to be 2 characters longer than the size given because
2720 * we need to put in 2 end-of-buffer characters.
2721 */
Reid Spencer832254e2007-02-02 02:16:23 +00002722 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
Reid Spencere7c3c602006-11-30 06:36:44 +00002723 if ( ! b->yy_ch_buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002724 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002725
2726 b->yy_is_our_buffer = 1;
2727
Reid Spencer832254e2007-02-02 02:16:23 +00002728 yy_init_buffer( b, file );
Reid Spencere7c3c602006-11-30 06:36:44 +00002729
2730 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002731 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002732
Reid Spencer832254e2007-02-02 02:16:23 +00002733
2734#ifdef YY_USE_PROTOS
2735void yy_delete_buffer( YY_BUFFER_STATE b )
2736#else
2737void yy_delete_buffer( b )
2738YY_BUFFER_STATE b;
2739#endif
2740 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002741 if ( ! b )
2742 return;
2743
Reid Spencer832254e2007-02-02 02:16:23 +00002744 if ( b == yy_current_buffer )
2745 yy_current_buffer = (YY_BUFFER_STATE) 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002746
2747 if ( b->yy_is_our_buffer )
Reid Spencer832254e2007-02-02 02:16:23 +00002748 yy_flex_free( (void *) b->yy_ch_buf );
Reid Spencere7c3c602006-11-30 06:36:44 +00002749
Reid Spencer832254e2007-02-02 02:16:23 +00002750 yy_flex_free( (void *) b );
2751 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002752
2753
Reid Spencer832254e2007-02-02 02:16:23 +00002754
2755#ifdef YY_USE_PROTOS
2756void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2757#else
2758void yy_init_buffer( b, file )
2759YY_BUFFER_STATE b;
2760FILE *file;
2761#endif
2762
2763
2764 {
2765 yy_flush_buffer( b );
Reid Spencere7c3c602006-11-30 06:36:44 +00002766
2767 b->yy_input_file = file;
2768 b->yy_fill_buffer = 1;
2769
Reid Spencer832254e2007-02-02 02:16:23 +00002770#if YY_ALWAYS_INTERACTIVE
2771 b->yy_is_interactive = 1;
2772#else
2773#if YY_NEVER_INTERACTIVE
2774 b->yy_is_interactive = 0;
2775#else
2776 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2777#endif
2778#endif
2779 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002780
2781
Reid Spencer832254e2007-02-02 02:16:23 +00002782#ifdef YY_USE_PROTOS
2783void yy_flush_buffer( YY_BUFFER_STATE b )
2784#else
2785void yy_flush_buffer( b )
2786YY_BUFFER_STATE b;
2787#endif
2788
2789 {
2790 if ( ! b )
Reid Spencere7c3c602006-11-30 06:36:44 +00002791 return;
2792
2793 b->yy_n_chars = 0;
2794
2795 /* We always need two end-of-buffer characters. The first causes
2796 * a transition to the end-of-buffer state. The second causes
2797 * a jam in that state.
2798 */
2799 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2800 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2801
2802 b->yy_buf_pos = &b->yy_ch_buf[0];
2803
2804 b->yy_at_bol = 1;
2805 b->yy_buffer_status = YY_BUFFER_NEW;
2806
Reid Spencer832254e2007-02-02 02:16:23 +00002807 if ( b == yy_current_buffer )
2808 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002809 }
2810
2811
Reid Spencer832254e2007-02-02 02:16:23 +00002812#ifndef YY_NO_SCAN_BUFFER
2813#ifdef YY_USE_PROTOS
2814YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2815#else
2816YY_BUFFER_STATE yy_scan_buffer( base, size )
2817char *base;
2818yy_size_t size;
2819#endif
2820 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002821 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002822
Reid Spencere7c3c602006-11-30 06:36:44 +00002823 if ( size < 2 ||
2824 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2825 base[size-1] != YY_END_OF_BUFFER_CHAR )
2826 /* They forgot to leave room for the EOB's. */
2827 return 0;
2828
Reid Spencer832254e2007-02-02 02:16:23 +00002829 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencere7c3c602006-11-30 06:36:44 +00002830 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002831 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002832
2833 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2834 b->yy_buf_pos = b->yy_ch_buf = base;
2835 b->yy_is_our_buffer = 0;
2836 b->yy_input_file = 0;
2837 b->yy_n_chars = b->yy_buf_size;
2838 b->yy_is_interactive = 0;
2839 b->yy_at_bol = 1;
2840 b->yy_fill_buffer = 0;
2841 b->yy_buffer_status = YY_BUFFER_NEW;
2842
Reid Spencer832254e2007-02-02 02:16:23 +00002843 yy_switch_to_buffer( b );
Reid Spencere7c3c602006-11-30 06:36:44 +00002844
2845 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002846 }
2847#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002848
2849
Reid Spencer832254e2007-02-02 02:16:23 +00002850#ifndef YY_NO_SCAN_STRING
2851#ifdef YY_USE_PROTOS
2852YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2853#else
2854YY_BUFFER_STATE yy_scan_string( yy_str )
2855yyconst char *yy_str;
2856#endif
2857 {
2858 int len;
2859 for ( len = 0; yy_str[len]; ++len )
2860 ;
2861
2862 return yy_scan_bytes( yy_str, len );
2863 }
2864#endif
2865
2866
2867#ifndef YY_NO_SCAN_BYTES
2868#ifdef YY_USE_PROTOS
2869YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2870#else
2871YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2872yyconst char *bytes;
2873int len;
2874#endif
2875 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002876 YY_BUFFER_STATE b;
2877 char *buf;
2878 yy_size_t n;
2879 int i;
Reid Spencer832254e2007-02-02 02:16:23 +00002880
Reid Spencere7c3c602006-11-30 06:36:44 +00002881 /* Get memory for full buffer, including space for trailing EOB's. */
Reid Spencer832254e2007-02-02 02:16:23 +00002882 n = len + 2;
2883 buf = (char *) yy_flex_alloc( n );
Reid Spencere7c3c602006-11-30 06:36:44 +00002884 if ( ! buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002885 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002886
Reid Spencer832254e2007-02-02 02:16:23 +00002887 for ( i = 0; i < len; ++i )
2888 buf[i] = bytes[i];
Reid Spencere7c3c602006-11-30 06:36:44 +00002889
Reid Spencer832254e2007-02-02 02:16:23 +00002890 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
Reid Spencere7c3c602006-11-30 06:36:44 +00002891
Reid Spencer832254e2007-02-02 02:16:23 +00002892 b = yy_scan_buffer( buf, n );
Reid Spencere7c3c602006-11-30 06:36:44 +00002893 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002894 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002895
2896 /* It's okay to grow etc. this buffer, and we should throw it
2897 * away when we're done.
2898 */
2899 b->yy_is_our_buffer = 1;
2900
2901 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002902 }
2903#endif
2904
2905
2906#ifndef YY_NO_PUSH_STATE
2907#ifdef YY_USE_PROTOS
2908static void yy_push_state( int new_state )
2909#else
2910static void yy_push_state( new_state )
2911int new_state;
2912#endif
2913 {
2914 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2915 {
2916 yy_size_t new_size;
2917
2918 yy_start_stack_depth += YY_START_STACK_INCR;
2919 new_size = yy_start_stack_depth * sizeof( int );
2920
2921 if ( ! yy_start_stack )
2922 yy_start_stack = (int *) yy_flex_alloc( new_size );
2923
2924 else
2925 yy_start_stack = (int *) yy_flex_realloc(
2926 (void *) yy_start_stack, new_size );
2927
2928 if ( ! yy_start_stack )
2929 YY_FATAL_ERROR(
2930 "out of memory expanding start-condition stack" );
2931 }
2932
2933 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2934
2935 BEGIN(new_state);
2936 }
2937#endif
2938
2939
2940#ifndef YY_NO_POP_STATE
2941static void yy_pop_state()
2942 {
2943 if ( --yy_start_stack_ptr < 0 )
2944 YY_FATAL_ERROR( "start-condition stack underflow" );
2945
2946 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2947 }
2948#endif
2949
2950
2951#ifndef YY_NO_TOP_STATE
2952static int yy_top_state()
2953 {
2954 return yy_start_stack[yy_start_stack_ptr - 1];
2955 }
2956#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002957
2958#ifndef YY_EXIT_FAILURE
2959#define YY_EXIT_FAILURE 2
2960#endif
2961
Reid Spencer832254e2007-02-02 02:16:23 +00002962#ifdef YY_USE_PROTOS
2963static void yy_fatal_error( yyconst char msg[] )
2964#else
2965static void yy_fatal_error( msg )
2966char msg[];
2967#endif
2968 {
2969 (void) fprintf( stderr, "%s\n", msg );
Reid Spencere7c3c602006-11-30 06:36:44 +00002970 exit( YY_EXIT_FAILURE );
Reid Spencer832254e2007-02-02 02:16:23 +00002971 }
2972
2973
Reid Spencere7c3c602006-11-30 06:36:44 +00002974
2975/* Redefine yyless() so it works in section 3 code. */
2976
2977#undef yyless
2978#define yyless(n) \
2979 do \
2980 { \
Reid Spencer832254e2007-02-02 02:16:23 +00002981 /* Undo effects of setting up yytext. */ \
2982 yytext[yyleng] = yy_hold_char; \
2983 yy_c_buf_p = yytext + n; \
2984 yy_hold_char = *yy_c_buf_p; \
2985 *yy_c_buf_p = '\0'; \
2986 yyleng = n; \
Reid Spencere7c3c602006-11-30 06:36:44 +00002987 } \
2988 while ( 0 )
2989
2990
Reid Spencer832254e2007-02-02 02:16:23 +00002991/* Internal utility routines. */
Reid Spencere7c3c602006-11-30 06:36:44 +00002992
2993#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00002994#ifdef YY_USE_PROTOS
2995static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2996#else
2997static void yy_flex_strncpy( s1, s2, n )
2998char *s1;
2999yyconst char *s2;
3000int n;
3001#endif
3002 {
Reid Spencere7c3c602006-11-30 06:36:44 +00003003 register int i;
3004 for ( i = 0; i < n; ++i )
3005 s1[i] = s2[i];
Reid Spencer832254e2007-02-02 02:16:23 +00003006 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003007#endif
3008
3009#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00003010#ifdef YY_USE_PROTOS
3011static int yy_flex_strlen( yyconst char *s )
3012#else
3013static int yy_flex_strlen( s )
3014yyconst char *s;
3015#endif
3016 {
Reid Spencere7c3c602006-11-30 06:36:44 +00003017 register int n;
3018 for ( n = 0; s[n]; ++n )
3019 ;
3020
3021 return n;
Reid Spencer832254e2007-02-02 02:16:23 +00003022 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003023#endif
3024
Reid Spencere7c3c602006-11-30 06:36:44 +00003025
Reid Spencer832254e2007-02-02 02:16:23 +00003026#ifdef YY_USE_PROTOS
3027static void *yy_flex_alloc( yy_size_t size )
3028#else
3029static void *yy_flex_alloc( size )
3030yy_size_t size;
3031#endif
3032 {
3033 return (void *) malloc( size );
3034 }
3035
3036#ifdef YY_USE_PROTOS
3037static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
3038#else
3039static inline void *yy_flex_realloc( ptr, size )
3040void *ptr;
3041yy_size_t size;
3042#endif
3043 {
Reid Spencere7c3c602006-11-30 06:36:44 +00003044 /* The cast to (char *) in the following accommodates both
3045 * implementations that use char* generic pointers, and those
3046 * that use void* generic pointers. It works with the latter
3047 * because both ANSI C and C++ allow castless assignment from
3048 * any pointer type to void*, and deal with argument conversions
3049 * as though doing an assignment.
3050 */
3051 return (void *) realloc( (char *) ptr, size );
Reid Spencer832254e2007-02-02 02:16:23 +00003052 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003053
Reid Spencer832254e2007-02-02 02:16:23 +00003054#ifdef YY_USE_PROTOS
3055static void yy_flex_free( void *ptr )
3056#else
3057static void yy_flex_free( ptr )
3058void *ptr;
3059#endif
3060 {
3061 free( ptr );
3062 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003063
Reid Spencer832254e2007-02-02 02:16:23 +00003064#if YY_MAIN
3065int main()
3066 {
3067 yylex();
3068 return 0;
3069 }
3070#endif
Reid Spencer785a5ae2007-02-08 00:21:40 +00003071#line 422 "/proj/llvm/llvm-3/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00003072