blob: 7756bbc08e9874e030d287c6c36b2a7152eca90f [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"
Dale Johannesen43421b32007-09-06 18:13:44 +000020/* 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:
Dale Johannesen43421b32007-09-06 18:13:44 +000023 * $Header: /cvs/root/flex/flex/skel.c,v 1.2 2004/05/07 00:28:17 jkh Exp $
Reid Spencer832254e2007-02-02 02:16:23 +000024 */
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 Spencere7c3c602006-11-30 06:36:44 +000031
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +000032
Reid Spencer832254e2007-02-02 02:16:23 +000033/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
34#ifdef c_plusplus
35#ifndef __cplusplus
36#define __cplusplus
37#endif
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +000038#endif
39
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +000040
41#ifdef __cplusplus
Reid Spencere7c3c602006-11-30 06:36:44 +000042
Reid Spencer832254e2007-02-02 02:16:23 +000043#include <stdlib.h>
Dale Johannesen43421b32007-09-06 18:13:44 +000044#include <unistd.h>
Reid Spencer832254e2007-02-02 02:16:23 +000045
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
Reid Spencere7c3c602006-11-30 06:36:44 +0000156/* The following is because we cannot portably get our hands on size_t
157 * (without autoconf's help, which isn't available because we want
158 * flex-generated scanners to compile on their own).
159 */
160typedef unsigned int yy_size_t;
161
Reid Spencer832254e2007-02-02 02:16:23 +0000162
Reid Spencere7c3c602006-11-30 06:36:44 +0000163struct yy_buffer_state
164 {
165 FILE *yy_input_file;
166
167 char *yy_ch_buf; /* input buffer */
168 char *yy_buf_pos; /* current position in input buffer */
169
170 /* Size of input buffer in bytes, not including room for EOB
171 * characters.
172 */
173 yy_size_t yy_buf_size;
174
175 /* Number of characters read into yy_ch_buf, not including EOB
176 * characters.
177 */
178 int yy_n_chars;
179
180 /* Whether we "own" the buffer - i.e., we know we created it,
181 * and can realloc() it to grow it, and should free() it to
182 * delete it.
183 */
184 int yy_is_our_buffer;
185
186 /* Whether this is an "interactive" input source; if so, and
187 * if we're using stdio for input, then we want to use getc()
188 * instead of fread(), to make sure we stop fetching input after
189 * each newline.
190 */
191 int yy_is_interactive;
192
193 /* Whether we're considered to be at the beginning of a line.
194 * If so, '^' rules will be active on the next match, otherwise
195 * not.
196 */
197 int yy_at_bol;
198
199 /* Whether to try to fill the input buffer when we reach the
200 * end of it.
201 */
202 int yy_fill_buffer;
203
204 int yy_buffer_status;
205#define YY_BUFFER_NEW 0
206#define YY_BUFFER_NORMAL 1
207 /* When an EOF's been seen but there's still some text to process
208 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
209 * shouldn't try reading from the input source any more. We might
210 * still have a bunch of tokens to match, though, because of
211 * possible backing-up.
212 *
213 * When we actually see the EOF, we change the status to "new"
Reid Spencer832254e2007-02-02 02:16:23 +0000214 * (via yyrestart()), so that the user can continue scanning by
215 * just pointing yyin at a new input file.
Reid Spencere7c3c602006-11-30 06:36:44 +0000216 */
217#define YY_BUFFER_EOF_PENDING 2
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000218 };
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000219
Reid Spencer832254e2007-02-02 02:16:23 +0000220static YY_BUFFER_STATE yy_current_buffer = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +0000221
222/* We provide macros for accessing buffer states in case in the
223 * future we want to put the buffer states in a more general
224 * "scanner state".
225 */
Reid Spencer832254e2007-02-02 02:16:23 +0000226#define YY_CURRENT_BUFFER yy_current_buffer
Reid Spencere7c3c602006-11-30 06:36:44 +0000227
228
Reid Spencer832254e2007-02-02 02:16:23 +0000229/* yy_hold_char holds the character lost when yytext is formed. */
Reid Spencere7c3c602006-11-30 06:36:44 +0000230static char yy_hold_char;
Reid Spencer832254e2007-02-02 02:16:23 +0000231
Reid Spencere7c3c602006-11-30 06:36:44 +0000232static int yy_n_chars; /* number of characters read into yy_ch_buf */
Reid Spencer832254e2007-02-02 02:16:23 +0000233
234
235int yyleng;
Reid Spencere7c3c602006-11-30 06:36:44 +0000236
237/* Points to current character in buffer. */
238static char *yy_c_buf_p = (char *) 0;
Reid Spencer832254e2007-02-02 02:16:23 +0000239static int yy_init = 1; /* whether we need to initialize */
Reid Spencere7c3c602006-11-30 06:36:44 +0000240static int yy_start = 0; /* start state number */
241
Reid Spencer832254e2007-02-02 02:16:23 +0000242/* Flag which is used to allow yywrap()'s to do buffer switches
243 * instead of setting up a fresh yyin. A bit of a hack ...
Reid Spencere7c3c602006-11-30 06:36:44 +0000244 */
245static int yy_did_buffer_switch_on_eof;
246
Reid Spencer832254e2007-02-02 02:16:23 +0000247void yyrestart YY_PROTO(( FILE *input_file ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000248
Reid Spencer832254e2007-02-02 02:16:23 +0000249void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
250void yy_load_buffer_state YY_PROTO(( void ));
251YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
252void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
253void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
254void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
255#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
Reid Spencere7c3c602006-11-30 06:36:44 +0000256
Reid Spencer832254e2007-02-02 02:16:23 +0000257YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
258YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
259YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000260
Reid Spencer832254e2007-02-02 02:16:23 +0000261static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
Dale Johannesen43421b32007-09-06 18:13:44 +0000262static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
Reid Spencer832254e2007-02-02 02:16:23 +0000263static void yy_flex_free YY_PROTO(( void * ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000264
Reid Spencer832254e2007-02-02 02:16:23 +0000265#define yy_new_buffer yy_create_buffer
Reid Spencere7c3c602006-11-30 06:36:44 +0000266
267#define yy_set_interactive(is_interactive) \
268 { \
Reid Spencer832254e2007-02-02 02:16:23 +0000269 if ( ! yy_current_buffer ) \
270 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
271 yy_current_buffer->yy_is_interactive = is_interactive; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000272 }
273
274#define yy_set_bol(at_bol) \
275 { \
Reid Spencer832254e2007-02-02 02:16:23 +0000276 if ( ! yy_current_buffer ) \
277 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
278 yy_current_buffer->yy_at_bol = at_bol; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000279 }
280
Reid Spencer832254e2007-02-02 02:16:23 +0000281#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
Reid Spencere7c3c602006-11-30 06:36:44 +0000282
283
Reid Spencer832254e2007-02-02 02:16:23 +0000284#define YY_USES_REJECT
285
286#define yywrap() 1
Reid Spencere7c3c602006-11-30 06:36:44 +0000287#define YY_SKIP_YYWRAP
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000288typedef unsigned char YY_CHAR;
Reid Spencer832254e2007-02-02 02:16:23 +0000289FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000290typedef int yy_state_type;
Reid Spencer832254e2007-02-02 02:16:23 +0000291extern int yylineno;
292int yylineno = 1;
293extern char *yytext;
294#define yytext_ptr yytext
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000295
Reid Spencer832254e2007-02-02 02:16:23 +0000296static yy_state_type yy_get_previous_state YY_PROTO(( void ));
297static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
298static int yy_get_next_buffer YY_PROTO(( void ));
299static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000300
301/* Done after the current pattern has been matched and before the
Reid Spencer832254e2007-02-02 02:16:23 +0000302 * corresponding action - sets up yytext.
Reid Spencere7c3c602006-11-30 06:36:44 +0000303 */
304#define YY_DO_BEFORE_ACTION \
Reid Spencer832254e2007-02-02 02:16:23 +0000305 yytext_ptr = yy_bp; \
306 yyleng = (int) (yy_cp - yy_bp); \
307 yy_hold_char = *yy_cp; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000308 *yy_cp = '\0'; \
Reid Spencer832254e2007-02-02 02:16:23 +0000309 yy_c_buf_p = yy_cp;
Reid Spencere7c3c602006-11-30 06:36:44 +0000310
Reid Spencer785a5ae2007-02-08 00:21:40 +0000311#define YY_NUM_RULES 161
312#define YY_END_OF_BUFFER 162
313static yyconst short int yy_acclist[241] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000314 { 0,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000315 162, 160, 161, 159, 160, 161, 159, 161, 160, 161,
316 160, 161, 160, 161, 160, 161, 160, 161, 160, 161,
317 152, 160, 161, 152, 160, 161, 1, 160, 161, 160,
318 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
319 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
320 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
321 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
322 161, 160, 161, 151, 149, 148, 148, 155, 153, 157,
323 152, 1, 134, 41, 94, 62, 50, 95, 80, 23,
324 151, 148, 148, 156, 157, 20, 157, 158, 68, 79,
Reid Spencere7c3c602006-11-30 06:36:44 +0000325
Reid Spencer785a5ae2007-02-08 00:21:40 +0000326 39, 34, 42, 71, 3, 53, 56, 59, 54, 70,
327 25, 104, 109, 107, 108, 106, 105, 110, 114, 75,
328 133, 99, 97, 88, 89, 98, 96, 69, 112, 103,
329 101, 102, 100, 113, 111, 81, 150, 157, 157, 91,
330 61, 115, 116, 93, 74, 141, 78, 92, 142, 57,
331 90, 22, 154, 73, 119, 77, 26, 4, 66, 72,
332 55, 76, 60, 11, 118, 157, 36, 2, 5, 63,
333 121, 65, 48, 83, 87, 85, 86, 84, 82, 51,
334 143, 117, 49, 58, 21, 131, 140, 45, 64, 30,
335 24, 44, 123, 122, 7, 136, 33, 139, 38, 67,
Reid Spencere7c3c602006-11-30 06:36:44 +0000336
Reid Spencer785a5ae2007-02-08 00:21:40 +0000337 129, 125, 135, 27, 28, 124, 137, 52, 132, 130,
338 128, 43, 6, 29, 120, 37, 8, 17, 9, 127,
339 10, 126, 35, 12, 14, 13, 32, 40, 15, 31,
340 138, 144, 146, 147, 16, 46, 145, 18, 47, 19
Reid Spencere7c3c602006-11-30 06:36:44 +0000341 } ;
342
Reid Spencer785a5ae2007-02-08 00:21:40 +0000343static yyconst short int yy_accept[621] =
Reid Spencer832254e2007-02-02 02:16:23 +0000344 { 0,
345 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
346 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
347 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000348 60, 62, 64, 66, 68, 70, 72, 74, 74, 75,
349 75, 76, 77, 78, 79, 79, 80, 80, 81, 82,
Reid Spencer832254e2007-02-02 02:16:23 +0000350 82, 83, 83, 83, 83, 83, 83, 83, 83, 83,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000351 83, 84, 84, 85, 85, 85, 85, 85, 85, 85,
352 85, 85, 86, 86, 86, 86, 86, 86, 86, 86,
353 86, 86, 87, 87, 87, 88, 88, 88, 88, 88,
354 88, 88, 88, 88, 88, 88, 89, 89, 89, 89,
Reid Spencer832254e2007-02-02 02:16:23 +0000355
Reid Spencer785a5ae2007-02-08 00:21:40 +0000356 89, 89, 89, 89, 90, 90, 90, 90, 90, 90,
357 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
358 90, 90, 91, 91, 91, 91, 91, 91, 91, 91,
359 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
360 92, 93, 95, 96, 97, 98, 98, 99, 99, 100,
361 100, 100, 101, 101, 101, 102, 102, 103, 103, 103,
362 103, 103, 104, 104, 104, 104, 104, 104, 104, 105,
363 105, 105, 106, 106, 106, 106, 106, 106, 106, 106,
364 106, 106, 106, 106, 106, 107, 108, 109, 109, 109,
365 109, 110, 110, 110, 110, 110, 110, 110, 110, 110,
Reid Spencer832254e2007-02-02 02:16:23 +0000366
Reid Spencer785a5ae2007-02-08 00:21:40 +0000367 110, 111, 112, 112, 113, 114, 115, 116, 117, 118,
368 118, 119, 120, 120, 120, 121, 122, 122, 122, 122,
369 122, 122, 122, 122, 123, 124, 125, 125, 126, 126,
370 126, 126, 127, 128, 128, 128, 129, 129, 129, 129,
371 129, 129, 129, 129, 129, 130, 131, 132, 132, 132,
372 133, 133, 134, 134, 135, 135, 136, 136, 136, 136,
373 136, 136, 136, 136, 136, 136, 136, 136, 137, 137,
374 137, 138, 139, 139, 139, 139, 140, 140, 140, 140,
375 141, 141, 141, 142, 143, 144, 144, 144, 144, 144,
376 144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
Reid Spencer832254e2007-02-02 02:16:23 +0000377
Reid Spencer785a5ae2007-02-08 00:21:40 +0000378 144, 145, 146, 146, 146, 146, 146, 147, 148, 148,
379 148, 149, 149, 149, 149, 149, 149, 149, 149, 149,
380 150, 151, 152, 152, 152, 153, 153, 153, 153, 154,
381 154, 155, 155, 155, 155, 155, 155, 155, 156, 156,
382 156, 156, 156, 157, 157, 157, 158, 158, 158, 159,
383 159, 160, 160, 161, 162, 162, 162, 162, 162, 162,
384 162, 163, 163, 163, 163, 163, 164, 164, 165, 165,
385 165, 166, 167, 168, 168, 168, 169, 169, 169, 169,
386 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
387 169, 170, 170, 171, 172, 172, 172, 172, 172, 172,
Reid Spencer832254e2007-02-02 02:16:23 +0000388
Reid Spencer785a5ae2007-02-08 00:21:40 +0000389 172, 172, 172, 172, 172, 173, 173, 173, 173, 173,
390 173, 173, 173, 174, 174, 174, 175, 176, 177, 178,
391 179, 180, 181, 181, 181, 181, 182, 182, 182, 182,
392 183, 184, 184, 185, 186, 186, 186, 186, 186, 186,
393 187, 187, 187, 187, 187, 187, 188, 188, 188, 189,
394 189, 189, 189, 189, 189, 189, 189, 190, 191, 192,
395 192, 192, 193, 194, 195, 195, 195, 196, 196, 196,
396 196, 196, 197, 197, 198, 199, 200, 201, 201, 201,
397 201, 202, 202, 202, 203, 204, 205, 206, 207, 207,
398 207, 208, 209, 210, 211, 211, 211, 211, 211, 211,
Reid Spencer832254e2007-02-02 02:16:23 +0000399
Reid Spencer785a5ae2007-02-08 00:21:40 +0000400 212, 212, 213, 213, 214, 215, 215, 215, 215, 215,
401 215, 216, 216, 216, 216, 216, 216, 216, 216, 216,
402 217, 217, 217, 217, 217, 217, 217, 217, 217, 217,
403 218, 218, 218, 218, 218, 219, 219, 219, 219, 219,
404 220, 221, 222, 222, 223, 223, 223, 223, 223, 224,
405 224, 224, 224, 225, 225, 226, 227, 227, 227, 227,
406 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
407 228, 228, 228, 228, 228, 228, 228, 228, 229, 229,
408 229, 229, 229, 229, 230, 230, 230, 230, 230, 231,
409 231, 231, 232, 232, 232, 232, 232, 232, 232, 232,
Reid Spencer832254e2007-02-02 02:16:23 +0000410
Reid Spencer785a5ae2007-02-08 00:21:40 +0000411 232, 232, 232, 232, 232, 232, 233, 233, 234, 235,
412 236, 236, 237, 237, 238, 239, 240, 240, 241, 241
Reid Spencer832254e2007-02-02 02:16:23 +0000413 } ;
414
415static yyconst int yy_ec[256] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000416 { 0,
417 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
418 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
419 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
420 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000421 1, 1, 7, 1, 8, 9, 1, 10, 11, 12,
422 13, 14, 15, 16, 15, 17, 15, 18, 19, 1,
423 1, 1, 1, 20, 21, 21, 21, 21, 22, 21,
Reid Spencere7c3c602006-11-30 06:36:44 +0000424 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
425 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000426 1, 1, 1, 1, 23, 1, 24, 25, 26, 27,
Reid Spencere7c3c602006-11-30 06:36:44 +0000427
Reid Spencer785a5ae2007-02-08 00:21:40 +0000428 28, 29, 30, 31, 32, 5, 33, 34, 35, 36,
429 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
430 47, 48, 1, 1, 1, 1, 1, 1, 1, 1,
Reid Spencere7c3c602006-11-30 06:36:44 +0000431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
432 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
433 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
436 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
438
439 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
440 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
441 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
442 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
443 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
444 1, 1, 1, 1, 1
445 } ;
446
Reid Spencer785a5ae2007-02-08 00:21:40 +0000447static yyconst int yy_meta[49] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000448 { 0,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000449 1, 1, 2, 1, 3, 1, 4, 5, 3, 6,
450 6, 6, 6, 6, 6, 6, 6, 7, 1, 1,
451 3, 8, 3, 3, 3, 3, 3, 8, 3, 3,
Reid Spencere7c3c602006-11-30 06:36:44 +0000452 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000453 3, 3, 3, 3, 3, 3, 3, 3
Reid Spencere7c3c602006-11-30 06:36:44 +0000454 } ;
455
Reid Spencer785a5ae2007-02-08 00:21:40 +0000456static yyconst short int yy_base[630] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000457 { 0,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000458 0, 0, 1336, 1337, 1337, 1337, 1331, 1316, 41, 0,
459 49, 59, 69, 1287, 0, 112, 69, 72, 93, 113,
460 52, 122, 74, 152, 120, 77, 136, 156, 135, 71,
461 187, 186, 224, 118, 115, 56, 153, 1328, 1337, 1313,
462 1337, 0, 256, 0, 1321, 1320, 88, 264, 1282, 283,
463 0, 1323, 140, 157, 158, 121, 164, 183, 198, 32,
464 1308, 190, 95, 175, 54, 165, 217, 162, 117, 182,
465 218, 1307, 220, 272, 185, 100, 204, 219, 235, 241,
466 264, 232, 273, 57, 1306, 284, 285, 296, 297, 299,
467 300, 226, 298, 302, 308, 1305, 303, 309, 307, 316,
Reid Spencere7c3c602006-11-30 06:36:44 +0000468
Reid Spencer785a5ae2007-02-08 00:21:40 +0000469 321, 329, 330, 332, 333, 334, 313, 337, 310, 315,
470 342, 343, 350, 353, 346, 352, 358, 363, 357, 365,
471 366, 1304, 373, 377, 381, 385, 383, 384, 389, 390,
472 402, 386, 392, 417, 418, 395, 271, 393, 403, 1303,
473 0, 0, 416, 1302, 0, 447, 0, 1315, 1300, 438,
474 428, 1299, 448, 427, 1298, 419, 1297, 451, 452, 453,
475 406, 1296, 454, 455, 456, 461, 457, 460, 1295, 465,
476 464, 470, 462, 477, 474, 480, 481, 482, 483, 485,
477 488, 486, 490, 491, 1294, 1293, 1292, 492, 493, 495,
478 506, 502, 514, 511, 494, 519, 515, 517, 520, 522,
Reid Spencere7c3c602006-11-30 06:36:44 +0000479
Reid Spencer785a5ae2007-02-08 00:21:40 +0000480 1291, 1290, 525, 1289, 1288, 1287, 1286, 1285, 1284, 523,
481 1283, 1282, 531, 529, 1281, 1280, 562, 538, 537, 540,
482 532, 567, 550, 1279, 1278, 1277, 575, 1276, 534, 533,
483 576, 1275, 1274, 535, 578, 1273, 580, 582, 581, 586,
484 584, 589, 587, 588, 1272, 1271, 1270, 591, 590, 1269,
485 592, 1268, 603, 1267, 601, 1266, 607, 608, 612, 605,
486 620, 596, 621, 616, 627, 623, 546, 1265, 628, 630,
487 1337, 630, 646, 652, 654, 656, 632, 648, 637, 1264,
488 639, 652, 1263, 1262, 1261, 651, 649, 653, 660, 661,
489 664, 662, 663, 665, 666, 668, 669, 679, 674, 675,
Reid Spencere7c3c602006-11-30 06:36:44 +0000490
Reid Spencer785a5ae2007-02-08 00:21:40 +0000491 1260, 1259, 670, 671, 682, 686, 1258, 1257, 687, 692,
492 1256, 689, 693, 696, 697, 702, 704, 700, 706, 1255,
493 1254, 1253, 708, 709, 1252, 701, 710, 712, 0, 713,
494 1251, 714, 721, 724, 730, 732, 733, 1250, 735, 736,
495 738, 739, 1249, 741, 744, 1248, 753, 746, 1247, 749,
496 1246, 755, 1245, 1244, 758, 760, 764, 766, 761, 768,
497 1243, 770, 771, 773, 774, 1242, 776, 1241, 778, 777,
498 1240, 0, 1239, 781, 779, 1238, 782, 790, 797, 796,
499 806, 794, 807, 795, 799, 808, 809, 810, 811, 813,
500 1237, 817, 1236, 1235, 822, 823, 820, 830, 826, 824,
Reid Spencere7c3c602006-11-30 06:36:44 +0000501
Reid Spencer785a5ae2007-02-08 00:21:40 +0000502 828, 831, 833, 835, 1234, 832, 844, 839, 846, 848,
503 851, 843, 1233, 855, 859, 1232, 1231, 1230, 1229, 1228,
504 1227, 1226, 860, 862, 864, 1225, 865, 863, 867, 1224,
505 1223, 866, 1222, 1221, 868, 871, 872, 869, 870, 1220,
506 875, 880, 885, 888, 889, 1219, 890, 895, 1218, 896,
507 897, 898, 900, 901, 902, 903, 1217, 1216, 1215, 911,
508 906, 1214, 1213, 1212, 915, 908, 1211, 918, 926, 929,
509 909, 1210, 931, 1209, 1208, 1207, 1206, 920, 932, 934,
510 1205, 937, 938, 1204, 1203, 1202, 1201, 1200, 940, 943,
511 1199, 1198, 1197, 1192, 941, 944, 946, 945, 948, 1181,
Reid Spencere7c3c602006-11-30 06:36:44 +0000512
Reid Spencer785a5ae2007-02-08 00:21:40 +0000513 951, 1178, 953, 1170, 1167, 958, 960, 961, 962, 963,
514 1164, 964, 965, 968, 969, 970, 971, 976, 977, 1158,
515 979, 986, 987, 989, 990, 991, 994, 997, 998, 1146,
516 1003, 1006, 1007, 1004, 1145, 1008, 1009, 1011, 1012, 1144,
517 1142, 1141, 1018, 1140, 1013, 1017, 1020, 1019, 1139, 1029,
518 1033, 1034, 1137, 1016, 1136, 1133, 1038, 1041, 1042, 1043,
519 1045, 1046, 1047, 1050, 1053, 1052, 1054, 1056, 1057, 1131,
520 1058, 1061, 1059, 1064, 1065, 1070, 1069, 1128, 1071, 1077,
521 1081, 1082, 1083, 913, 1084, 1085, 1086, 1089, 784, 1091,
522 1092, 783, 1090, 1095, 1104, 1096, 1105, 1111, 1108, 1112,
Reid Spencer229e9362006-12-02 22:14:11 +0000523
Reid Spencer785a5ae2007-02-08 00:21:40 +0000524 1113, 1115, 1116, 1117, 1119, 737, 1120, 548, 391, 349,
525 1121, 312, 1125, 270, 266, 221, 1126, 184, 1337, 1166,
526 1172, 1178, 192, 1186, 1192, 70, 1200, 1203, 1208
Reid Spencere7c3c602006-11-30 06:36:44 +0000527 } ;
528
Reid Spencer785a5ae2007-02-08 00:21:40 +0000529static yyconst short int yy_def[630] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000530 { 0,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000531 619, 1, 619, 619, 619, 619, 620, 621, 622, 623,
532 621, 621, 11, 13, 624, 622, 621, 621, 621, 621,
533 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
534 621, 621, 621, 621, 621, 621, 621, 620, 619, 621,
535 619, 625, 625, 626, 623, 11, 621, 11, 13, 11,
536 624, 627, 621, 621, 621, 621, 621, 621, 621, 621,
537 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
538 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
539 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
540 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencere7c3c602006-11-30 06:36:44 +0000541
Reid Spencer785a5ae2007-02-08 00:21:40 +0000542 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
543 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
544 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
545 621, 621, 621, 621, 621, 621, 621, 621, 621, 619,
546 625, 43, 628, 621, 48, 11, 50, 627, 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,
550 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
551 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencere7c3c602006-11-30 06:36:44 +0000552
Reid Spencer785a5ae2007-02-08 00:21:40 +0000553 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
554 621, 621, 621, 621, 621, 621, 50, 621, 621, 621,
555 621, 621, 621, 621, 621, 621, 621, 621, 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 619, 628, 629, 629, 146, 146, 621, 621, 621, 621,
561 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
562 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencere7c3c602006-11-30 06:36:44 +0000563
Reid Spencer785a5ae2007-02-08 00:21:40 +0000564 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, 217, 621,
567 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
568 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
569 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
570 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
571 621, 274, 621, 621, 621, 621, 621, 621, 621, 621,
572 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
573 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencere7c3c602006-11-30 06:36:44 +0000574
Reid Spencer785a5ae2007-02-08 00:21:40 +0000575 621, 621, 621, 621, 621, 621, 621, 621, 621, 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, 621, 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,
583 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
584 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencere7c3c602006-11-30 06:36:44 +0000585
Reid Spencer785a5ae2007-02-08 00:21:40 +0000586 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,
594 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
595 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
Reid Spencer229e9362006-12-02 22:14:11 +0000596
Reid Spencer785a5ae2007-02-08 00:21:40 +0000597 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
598 621, 621, 621, 621, 621, 621, 621, 621, 0, 619,
599 619, 619, 619, 619, 619, 619, 619, 619, 619
Reid Spencere7c3c602006-11-30 06:36:44 +0000600 } ;
601
Reid Spencer785a5ae2007-02-08 00:21:40 +0000602static yyconst short int yy_nxt[1386] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000603 { 0,
604 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000605 14, 14, 14, 14, 14, 14, 14, 4, 15, 16,
606 8, 8, 8, 17, 18, 19, 20, 21, 22, 23,
607 8, 24, 8, 25, 26, 27, 28, 29, 8, 30,
608 31, 32, 33, 34, 35, 36, 8, 37, 43, 41,
609 44, 44, 44, 44, 44, 44, 44, 44, 46, 46,
610 46, 46, 46, 46, 46, 46, 41, 47, 159, 41,
611 187, 41, 137, 41, 41, 44, 41, 48, 49, 49,
612 49, 49, 49, 49, 49, 49, 41, 71, 41, 41,
613 72, 41, 138, 165, 41, 53, 144, 73, 108, 58,
Reid Spencere7c3c602006-11-30 06:36:44 +0000614
Reid Spencer785a5ae2007-02-08 00:21:40 +0000615 93, 80, 54, 59, 55, 41, 56, 81, 60, 57,
616 41, 61, 41, 94, 50, 52, 62, 41, 63, 95,
617 162, 619, 619, 619, 619, 619, 619, 619, 619, 64,
618 41, 178, 41, 65, 41, 41, 66, 41, 41, 41,
619 67, 134, 136, 89, 68, 74, 69, 75, 76, 70,
620 170, 90, 41, 41, 135, 77, 91, 41, 153, 78,
621 92, 79, 82, 96, 83, 105, 149, 84, 85, 41,
622 41, 106, 97, 41, 41, 41, 107, 86, 98, 41,
623 139, 41, 41, 99, 152, 100, 87, 88, 150, 101,
624 151, 102, 41, 103, 154, 104, 109, 45, 155, 41,
Reid Spencere7c3c602006-11-30 06:36:44 +0000625
Reid Spencer785a5ae2007-02-08 00:21:40 +0000626 41, 41, 41, 41, 41, 169, 166, 41, 163, 121,
627 164, 110, 156, 111, 112, 41, 113, 114, 115, 177,
628 116, 41, 122, 160, 171, 123, 117, 157, 118, 119,
629 161, 120, 124, 109, 41, 41, 41, 41, 41, 158,
630 179, 41, 167, 41, 172, 173, 180, 185, 125, 41,
631 126, 127, 41, 128, 168, 129, 198, 130, 41, 131,
632 181, 174, 182, 132, 133, 142, 142, 142, 142, 142,
633 142, 142, 142, 145, 145, 145, 145, 145, 145, 145,
634 145, 41, 183, 41, 186, 146, 267, 41, 41, 41,
635 41, 146, 147, 147, 147, 147, 147, 147, 147, 147,
Reid Spencere7c3c602006-11-30 06:36:44 +0000636
Reid Spencer785a5ae2007-02-08 00:21:40 +0000637 184, 41, 41, 147, 147, 175, 147, 147, 147, 147,
638 147, 147, 176, 41, 41, 41, 41, 41, 188, 41,
639 41, 193, 189, 196, 41, 41, 41, 41, 200, 41,
640 41, 199, 41, 41, 194, 197, 190, 191, 41, 192,
641 195, 201, 203, 205, 202, 204, 41, 41, 207, 41,
642 41, 41, 214, 210, 41, 217, 209, 206, 211, 41,
643 41, 218, 208, 41, 212, 213, 41, 41, 220, 41,
644 41, 215, 230, 219, 41, 41, 221, 224, 216, 232,
645 41, 236, 41, 41, 222, 234, 226, 231, 223, 227,
646 41, 225, 228, 233, 41, 229, 237, 238, 41, 235,
Reid Spencere7c3c602006-11-30 06:36:44 +0000647
Reid Spencer785a5ae2007-02-08 00:21:40 +0000648 41, 41, 41, 41, 240, 239, 41, 41, 41, 41,
649 41, 246, 41, 259, 242, 241, 244, 250, 266, 41,
650 41, 245, 260, 41, 248, 247, 251, 243, 253, 254,
651 249, 252, 268, 255, 41, 41, 41, 273, 256, 261,
652 262, 257, 269, 273, 41, 41, 258, 285, 270, 264,
653 281, 265, 263, 274, 275, 41, 276, 276, 276, 276,
654 276, 276, 276, 276, 278, 41, 280, 277, 41, 41,
655 41, 41, 41, 41, 41, 279, 282, 41, 41, 41,
656 286, 41, 41, 288, 289, 283, 284, 41, 294, 296,
657 290, 41, 292, 291, 41, 287, 293, 41, 41, 41,
Reid Spencere7c3c602006-11-30 06:36:44 +0000658
Reid Spencer785a5ae2007-02-08 00:21:40 +0000659 41, 295, 41, 41, 297, 41, 303, 41, 41, 41,
660 41, 41, 41, 307, 299, 310, 298, 309, 301, 41,
661 308, 300, 313, 41, 305, 302, 312, 306, 41, 311,
662 304, 41, 41, 314, 41, 319, 41, 41, 316, 41,
663 41, 317, 41, 318, 321, 320, 41, 315, 41, 41,
664 41, 41, 41, 323, 41, 41, 322, 41, 325, 333,
665 341, 326, 340, 41, 324, 41, 327, 41, 369, 343,
666 328, 329, 329, 329, 329, 329, 329, 329, 329, 330,
667 331, 332, 329, 329, 41, 329, 329, 329, 329, 329,
668 329, 338, 41, 41, 334, 41, 335, 41, 41, 41,
Reid Spencere7c3c602006-11-30 06:36:44 +0000669
Reid Spencer785a5ae2007-02-08 00:21:40 +0000670 336, 41, 337, 41, 41, 41, 41, 41, 41, 41,
671 347, 349, 342, 41, 339, 346, 351, 344, 41, 350,
672 41, 345, 41, 348, 41, 41, 355, 356, 352, 41,
673 357, 353, 354, 41, 359, 364, 358, 41, 41, 360,
674 41, 362, 366, 363, 41, 41, 361, 41, 365, 41,
675 367, 273, 274, 274, 41, 368, 41, 273, 619, 619,
676 619, 40, 619, 40, 370, 41, 41, 373, 41, 41,
677 41, 371, 375, 374, 376, 377, 378, 41, 41, 41,
678 41, 41, 41, 41, 382, 41, 41, 41, 41, 387,
679 379, 41, 41, 381, 380, 383, 41, 385, 386, 41,
Reid Spencere7c3c602006-11-30 06:36:44 +0000680
Reid Spencer785a5ae2007-02-08 00:21:40 +0000681 392, 391, 390, 41, 41, 388, 41, 384, 389, 41,
682 41, 393, 394, 41, 41, 399, 400, 41, 41, 41,
683 398, 41, 395, 41, 396, 41, 41, 41, 397, 41,
684 41, 41, 401, 403, 404, 402, 406, 405, 41, 407,
685 413, 41, 409, 410, 408, 414, 415, 41, 412, 41,
686 41, 411, 41, 41, 41, 41, 41, 417, 41, 419,
687 421, 41, 416, 41, 423, 424, 41, 425, 426, 427,
688 41, 418, 41, 420, 430, 41, 422, 41, 41, 429,
689 428, 41, 431, 41, 436, 41, 432, 41, 41, 433,
690 41, 41, 434, 41, 41, 41, 41, 435, 41, 41,
Reid Spencere7c3c602006-11-30 06:36:44 +0000691
Reid Spencer785a5ae2007-02-08 00:21:40 +0000692 41, 41, 440, 437, 446, 447, 443, 41, 445, 438,
693 439, 41, 41, 41, 41, 449, 41, 442, 444, 441,
694 450, 451, 448, 41, 41, 41, 41, 41, 41, 452,
695 41, 454, 455, 453, 41, 457, 456, 41, 461, 41,
696 41, 41, 462, 41, 458, 41, 460, 41, 41, 41,
697 41, 459, 41, 463, 464, 465, 41, 466, 468, 467,
698 41, 41, 472, 41, 475, 41, 470, 473, 41, 469,
699 471, 474, 41, 476, 479, 477, 41, 41, 478, 41,
700 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
701 483, 480, 41, 482, 487, 485, 490, 41, 491, 493,
Reid Spencer78720742006-12-02 20:21:22 +0000702
Reid Spencer785a5ae2007-02-08 00:21:40 +0000703 481, 484, 41, 488, 486, 41, 41, 41, 496, 489,
704 492, 495, 41, 41, 41, 41, 494, 41, 41, 41,
705 41, 499, 502, 41, 498, 41, 41, 504, 41, 497,
706 41, 501, 41, 508, 509, 41, 500, 41, 506, 507,
707 511, 505, 512, 41, 503, 513, 41, 510, 41, 41,
708 516, 41, 515, 514, 41, 41, 517, 41, 41, 518,
709 41, 41, 41, 41, 521, 41, 522, 519, 41, 520,
710 41, 523, 527, 524, 525, 41, 528, 41, 41, 41,
711 41, 41, 41, 529, 526, 41, 41, 41, 41, 531,
712 536, 537, 530, 41, 41, 535, 41, 532, 542, 533,
Reid Spencer78720742006-12-02 20:21:22 +0000713
Reid Spencer785a5ae2007-02-08 00:21:40 +0000714 538, 539, 540, 41, 41, 534, 41, 41, 41, 541,
715 547, 41, 548, 546, 41, 41, 543, 549, 544, 551,
716 41, 41, 545, 41, 41, 41, 41, 553, 41, 41,
717 41, 557, 550, 41, 41, 41, 41, 41, 552, 561,
718 563, 558, 564, 566, 559, 554, 41, 555, 556, 562,
719 41, 41, 560, 565, 567, 41, 568, 570, 41, 41,
720 41, 571, 41, 41, 41, 569, 574, 41, 572, 41,
721 41, 41, 577, 41, 41, 41, 41, 581, 41, 575,
722 583, 41, 41, 573, 579, 580, 41, 41, 41, 582,
723 584, 578, 588, 576, 41, 585, 586, 589, 41, 41,
Reid Spencer78720742006-12-02 20:21:22 +0000724
Reid Spencer785a5ae2007-02-08 00:21:40 +0000725 41, 41, 41, 41, 592, 587, 41, 41, 41, 41,
726 590, 596, 41, 41, 593, 594, 595, 598, 591, 601,
727 603, 41, 41, 602, 599, 41, 597, 600, 41, 41,
728 41, 605, 41, 41, 41, 604, 41, 41, 41, 610,
729 611, 612, 41, 41, 606, 41, 616, 607, 41, 608,
730 41, 609, 617, 41, 41, 615, 41, 41, 41, 41,
731 614, 41, 41, 41, 613, 618, 38, 38, 38, 38,
732 38, 38, 38, 38, 40, 41, 40, 40, 40, 40,
733 42, 41, 42, 42, 41, 42, 51, 41, 51, 51,
734 51, 51, 51, 51, 141, 41, 141, 141, 41, 141,
Reid Spencer229e9362006-12-02 22:14:11 +0000735
Reid Spencer785a5ae2007-02-08 00:21:40 +0000736 148, 148, 148, 148, 148, 148, 148, 148, 272, 41,
737 272, 372, 372, 372, 41, 41, 41, 41, 41, 41,
738 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
739 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
740 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
741 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
742 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
743 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
744 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
745 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
Reid Spencer229e9362006-12-02 22:14:11 +0000746
Reid Spencer785a5ae2007-02-08 00:21:40 +0000747 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
748 41, 41, 41, 41, 41, 41, 41, 41, 39, 41,
749 271, 41, 41, 41, 41, 41, 39, 40, 48, 143,
750 41, 140, 40, 41, 39, 619, 3, 619, 619, 619,
751 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
752 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
753 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
754 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
755 619, 619, 619, 619, 619
Reid Spencere7c3c602006-11-30 06:36:44 +0000756 } ;
757
Reid Spencer785a5ae2007-02-08 00:21:40 +0000758static yyconst short int yy_chk[1386] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000759 { 0,
760 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
761 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
762 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
763 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Reid Spencer785a5ae2007-02-08 00:21:40 +0000764 1, 1, 1, 1, 1, 1, 1, 1, 9, 60,
765 9, 9, 9, 9, 9, 9, 9, 9, 11, 11,
766 11, 11, 11, 11, 11, 11, 11, 12, 60, 21,
767 84, 65, 36, 36, 84, 626, 12, 13, 13, 13,
768 13, 13, 13, 13, 13, 13, 17, 21, 30, 18,
769 21, 23, 36, 65, 26, 17, 47, 21, 30, 18,
Reid Spencere7c3c602006-11-30 06:36:44 +0000770
Reid Spencer785a5ae2007-02-08 00:21:40 +0000771 26, 23, 17, 18, 17, 47, 17, 23, 18, 17,
772 19, 18, 63, 26, 13, 16, 19, 76, 19, 26,
773 63, 16, 16, 16, 16, 16, 16, 16, 16, 19,
774 20, 76, 35, 19, 69, 34, 20, 25, 56, 22,
775 20, 34, 35, 25, 20, 22, 20, 22, 22, 20,
776 69, 25, 29, 27, 34, 22, 25, 53, 56, 22,
777 25, 22, 24, 27, 24, 29, 53, 24, 24, 24,
778 37, 29, 27, 28, 54, 55, 29, 24, 27, 68,
779 37, 57, 66, 28, 55, 28, 24, 24, 54, 28,
780 54, 28, 64, 28, 57, 28, 31, 623, 57, 70,
Reid Spencere7c3c602006-11-30 06:36:44 +0000781
Reid Spencer785a5ae2007-02-08 00:21:40 +0000782 58, 618, 75, 32, 31, 68, 66, 62, 64, 32,
783 64, 31, 58, 31, 31, 59, 31, 31, 31, 75,
784 31, 77, 32, 62, 70, 32, 31, 59, 31, 31,
785 62, 31, 32, 33, 67, 71, 78, 73, 616, 59,
786 77, 33, 67, 92, 71, 73, 78, 82, 33, 82,
787 33, 33, 79, 33, 67, 33, 92, 33, 80, 33,
788 78, 73, 79, 33, 33, 43, 43, 43, 43, 43,
789 43, 43, 43, 48, 48, 48, 48, 48, 48, 48,
790 48, 81, 80, 615, 83, 48, 137, 614, 137, 74,
791 83, 48, 50, 50, 50, 50, 50, 50, 50, 50,
Reid Spencere7c3c602006-11-30 06:36:44 +0000792
Reid Spencer785a5ae2007-02-08 00:21:40 +0000793 81, 86, 87, 50, 50, 74, 50, 50, 50, 50,
794 50, 50, 74, 88, 89, 93, 90, 91, 86, 94,
795 97, 89, 87, 91, 99, 95, 98, 109, 94, 612,
796 107, 93, 110, 100, 90, 91, 88, 88, 101, 88,
797 90, 95, 98, 100, 97, 99, 102, 103, 101, 104,
798 105, 106, 107, 103, 108, 109, 102, 100, 104, 111,
799 112, 110, 101, 115, 105, 106, 610, 113, 112, 116,
800 114, 108, 115, 111, 119, 117, 112, 113, 108, 116,
801 118, 119, 120, 121, 112, 117, 114, 115, 112, 114,
802 123, 113, 114, 116, 124, 114, 120, 121, 125, 118,
Reid Spencere7c3c602006-11-30 06:36:44 +0000803
Reid Spencer785a5ae2007-02-08 00:21:40 +0000804 127, 128, 126, 132, 123, 121, 129, 130, 609, 133,
805 138, 128, 136, 132, 124, 123, 126, 130, 136, 131,
806 139, 127, 133, 161, 129, 128, 130, 125, 131, 131,
807 129, 130, 138, 131, 134, 135, 156, 143, 131, 134,
808 134, 131, 139, 143, 154, 151, 131, 161, 139, 135,
809 156, 135, 134, 146, 146, 150, 146, 146, 146, 146,
810 146, 146, 146, 146, 151, 153, 154, 150, 158, 159,
811 160, 163, 164, 165, 167, 153, 158, 168, 166, 173,
812 163, 171, 170, 165, 166, 159, 160, 172, 171, 173,
813 167, 175, 170, 168, 174, 164, 170, 176, 177, 178,
Reid Spencere7c3c602006-11-30 06:36:44 +0000814
Reid Spencer785a5ae2007-02-08 00:21:40 +0000815 179, 172, 180, 182, 174, 181, 179, 183, 184, 188,
816 189, 195, 190, 182, 175, 184, 174, 183, 177, 192,
817 182, 176, 190, 191, 181, 178, 189, 181, 194, 188,
818 180, 193, 197, 191, 198, 195, 196, 199, 192, 200,
819 210, 193, 203, 194, 197, 196, 214, 191, 213, 221,
820 230, 229, 234, 199, 219, 218, 198, 220, 203, 221,
821 230, 210, 229, 267, 200, 608, 213, 223, 267, 234,
822 214, 217, 217, 217, 217, 217, 217, 217, 217, 218,
823 219, 220, 217, 217, 222, 217, 217, 217, 217, 217,
824 217, 223, 227, 231, 222, 235, 222, 237, 239, 238,
Reid Spencere7c3c602006-11-30 06:36:44 +0000825
Reid Spencer785a5ae2007-02-08 00:21:40 +0000826 222, 241, 222, 240, 243, 244, 242, 249, 248, 251,
827 239, 241, 231, 262, 227, 238, 242, 235, 255, 241,
828 253, 237, 260, 240, 257, 258, 249, 251, 243, 259,
829 253, 244, 248, 264, 257, 262, 255, 261, 263, 258,
830 266, 260, 264, 261, 265, 269, 259, 270, 263, 277,
831 265, 272, 273, 273, 279, 266, 281, 272, 274, 274,
832 275, 275, 276, 276, 269, 278, 287, 277, 286, 282,
833 288, 270, 279, 278, 281, 282, 286, 289, 290, 292,
834 293, 291, 294, 295, 290, 296, 297, 303, 304, 295,
835 287, 299, 300, 289, 288, 291, 298, 293, 294, 305,
Reid Spencere7c3c602006-11-30 06:36:44 +0000836
Reid Spencer785a5ae2007-02-08 00:21:40 +0000837 300, 299, 298, 306, 309, 296, 312, 292, 297, 310,
838 313, 303, 304, 314, 315, 310, 312, 318, 326, 316,
839 309, 317, 305, 319, 305, 323, 324, 327, 306, 328,
840 330, 332, 313, 315, 316, 314, 318, 317, 333, 319,
841 330, 334, 324, 326, 323, 332, 333, 335, 328, 336,
842 337, 327, 339, 340, 606, 341, 342, 335, 344, 336,
843 337, 345, 334, 348, 340, 341, 350, 342, 344, 345,
844 347, 335, 352, 336, 350, 355, 339, 356, 359, 348,
845 347, 357, 352, 358, 359, 360, 355, 362, 363, 356,
846 364, 365, 357, 367, 370, 369, 375, 358, 374, 377,
Reid Spencere7c3c602006-11-30 06:36:44 +0000847
Reid Spencer785a5ae2007-02-08 00:21:40 +0000848 592, 589, 364, 360, 374, 375, 369, 378, 370, 362,
849 363, 382, 384, 380, 379, 378, 385, 367, 369, 365,
850 379, 380, 377, 381, 383, 386, 387, 388, 389, 381,
851 390, 383, 384, 382, 392, 386, 385, 397, 390, 395,
852 396, 400, 392, 399, 387, 401, 389, 398, 402, 406,
853 403, 388, 404, 395, 396, 397, 408, 398, 400, 399,
854 412, 407, 404, 409, 408, 410, 402, 406, 411, 401,
855 403, 407, 414, 409, 412, 410, 415, 423, 411, 424,
856 428, 425, 427, 432, 429, 435, 438, 439, 436, 437,
857 424, 414, 441, 423, 429, 427, 436, 442, 437, 439,
Reid Spencere7c3c602006-11-30 06:36:44 +0000858
Reid Spencer785a5ae2007-02-08 00:21:40 +0000859 415, 425, 443, 432, 428, 444, 445, 447, 443, 435,
860 438, 442, 448, 450, 451, 452, 441, 453, 454, 455,
861 456, 447, 451, 461, 445, 466, 471, 453, 460, 444,
862 584, 450, 465, 460, 460, 468, 448, 478, 455, 456,
863 465, 454, 466, 469, 452, 468, 470, 461, 473, 479,
864 471, 480, 470, 469, 482, 483, 473, 489, 495, 478,
865 490, 496, 498, 497, 482, 499, 483, 479, 501, 480,
866 503, 489, 497, 490, 495, 506, 498, 507, 508, 509,
867 510, 512, 513, 499, 496, 514, 515, 516, 517, 503,
868 510, 512, 501, 518, 519, 509, 521, 506, 517, 507,
Reid Spencere7c3c602006-11-30 06:36:44 +0000869
Reid Spencer785a5ae2007-02-08 00:21:40 +0000870 513, 514, 515, 522, 523, 508, 524, 525, 526, 516,
871 523, 527, 524, 522, 528, 529, 518, 525, 519, 527,
872 531, 534, 521, 532, 533, 536, 537, 529, 538, 539,
873 545, 534, 526, 554, 546, 543, 548, 547, 528, 539,
874 545, 536, 546, 548, 537, 531, 550, 532, 533, 543,
875 551, 552, 538, 547, 550, 557, 551, 554, 558, 559,
876 560, 557, 561, 562, 563, 552, 560, 564, 558, 566,
877 565, 567, 563, 568, 569, 571, 573, 567, 572, 561,
878 569, 574, 575, 559, 565, 566, 577, 576, 579, 568,
879 571, 564, 575, 562, 580, 572, 573, 576, 581, 582,
Reid Spencere7c3c602006-11-30 06:36:44 +0000880
Reid Spencer785a5ae2007-02-08 00:21:40 +0000881 583, 585, 586, 587, 580, 574, 588, 593, 590, 591,
882 577, 585, 594, 596, 581, 582, 583, 587, 579, 591,
883 594, 595, 597, 593, 588, 599, 586, 590, 598, 600,
884 601, 596, 602, 603, 604, 595, 605, 607, 611, 601,
885 602, 603, 613, 617, 597, 578, 611, 598, 570, 599,
886 556, 600, 613, 555, 553, 607, 549, 544, 542, 541,
887 605, 540, 535, 530, 604, 617, 620, 620, 620, 620,
888 620, 620, 620, 620, 621, 520, 621, 621, 621, 621,
889 622, 511, 622, 622, 505, 622, 624, 504, 624, 624,
890 624, 624, 624, 624, 625, 502, 625, 625, 500, 625,
Reid Spencerfcb5df82006-12-01 22:34:43 +0000891
Reid Spencer785a5ae2007-02-08 00:21:40 +0000892 627, 627, 627, 627, 627, 627, 627, 627, 628, 494,
893 628, 629, 629, 629, 493, 492, 491, 488, 487, 486,
894 485, 484, 481, 477, 476, 475, 474, 472, 467, 464,
895 463, 462, 459, 458, 457, 449, 446, 440, 434, 433,
896 431, 430, 426, 422, 421, 420, 419, 418, 417, 416,
897 413, 405, 394, 393, 391, 376, 373, 371, 368, 366,
898 361, 354, 353, 351, 349, 346, 343, 338, 331, 325,
899 322, 321, 320, 311, 308, 307, 302, 301, 285, 284,
900 283, 280, 268, 256, 254, 252, 250, 247, 246, 245,
901 236, 233, 232, 228, 226, 225, 224, 216, 215, 212,
Reid Spencer229e9362006-12-02 22:14:11 +0000902
Reid Spencer785a5ae2007-02-08 00:21:40 +0000903 211, 209, 208, 207, 206, 205, 204, 202, 201, 187,
904 186, 185, 169, 162, 157, 155, 152, 149, 148, 144,
905 140, 122, 96, 85, 72, 61, 52, 49, 46, 45,
906 40, 38, 14, 8, 7, 3, 619, 619, 619, 619,
907 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
908 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
909 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
910 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
911 619, 619, 619, 619, 619
Reid Spencere7c3c602006-11-30 06:36:44 +0000912 } ;
913
Reid Spencer832254e2007-02-02 02:16:23 +0000914static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
915static char *yy_full_match;
916static int yy_lp;
917#define REJECT \
918{ \
919*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
920yy_cp = yy_full_match; /* restore poss. backed-over text */ \
921++yy_lp; \
922goto find_rule; \
923}
Reid Spencere7c3c602006-11-30 06:36:44 +0000924#define yymore() yymore_used_but_not_detected
925#define YY_MORE_ADJ 0
926#define YY_RESTORE_YY_MORE_OFFSET
Reid Spencer832254e2007-02-02 02:16:23 +0000927char *yytext;
Dale Johannesen43421b32007-09-06 18:13:44 +0000928#line 1 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +0000929#define INITIAL 0
Reid Spencer96839be2006-11-30 16:50:26 +0000930/*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===//
Reid Spencere7c3c602006-11-30 06:36:44 +0000931//
932// The LLVM Compiler Infrastructure
933//
Reid Spencer96839be2006-11-30 16:50:26 +0000934// This file was developed by Reid Spencer and is distributed under the
935// University of Illinois Open Source License. See LICENSE.TXT for details.
Reid Spencere7c3c602006-11-30 06:36:44 +0000936//
937//===----------------------------------------------------------------------===//
938//
Reid Spencer96839be2006-11-30 16:50:26 +0000939// This file implements the flex scanner for LLVM 1.9 assembly languages files.
Reid Spencere7c3c602006-11-30 06:36:44 +0000940//
941//===----------------------------------------------------------------------===*/
Reid Spencer832254e2007-02-02 02:16:23 +0000942#define YY_NEVER_INTERACTIVE 1
Dale Johannesen43421b32007-09-06 18:13:44 +0000943#line 28 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer319a7302007-01-05 17:20:02 +0000944#include "UpgradeInternals.h"
Reid Spencer950bf602007-01-26 08:19:09 +0000945#include "llvm/Module.h"
946#include <list>
Reid Spencere7c3c602006-11-30 06:36:44 +0000947#include "UpgradeParser.h"
948#include <cctype>
949#include <cstdlib>
950
Reid Spencer96839be2006-11-30 16:50:26 +0000951#define YY_INPUT(buf,result,max_size) \
952{ \
953 if (LexInput->good() && !LexInput->eof()) { \
954 LexInput->read(buf,max_size); \
955 result = LexInput->gcount(); \
956 } else {\
957 result = YY_NULL; \
958 } \
959}
960
Reid Spencer950bf602007-01-26 08:19:09 +0000961#define YY_NEVER_INTERACTIVE 1
Reid Spencer96839be2006-11-30 16:50:26 +0000962
Reid Spencere7c3c602006-11-30 06:36:44 +0000963// Construct a token value for a non-obsolete token
Reid Spencer950bf602007-01-26 08:19:09 +0000964#define RET_TOK(type, Enum, sym) \
965 Upgradelval.type = Enum; \
Reid Spencere77e35e2006-12-01 20:26:20 +0000966 return sym
967
Reid Spencer950bf602007-01-26 08:19:09 +0000968#define RET_TY(sym,NewTY,sign) \
969 Upgradelval.PrimType.T = NewTY; \
Reid Spencerbb1fd572007-03-21 17:15:50 +0000970 switch (sign) { \
971 case 0: Upgradelval.PrimType.S.makeSignless(); break; \
972 case 1: Upgradelval.PrimType.S.makeUnsigned(); break; \
973 case 2: Upgradelval.PrimType.S.makeSigned(); break; \
974 default: assert(0 && "Invalid sign kind"); break; \
975 }\
Reid Spencere7c3c602006-11-30 06:36:44 +0000976 return sym
977
Reid Spencer950bf602007-01-26 08:19:09 +0000978namespace llvm {
979
980// TODO: All of the static identifiers are figured out by the lexer,
981// these should be hashed to reduce the lexer size
982
983// UnEscapeLexed - Run through the specified buffer and change \xx codes to the
984// appropriate character. If AllowNull is set to false, a \00 value will cause
985// an exception to be thrown.
986//
987// If AllowNull is set to true, the return value of the function points to the
988// last character of the string in memory.
989//
990char *UnEscapeLexed(char *Buffer, bool AllowNull) {
991 char *BOut = Buffer;
992 for (char *BIn = Buffer; *BIn; ) {
993 if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) {
994 char Tmp = BIn[3]; BIn[3] = 0; // Terminate string
995 *BOut = (char)strtol(BIn+1, 0, 16); // Convert to number
996 if (!AllowNull && !*BOut)
997 error("String literal cannot accept \\00 escape!");
998
999 BIn[3] = Tmp; // Restore character
1000 BIn += 3; // Skip over handled chars
1001 ++BOut;
1002 } else {
1003 *BOut++ = *BIn++;
1004 }
1005 }
1006
1007 return BOut;
1008}
1009
1010// atoull - Convert an ascii string of decimal digits into the unsigned long
1011// long representation... this does not have to do input error checking,
1012// because we know that the input will be matched by a suitable regex...
1013//
1014static uint64_t atoull(const char *Buffer) {
1015 uint64_t Result = 0;
1016 for (; *Buffer; Buffer++) {
1017 uint64_t OldRes = Result;
1018 Result *= 10;
1019 Result += *Buffer-'0';
1020 if (Result < OldRes) // Uh, oh, overflow detected!!!
1021 error("constant bigger than 64 bits detected!");
1022 }
1023 return Result;
1024}
1025
1026static uint64_t HexIntToVal(const char *Buffer) {
1027 uint64_t Result = 0;
1028 for (; *Buffer; ++Buffer) {
1029 uint64_t OldRes = Result;
1030 Result *= 16;
1031 char C = *Buffer;
1032 if (C >= '0' && C <= '9')
1033 Result += C-'0';
1034 else if (C >= 'A' && C <= 'F')
1035 Result += C-'A'+10;
1036 else if (C >= 'a' && C <= 'f')
1037 Result += C-'a'+10;
1038
1039 if (Result < OldRes) // Uh, oh, overflow detected!!!
1040 error("constant bigger than 64 bits detected!");
1041 }
1042 return Result;
1043}
1044
1045
1046// HexToFP - Convert the ascii string in hexidecimal format to the floating
1047// point representation of it.
1048//
1049static double HexToFP(const char *Buffer) {
1050 // Behave nicely in the face of C TBAA rules... see:
1051 // http://www.nullstone.com/htmls/category/aliastyp.htm
1052 union {
1053 uint64_t UI;
1054 double FP;
1055 } UIntToFP;
1056 UIntToFP.UI = HexIntToVal(Buffer);
1057
1058 assert(sizeof(double) == sizeof(uint64_t) &&
1059 "Data sizes incompatible on this target!");
1060 return UIntToFP.FP; // Cast Hex constant to double
1061}
1062
1063
1064} // End llvm namespace
1065
1066using namespace llvm;
1067
Reid Spencere7c3c602006-11-30 06:36:44 +00001068/* Comments start with a ; and go till end of line */
1069/* Variable(Value) identifiers start with a % sign */
1070/* Label identifiers end with a colon */
1071/* Quoted names can contain any character except " and \ */
1072/* [PN]Integer: match positive and negative literal integer values that
1073 * are preceeded by a '%' character. These represent unnamed variable slots.
1074 */
1075/* E[PN]Integer: match positive and negative literal integer values */
1076/* FPConstant - A Floating point constant.
1077 */
1078/* HexFPConstant - Floating point constant represented in IEEE format as a
1079 * hexadecimal number for when exponential notation is not precise enough.
1080 */
1081/* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
1082 * it to deal with 64 bit numbers.
1083 */
Dale Johannesen43421b32007-09-06 18:13:44 +00001084#line 1085 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00001085
1086/* Macros after this point can all be overridden by user definitions in
1087 * section 1.
1088 */
1089
1090#ifndef YY_SKIP_YYWRAP
1091#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001092extern "C" int yywrap YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001093#else
Reid Spencer832254e2007-02-02 02:16:23 +00001094extern int yywrap YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001095#endif
1096#endif
1097
Reid Spencer832254e2007-02-02 02:16:23 +00001098#ifndef YY_NO_UNPUT
1099static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1100#endif
1101
Reid Spencere7c3c602006-11-30 06:36:44 +00001102#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00001103static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001104#endif
1105
1106#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00001107static int yy_flex_strlen YY_PROTO(( yyconst char * ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001108#endif
1109
1110#ifndef YY_NO_INPUT
1111#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001112static int yyinput YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001113#else
Reid Spencer832254e2007-02-02 02:16:23 +00001114static int input YY_PROTO(( void ));
1115#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001116#endif
1117
Reid Spencer832254e2007-02-02 02:16:23 +00001118#if YY_STACK_USED
1119static int yy_start_stack_ptr = 0;
1120static int yy_start_stack_depth = 0;
1121static int *yy_start_stack = 0;
1122#ifndef YY_NO_PUSH_STATE
1123static void yy_push_state YY_PROTO(( int new_state ));
1124#endif
1125#ifndef YY_NO_POP_STATE
1126static void yy_pop_state YY_PROTO(( void ));
1127#endif
1128#ifndef YY_NO_TOP_STATE
1129static int yy_top_state YY_PROTO(( void ));
1130#endif
1131
1132#else
1133#define YY_NO_PUSH_STATE 1
1134#define YY_NO_POP_STATE 1
1135#define YY_NO_TOP_STATE 1
1136#endif
1137
1138#ifdef YY_MALLOC_DECL
1139YY_MALLOC_DECL
1140#else
1141#if __STDC__
1142#ifndef __cplusplus
1143#include <stdlib.h>
1144#endif
1145#else
1146/* Just try to get by without declaring the routines. This will fail
1147 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1148 * or sizeof(void*) != sizeof(int).
1149 */
1150#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001151#endif
1152
1153/* Amount of stuff to slurp up with each read. */
1154#ifndef YY_READ_BUF_SIZE
1155#define YY_READ_BUF_SIZE 8192
1156#endif
1157
1158/* Copy whatever the last rule matched to the standard output. */
Reid Spencer832254e2007-02-02 02:16:23 +00001159
Reid Spencere7c3c602006-11-30 06:36:44 +00001160#ifndef ECHO
1161/* This used to be an fputs(), but since the string might contain NUL's,
1162 * we now use fwrite().
1163 */
Reid Spencer832254e2007-02-02 02:16:23 +00001164#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
Reid Spencere7c3c602006-11-30 06:36:44 +00001165#endif
1166
1167/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1168 * is returned in "result".
1169 */
1170#ifndef YY_INPUT
1171#define YY_INPUT(buf,result,max_size) \
Reid Spencer832254e2007-02-02 02:16:23 +00001172 if ( yy_current_buffer->yy_is_interactive ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001173 { \
Reid Spencer832254e2007-02-02 02:16:23 +00001174 int c = '*', n; \
Reid Spencere7c3c602006-11-30 06:36:44 +00001175 for ( n = 0; n < max_size && \
Reid Spencer832254e2007-02-02 02:16:23 +00001176 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001177 buf[n] = (char) c; \
1178 if ( c == '\n' ) \
1179 buf[n++] = (char) c; \
Reid Spencer832254e2007-02-02 02:16:23 +00001180 if ( c == EOF && ferror( yyin ) ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001181 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1182 result = n; \
1183 } \
Reid Spencer832254e2007-02-02 02:16:23 +00001184 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1185 && ferror( yyin ) ) \
1186 YY_FATAL_ERROR( "input in flex scanner failed" );
Reid Spencere7c3c602006-11-30 06:36:44 +00001187#endif
1188
1189/* No semi-colon after return; correct usage is to write "yyterminate();" -
1190 * we don't want an extra ';' after the "return" because that will cause
1191 * some compilers to complain about unreachable statements.
1192 */
1193#ifndef yyterminate
1194#define yyterminate() return YY_NULL
1195#endif
1196
1197/* Number of entries by which start-condition stack grows. */
1198#ifndef YY_START_STACK_INCR
1199#define YY_START_STACK_INCR 25
1200#endif
1201
1202/* Report a fatal error. */
1203#ifndef YY_FATAL_ERROR
1204#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1205#endif
1206
1207/* Default declaration of generated scanner - a define so the user can
1208 * easily add parameters.
1209 */
1210#ifndef YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001211#define YY_DECL int yylex YY_PROTO(( void ))
1212#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001213
Reid Spencer832254e2007-02-02 02:16:23 +00001214/* Code executed at the beginning of each rule, after yytext and yyleng
Reid Spencere7c3c602006-11-30 06:36:44 +00001215 * have been set up.
1216 */
1217#ifndef YY_USER_ACTION
1218#define YY_USER_ACTION
1219#endif
1220
1221/* Code executed at the end of each rule. */
1222#ifndef YY_BREAK
1223#define YY_BREAK break;
1224#endif
1225
1226#define YY_RULE_SETUP \
1227 YY_USER_ACTION
1228
1229YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001230 {
Reid Spencere7c3c602006-11-30 06:36:44 +00001231 register yy_state_type yy_current_state;
Dale Johannesen43421b32007-09-06 18:13:44 +00001232 register char *yy_cp, *yy_bp;
Reid Spencere7c3c602006-11-30 06:36:44 +00001233 register int yy_act;
Reid Spencer832254e2007-02-02 02:16:23 +00001234
Dale Johannesen43421b32007-09-06 18:13:44 +00001235#line 194 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001236
1237
Dale Johannesen43421b32007-09-06 18:13:44 +00001238#line 1239 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00001239
Reid Spencer832254e2007-02-02 02:16:23 +00001240 if ( yy_init )
Reid Spencere7c3c602006-11-30 06:36:44 +00001241 {
Reid Spencer832254e2007-02-02 02:16:23 +00001242 yy_init = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00001243
1244#ifdef YY_USER_INIT
1245 YY_USER_INIT;
1246#endif
1247
Reid Spencer832254e2007-02-02 02:16:23 +00001248 if ( ! yy_start )
1249 yy_start = 1; /* first start state */
Reid Spencere7c3c602006-11-30 06:36:44 +00001250
Reid Spencer832254e2007-02-02 02:16:23 +00001251 if ( ! yyin )
1252 yyin = stdin;
Reid Spencere7c3c602006-11-30 06:36:44 +00001253
Reid Spencer832254e2007-02-02 02:16:23 +00001254 if ( ! yyout )
1255 yyout = stdout;
Reid Spencere7c3c602006-11-30 06:36:44 +00001256
Reid Spencer832254e2007-02-02 02:16:23 +00001257 if ( ! yy_current_buffer )
1258 yy_current_buffer =
1259 yy_create_buffer( yyin, YY_BUF_SIZE );
Reid Spencere7c3c602006-11-30 06:36:44 +00001260
Reid Spencer832254e2007-02-02 02:16:23 +00001261 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00001262 }
1263
1264 while ( 1 ) /* loops until end-of-file is reached */
1265 {
Reid Spencer832254e2007-02-02 02:16:23 +00001266 yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00001267
Reid Spencer832254e2007-02-02 02:16:23 +00001268 /* Support of yytext. */
1269 *yy_cp = yy_hold_char;
Reid Spencere7c3c602006-11-30 06:36:44 +00001270
1271 /* yy_bp points to the position in yy_ch_buf of the start of
1272 * the current run.
1273 */
1274 yy_bp = yy_cp;
1275
Reid Spencer832254e2007-02-02 02:16:23 +00001276 yy_current_state = yy_start;
1277 yy_state_ptr = yy_state_buf;
1278 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00001279yy_match:
1280 do
1281 {
1282 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1283 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1284 {
1285 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer785a5ae2007-02-08 00:21:40 +00001286 if ( yy_current_state >= 620 )
Reid Spencere7c3c602006-11-30 06:36:44 +00001287 yy_c = yy_meta[(unsigned int) yy_c];
1288 }
1289 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00001290 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00001291 ++yy_cp;
1292 }
Reid Spencer785a5ae2007-02-08 00:21:40 +00001293 while ( yy_current_state != 619 );
Reid Spencere7c3c602006-11-30 06:36:44 +00001294
1295yy_find_action:
Reid Spencer832254e2007-02-02 02:16:23 +00001296 yy_current_state = *--yy_state_ptr;
1297 yy_lp = yy_accept[yy_current_state];
1298find_rule: /* we branch to this label when backing up */
1299 for ( ; ; ) /* until we find what rule we matched */
1300 {
1301 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1302 {
1303 yy_act = yy_acclist[yy_lp];
1304 {
1305 yy_full_match = yy_cp;
1306 break;
1307 }
1308 }
1309 --yy_cp;
1310 yy_current_state = *--yy_state_ptr;
1311 yy_lp = yy_accept[yy_current_state];
1312 }
Reid Spencere7c3c602006-11-30 06:36:44 +00001313
1314 YY_DO_BEFORE_ACTION;
1315
Reid Spencer832254e2007-02-02 02:16:23 +00001316 if ( yy_act != YY_END_OF_BUFFER )
Reid Spencere7c3c602006-11-30 06:36:44 +00001317 {
1318 int yyl;
Reid Spencer832254e2007-02-02 02:16:23 +00001319 for ( yyl = 0; yyl < yyleng; ++yyl )
1320 if ( yytext[yyl] == '\n' )
1321 ++yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00001322 }
1323
1324do_action: /* This label is used only to access EOF actions. */
1325
Reid Spencer832254e2007-02-02 02:16:23 +00001326
Reid Spencere7c3c602006-11-30 06:36:44 +00001327 switch ( yy_act )
1328 { /* beginning of action switch */
1329case 1:
1330YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001331#line 196 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001332{ /* Ignore comments for now */ }
1333 YY_BREAK
1334case 2:
1335YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001336#line 198 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001337{ return BEGINTOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001338 YY_BREAK
1339case 3:
1340YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001341#line 199 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001342{ return ENDTOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001343 YY_BREAK
1344case 4:
1345YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001346#line 200 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001347{ return TRUETOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001348 YY_BREAK
1349case 5:
1350YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001351#line 201 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001352{ return FALSETOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001353 YY_BREAK
1354case 6:
1355YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001356#line 202 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001357{ return DECLARE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001358 YY_BREAK
1359case 7:
1360YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001361#line 203 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001362{ return GLOBAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001363 YY_BREAK
1364case 8:
1365YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001366#line 204 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001367{ return CONSTANT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001368 YY_BREAK
1369case 9:
1370YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001371#line 205 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001372{ return INTERNAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001373 YY_BREAK
1374case 10:
1375YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001376#line 206 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001377{ return LINKONCE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001378 YY_BREAK
1379case 11:
1380YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001381#line 207 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001382{ return WEAK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001383 YY_BREAK
1384case 12:
1385YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001386#line 208 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001387{ return APPENDING; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001388 YY_BREAK
1389case 13:
1390YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001391#line 209 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001392{ return DLLIMPORT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001393 YY_BREAK
1394case 14:
1395YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001396#line 210 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001397{ return DLLEXPORT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001398 YY_BREAK
1399case 15:
1400YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001401#line 211 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001402{ return EXTERN_WEAK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001403 YY_BREAK
1404case 16:
1405YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001406#line 212 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001407{ return EXTERNAL; } /* Deprecated, turn into external */
Reid Spencere7c3c602006-11-30 06:36:44 +00001408 YY_BREAK
1409case 17:
1410YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001411#line 213 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001412{ return EXTERNAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001413 YY_BREAK
1414case 18:
1415YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001416#line 214 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001417{ return IMPLEMENTATION; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001418 YY_BREAK
1419case 19:
1420YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001421#line 215 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001422{ return ZEROINITIALIZER; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001423 YY_BREAK
1424case 20:
1425YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001426#line 216 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001427{ return DOTDOTDOT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001428 YY_BREAK
1429case 21:
1430YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001431#line 217 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001432{ return UNDEF; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001433 YY_BREAK
1434case 22:
1435YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001436#line 218 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001437{ return NULL_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001438 YY_BREAK
1439case 23:
1440YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001441#line 219 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001442{ return TO; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001443 YY_BREAK
1444case 24:
1445YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001446#line 220 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001447{ return EXCEPT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001448 YY_BREAK
1449case 25:
1450YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001451#line 221 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001452{ return NOT; } /* Deprecated, turned into XOR */
Reid Spencere7c3c602006-11-30 06:36:44 +00001453 YY_BREAK
1454case 26:
1455YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001456#line 222 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001457{ return TAIL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001458 YY_BREAK
1459case 27:
1460YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001461#line 223 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001462{ return TARGET; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001463 YY_BREAK
1464case 28:
1465YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001466#line 224 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001467{ return TRIPLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001468 YY_BREAK
1469case 29:
1470YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001471#line 225 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001472{ return DEPLIBS; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001473 YY_BREAK
1474case 30:
1475YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001476#line 226 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001477{ return ENDIAN; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001478 YY_BREAK
1479case 31:
1480YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001481#line 227 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001482{ return POINTERSIZE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001483 YY_BREAK
1484case 32:
1485YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001486#line 228 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001487{ return DATALAYOUT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001488 YY_BREAK
1489case 33:
1490YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001491#line 229 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001492{ return LITTLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001493 YY_BREAK
1494case 34:
1495YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001496#line 230 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001497{ return BIG; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001498 YY_BREAK
1499case 35:
1500YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001501#line 231 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001502{ return VOLATILE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001503 YY_BREAK
1504case 36:
1505YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001506#line 232 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001507{ return ALIGN; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001508 YY_BREAK
1509case 37:
1510YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001511#line 233 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001512{ return SECTION; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001513 YY_BREAK
1514case 38:
1515YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001516#line 234 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001517{ return MODULE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001518 YY_BREAK
1519case 39:
1520YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001521#line 235 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001522{ return ASM_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001523 YY_BREAK
1524case 40:
1525YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001526#line 236 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001527{ return SIDEEFFECT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001528 YY_BREAK
1529case 41:
1530YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001531#line 238 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001532{ return CC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001533 YY_BREAK
1534case 42:
1535YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001536#line 239 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001537{ return CCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001538 YY_BREAK
1539case 43:
1540YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001541#line 240 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001542{ return CSRETCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001543 YY_BREAK
1544case 44:
1545YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001546#line 241 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001547{ return FASTCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001548 YY_BREAK
1549case 45:
1550YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001551#line 242 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001552{ return COLDCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001553 YY_BREAK
1554case 46:
1555YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001556#line 243 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001557{ return X86_STDCALLCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001558 YY_BREAK
1559case 47:
1560YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001561#line 244 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001562{ return X86_FASTCALLCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001563 YY_BREAK
1564case 48:
1565YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001566#line 246 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001567{ RET_TY(SBYTE, Type::Int8Ty, 2); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001568 YY_BREAK
1569case 49:
1570YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001571#line 247 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001572{ RET_TY(UBYTE, Type::Int8Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001573 YY_BREAK
1574case 50:
1575YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001576#line 248 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001577{ RET_TY(UBYTE, Type::Int8Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001578 YY_BREAK
1579case 51:
1580YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001581#line 249 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001582{ RET_TY(SHORT, Type::Int16Ty, 2); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001583 YY_BREAK
1584case 52:
1585YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001586#line 250 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001587{ RET_TY(USHORT, Type::Int16Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001588 YY_BREAK
1589case 53:
1590YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001591#line 251 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001592{ RET_TY(USHORT, Type::Int16Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001593 YY_BREAK
1594case 54:
1595YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001596#line 252 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001597{ RET_TY(INT, Type::Int32Ty, 2); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001598 YY_BREAK
1599case 55:
1600YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001601#line 253 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001602{ RET_TY(UINT, Type::Int32Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001603 YY_BREAK
1604case 56:
1605YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001606#line 254 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001607{ RET_TY(UINT, Type::Int32Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001608 YY_BREAK
1609case 57:
1610YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001611#line 255 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001612{ RET_TY(LONG, Type::Int64Ty, 2); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001613 YY_BREAK
1614case 58:
1615YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001616#line 256 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001617{ RET_TY(ULONG, Type::Int64Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001618 YY_BREAK
1619case 59:
1620YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001621#line 257 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001622{ RET_TY(ULONG, Type::Int64Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001623 YY_BREAK
1624case 60:
1625YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001626#line 258 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001627{ RET_TY(VOID, Type::VoidTy, 0); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001628 YY_BREAK
1629case 61:
1630YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001631#line 259 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001632{ RET_TY(BOOL, Type::Int1Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001633 YY_BREAK
1634case 62:
1635YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001636#line 260 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001637{ RET_TY(BOOL, Type::Int1Ty, 1); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001638 YY_BREAK
1639case 63:
1640YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001641#line 261 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001642{ RET_TY(FLOAT, Type::FloatTy, 0); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001643 YY_BREAK
1644case 64:
1645YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001646#line 262 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001647{ RET_TY(DOUBLE, Type::DoubleTy,0); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001648 YY_BREAK
1649case 65:
1650YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001651#line 263 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencerbb1fd572007-03-21 17:15:50 +00001652{ RET_TY(LABEL, Type::LabelTy, 0); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001653 YY_BREAK
1654case 66:
1655YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001656#line 264 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001657{ return TYPE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001658 YY_BREAK
1659case 67:
1660YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001661#line 265 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001662{ return OPAQUE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001663 YY_BREAK
1664case 68:
1665YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001666#line 267 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001667{ RET_TOK(BinaryOpVal, AddOp, ADD); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001668 YY_BREAK
1669case 69:
1670YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001671#line 268 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001672{ RET_TOK(BinaryOpVal, SubOp, SUB); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001673 YY_BREAK
1674case 70:
1675YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001676#line 269 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001677{ RET_TOK(BinaryOpVal, MulOp, MUL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001678 YY_BREAK
1679case 71:
1680YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001681#line 270 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001682{ RET_TOK(BinaryOpVal, DivOp, DIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001683 YY_BREAK
1684case 72:
1685YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001686#line 271 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001687{ RET_TOK(BinaryOpVal, UDivOp, UDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001688 YY_BREAK
1689case 73:
1690YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001691#line 272 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001692{ RET_TOK(BinaryOpVal, SDivOp, SDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001693 YY_BREAK
1694case 74:
1695YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001696#line 273 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001697{ RET_TOK(BinaryOpVal, FDivOp, FDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001698 YY_BREAK
1699case 75:
1700YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001701#line 274 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001702{ RET_TOK(BinaryOpVal, RemOp, REM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001703 YY_BREAK
1704case 76:
1705YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001706#line 275 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001707{ RET_TOK(BinaryOpVal, URemOp, UREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001708 YY_BREAK
1709case 77:
1710YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001711#line 276 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001712{ RET_TOK(BinaryOpVal, SRemOp, SREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001713 YY_BREAK
1714case 78:
1715YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001716#line 277 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001717{ RET_TOK(BinaryOpVal, FRemOp, FREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001718 YY_BREAK
1719case 79:
1720YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001721#line 278 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001722{ RET_TOK(BinaryOpVal, AndOp, AND); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001723 YY_BREAK
1724case 80:
1725YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001726#line 279 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001727{ RET_TOK(BinaryOpVal, OrOp , OR ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001728 YY_BREAK
1729case 81:
1730YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001731#line 280 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001732{ RET_TOK(BinaryOpVal, XorOp, XOR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001733 YY_BREAK
1734case 82:
1735YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001736#line 281 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001737{ RET_TOK(BinaryOpVal, SetNE, SETNE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001738 YY_BREAK
1739case 83:
1740YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001741#line 282 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001742{ RET_TOK(BinaryOpVal, SetEQ, SETEQ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001743 YY_BREAK
1744case 84:
1745YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001746#line 283 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001747{ RET_TOK(BinaryOpVal, SetLT, SETLT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001748 YY_BREAK
1749case 85:
1750YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001751#line 284 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001752{ RET_TOK(BinaryOpVal, SetGT, SETGT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001753 YY_BREAK
1754case 86:
1755YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001756#line 285 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001757{ RET_TOK(BinaryOpVal, SetLE, SETLE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001758 YY_BREAK
1759case 87:
1760YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001761#line 286 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001762{ RET_TOK(BinaryOpVal, SetGE, SETGE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001763 YY_BREAK
1764case 88:
1765YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001766#line 287 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001767{ RET_TOK(BinaryOpVal, ShlOp, SHL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001768 YY_BREAK
1769case 89:
1770YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001771#line 288 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001772{ RET_TOK(BinaryOpVal, ShrOp, SHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001773 YY_BREAK
1774case 90:
1775YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001776#line 289 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001777{ RET_TOK(BinaryOpVal, LShrOp, LSHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001778 YY_BREAK
1779case 91:
1780YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001781#line 290 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001782{ RET_TOK(BinaryOpVal, AShrOp, ASHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001783 YY_BREAK
1784case 92:
1785YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001786#line 292 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001787{ RET_TOK(OtherOpVal, ICmpOp, ICMP); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001788 YY_BREAK
1789case 93:
1790YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001791#line 293 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001792{ RET_TOK(OtherOpVal, FCmpOp, FCMP); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001793 YY_BREAK
1794case 94:
1795YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001796#line 295 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001797{ return EQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001798 YY_BREAK
1799case 95:
1800YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001801#line 296 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001802{ return NE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001803 YY_BREAK
1804case 96:
1805YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001806#line 297 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001807{ return SLT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001808 YY_BREAK
1809case 97:
1810YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001811#line 298 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001812{ return SGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001813 YY_BREAK
1814case 98:
1815YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001816#line 299 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001817{ return SLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001818 YY_BREAK
1819case 99:
1820YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001821#line 300 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001822{ return SGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001823 YY_BREAK
1824case 100:
1825YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001826#line 301 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001827{ return ULT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001828 YY_BREAK
1829case 101:
1830YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001831#line 302 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001832{ return UGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001833 YY_BREAK
1834case 102:
1835YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001836#line 303 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001837{ return ULE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001838 YY_BREAK
1839case 103:
1840YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001841#line 304 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001842{ return UGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001843 YY_BREAK
1844case 104:
1845YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001846#line 305 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001847{ return OEQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001848 YY_BREAK
1849case 105:
1850YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001851#line 306 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001852{ return ONE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001853 YY_BREAK
1854case 106:
1855YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001856#line 307 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001857{ return OLT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001858 YY_BREAK
1859case 107:
1860YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001861#line 308 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001862{ return OGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001863 YY_BREAK
1864case 108:
1865YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001866#line 309 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001867{ return OLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001868 YY_BREAK
1869case 109:
1870YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001871#line 310 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001872{ return OGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001873 YY_BREAK
1874case 110:
1875YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001876#line 311 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001877{ return ORD; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001878 YY_BREAK
1879case 111:
1880YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001881#line 312 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001882{ return UNO; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001883 YY_BREAK
1884case 112:
1885YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001886#line 313 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001887{ return UEQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001888 YY_BREAK
1889case 113:
1890YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001891#line 314 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001892{ return UNE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001893 YY_BREAK
Reid Spencer16244f42006-12-01 21:10:07 +00001894case 114:
1895YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001896#line 316 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001897{ RET_TOK(OtherOpVal, PHIOp, PHI_TOK); }
Reid Spencer16244f42006-12-01 21:10:07 +00001898 YY_BREAK
Reid Spencerf7bde222006-12-01 22:26:37 +00001899case 115:
1900YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001901#line 317 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001902{ RET_TOK(OtherOpVal, CallOp, CALL); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001903 YY_BREAK
1904case 116:
1905YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001906#line 318 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001907{ RET_TOK(CastOpVal, CastOp, CAST); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001908 YY_BREAK
1909case 117:
1910YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001911#line 319 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001912{ RET_TOK(CastOpVal, TruncOp, TRUNC); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001913 YY_BREAK
1914case 118:
1915YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001916#line 320 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001917{ RET_TOK(CastOpVal, ZExtOp , ZEXT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001918 YY_BREAK
1919case 119:
1920YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001921#line 321 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001922{ RET_TOK(CastOpVal, SExtOp, SEXT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001923 YY_BREAK
1924case 120:
1925YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001926#line 322 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001927{ RET_TOK(CastOpVal, FPTruncOp, FPTRUNC); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001928 YY_BREAK
1929case 121:
1930YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001931#line 323 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001932{ RET_TOK(CastOpVal, FPExtOp, FPEXT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001933 YY_BREAK
1934case 122:
1935YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001936#line 324 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001937{ RET_TOK(CastOpVal, FPToUIOp, FPTOUI); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001938 YY_BREAK
1939case 123:
1940YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001941#line 325 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001942{ RET_TOK(CastOpVal, FPToSIOp, FPTOSI); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001943 YY_BREAK
1944case 124:
1945YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001946#line 326 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001947{ RET_TOK(CastOpVal, UIToFPOp, UITOFP); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001948 YY_BREAK
1949case 125:
1950YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001951#line 327 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001952{ RET_TOK(CastOpVal, SIToFPOp, SITOFP); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001953 YY_BREAK
1954case 126:
1955YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001956#line 328 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001957{ RET_TOK(CastOpVal, PtrToIntOp, PTRTOINT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001958 YY_BREAK
1959case 127:
1960YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001961#line 329 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001962{ RET_TOK(CastOpVal, IntToPtrOp, INTTOPTR); }
Reid Spencer78720742006-12-02 20:21:22 +00001963 YY_BREAK
1964case 128:
1965YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001966#line 330 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001967{ RET_TOK(CastOpVal, BitCastOp, BITCAST); }
Reid Spencer229e9362006-12-02 22:14:11 +00001968 YY_BREAK
1969case 129:
1970YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001971#line 331 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001972{ RET_TOK(OtherOpVal, SelectOp, SELECT); }
Reid Spencer229e9362006-12-02 22:14:11 +00001973 YY_BREAK
1974case 130:
1975YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001976#line 332 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001977{ return VANEXT_old; }
Reid Spencer229e9362006-12-02 22:14:11 +00001978 YY_BREAK
1979case 131:
1980YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001981#line 333 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001982{ return VAARG_old; }
Reid Spencer229e9362006-12-02 22:14:11 +00001983 YY_BREAK
1984case 132:
1985YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001986#line 334 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001987{ RET_TOK(OtherOpVal, VAArg , VAARG); }
Reid Spencer229e9362006-12-02 22:14:11 +00001988 YY_BREAK
1989case 133:
1990YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001991#line 335 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001992{ RET_TOK(TermOpVal, RetOp, RET); }
Reid Spencer229e9362006-12-02 22:14:11 +00001993 YY_BREAK
1994case 134:
1995YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00001996#line 336 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00001997{ RET_TOK(TermOpVal, BrOp, BR); }
Reid Spencer229e9362006-12-02 22:14:11 +00001998 YY_BREAK
1999case 135:
2000YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002001#line 337 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002002{ RET_TOK(TermOpVal, SwitchOp, SWITCH); }
Reid Spencer229e9362006-12-02 22:14:11 +00002003 YY_BREAK
2004case 136:
2005YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002006#line 338 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002007{ RET_TOK(TermOpVal, InvokeOp, INVOKE); }
Reid Spencer229e9362006-12-02 22:14:11 +00002008 YY_BREAK
2009case 137:
2010YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002011#line 339 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002012{ return UNWIND; }
Reid Spencer229e9362006-12-02 22:14:11 +00002013 YY_BREAK
2014case 138:
2015YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002016#line 340 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002017{ RET_TOK(TermOpVal, UnreachableOp, UNREACHABLE); }
Reid Spencer229e9362006-12-02 22:14:11 +00002018 YY_BREAK
2019case 139:
2020YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002021#line 342 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002022{ RET_TOK(MemOpVal, MallocOp, MALLOC); }
Reid Spencer229e9362006-12-02 22:14:11 +00002023 YY_BREAK
2024case 140:
2025YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002026#line 343 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002027{ RET_TOK(MemOpVal, AllocaOp, ALLOCA); }
Reid Spencer229e9362006-12-02 22:14:11 +00002028 YY_BREAK
2029case 141:
2030YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002031#line 344 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002032{ RET_TOK(MemOpVal, FreeOp, FREE); }
Reid Spencer229e9362006-12-02 22:14:11 +00002033 YY_BREAK
2034case 142:
2035YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002036#line 345 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002037{ RET_TOK(MemOpVal, LoadOp, LOAD); }
Reid Spencer229e9362006-12-02 22:14:11 +00002038 YY_BREAK
2039case 143:
2040YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002041#line 346 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002042{ RET_TOK(MemOpVal, StoreOp, STORE); }
2043 YY_BREAK
2044case 144:
2045YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002046#line 347 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002047{ RET_TOK(MemOpVal, GetElementPtrOp, GETELEMENTPTR); }
2048 YY_BREAK
2049case 145:
2050YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002051#line 349 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002052{ RET_TOK(OtherOpVal, ExtractElementOp, EXTRACTELEMENT); }
2053 YY_BREAK
2054case 146:
2055YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002056#line 350 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002057{ RET_TOK(OtherOpVal, InsertElementOp, INSERTELEMENT); }
2058 YY_BREAK
2059case 147:
2060YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002061#line 351 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer785a5ae2007-02-08 00:21:40 +00002062{ RET_TOK(OtherOpVal, ShuffleVectorOp, SHUFFLEVECTOR); }
2063 YY_BREAK
2064case 148:
2065YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002066#line 354 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002067{
Reid Spencer832254e2007-02-02 02:16:23 +00002068 UnEscapeLexed(yytext+1);
2069 Upgradelval.StrVal = strdup(yytext+1); // Skip %
Reid Spencer950bf602007-01-26 08:19:09 +00002070 return VAR_ID;
2071 }
Reid Spencer229e9362006-12-02 22:14:11 +00002072 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002073case 149:
Reid Spencer229e9362006-12-02 22:14:11 +00002074YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002075#line 359 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002076{
Reid Spencer832254e2007-02-02 02:16:23 +00002077 yytext[strlen(yytext)-1] = 0; // nuke colon
2078 UnEscapeLexed(yytext);
2079 Upgradelval.StrVal = strdup(yytext);
Reid Spencer950bf602007-01-26 08:19:09 +00002080 return LABELSTR;
2081 }
Reid Spencer229e9362006-12-02 22:14:11 +00002082 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002083case 150:
Reid Spencer229e9362006-12-02 22:14:11 +00002084YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002085#line 365 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002086{
Reid Spencer832254e2007-02-02 02:16:23 +00002087 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
2088 UnEscapeLexed(yytext+1);
2089 Upgradelval.StrVal = strdup(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002090 return LABELSTR;
2091 }
Reid Spencer229e9362006-12-02 22:14:11 +00002092 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002093case 151:
Reid Spencer229e9362006-12-02 22:14:11 +00002094YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002095#line 372 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002096{ // Note that we cannot unescape a string constant here! The
2097 // string constant might contain a \00 which would not be
2098 // understood by the string stuff. It is valid to make a
2099 // [sbyte] c"Hello World\00" constant, for example.
2100 //
Reid Spencer832254e2007-02-02 02:16:23 +00002101 yytext[strlen(yytext)-1] = 0; // nuke end quote
2102 Upgradelval.StrVal = strdup(yytext+1); // Nuke start quote
Reid Spencer950bf602007-01-26 08:19:09 +00002103 return STRINGCONSTANT;
2104 }
Reid Spencer229e9362006-12-02 22:14:11 +00002105 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002106case 152:
Reid Spencer229e9362006-12-02 22:14:11 +00002107YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002108#line 383 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002109{ Upgradelval.UInt64Val = atoull(yytext); return EUINT64VAL; }
Reid Spencer229e9362006-12-02 22:14:11 +00002110 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002111case 153:
Reid Spencer229e9362006-12-02 22:14:11 +00002112YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002113#line 384 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002114{
Reid Spencer832254e2007-02-02 02:16:23 +00002115 uint64_t Val = atoull(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002116 // +1: we have bigger negative range
2117 if (Val > (uint64_t)INT64_MAX+1)
2118 error("Constant too large for signed 64 bits!");
2119 Upgradelval.SInt64Val = -Val;
2120 return ESINT64VAL;
2121 }
Reid Spencer229e9362006-12-02 22:14:11 +00002122 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002123case 154:
Reid Spencer229e9362006-12-02 22:14:11 +00002124YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002125#line 392 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002126{
Reid Spencer832254e2007-02-02 02:16:23 +00002127 Upgradelval.UInt64Val = HexIntToVal(yytext+3);
2128 return yytext[0] == 's' ? ESINT64VAL : EUINT64VAL;
Reid Spencer950bf602007-01-26 08:19:09 +00002129 }
Reid Spencer229e9362006-12-02 22:14:11 +00002130 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002131case 155:
Reid Spencer229e9362006-12-02 22:14:11 +00002132YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002133#line 397 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002134{
Reid Spencer832254e2007-02-02 02:16:23 +00002135 uint64_t Val = atoull(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002136 if ((unsigned)Val != Val)
2137 error("Invalid value number (too large)!");
2138 Upgradelval.UIntVal = unsigned(Val);
2139 return UINTVAL;
2140 }
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002141 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002142case 156:
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002143YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002144#line 404 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002145{
Reid Spencer832254e2007-02-02 02:16:23 +00002146 uint64_t Val = atoull(yytext+2);
Reid Spencer950bf602007-01-26 08:19:09 +00002147 // +1: we have bigger negative range
2148 if (Val > (uint64_t)INT32_MAX+1)
2149 error("Constant too large for signed 32 bits!");
2150 Upgradelval.SIntVal = (int)-Val;
2151 return SINTVAL;
2152 }
Reid Spencer71d2ec92006-12-31 06:02:26 +00002153 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002154case 157:
Reid Spencer71d2ec92006-12-31 06:02:26 +00002155YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002156#line 413 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2157{ Upgradelval.FPVal = new APFloat(atof(yytext)); return FPVAL; }
Reid Spencer71d2ec92006-12-31 06:02:26 +00002158 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002159case 158:
Reid Spencer71d2ec92006-12-31 06:02:26 +00002160YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002161#line 414 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2162{ Upgradelval.FPVal = new APFloat(HexToFP(yytext));
2163 return FPVAL;
2164 }
Reid Spencerf7bde222006-12-01 22:26:37 +00002165 YY_BREAK
2166case YY_STATE_EOF(INITIAL):
Dale Johannesen43421b32007-09-06 18:13:44 +00002167#line 418 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00002168{
2169 /* Make sure to free the internal buffers for flex when we are
2170 * done reading our input!
2171 */
Reid Spencer832254e2007-02-02 02:16:23 +00002172 yy_delete_buffer(YY_CURRENT_BUFFER);
Reid Spencere7c3c602006-11-30 06:36:44 +00002173 return EOF;
2174 }
2175 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002176case 159:
Reid Spencer950bf602007-01-26 08:19:09 +00002177YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002178#line 426 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002179{ /* Ignore whitespace */ }
2180 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002181case 160:
Reid Spencerf7bde222006-12-01 22:26:37 +00002182YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002183#line 427 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002184{ return yytext[0]; }
Reid Spencer78720742006-12-02 20:21:22 +00002185 YY_BREAK
Reid Spencer785a5ae2007-02-08 00:21:40 +00002186case 161:
Reid Spencer78720742006-12-02 20:21:22 +00002187YY_RULE_SETUP
Dale Johannesen43421b32007-09-06 18:13:44 +00002188#line 429 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00002189YY_FATAL_ERROR( "flex scanner jammed" );
2190 YY_BREAK
Dale Johannesen43421b32007-09-06 18:13:44 +00002191#line 2192 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00002192
2193 case YY_END_OF_BUFFER:
2194 {
2195 /* Amount of text matched not including the EOB char. */
Reid Spencer832254e2007-02-02 02:16:23 +00002196 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002197
2198 /* Undo the effects of YY_DO_BEFORE_ACTION. */
Reid Spencer832254e2007-02-02 02:16:23 +00002199 *yy_cp = yy_hold_char;
Reid Spencere7c3c602006-11-30 06:36:44 +00002200 YY_RESTORE_YY_MORE_OFFSET
2201
Reid Spencer832254e2007-02-02 02:16:23 +00002202 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
Reid Spencere7c3c602006-11-30 06:36:44 +00002203 {
2204 /* We're scanning a new file or input source. It's
2205 * possible that this happened because the user
Reid Spencer832254e2007-02-02 02:16:23 +00002206 * just pointed yyin at a new source and called
2207 * yylex(). If so, then we have to assure
2208 * consistency between yy_current_buffer and our
Reid Spencere7c3c602006-11-30 06:36:44 +00002209 * globals. Here is the right place to do so, because
2210 * this is the first action (other than possibly a
2211 * back-up) that will match for the new input source.
2212 */
Reid Spencer832254e2007-02-02 02:16:23 +00002213 yy_n_chars = yy_current_buffer->yy_n_chars;
2214 yy_current_buffer->yy_input_file = yyin;
2215 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
Reid Spencere7c3c602006-11-30 06:36:44 +00002216 }
2217
2218 /* Note that here we test for yy_c_buf_p "<=" to the position
2219 * of the first EOB in the buffer, since yy_c_buf_p will
2220 * already have been incremented past the NUL character
2221 * (since all states make transitions on EOB to the
2222 * end-of-buffer state). Contrast this with the test
2223 * in input().
2224 */
Reid Spencer832254e2007-02-02 02:16:23 +00002225 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002226 { /* This was really a NUL. */
2227 yy_state_type yy_next_state;
2228
Reid Spencer832254e2007-02-02 02:16:23 +00002229 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
Reid Spencere7c3c602006-11-30 06:36:44 +00002230
Reid Spencer832254e2007-02-02 02:16:23 +00002231 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002232
2233 /* Okay, we're now positioned to make the NUL
2234 * transition. We couldn't have
2235 * yy_get_previous_state() go ahead and do it
2236 * for us because it doesn't know how to deal
2237 * with the possibility of jamming (and we don't
2238 * want to build jamming into it because then it
2239 * will run more slowly).
2240 */
2241
2242 yy_next_state = yy_try_NUL_trans( yy_current_state );
2243
Reid Spencer832254e2007-02-02 02:16:23 +00002244 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002245
2246 if ( yy_next_state )
2247 {
2248 /* Consume the NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002249 yy_cp = ++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002250 yy_current_state = yy_next_state;
2251 goto yy_match;
2252 }
2253
2254 else
2255 {
Reid Spencer832254e2007-02-02 02:16:23 +00002256 yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002257 goto yy_find_action;
2258 }
2259 }
2260
Reid Spencer832254e2007-02-02 02:16:23 +00002261 else switch ( yy_get_next_buffer() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002262 {
2263 case EOB_ACT_END_OF_FILE:
2264 {
Reid Spencer832254e2007-02-02 02:16:23 +00002265 yy_did_buffer_switch_on_eof = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002266
Reid Spencer832254e2007-02-02 02:16:23 +00002267 if ( yywrap() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002268 {
2269 /* Note: because we've taken care in
2270 * yy_get_next_buffer() to have set up
Reid Spencer832254e2007-02-02 02:16:23 +00002271 * yytext, we can now set up
Reid Spencere7c3c602006-11-30 06:36:44 +00002272 * yy_c_buf_p so that if some total
2273 * hoser (like flex itself) wants to
2274 * call the scanner after we return the
2275 * YY_NULL, it'll still work - another
2276 * YY_NULL will get returned.
2277 */
Reid Spencer832254e2007-02-02 02:16:23 +00002278 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002279
2280 yy_act = YY_STATE_EOF(YY_START);
2281 goto do_action;
2282 }
2283
2284 else
2285 {
Reid Spencer832254e2007-02-02 02:16:23 +00002286 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencere7c3c602006-11-30 06:36:44 +00002287 YY_NEW_FILE;
2288 }
2289 break;
2290 }
2291
2292 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002293 yy_c_buf_p =
2294 yytext_ptr + yy_amount_of_matched_text;
Reid Spencere7c3c602006-11-30 06:36:44 +00002295
Reid Spencer832254e2007-02-02 02:16:23 +00002296 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002297
Reid Spencer832254e2007-02-02 02:16:23 +00002298 yy_cp = yy_c_buf_p;
2299 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002300 goto yy_match;
2301
2302 case EOB_ACT_LAST_MATCH:
Reid Spencer832254e2007-02-02 02:16:23 +00002303 yy_c_buf_p =
2304 &yy_current_buffer->yy_ch_buf[yy_n_chars];
Reid Spencere7c3c602006-11-30 06:36:44 +00002305
Reid Spencer832254e2007-02-02 02:16:23 +00002306 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002307
Reid Spencer832254e2007-02-02 02:16:23 +00002308 yy_cp = yy_c_buf_p;
2309 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002310 goto yy_find_action;
2311 }
2312 break;
2313 }
2314
2315 default:
2316 YY_FATAL_ERROR(
2317 "fatal flex scanner internal error--no action found" );
2318 } /* end of action switch */
2319 } /* end of scanning one token */
Reid Spencer832254e2007-02-02 02:16:23 +00002320 } /* end of yylex */
2321
Reid Spencere7c3c602006-11-30 06:36:44 +00002322
2323/* yy_get_next_buffer - try to read in a new buffer
2324 *
2325 * Returns a code representing an action:
2326 * EOB_ACT_LAST_MATCH -
2327 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2328 * EOB_ACT_END_OF_FILE - end of file
2329 */
Reid Spencer832254e2007-02-02 02:16:23 +00002330
2331static int yy_get_next_buffer()
2332 {
2333 register char *dest = yy_current_buffer->yy_ch_buf;
2334 register char *source = yytext_ptr;
Reid Spencere7c3c602006-11-30 06:36:44 +00002335 register int number_to_move, i;
2336 int ret_val;
2337
Reid Spencer832254e2007-02-02 02:16:23 +00002338 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002339 YY_FATAL_ERROR(
2340 "fatal flex scanner internal error--end of buffer missed" );
2341
Reid Spencer832254e2007-02-02 02:16:23 +00002342 if ( yy_current_buffer->yy_fill_buffer == 0 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002343 { /* Don't try to fill the buffer, so this is an EOF. */
Reid Spencer832254e2007-02-02 02:16:23 +00002344 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002345 {
2346 /* We matched a single character, the EOB, so
2347 * treat this as a final EOF.
2348 */
2349 return EOB_ACT_END_OF_FILE;
2350 }
2351
2352 else
2353 {
2354 /* We matched some text prior to the EOB, first
2355 * process it.
2356 */
2357 return EOB_ACT_LAST_MATCH;
2358 }
2359 }
2360
2361 /* Try to read more data. */
2362
2363 /* First move last chars to start of buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002364 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002365
2366 for ( i = 0; i < number_to_move; ++i )
2367 *(dest++) = *(source++);
2368
Reid Spencer832254e2007-02-02 02:16:23 +00002369 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
Reid Spencere7c3c602006-11-30 06:36:44 +00002370 /* don't do the read, it's not guaranteed to return an EOF,
2371 * just force an EOF
2372 */
Reid Spencer832254e2007-02-02 02:16:23 +00002373 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002374
2375 else
2376 {
Reid Spencer832254e2007-02-02 02:16:23 +00002377 int num_to_read =
2378 yy_current_buffer->yy_buf_size - number_to_move - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002379
2380 while ( num_to_read <= 0 )
2381 { /* Not enough room in the buffer - grow it. */
Reid Spencer832254e2007-02-02 02:16:23 +00002382#ifdef YY_USES_REJECT
2383 YY_FATAL_ERROR(
2384"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2385#else
Reid Spencere7c3c602006-11-30 06:36:44 +00002386
2387 /* just a shorter name for the current buffer */
Reid Spencer832254e2007-02-02 02:16:23 +00002388 YY_BUFFER_STATE b = yy_current_buffer;
Reid Spencere7c3c602006-11-30 06:36:44 +00002389
2390 int yy_c_buf_p_offset =
Reid Spencer832254e2007-02-02 02:16:23 +00002391 (int) (yy_c_buf_p - b->yy_ch_buf);
Reid Spencere7c3c602006-11-30 06:36:44 +00002392
2393 if ( b->yy_is_our_buffer )
2394 {
2395 int new_size = b->yy_buf_size * 2;
2396
2397 if ( new_size <= 0 )
2398 b->yy_buf_size += b->yy_buf_size / 8;
2399 else
2400 b->yy_buf_size *= 2;
2401
2402 b->yy_ch_buf = (char *)
2403 /* Include room in for 2 EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002404 yy_flex_realloc( (void *) b->yy_ch_buf,
2405 b->yy_buf_size + 2 );
Reid Spencere7c3c602006-11-30 06:36:44 +00002406 }
2407 else
2408 /* Can't grow it, we don't own it. */
2409 b->yy_ch_buf = 0;
2410
2411 if ( ! b->yy_ch_buf )
2412 YY_FATAL_ERROR(
2413 "fatal error - scanner input buffer overflow" );
2414
Reid Spencer832254e2007-02-02 02:16:23 +00002415 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
Reid Spencere7c3c602006-11-30 06:36:44 +00002416
Reid Spencer832254e2007-02-02 02:16:23 +00002417 num_to_read = yy_current_buffer->yy_buf_size -
Reid Spencere7c3c602006-11-30 06:36:44 +00002418 number_to_move - 1;
Reid Spencer832254e2007-02-02 02:16:23 +00002419#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002420 }
2421
2422 if ( num_to_read > YY_READ_BUF_SIZE )
2423 num_to_read = YY_READ_BUF_SIZE;
2424
2425 /* Read in more data. */
Reid Spencer832254e2007-02-02 02:16:23 +00002426 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2427 yy_n_chars, num_to_read );
Reid Spencere7c3c602006-11-30 06:36:44 +00002428
Reid Spencer832254e2007-02-02 02:16:23 +00002429 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencere7c3c602006-11-30 06:36:44 +00002430 }
2431
Reid Spencer832254e2007-02-02 02:16:23 +00002432 if ( yy_n_chars == 0 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002433 {
2434 if ( number_to_move == YY_MORE_ADJ )
2435 {
2436 ret_val = EOB_ACT_END_OF_FILE;
Reid Spencer832254e2007-02-02 02:16:23 +00002437 yyrestart( yyin );
Reid Spencere7c3c602006-11-30 06:36:44 +00002438 }
2439
2440 else
2441 {
2442 ret_val = EOB_ACT_LAST_MATCH;
Reid Spencer832254e2007-02-02 02:16:23 +00002443 yy_current_buffer->yy_buffer_status =
Reid Spencere7c3c602006-11-30 06:36:44 +00002444 YY_BUFFER_EOF_PENDING;
2445 }
2446 }
2447
2448 else
2449 ret_val = EOB_ACT_CONTINUE_SCAN;
2450
Reid Spencer832254e2007-02-02 02:16:23 +00002451 yy_n_chars += number_to_move;
2452 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2453 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
Reid Spencere7c3c602006-11-30 06:36:44 +00002454
Reid Spencer832254e2007-02-02 02:16:23 +00002455 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
Reid Spencere7c3c602006-11-30 06:36:44 +00002456
2457 return ret_val;
Reid Spencer832254e2007-02-02 02:16:23 +00002458 }
2459
Reid Spencere7c3c602006-11-30 06:36:44 +00002460
2461/* yy_get_previous_state - get the state just before the EOB char was reached */
2462
Reid Spencer832254e2007-02-02 02:16:23 +00002463static yy_state_type yy_get_previous_state()
2464 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002465 register yy_state_type yy_current_state;
2466 register char *yy_cp;
2467
Reid Spencer832254e2007-02-02 02:16:23 +00002468 yy_current_state = yy_start;
2469 yy_state_ptr = yy_state_buf;
2470 *yy_state_ptr++ = yy_current_state;
2471
2472 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
Reid Spencere7c3c602006-11-30 06:36:44 +00002473 {
2474 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2475 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2476 {
2477 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer785a5ae2007-02-08 00:21:40 +00002478 if ( yy_current_state >= 620 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002479 yy_c = yy_meta[(unsigned int) yy_c];
2480 }
2481 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00002482 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00002483 }
2484
2485 return yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002486 }
2487
Reid Spencere7c3c602006-11-30 06:36:44 +00002488
2489/* yy_try_NUL_trans - try to make a transition on the NUL character
2490 *
2491 * synopsis
2492 * next_state = yy_try_NUL_trans( current_state );
2493 */
Reid Spencer832254e2007-02-02 02:16:23 +00002494
2495#ifdef YY_USE_PROTOS
2496static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2497#else
2498static yy_state_type yy_try_NUL_trans( yy_current_state )
2499yy_state_type yy_current_state;
2500#endif
2501 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002502 register int yy_is_jam;
2503
2504 register YY_CHAR yy_c = 1;
2505 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2506 {
2507 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer785a5ae2007-02-08 00:21:40 +00002508 if ( yy_current_state >= 620 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002509 yy_c = yy_meta[(unsigned int) yy_c];
2510 }
2511 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer785a5ae2007-02-08 00:21:40 +00002512 yy_is_jam = (yy_current_state == 619);
Reid Spencer832254e2007-02-02 02:16:23 +00002513 if ( ! yy_is_jam )
2514 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00002515
2516 return yy_is_jam ? 0 : yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002517 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002518
2519
Reid Spencer832254e2007-02-02 02:16:23 +00002520#ifndef YY_NO_UNPUT
2521#ifdef YY_USE_PROTOS
2522static inline void yyunput( int c, register char *yy_bp )
2523#else
2524static inline void yyunput( c, yy_bp )
2525int c;
2526register char *yy_bp;
2527#endif
2528 {
2529 register char *yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002530
Reid Spencer832254e2007-02-02 02:16:23 +00002531 /* undo effects of setting up yytext */
2532 *yy_cp = yy_hold_char;
2533
2534 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002535 { /* need to shift things up to make room */
2536 /* +2 for EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002537 register int number_to_move = yy_n_chars + 2;
2538 register char *dest = &yy_current_buffer->yy_ch_buf[
2539 yy_current_buffer->yy_buf_size + 2];
Reid Spencere7c3c602006-11-30 06:36:44 +00002540 register char *source =
Reid Spencer832254e2007-02-02 02:16:23 +00002541 &yy_current_buffer->yy_ch_buf[number_to_move];
Reid Spencere7c3c602006-11-30 06:36:44 +00002542
Reid Spencer832254e2007-02-02 02:16:23 +00002543 while ( source > yy_current_buffer->yy_ch_buf )
Reid Spencere7c3c602006-11-30 06:36:44 +00002544 *--dest = *--source;
2545
2546 yy_cp += (int) (dest - source);
2547 yy_bp += (int) (dest - source);
Reid Spencer832254e2007-02-02 02:16:23 +00002548 yy_current_buffer->yy_n_chars =
2549 yy_n_chars = yy_current_buffer->yy_buf_size;
Reid Spencere7c3c602006-11-30 06:36:44 +00002550
Reid Spencer832254e2007-02-02 02:16:23 +00002551 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002552 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2553 }
2554
2555 *--yy_cp = (char) c;
2556
Reid Spencer832254e2007-02-02 02:16:23 +00002557 if ( c == '\n' )
2558 --yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00002559
Reid Spencer832254e2007-02-02 02:16:23 +00002560 yytext_ptr = yy_bp;
2561 yy_hold_char = *yy_cp;
2562 yy_c_buf_p = yy_cp;
2563 }
2564#endif /* ifndef YY_NO_UNPUT */
2565
Reid Spencere7c3c602006-11-30 06:36:44 +00002566
Reid Spencere7c3c602006-11-30 06:36:44 +00002567#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00002568static int yyinput()
Reid Spencere7c3c602006-11-30 06:36:44 +00002569#else
Reid Spencer832254e2007-02-02 02:16:23 +00002570static int input()
Reid Spencere7c3c602006-11-30 06:36:44 +00002571#endif
Reid Spencer832254e2007-02-02 02:16:23 +00002572 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002573 int c;
2574
Reid Spencer832254e2007-02-02 02:16:23 +00002575 *yy_c_buf_p = yy_hold_char;
2576
2577 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
Reid Spencere7c3c602006-11-30 06:36:44 +00002578 {
2579 /* yy_c_buf_p now points to the character we want to return.
2580 * If this occurs *before* the EOB characters, then it's a
2581 * valid NUL; if not, then we've hit the end of the buffer.
2582 */
Reid Spencer832254e2007-02-02 02:16:23 +00002583 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002584 /* This was really a NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002585 *yy_c_buf_p = '\0';
Reid Spencere7c3c602006-11-30 06:36:44 +00002586
2587 else
2588 { /* need more input */
Reid Spencer832254e2007-02-02 02:16:23 +00002589 int offset = yy_c_buf_p - yytext_ptr;
2590 ++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002591
Reid Spencer832254e2007-02-02 02:16:23 +00002592 switch ( yy_get_next_buffer() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002593 {
2594 case EOB_ACT_LAST_MATCH:
2595 /* This happens because yy_g_n_b()
2596 * sees that we've accumulated a
2597 * token and flags that we need to
2598 * try matching the token before
2599 * proceeding. But for input(),
2600 * there's no matching to consider.
2601 * So convert the EOB_ACT_LAST_MATCH
2602 * to EOB_ACT_END_OF_FILE.
2603 */
2604
2605 /* Reset buffer status. */
Reid Spencer832254e2007-02-02 02:16:23 +00002606 yyrestart( yyin );
Reid Spencere7c3c602006-11-30 06:36:44 +00002607
Reid Spencer832254e2007-02-02 02:16:23 +00002608 /* fall through */
Reid Spencere7c3c602006-11-30 06:36:44 +00002609
2610 case EOB_ACT_END_OF_FILE:
2611 {
Reid Spencer832254e2007-02-02 02:16:23 +00002612 if ( yywrap() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002613 return EOF;
2614
Reid Spencer832254e2007-02-02 02:16:23 +00002615 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencere7c3c602006-11-30 06:36:44 +00002616 YY_NEW_FILE;
2617#ifdef __cplusplus
2618 return yyinput();
2619#else
2620 return input();
2621#endif
2622 }
2623
2624 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002625 yy_c_buf_p = yytext_ptr + offset;
Reid Spencere7c3c602006-11-30 06:36:44 +00002626 break;
2627 }
2628 }
2629 }
2630
Reid Spencer832254e2007-02-02 02:16:23 +00002631 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2632 *yy_c_buf_p = '\0'; /* preserve yytext */
2633 yy_hold_char = *++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002634
2635 if ( c == '\n' )
Reid Spencer832254e2007-02-02 02:16:23 +00002636 ++yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00002637
2638 return c;
Reid Spencer832254e2007-02-02 02:16:23 +00002639 }
Dale Johannesen43421b32007-09-06 18:13:44 +00002640
Reid Spencere7c3c602006-11-30 06:36:44 +00002641
Reid Spencer832254e2007-02-02 02:16:23 +00002642#ifdef YY_USE_PROTOS
2643void yyrestart( FILE *input_file )
2644#else
2645void yyrestart( input_file )
2646FILE *input_file;
2647#endif
2648 {
2649 if ( ! yy_current_buffer )
2650 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2651
2652 yy_init_buffer( yy_current_buffer, input_file );
2653 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002654 }
2655
2656
Reid Spencer832254e2007-02-02 02:16:23 +00002657#ifdef YY_USE_PROTOS
2658void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2659#else
2660void yy_switch_to_buffer( new_buffer )
2661YY_BUFFER_STATE new_buffer;
2662#endif
2663 {
2664 if ( yy_current_buffer == new_buffer )
Reid Spencere7c3c602006-11-30 06:36:44 +00002665 return;
2666
Reid Spencer832254e2007-02-02 02:16:23 +00002667 if ( yy_current_buffer )
Reid Spencere7c3c602006-11-30 06:36:44 +00002668 {
2669 /* Flush out information for old buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002670 *yy_c_buf_p = yy_hold_char;
2671 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2672 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencere7c3c602006-11-30 06:36:44 +00002673 }
2674
Reid Spencer832254e2007-02-02 02:16:23 +00002675 yy_current_buffer = new_buffer;
2676 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002677
2678 /* We don't actually know whether we did this switch during
Reid Spencer832254e2007-02-02 02:16:23 +00002679 * EOF (yywrap()) processing, but the only time this flag
2680 * is looked at is after yywrap() is called, so it's safe
Reid Spencere7c3c602006-11-30 06:36:44 +00002681 * to go ahead and always set it.
2682 */
Reid Spencer832254e2007-02-02 02:16:23 +00002683 yy_did_buffer_switch_on_eof = 1;
2684 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002685
2686
Reid Spencer832254e2007-02-02 02:16:23 +00002687#ifdef YY_USE_PROTOS
2688void yy_load_buffer_state( void )
2689#else
2690void yy_load_buffer_state()
2691#endif
2692 {
2693 yy_n_chars = yy_current_buffer->yy_n_chars;
2694 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2695 yyin = yy_current_buffer->yy_input_file;
2696 yy_hold_char = *yy_c_buf_p;
2697 }
2698
2699
2700#ifdef YY_USE_PROTOS
2701YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2702#else
2703YY_BUFFER_STATE yy_create_buffer( file, size )
2704FILE *file;
2705int size;
2706#endif
2707 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002708 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002709
2710 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencere7c3c602006-11-30 06:36:44 +00002711 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002712 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002713
2714 b->yy_buf_size = size;
2715
2716 /* yy_ch_buf has to be 2 characters longer than the size given because
2717 * we need to put in 2 end-of-buffer characters.
2718 */
Reid Spencer832254e2007-02-02 02:16:23 +00002719 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
Reid Spencere7c3c602006-11-30 06:36:44 +00002720 if ( ! b->yy_ch_buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002721 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002722
2723 b->yy_is_our_buffer = 1;
2724
Reid Spencer832254e2007-02-02 02:16:23 +00002725 yy_init_buffer( b, file );
Reid Spencere7c3c602006-11-30 06:36:44 +00002726
2727 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002728 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002729
Reid Spencer832254e2007-02-02 02:16:23 +00002730
2731#ifdef YY_USE_PROTOS
2732void yy_delete_buffer( YY_BUFFER_STATE b )
2733#else
2734void yy_delete_buffer( b )
2735YY_BUFFER_STATE b;
2736#endif
2737 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002738 if ( ! b )
2739 return;
2740
Reid Spencer832254e2007-02-02 02:16:23 +00002741 if ( b == yy_current_buffer )
2742 yy_current_buffer = (YY_BUFFER_STATE) 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002743
2744 if ( b->yy_is_our_buffer )
Reid Spencer832254e2007-02-02 02:16:23 +00002745 yy_flex_free( (void *) b->yy_ch_buf );
Reid Spencere7c3c602006-11-30 06:36:44 +00002746
Reid Spencer832254e2007-02-02 02:16:23 +00002747 yy_flex_free( (void *) b );
2748 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002749
2750
Dale Johannesen43421b32007-09-06 18:13:44 +00002751#ifndef YY_ALWAYS_INTERACTIVE
2752#ifndef YY_NEVER_INTERACTIVE
2753extern int isatty YY_PROTO(( int ));
2754#endif
2755#endif
Reid Spencer832254e2007-02-02 02:16:23 +00002756
2757#ifdef YY_USE_PROTOS
2758void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2759#else
2760void yy_init_buffer( b, file )
2761YY_BUFFER_STATE b;
2762FILE *file;
2763#endif
2764
2765
2766 {
2767 yy_flush_buffer( b );
Reid Spencere7c3c602006-11-30 06:36:44 +00002768
2769 b->yy_input_file = file;
2770 b->yy_fill_buffer = 1;
2771
Reid Spencer832254e2007-02-02 02:16:23 +00002772#if YY_ALWAYS_INTERACTIVE
2773 b->yy_is_interactive = 1;
2774#else
2775#if YY_NEVER_INTERACTIVE
2776 b->yy_is_interactive = 0;
2777#else
2778 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2779#endif
2780#endif
2781 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002782
2783
Reid Spencer832254e2007-02-02 02:16:23 +00002784#ifdef YY_USE_PROTOS
2785void yy_flush_buffer( YY_BUFFER_STATE b )
2786#else
2787void yy_flush_buffer( b )
2788YY_BUFFER_STATE b;
2789#endif
2790
2791 {
2792 if ( ! b )
Reid Spencere7c3c602006-11-30 06:36:44 +00002793 return;
2794
2795 b->yy_n_chars = 0;
2796
2797 /* We always need two end-of-buffer characters. The first causes
2798 * a transition to the end-of-buffer state. The second causes
2799 * a jam in that state.
2800 */
2801 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2802 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2803
2804 b->yy_buf_pos = &b->yy_ch_buf[0];
2805
2806 b->yy_at_bol = 1;
2807 b->yy_buffer_status = YY_BUFFER_NEW;
2808
Reid Spencer832254e2007-02-02 02:16:23 +00002809 if ( b == yy_current_buffer )
2810 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002811 }
2812
2813
Reid Spencer832254e2007-02-02 02:16:23 +00002814#ifndef YY_NO_SCAN_BUFFER
2815#ifdef YY_USE_PROTOS
2816YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2817#else
2818YY_BUFFER_STATE yy_scan_buffer( base, size )
2819char *base;
2820yy_size_t size;
2821#endif
2822 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002823 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002824
Reid Spencere7c3c602006-11-30 06:36:44 +00002825 if ( size < 2 ||
2826 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2827 base[size-1] != YY_END_OF_BUFFER_CHAR )
2828 /* They forgot to leave room for the EOB's. */
2829 return 0;
2830
Reid Spencer832254e2007-02-02 02:16:23 +00002831 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencere7c3c602006-11-30 06:36:44 +00002832 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002833 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002834
2835 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2836 b->yy_buf_pos = b->yy_ch_buf = base;
2837 b->yy_is_our_buffer = 0;
2838 b->yy_input_file = 0;
2839 b->yy_n_chars = b->yy_buf_size;
2840 b->yy_is_interactive = 0;
2841 b->yy_at_bol = 1;
2842 b->yy_fill_buffer = 0;
2843 b->yy_buffer_status = YY_BUFFER_NEW;
2844
Reid Spencer832254e2007-02-02 02:16:23 +00002845 yy_switch_to_buffer( b );
Reid Spencere7c3c602006-11-30 06:36:44 +00002846
2847 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002848 }
2849#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002850
2851
Reid Spencer832254e2007-02-02 02:16:23 +00002852#ifndef YY_NO_SCAN_STRING
2853#ifdef YY_USE_PROTOS
2854YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2855#else
2856YY_BUFFER_STATE yy_scan_string( yy_str )
2857yyconst char *yy_str;
2858#endif
2859 {
2860 int len;
2861 for ( len = 0; yy_str[len]; ++len )
2862 ;
2863
2864 return yy_scan_bytes( yy_str, len );
2865 }
2866#endif
2867
2868
2869#ifndef YY_NO_SCAN_BYTES
2870#ifdef YY_USE_PROTOS
2871YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2872#else
2873YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2874yyconst char *bytes;
2875int len;
2876#endif
2877 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002878 YY_BUFFER_STATE b;
2879 char *buf;
2880 yy_size_t n;
2881 int i;
Reid Spencer832254e2007-02-02 02:16:23 +00002882
Reid Spencere7c3c602006-11-30 06:36:44 +00002883 /* Get memory for full buffer, including space for trailing EOB's. */
Reid Spencer832254e2007-02-02 02:16:23 +00002884 n = len + 2;
2885 buf = (char *) yy_flex_alloc( n );
Reid Spencere7c3c602006-11-30 06:36:44 +00002886 if ( ! buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002887 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002888
Reid Spencer832254e2007-02-02 02:16:23 +00002889 for ( i = 0; i < len; ++i )
2890 buf[i] = bytes[i];
Reid Spencere7c3c602006-11-30 06:36:44 +00002891
Reid Spencer832254e2007-02-02 02:16:23 +00002892 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
Reid Spencere7c3c602006-11-30 06:36:44 +00002893
Reid Spencer832254e2007-02-02 02:16:23 +00002894 b = yy_scan_buffer( buf, n );
Reid Spencere7c3c602006-11-30 06:36:44 +00002895 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002896 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002897
2898 /* It's okay to grow etc. this buffer, and we should throw it
2899 * away when we're done.
2900 */
2901 b->yy_is_our_buffer = 1;
2902
2903 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002904 }
2905#endif
2906
2907
2908#ifndef YY_NO_PUSH_STATE
2909#ifdef YY_USE_PROTOS
2910static void yy_push_state( int new_state )
2911#else
2912static void yy_push_state( new_state )
2913int new_state;
2914#endif
2915 {
2916 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2917 {
2918 yy_size_t new_size;
2919
2920 yy_start_stack_depth += YY_START_STACK_INCR;
2921 new_size = yy_start_stack_depth * sizeof( int );
2922
2923 if ( ! yy_start_stack )
2924 yy_start_stack = (int *) yy_flex_alloc( new_size );
2925
2926 else
2927 yy_start_stack = (int *) yy_flex_realloc(
2928 (void *) yy_start_stack, new_size );
2929
2930 if ( ! yy_start_stack )
2931 YY_FATAL_ERROR(
2932 "out of memory expanding start-condition stack" );
2933 }
2934
2935 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2936
2937 BEGIN(new_state);
2938 }
2939#endif
2940
2941
2942#ifndef YY_NO_POP_STATE
2943static void yy_pop_state()
2944 {
2945 if ( --yy_start_stack_ptr < 0 )
2946 YY_FATAL_ERROR( "start-condition stack underflow" );
2947
2948 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2949 }
2950#endif
2951
2952
2953#ifndef YY_NO_TOP_STATE
2954static int yy_top_state()
2955 {
2956 return yy_start_stack[yy_start_stack_ptr - 1];
2957 }
2958#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002959
2960#ifndef YY_EXIT_FAILURE
2961#define YY_EXIT_FAILURE 2
2962#endif
2963
Reid Spencer832254e2007-02-02 02:16:23 +00002964#ifdef YY_USE_PROTOS
2965static void yy_fatal_error( yyconst char msg[] )
2966#else
2967static void yy_fatal_error( msg )
2968char msg[];
2969#endif
2970 {
2971 (void) fprintf( stderr, "%s\n", msg );
Reid Spencere7c3c602006-11-30 06:36:44 +00002972 exit( YY_EXIT_FAILURE );
Reid Spencer832254e2007-02-02 02:16:23 +00002973 }
2974
2975
Reid Spencere7c3c602006-11-30 06:36:44 +00002976
2977/* Redefine yyless() so it works in section 3 code. */
2978
2979#undef yyless
2980#define yyless(n) \
2981 do \
2982 { \
Reid Spencer832254e2007-02-02 02:16:23 +00002983 /* Undo effects of setting up yytext. */ \
2984 yytext[yyleng] = yy_hold_char; \
2985 yy_c_buf_p = yytext + n; \
2986 yy_hold_char = *yy_c_buf_p; \
2987 *yy_c_buf_p = '\0'; \
2988 yyleng = n; \
Reid Spencere7c3c602006-11-30 06:36:44 +00002989 } \
2990 while ( 0 )
2991
2992
Reid Spencer832254e2007-02-02 02:16:23 +00002993/* Internal utility routines. */
Reid Spencere7c3c602006-11-30 06:36:44 +00002994
2995#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00002996#ifdef YY_USE_PROTOS
2997static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2998#else
2999static void yy_flex_strncpy( s1, s2, n )
3000char *s1;
3001yyconst char *s2;
3002int n;
3003#endif
3004 {
Reid Spencere7c3c602006-11-30 06:36:44 +00003005 register int i;
3006 for ( i = 0; i < n; ++i )
3007 s1[i] = s2[i];
Reid Spencer832254e2007-02-02 02:16:23 +00003008 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003009#endif
3010
3011#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00003012#ifdef YY_USE_PROTOS
3013static int yy_flex_strlen( yyconst char *s )
3014#else
3015static int yy_flex_strlen( s )
3016yyconst char *s;
3017#endif
3018 {
Reid Spencere7c3c602006-11-30 06:36:44 +00003019 register int n;
3020 for ( n = 0; s[n]; ++n )
3021 ;
3022
3023 return n;
Reid Spencer832254e2007-02-02 02:16:23 +00003024 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003025#endif
3026
Reid Spencere7c3c602006-11-30 06:36:44 +00003027
Reid Spencer832254e2007-02-02 02:16:23 +00003028#ifdef YY_USE_PROTOS
3029static void *yy_flex_alloc( yy_size_t size )
3030#else
3031static void *yy_flex_alloc( size )
3032yy_size_t size;
3033#endif
3034 {
3035 return (void *) malloc( size );
3036 }
3037
3038#ifdef YY_USE_PROTOS
3039static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
3040#else
3041static inline void *yy_flex_realloc( ptr, size )
3042void *ptr;
3043yy_size_t size;
3044#endif
3045 {
Reid Spencere7c3c602006-11-30 06:36:44 +00003046 /* The cast to (char *) in the following accommodates both
3047 * implementations that use char* generic pointers, and those
3048 * that use void* generic pointers. It works with the latter
3049 * because both ANSI C and C++ allow castless assignment from
3050 * any pointer type to void*, and deal with argument conversions
3051 * as though doing an assignment.
3052 */
3053 return (void *) realloc( (char *) ptr, size );
Reid Spencer832254e2007-02-02 02:16:23 +00003054 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003055
Reid Spencer832254e2007-02-02 02:16:23 +00003056#ifdef YY_USE_PROTOS
3057static void yy_flex_free( void *ptr )
3058#else
3059static void yy_flex_free( ptr )
3060void *ptr;
3061#endif
3062 {
3063 free( ptr );
3064 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003065
Reid Spencer832254e2007-02-02 02:16:23 +00003066#if YY_MAIN
3067int main()
3068 {
3069 yylex();
3070 return 0;
3071 }
3072#endif
Dale Johannesen43421b32007-09-06 18:13:44 +00003073#line 429 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00003074