blob: 9257cce3ee4d729bcf33f5adfc45c60831160c9e [file] [log] [blame]
Reid Spencer832254e2007-02-02 02:16:23 +00001#define yy_create_buffer llvmAsm_create_buffer
2#define yy_delete_buffer llvmAsm_delete_buffer
3#define yy_scan_buffer llvmAsm_scan_buffer
4#define yy_scan_string llvmAsm_scan_string
5#define yy_scan_bytes llvmAsm_scan_bytes
6#define yy_flex_debug llvmAsm_flex_debug
7#define yy_init_buffer llvmAsm_init_buffer
8#define yy_flush_buffer llvmAsm_flush_buffer
9#define yy_load_buffer_state llvmAsm_load_buffer_state
10#define yy_switch_to_buffer llvmAsm_switch_to_buffer
11#define yyin llvmAsmin
12#define yyleng llvmAsmleng
13#define yylex llvmAsmlex
14#define yyout llvmAsmout
15#define yyrestart llvmAsmrestart
16#define yytext llvmAsmtext
17#define yylineno llvmAsmlineno
Reid Spencer68a24bd2005-08-27 18:50:39 +000018
Reid Spencer832254e2007-02-02 02:16:23 +000019#line 20 "Lexer.cpp"
20/* A lexical scanner generated by flex*/
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +000021
Reid Spencer832254e2007-02-02 02:16:23 +000022/* Scanner skeleton version:
23 * $Header$
24 */
Reid Spencer68a24bd2005-08-27 18:50:39 +000025
Reid Spencer68a24bd2005-08-27 18:50:39 +000026#define FLEX_SCANNER
27#define YY_FLEX_MAJOR_VERSION 2
28#define YY_FLEX_MINOR_VERSION 5
29
30#include <stdio.h>
Reid Spencer832254e2007-02-02 02:16:23 +000031#include <unistd.h>
Owen Anderson1dc69692006-10-18 02:21:48 +000032
Anton Korobeynikov178a3522007-01-12 19:22:51 +000033
Reid Spencer832254e2007-02-02 02:16:23 +000034/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
35#ifdef c_plusplus
36#ifndef __cplusplus
37#define __cplusplus
38#endif
Anton Korobeynikov178a3522007-01-12 19:22:51 +000039#endif
40
Anton Korobeynikov178a3522007-01-12 19:22:51 +000041
42#ifdef __cplusplus
Owen Anderson1dc69692006-10-18 02:21:48 +000043
Reid Spencer832254e2007-02-02 02:16:23 +000044#include <stdlib.h>
45
46/* Use prototypes in function declarations. */
47#define YY_USE_PROTOS
48
Reid Spencer68a24bd2005-08-27 18:50:39 +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 Spencer68a24bd2005-08-27 18:50:39 +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 Spencer68a24bd2005-08-27 18:50:39 +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 Spencer68a24bd2005-08-27 18:50:39 +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 Spencer68a24bd2005-08-27 18:50:39 +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 Spencer68a24bd2005-08-27 18:50:39 +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 Spencer68a24bd2005-08-27 18:50:39 +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 Spencer68a24bd2005-08-27 18:50:39 +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 Spencer68a24bd2005-08-27 18:50:39 +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 Spencer68a24bd2005-08-27 18:50:39 +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 Spencer68a24bd2005-08-27 18:50:39 +0000151 } \
152 while ( 0 )
153
Reid Spencer832254e2007-02-02 02:16:23 +0000154#define unput(c) yyunput( c, yytext_ptr )
155
156/* Some routines like yy_flex_realloc() are emitted as static but are
157 not called by all lexers. This generates warnings in some compilers,
158 notably GCC. Arrange to suppress these. */
159#ifdef __GNUC__
160#define YY_MAY_BE_UNUSED __attribute__((unused))
161#else
162#define YY_MAY_BE_UNUSED
163#endif
Reid Spencer6f407902007-01-13 05:00:46 +0000164
Reid Spencer68a24bd2005-08-27 18:50:39 +0000165/* The following is because we cannot portably get our hands on size_t
166 * (without autoconf's help, which isn't available because we want
167 * flex-generated scanners to compile on their own).
168 */
169typedef unsigned int yy_size_t;
170
Reid Spencer832254e2007-02-02 02:16:23 +0000171
Reid Spencer68a24bd2005-08-27 18:50:39 +0000172struct yy_buffer_state
173 {
174 FILE *yy_input_file;
175
176 char *yy_ch_buf; /* input buffer */
177 char *yy_buf_pos; /* current position in input buffer */
178
179 /* Size of input buffer in bytes, not including room for EOB
180 * characters.
181 */
182 yy_size_t yy_buf_size;
183
184 /* Number of characters read into yy_ch_buf, not including EOB
185 * characters.
186 */
187 int yy_n_chars;
188
189 /* Whether we "own" the buffer - i.e., we know we created it,
190 * and can realloc() it to grow it, and should free() it to
191 * delete it.
192 */
193 int yy_is_our_buffer;
194
195 /* Whether this is an "interactive" input source; if so, and
196 * if we're using stdio for input, then we want to use getc()
197 * instead of fread(), to make sure we stop fetching input after
198 * each newline.
199 */
200 int yy_is_interactive;
201
202 /* Whether we're considered to be at the beginning of a line.
203 * If so, '^' rules will be active on the next match, otherwise
204 * not.
205 */
206 int yy_at_bol;
207
208 /* Whether to try to fill the input buffer when we reach the
209 * end of it.
210 */
211 int yy_fill_buffer;
212
213 int yy_buffer_status;
214#define YY_BUFFER_NEW 0
215#define YY_BUFFER_NORMAL 1
216 /* When an EOF's been seen but there's still some text to process
217 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
218 * shouldn't try reading from the input source any more. We might
219 * still have a bunch of tokens to match, though, because of
220 * possible backing-up.
221 *
222 * When we actually see the EOF, we change the status to "new"
Reid Spencer832254e2007-02-02 02:16:23 +0000223 * (via yyrestart()), so that the user can continue scanning by
224 * just pointing yyin at a new input file.
Reid Spencer68a24bd2005-08-27 18:50:39 +0000225 */
226#define YY_BUFFER_EOF_PENDING 2
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000227 };
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000228
Reid Spencer832254e2007-02-02 02:16:23 +0000229static YY_BUFFER_STATE yy_current_buffer = 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +0000230
231/* We provide macros for accessing buffer states in case in the
232 * future we want to put the buffer states in a more general
233 * "scanner state".
234 */
Reid Spencer832254e2007-02-02 02:16:23 +0000235#define YY_CURRENT_BUFFER yy_current_buffer
Reid Spencer68a24bd2005-08-27 18:50:39 +0000236
237
Reid Spencer832254e2007-02-02 02:16:23 +0000238/* yy_hold_char holds the character lost when yytext is formed. */
Reid Spencer68a24bd2005-08-27 18:50:39 +0000239static char yy_hold_char;
Reid Spencer832254e2007-02-02 02:16:23 +0000240
Reid Spencer68a24bd2005-08-27 18:50:39 +0000241static int yy_n_chars; /* number of characters read into yy_ch_buf */
Reid Spencer832254e2007-02-02 02:16:23 +0000242
243
244int yyleng;
Reid Spencer68a24bd2005-08-27 18:50:39 +0000245
246/* Points to current character in buffer. */
247static char *yy_c_buf_p = (char *) 0;
Reid Spencer832254e2007-02-02 02:16:23 +0000248static int yy_init = 1; /* whether we need to initialize */
Reid Spencer68a24bd2005-08-27 18:50:39 +0000249static int yy_start = 0; /* start state number */
250
Reid Spencer832254e2007-02-02 02:16:23 +0000251/* Flag which is used to allow yywrap()'s to do buffer switches
252 * instead of setting up a fresh yyin. A bit of a hack ...
Reid Spencer68a24bd2005-08-27 18:50:39 +0000253 */
254static int yy_did_buffer_switch_on_eof;
255
Reid Spencer832254e2007-02-02 02:16:23 +0000256void yyrestart YY_PROTO(( FILE *input_file ));
Reid Spencer68a24bd2005-08-27 18:50:39 +0000257
Reid Spencer832254e2007-02-02 02:16:23 +0000258void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
259void yy_load_buffer_state YY_PROTO(( void ));
260YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
261void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
262void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
263void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
264#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
Reid Spencer68a24bd2005-08-27 18:50:39 +0000265
Reid Spencer832254e2007-02-02 02:16:23 +0000266YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
267YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
268YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
Reid Spencer68a24bd2005-08-27 18:50:39 +0000269
Reid Spencer832254e2007-02-02 02:16:23 +0000270static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
271static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED;
272static void yy_flex_free YY_PROTO(( void * ));
Reid Spencer68a24bd2005-08-27 18:50:39 +0000273
Reid Spencer832254e2007-02-02 02:16:23 +0000274#define yy_new_buffer yy_create_buffer
Reid Spencer68a24bd2005-08-27 18:50:39 +0000275
276#define yy_set_interactive(is_interactive) \
277 { \
Reid Spencer832254e2007-02-02 02:16:23 +0000278 if ( ! yy_current_buffer ) \
279 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
280 yy_current_buffer->yy_is_interactive = is_interactive; \
Reid Spencer68a24bd2005-08-27 18:50:39 +0000281 }
282
283#define yy_set_bol(at_bol) \
284 { \
Reid Spencer832254e2007-02-02 02:16:23 +0000285 if ( ! yy_current_buffer ) \
286 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
287 yy_current_buffer->yy_at_bol = at_bol; \
Reid Spencer68a24bd2005-08-27 18:50:39 +0000288 }
289
Reid Spencer832254e2007-02-02 02:16:23 +0000290#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
Reid Spencer68a24bd2005-08-27 18:50:39 +0000291
292
Reid Spencer832254e2007-02-02 02:16:23 +0000293#define YY_USES_REJECT
294
295#define yywrap() 1
Reid Spencer68a24bd2005-08-27 18:50:39 +0000296#define YY_SKIP_YYWRAP
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000297typedef unsigned char YY_CHAR;
Reid Spencer832254e2007-02-02 02:16:23 +0000298FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000299typedef int yy_state_type;
Reid Spencer832254e2007-02-02 02:16:23 +0000300extern int yylineno;
301int yylineno = 1;
302extern char *yytext;
303#define yytext_ptr yytext
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000304
Reid Spencer832254e2007-02-02 02:16:23 +0000305static yy_state_type yy_get_previous_state YY_PROTO(( void ));
306static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
307static int yy_get_next_buffer YY_PROTO(( void ));
308static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
Reid Spencer68a24bd2005-08-27 18:50:39 +0000309
310/* Done after the current pattern has been matched and before the
Reid Spencer832254e2007-02-02 02:16:23 +0000311 * corresponding action - sets up yytext.
Reid Spencer68a24bd2005-08-27 18:50:39 +0000312 */
313#define YY_DO_BEFORE_ACTION \
Reid Spencer832254e2007-02-02 02:16:23 +0000314 yytext_ptr = yy_bp; \
315 yyleng = (int) (yy_cp - yy_bp); \
316 yy_hold_char = *yy_cp; \
Reid Spencer68a24bd2005-08-27 18:50:39 +0000317 *yy_cp = '\0'; \
Reid Spencer832254e2007-02-02 02:16:23 +0000318 yy_c_buf_p = yy_cp;
Reid Spencer68a24bd2005-08-27 18:50:39 +0000319
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000320#define YY_NUM_RULES 134
321#define YY_END_OF_BUFFER 135
Reid Spencer832254e2007-02-02 02:16:23 +0000322static yyconst short int yy_acclist[215] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000323 { 0,
Reid Spencer832254e2007-02-02 02:16:23 +0000324 135, 133, 134, 132, 133, 134, 132, 134, 133, 134,
325 133, 134, 133, 134, 133, 134, 133, 134, 133, 134,
326 125, 133, 134, 125, 133, 134, 1, 133, 134, 133,
327 134, 133, 134, 133, 134, 133, 134, 133, 134, 133,
328 134, 133, 134, 133, 134, 133, 134, 133, 134, 133,
329 134, 133, 134, 133, 134, 133, 134, 133, 134, 133,
330 134, 133, 134, 133, 134, 133, 134, 133, 134, 133,
331 134, 133, 134, 133, 134, 123, 121, 119, 128, 126,
332 130, 125, 1, 120, 129, 105, 36, 68, 50, 69,
333 64, 24, 123, 119, 130, 21, 130, 131, 124, 120,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000334
Reid Spencer832254e2007-02-02 02:16:23 +0000335 51, 63, 34, 37, 3, 53, 78, 83, 81, 82,
336 80, 79, 84, 88, 104, 73, 71, 60, 72, 70,
337 52, 86, 77, 75, 76, 74, 87, 85, 65, 122,
338 130, 130, 62, 89, 67, 56, 112, 59, 66, 113,
339 61, 23, 127, 55, 92, 58, 43, 25, 4, 48,
340 54, 57, 44, 12, 91, 130, 31, 2, 5, 45,
341 94, 42, 47, 114, 90, 22, 111, 39, 7, 46,
342 38, 98, 97, 8, 16, 107, 110, 33, 49, 102,
343 96, 106, 26, 27, 95, 108, 103, 101, 6, 28,
344 93, 32, 9, 18, 10, 99, 11, 100, 30, 13,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000345
Reid Spencer832254e2007-02-02 02:16:23 +0000346 15, 14, 29, 35, 17, 109, 115, 117, 118, 40,
347 116, 19, 41, 20
Reid Spencer68a24bd2005-08-27 18:50:39 +0000348 } ;
349
Reid Spencer832254e2007-02-02 02:16:23 +0000350static yyconst short int yy_accept[540] =
351 { 0,
352 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
353 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
354 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
355 60, 62, 64, 66, 68, 70, 72, 74, 76, 76,
356 77, 77, 78, 79, 80, 80, 81, 81, 82, 83,
357 83, 84, 84, 85, 86, 86, 86, 86, 86, 86,
358 86, 86, 87, 87, 88, 88, 88, 88, 88, 88,
359 88, 89, 89, 89, 89, 89, 89, 89, 89, 89,
360 89, 89, 90, 90, 90, 90, 90, 90, 90, 90,
361 90, 90, 90, 91, 91, 91, 91, 91, 91, 91,
362
363 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
364 92, 92, 92, 92, 92, 92, 93, 93, 93, 93,
365 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
366 93, 93, 94, 95, 96, 97, 98, 98, 99, 99,
367 100, 101, 102, 102, 102, 103, 103, 103, 104, 104,
368 104, 104, 105, 105, 105, 105, 105, 105, 105, 105,
369 105, 106, 106, 106, 106, 106, 106, 106, 106, 106,
370 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
371 106, 106, 106, 106, 106, 106, 107, 107, 108, 109,
372 110, 111, 112, 113, 113, 114, 115, 115, 116, 116,
373
374 116, 116, 116, 116, 117, 118, 119, 119, 119, 119,
375 120, 121, 121, 121, 122, 122, 122, 122, 122, 122,
376 122, 122, 123, 124, 125, 125, 126, 127, 127, 128,
377 129, 129, 129, 129, 129, 129, 129, 129, 129, 130,
378 130, 130, 131, 132, 132, 132, 132, 133, 133, 133,
379 133, 134, 134, 134, 135, 135, 135, 135, 135, 135,
380 135, 135, 135, 135, 135, 135, 135, 135, 136, 137,
381 137, 137, 137, 137, 138, 139, 139, 139, 139, 140,
382 140, 140, 140, 140, 140, 140, 140, 140, 141, 142,
383 142, 142, 143, 143, 143, 144, 145, 145, 145, 146,
384
385 146, 146, 146, 147, 148, 148, 148, 149, 149, 149,
386 150, 150, 151, 152, 152, 152, 152, 152, 153, 153,
387 154, 154, 155, 155, 155, 156, 157, 158, 158, 158,
388 159, 159, 159, 159, 159, 159, 159, 159, 159, 159,
389 159, 159, 159, 160, 160, 161, 162, 162, 162, 162,
390 162, 162, 162, 162, 163, 163, 163, 163, 163, 164,
391 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
392 165, 165, 165, 165, 166, 166, 167, 167, 167, 167,
393 167, 167, 167, 167, 168, 168, 168, 169, 169, 169,
394 169, 170, 170, 170, 170, 171, 171, 171, 172, 173,
395
396 174, 174, 174, 175, 176, 176, 176, 176, 176, 177,
397 177, 178, 179, 180, 180, 180, 181, 181, 181, 182,
398 183, 184, 185, 186, 186, 187, 188, 188, 188, 188,
399 188, 188, 189, 189, 189, 190, 191, 191, 191, 191,
400 191, 191, 192, 192, 192, 192, 192, 192, 192, 192,
401 193, 193, 193, 193, 193, 193, 193, 193, 193, 194,
402 194, 194, 194, 194, 195, 195, 195, 195, 195, 196,
403 197, 198, 199, 199, 199, 199, 200, 200, 200, 200,
404 201, 201, 202, 203, 203, 203, 203, 203, 203, 203,
405 203, 203, 203, 203, 203, 204, 204, 204, 204, 204,
406
407 204, 204, 205, 205, 205, 205, 205, 206, 206, 206,
408 206, 206, 206, 207, 207, 207, 207, 207, 207, 207,
409 207, 207, 207, 207, 207, 207, 208, 208, 209, 210,
410 210, 211, 211, 212, 213, 214, 214, 215, 215
411 } ;
412
413static yyconst int yy_ec[256] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000414 { 0,
415 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
416 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
417 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
418 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
Reid Spencera54b7cb2007-01-12 07:05:14 +0000419 1, 1, 7, 1, 8, 9, 1, 10, 11, 11,
420 11, 11, 11, 12, 11, 13, 11, 14, 15, 1,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000421 1, 1, 1, 16, 17, 17, 17, 17, 18, 17,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000422 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
423 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000424 1, 1, 1, 1, 19, 1, 20, 21, 22, 23,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000425
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000426 24, 25, 26, 27, 28, 5, 29, 30, 31, 32,
427 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
428 43, 44, 1, 1, 1, 1, 1, 1, 1, 1,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000429 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
430 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
431 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
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
438 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
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
443 } ;
444
Reid Spencer832254e2007-02-02 02:16:23 +0000445static yyconst int yy_meta[45] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000446 { 0,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000447 1, 1, 2, 3, 4, 1, 1, 4, 4, 4,
448 4, 4, 4, 5, 1, 1, 4, 4, 4, 4,
449 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
450 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
451 4, 4, 4, 4
Reid Spencer68a24bd2005-08-27 18:50:39 +0000452 } ;
453
Reid Spencer832254e2007-02-02 02:16:23 +0000454static yyconst short int yy_base[547] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000455 { 0,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000456 0, 0, 1173, 1174, 1174, 1174, 1168, 1157, 35, 39,
457 43, 49, 55, 61, 0, 72, 64, 67, 66, 86,
458 76, 106, 91, 65, 133, 121, 117, 78, 152, 95,
459 90, 179, 137, 211, 139, 99, 148, 110, 1166, 1174,
460 1155, 1174, 0, 49, 185, 217, 98, 238, 254, 259,
461 0, 1164, 0, 200, 116, 149, 146, 118, 160, 63,
462 154, 1153, 153, 186, 208, 161, 264, 171, 205, 200,
463 1152, 219, 260, 222, 176, 228, 261, 124, 273, 274,
464 231, 269, 278, 279, 280, 281, 282, 290, 232, 202,
465 289, 291, 1151, 292, 294, 301, 309, 310, 312, 305,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000466
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000467 313, 316, 317, 321, 322, 323, 324, 328, 326, 330,
468 332, 337, 345, 329, 346, 1150, 347, 355, 357, 358,
469 359, 362, 363, 380, 364, 241, 377, 370, 113, 366,
470 378, 1149, 0, 399, 1148, 414, 432, 0, 1157, 1174,
471 0, 1146, 382, 365, 1145, 405, 401, 1144, 367, 408,
472 404, 1143, 427, 417, 433, 419, 434, 421, 441, 385,
473 1142, 442, 422, 438, 443, 444, 447, 446, 449, 450,
474 456, 454, 469, 457, 459, 472, 473, 476, 465, 479,
475 480, 481, 485, 487, 488, 1141, 492, 1140, 1139, 1138,
476 1137, 1136, 1135, 491, 1134, 1133, 493, 1132, 522, 496,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000477
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000478 499, 494, 510, 1131, 1130, 1129, 498, 501, 497, 1128,
479 1127, 524, 505, 1126, 514, 535, 537, 536, 540, 542,
480 539, 1125, 1124, 1123, 543, 1122, 1121, 544, 1120, 1119,
481 545, 546, 547, 553, 506, 557, 561, 566, 1118, 567,
482 568, 1174, 581, 576, 585, 597, 602, 587, 603, 588,
483 1117, 589, 604, 1116, 608, 590, 609, 612, 613, 615,
484 617, 619, 621, 620, 622, 623, 624, 1115, 1114, 626,
485 627, 630, 634, 1113, 1112, 638, 635, 639, 1111, 646,
486 640, 643, 644, 648, 647, 657, 658, 1110, 1109, 660,
487 664, 1108, 661, 663, 0, 1107, 669, 668, 1106, 670,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000488
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000489 674, 678, 1105, 1104, 675, 687, 1103, 688, 690, 1102,
490 691, 1101, 1100, 692, 693, 694, 696, 1099, 697, 1098,
491 701, 1097, 705, 707, 1096, 712, 1095, 712, 713, 1094,
492 715, 723, 720, 724, 717, 727, 729, 732, 733, 734,
493 740, 735, 1093, 741, 1092, 1091, 742, 745, 746, 747,
494 750, 751, 748, 1090, 754, 755, 760, 761, 1089, 763,
495 762, 767, 772, 774, 768, 775, 776, 779, 783, 1088,
496 784, 785, 786, 1087, 791, 1086, 793, 789, 794, 800,
497 802, 795, 804, 1085, 807, 805, 1084, 810, 812, 813,
498 1083, 815, 816, 817, 1082, 820, 818, 1081, 1080, 1079,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000499
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000500 824, 827, 1078, 1077, 830, 833, 831, 834, 1076, 839,
501 1075, 1074, 1073, 845, 846, 1072, 849, 850, 1071, 1070,
502 1069, 1068, 1067, 852, 1066, 1065, 851, 848, 853, 854,
503 855, 1064, 856, 857, 1063, 1062, 860, 866, 869, 870,
504 874, 1061, 875, 872, 877, 878, 879, 881, 883, 1060,
505 887, 889, 892, 895, 897, 900, 902, 903, 1059, 904,
506 906, 909, 910, 1058, 911, 914, 912, 918, 1057, 1056,
507 1055, 1054, 924, 917, 916, 1053, 931, 935, 937, 1042,
508 919, 1032, 1031, 938, 940, 922, 942, 945, 947, 949,
509 952, 953, 954, 957, 1030, 956, 958, 960, 961, 964,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000510
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000511 965, 1028, 966, 967, 972, 977, 1027, 969, 978, 981,
512 982, 984, 1025, 990, 986, 987, 991, 992, 996, 997,
513 998, 999, 1004, 672, 1005, 1024, 1008, 1022, 1019, 1010,
514 1017, 1013, 1016, 671, 502, 1011, 458, 1174, 1047, 1049,
515 254, 1054, 1057, 220, 1061, 167
Reid Spencer68a24bd2005-08-27 18:50:39 +0000516 } ;
517
Reid Spencer832254e2007-02-02 02:16:23 +0000518static yyconst short int yy_def[547] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000519 { 0,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000520 538, 1, 538, 538, 538, 538, 539, 540, 541, 538,
521 540, 540, 540, 540, 542, 543, 540, 540, 540, 540,
522 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
523 540, 540, 540, 540, 540, 540, 540, 540, 539, 538,
524 540, 538, 544, 538, 538, 540, 540, 540, 540, 540,
525 542, 545, 546, 538, 540, 540, 540, 540, 540, 540,
526 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
527 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
528 540, 25, 540, 540, 540, 540, 540, 540, 540, 540,
529 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000530
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000531 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
532 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
533 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
534 540, 538, 544, 538, 540, 540, 540, 50, 545, 538,
535 546, 540, 540, 540, 540, 540, 540, 540, 540, 540,
536 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
537 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
538 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
539 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
540 540, 540, 540, 540, 540, 540, 540, 540, 50, 540,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000541
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000542 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
543 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
544 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
545 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
546 540, 538, 538, 538, 538, 540, 540, 540, 540, 540,
547 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
548 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
549 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
550 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
551 540, 540, 540, 540, 199, 540, 540, 540, 540, 540,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000552
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000553 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
554 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
555 540, 540, 540, 540, 540, 538, 540, 540, 540, 540,
556 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
557 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
558 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
559 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
560 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
561 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
562 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000563
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000564 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
565 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
566 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
567 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
568 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
569 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
570 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
571 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
572 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
573 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000574
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000575 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
576 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
577 540, 540, 540, 540, 540, 540, 540, 540, 540, 540,
578 540, 540, 540, 540, 540, 540, 540, 0, 538, 538,
579 538, 538, 538, 538, 538, 538
Reid Spencer68a24bd2005-08-27 18:50:39 +0000580 } ;
581
Reid Spencer832254e2007-02-02 02:16:23 +0000582static yyconst short int yy_nxt[1219] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000583 { 0,
584 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000585 14, 14, 14, 4, 15, 16, 8, 8, 8, 17,
586 18, 19, 20, 21, 22, 23, 24, 25, 8, 26,
587 27, 28, 29, 30, 8, 31, 32, 33, 34, 35,
588 36, 37, 8, 38, 44, 44, 44, 44, 45, 45,
589 45, 45, 46, 46, 46, 46, 42, 47, 44, 44,
590 44, 44, 42, 48, 49, 49, 49, 49, 42, 48,
591 49, 49, 49, 49, 42, 52, 42, 42, 42, 42,
592 42, 54, 54, 54, 54, 63, 55, 64, 149, 42,
593 60, 42, 81, 56, 61, 57, 50, 58, 65, 42,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000594
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000595 59, 93, 62, 42, 42, 66, 135, 70, 42, 67,
596 71, 42, 42, 103, 79, 68, 94, 72, 69, 42,
597 80, 101, 128, 42, 238, 73, 42, 74, 75, 42,
598 42, 42, 102, 131, 42, 76, 90, 42, 142, 77,
599 86, 78, 82, 82, 82, 82, 42, 170, 87, 91,
600 42, 146, 42, 88, 83, 92, 115, 89, 126, 42,
601 129, 42, 42, 84, 85, 42, 42, 42, 145, 116,
602 141, 127, 117, 42, 42, 95, 143, 96, 144, 118,
603 130, 97, 151, 98, 42, 99, 147, 100, 104, 42,
604 148, 150, 42, 134, 45, 45, 45, 45, 155, 42,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000605
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000606 159, 105, 106, 166, 107, 108, 109, 152, 110, 54,
607 54, 54, 54, 42, 111, 42, 112, 113, 42, 114,
608 104, 42, 161, 133, 42, 48, 46, 46, 46, 46,
609 42, 184, 42, 119, 120, 42, 121, 153, 122, 154,
610 123, 42, 124, 160, 42, 42, 125, 136, 136, 136,
611 136, 42, 165, 173, 42, 137, 162, 43, 183, 234,
612 167, 137, 48, 49, 49, 49, 49, 42, 138, 138,
613 138, 138, 42, 42, 42, 138, 138, 42, 138, 138,
614 138, 138, 138, 138, 168, 156, 42, 42, 157, 163,
615 41, 42, 42, 42, 42, 42, 164, 158, 169, 41,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000616
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000617 41, 180, 42, 42, 42, 42, 172, 42, 174, 182,
618 171, 185, 175, 181, 42, 176, 177, 178, 42, 179,
619 186, 187, 42, 42, 189, 42, 42, 195, 188, 42,
620 42, 194, 191, 193, 42, 42, 42, 42, 190, 42,
621 196, 42, 42, 42, 201, 42, 192, 204, 208, 200,
622 42, 197, 202, 210, 198, 212, 215, 206, 42, 42,
623 42, 205, 199, 209, 203, 214, 207, 211, 42, 213,
624 42, 42, 42, 216, 218, 42, 42, 42, 42, 42,
625 42, 217, 223, 42, 221, 219, 226, 233, 220, 237,
626 42, 42, 222, 42, 252, 42, 224, 249, 42, 225,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000627
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000628 227, 239, 228, 229, 235, 263, 236, 248, 243, 243,
629 243, 243, 230, 240, 42, 231, 244, 42, 42, 241,
630 232, 42, 244, 136, 136, 136, 136, 42, 250, 253,
631 42, 137, 42, 254, 42, 42, 251, 137, 245, 246,
632 42, 247, 247, 247, 247, 42, 42, 42, 258, 255,
633 260, 42, 257, 256, 42, 42, 42, 42, 266, 42,
634 42, 259, 42, 42, 261, 264, 270, 42, 262, 42,
635 42, 42, 42, 274, 277, 267, 268, 265, 42, 276,
636 275, 272, 42, 269, 273, 42, 42, 271, 280, 42,
637 279, 278, 42, 42, 42, 281, 282, 285, 42, 283,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000638
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000639 42, 42, 286, 288, 42, 42, 42, 42, 287, 42,
640 42, 42, 42, 284, 42, 42, 290, 298, 42, 42,
641 289, 292, 300, 42, 301, 293, 291, 42, 320, 302,
642 294, 295, 295, 295, 295, 296, 297, 42, 295, 295,
643 305, 295, 295, 295, 295, 295, 295, 299, 42, 42,
644 42, 306, 42, 42, 303, 42, 42, 42, 42, 42,
645 42, 304, 308, 310, 307, 312, 42, 315, 316, 309,
646 42, 311, 319, 317, 42, 314, 321, 318, 313, 42,
647 42, 42, 245, 245, 323, 326, 326, 326, 326, 322,
648 243, 243, 243, 243, 326, 326, 326, 326, 244, 324,
Reid Spencer14310612006-12-31 05:40:51 +0000649
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000650 42, 42, 42, 42, 244, 325, 247, 247, 247, 247,
651 42, 247, 247, 247, 247, 42, 42, 42, 327, 329,
652 330, 42, 42, 331, 328, 42, 42, 333, 42, 332,
653 42, 335, 42, 42, 42, 42, 42, 42, 334, 42,
654 42, 342, 337, 42, 336, 344, 343, 42, 42, 339,
655 340, 42, 42, 42, 351, 341, 42, 42, 338, 42,
656 42, 42, 352, 345, 346, 354, 347, 350, 348, 353,
657 42, 42, 349, 42, 42, 358, 42, 42, 355, 356,
658 357, 42, 42, 42, 42, 42, 359, 42, 42, 366,
659 360, 42, 361, 362, 367, 364, 365, 368, 370, 363,
Reid Spencer14310612006-12-31 05:40:51 +0000660
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000661 42, 42, 369, 42, 42, 42, 42, 42, 371, 42,
662 42, 372, 374, 377, 42, 532, 375, 376, 42, 373,
663 42, 326, 326, 326, 326, 42, 42, 378, 42, 381,
664 42, 384, 379, 42, 383, 385, 42, 42, 380, 388,
665 42, 382, 42, 389, 387, 42, 42, 42, 42, 392,
666 391, 386, 390, 42, 42, 42, 397, 395, 42, 42,
667 42, 42, 398, 42, 42, 393, 394, 42, 42, 399,
668 402, 396, 400, 42, 42, 42, 42, 401, 405, 403,
669 42, 42, 404, 411, 409, 42, 407, 42, 42, 42,
670 412, 406, 42, 408, 410, 413, 42, 42, 42, 42,
Reid Spencer14310612006-12-31 05:40:51 +0000671
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000672 415, 414, 42, 418, 42, 417, 42, 42, 42, 422,
673 420, 425, 416, 42, 424, 42, 419, 42, 42, 426,
674 42, 428, 421, 42, 423, 42, 42, 427, 42, 42,
675 42, 42, 429, 42, 431, 430, 435, 42, 439, 440,
676 42, 433, 432, 42, 42, 442, 42, 42, 437, 438,
677 446, 436, 42, 444, 434, 441, 445, 443, 42, 42,
678 448, 42, 42, 42, 42, 42, 42, 42, 42, 42,
679 42, 447, 451, 42, 452, 456, 449, 450, 453, 42,
680 454, 457, 42, 42, 455, 42, 458, 42, 42, 460,
681 42, 42, 42, 459, 42, 461, 42, 465, 466, 464,
Reid Spencer14310612006-12-31 05:40:51 +0000682
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000683 42, 462, 42, 467, 471, 42, 468, 469, 42, 463,
684 42, 475, 474, 42, 470, 42, 42, 42, 476, 42,
685 472, 478, 42, 42, 42, 42, 473, 42, 480, 42,
686 42, 42, 42, 484, 477, 42, 491, 42, 490, 479,
687 485, 488, 481, 482, 42, 486, 483, 489, 42, 487,
688 42, 42, 492, 42, 493, 42, 495, 496, 42, 498,
689 42, 499, 42, 497, 494, 42, 42, 42, 501, 42,
690 42, 42, 504, 42, 42, 500, 506, 42, 42, 42,
691 42, 503, 42, 505, 507, 42, 502, 511, 508, 513,
692 42, 42, 517, 509, 42, 42, 514, 42, 510, 42,
Reid Spencer14310612006-12-31 05:40:51 +0000693
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000694 42, 515, 512, 42, 42, 42, 516, 523, 519, 42,
695 42, 42, 42, 520, 524, 518, 521, 42, 42, 522,
696 530, 42, 525, 42, 42, 531, 42, 526, 527, 42,
697 42, 535, 42, 529, 528, 42, 536, 42, 42, 534,
698 42, 42, 533, 42, 42, 42, 537, 39, 39, 39,
699 39, 39, 41, 41, 51, 42, 51, 51, 51, 53,
700 53, 139, 139, 139, 139, 139, 42, 42, 42, 42,
701 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
702 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
703 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
Reid Spencer14310612006-12-31 05:40:51 +0000704
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000705 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
706 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
707 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
708 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
709 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
710 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
711 140, 42, 242, 42, 42, 42, 42, 140, 42, 132,
712 42, 40, 538, 3, 538, 538, 538, 538, 538, 538,
713 538, 538, 538, 538, 538, 538, 538, 538, 538, 538,
714 538, 538, 538, 538, 538, 538, 538, 538, 538, 538,
Chris Lattner75466192006-05-19 21:28:53 +0000715
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000716 538, 538, 538, 538, 538, 538, 538, 538, 538, 538,
717 538, 538, 538, 538, 538, 538, 538, 538
Reid Spencer68a24bd2005-08-27 18:50:39 +0000718 } ;
719
Reid Spencer832254e2007-02-02 02:16:23 +0000720static yyconst short int yy_chk[1219] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000721 { 0,
722 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
723 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
724 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
725 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000726 1, 1, 1, 1, 9, 9, 9, 9, 10, 10,
727 10, 10, 11, 11, 11, 11, 11, 12, 44, 44,
728 44, 44, 12, 13, 13, 13, 13, 13, 13, 14,
729 14, 14, 14, 14, 14, 16, 60, 17, 24, 19,
730 18, 16, 16, 16, 16, 19, 17, 19, 60, 21,
731 18, 28, 24, 17, 18, 17, 13, 17, 19, 20,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000732
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000733 17, 28, 18, 31, 23, 20, 47, 21, 30, 20,
734 21, 47, 36, 31, 23, 20, 28, 21, 20, 22,
735 23, 30, 36, 38, 129, 22, 129, 22, 22, 55,
736 27, 58, 30, 38, 26, 22, 27, 78, 55, 22,
737 26, 22, 25, 25, 25, 25, 25, 78, 26, 27,
738 33, 58, 35, 26, 25, 27, 33, 26, 35, 57,
739 37, 37, 56, 25, 25, 29, 63, 61, 57, 33,
740 546, 35, 33, 59, 66, 29, 56, 29, 56, 33,
741 37, 29, 63, 29, 68, 29, 59, 29, 32, 75,
742 59, 61, 32, 45, 45, 45, 45, 45, 66, 64,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000743
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000744 68, 32, 32, 75, 32, 32, 32, 64, 32, 54,
745 54, 54, 54, 70, 32, 90, 32, 32, 69, 32,
746 34, 65, 70, 544, 34, 46, 46, 46, 46, 46,
747 46, 90, 72, 34, 34, 74, 34, 65, 34, 65,
748 34, 76, 34, 69, 81, 89, 34, 48, 48, 48,
749 48, 48, 74, 81, 126, 48, 72, 541, 89, 126,
750 76, 48, 49, 49, 49, 49, 49, 49, 50, 50,
751 50, 50, 50, 73, 77, 50, 50, 67, 50, 50,
752 50, 50, 50, 50, 77, 67, 79, 80, 67, 73,
753 82, 83, 84, 85, 86, 87, 73, 67, 77, 82,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000754
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000755 82, 86, 91, 88, 92, 94, 80, 95, 83, 88,
756 79, 91, 84, 87, 96, 85, 85, 85, 100, 85,
757 92, 94, 97, 98, 96, 99, 101, 100, 95, 102,
758 103, 99, 97, 98, 104, 105, 106, 107, 96, 109,
759 101, 108, 114, 110, 106, 111, 97, 107, 109, 105,
760 112, 102, 106, 110, 103, 111, 114, 108, 113, 115,
761 117, 107, 104, 109, 106, 113, 108, 110, 118, 112,
762 119, 120, 121, 115, 117, 122, 123, 125, 144, 130,
763 149, 115, 121, 128, 119, 117, 123, 125, 118, 128,
764 127, 131, 120, 124, 149, 143, 121, 144, 160, 122,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000765
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000766 123, 130, 124, 124, 127, 160, 127, 143, 134, 134,
767 134, 134, 124, 131, 147, 124, 134, 151, 146, 131,
768 124, 150, 134, 136, 136, 136, 136, 136, 146, 150,
769 154, 136, 156, 151, 158, 163, 147, 136, 137, 137,
770 153, 137, 137, 137, 137, 137, 155, 157, 156, 153,
771 158, 164, 155, 154, 159, 162, 165, 166, 163, 168,
772 167, 157, 169, 170, 159, 162, 167, 172, 159, 171,
773 174, 537, 175, 170, 172, 164, 165, 162, 179, 171,
774 170, 169, 173, 166, 169, 176, 177, 168, 175, 178,
775 174, 173, 180, 181, 182, 176, 177, 179, 183, 178,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000776
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000777 184, 185, 180, 182, 194, 187, 197, 202, 181, 200,
778 209, 207, 201, 178, 208, 535, 184, 202, 213, 235,
779 183, 187, 207, 203, 208, 194, 185, 215, 235, 209,
780 197, 199, 199, 199, 199, 200, 201, 212, 199, 199,
781 213, 199, 199, 199, 199, 199, 199, 203, 216, 218,
782 217, 215, 221, 219, 212, 220, 225, 228, 231, 232,
783 233, 212, 217, 219, 216, 220, 234, 228, 231, 218,
784 236, 219, 234, 232, 237, 225, 236, 233, 221, 238,
785 240, 241, 244, 244, 238, 244, 244, 244, 244, 237,
786 243, 243, 243, 243, 245, 245, 245, 245, 243, 240,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000787
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000788 248, 250, 252, 256, 243, 241, 246, 246, 246, 246,
789 246, 247, 247, 247, 247, 247, 249, 253, 248, 250,
790 252, 255, 257, 253, 249, 258, 259, 256, 260, 255,
791 261, 258, 262, 264, 263, 265, 266, 267, 257, 270,
792 271, 265, 260, 272, 259, 267, 266, 273, 277, 262,
793 263, 276, 278, 281, 277, 264, 282, 283, 261, 280,
794 285, 284, 278, 270, 271, 281, 272, 276, 272, 280,
795 286, 287, 273, 290, 293, 285, 294, 291, 282, 283,
796 284, 298, 297, 300, 534, 524, 286, 301, 305, 298,
797 287, 302, 290, 291, 300, 294, 297, 301, 305, 293,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000798
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000799 306, 308, 302, 309, 311, 314, 315, 316, 306, 317,
800 319, 308, 311, 316, 321, 524, 314, 315, 323, 309,
801 324, 326, 326, 326, 326, 328, 329, 317, 331, 323,
802 335, 328, 319, 333, 324, 329, 332, 334, 321, 333,
803 336, 323, 337, 334, 332, 338, 339, 340, 342, 337,
804 336, 331, 335, 341, 344, 347, 342, 340, 348, 349,
805 350, 353, 344, 351, 352, 338, 339, 355, 356, 347,
806 350, 341, 348, 357, 358, 361, 360, 349, 353, 351,
807 362, 365, 352, 361, 358, 363, 356, 364, 366, 367,
808 362, 355, 368, 357, 360, 363, 369, 371, 372, 373,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000809
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000810 365, 364, 378, 368, 375, 367, 377, 379, 382, 373,
811 371, 378, 366, 380, 377, 381, 369, 383, 386, 379,
812 385, 381, 372, 388, 375, 389, 390, 380, 392, 393,
813 394, 397, 382, 396, 385, 383, 390, 401, 396, 396,
814 402, 388, 386, 405, 407, 401, 406, 408, 393, 394,
815 407, 392, 410, 405, 389, 397, 406, 402, 414, 415,
816 410, 428, 417, 418, 427, 424, 429, 430, 431, 433,
817 434, 408, 417, 437, 418, 429, 414, 415, 424, 438,
818 427, 430, 439, 440, 428, 444, 431, 441, 443, 434,
819 445, 446, 447, 433, 448, 437, 449, 441, 443, 440,
Chris Lattnere869eef2005-11-12 00:11:49 +0000820
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000821 451, 438, 452, 444, 448, 453, 445, 446, 454, 439,
822 455, 453, 452, 456, 447, 457, 458, 460, 454, 461,
823 449, 456, 462, 463, 465, 467, 451, 466, 458, 475,
824 474, 468, 481, 463, 455, 486, 475, 473, 474, 457,
825 465, 468, 460, 461, 477, 466, 462, 473, 478, 467,
826 479, 484, 477, 485, 478, 487, 481, 484, 488, 486,
827 489, 487, 490, 485, 479, 491, 492, 493, 489, 496,
828 494, 497, 492, 498, 499, 488, 494, 500, 501, 503,
829 504, 491, 508, 493, 496, 505, 490, 500, 497, 503,
830 506, 509, 508, 498, 510, 511, 504, 512, 499, 515,
Chris Lattner75466192006-05-19 21:28:53 +0000831
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000832 516, 505, 501, 514, 517, 518, 506, 515, 510, 519,
833 520, 521, 522, 511, 516, 509, 512, 523, 525, 514,
834 522, 527, 517, 530, 536, 523, 532, 518, 519, 533,
835 531, 530, 529, 521, 520, 528, 532, 526, 513, 527,
836 507, 502, 525, 495, 483, 482, 536, 539, 539, 539,
837 539, 539, 540, 540, 542, 480, 542, 542, 542, 543,
838 543, 545, 545, 545, 545, 545, 476, 472, 471, 470,
839 469, 464, 459, 450, 442, 436, 435, 432, 426, 425,
840 423, 422, 421, 420, 419, 416, 413, 412, 411, 409,
841 404, 403, 400, 399, 398, 395, 391, 387, 384, 376,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000842
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000843 374, 370, 359, 354, 346, 345, 343, 330, 327, 325,
844 322, 320, 318, 313, 312, 310, 307, 304, 303, 299,
845 296, 292, 289, 288, 279, 275, 274, 269, 268, 254,
846 251, 239, 230, 229, 227, 226, 224, 223, 222, 214,
847 211, 210, 206, 205, 204, 198, 196, 195, 193, 192,
848 191, 190, 189, 188, 186, 161, 152, 148, 145, 142,
849 139, 135, 132, 116, 93, 71, 62, 52, 41, 39,
850 8, 7, 3, 538, 538, 538, 538, 538, 538, 538,
851 538, 538, 538, 538, 538, 538, 538, 538, 538, 538,
852 538, 538, 538, 538, 538, 538, 538, 538, 538, 538,
Reid Spencer3da59db2006-11-27 01:05:10 +0000853
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000854 538, 538, 538, 538, 538, 538, 538, 538, 538, 538,
855 538, 538, 538, 538, 538, 538, 538, 538
Reid Spencer68a24bd2005-08-27 18:50:39 +0000856 } ;
857
Reid Spencer832254e2007-02-02 02:16:23 +0000858static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
859static char *yy_full_match;
860static int yy_lp;
861#define REJECT \
862{ \
863*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
864yy_cp = yy_full_match; /* restore poss. backed-over text */ \
865++yy_lp; \
866goto find_rule; \
867}
Reid Spencer68a24bd2005-08-27 18:50:39 +0000868#define yymore() yymore_used_but_not_detected
869#define YY_MORE_ADJ 0
870#define YY_RESTORE_YY_MORE_OFFSET
Reid Spencer832254e2007-02-02 02:16:23 +0000871char *yytext;
Reid Spenceref9b9a72007-02-05 20:47:22 +0000872#line 1 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +0000873#define INITIAL 0
Reid Spencer68a24bd2005-08-27 18:50:39 +0000874/*===-- Lexer.l - Scanner for llvm assembly files --------------*- C++ -*--===//
875//
876// The LLVM Compiler Infrastructure
877//
878// This file was developed by the LLVM research group and is distributed under
879// the University of Illinois Open Source License. See LICENSE.TXT for details.
880//
881//===----------------------------------------------------------------------===//
882//
883// This file implements the flex scanner for LLVM assembly languages files.
884//
885//===----------------------------------------------------------------------===*/
Reid Spencer832254e2007-02-02 02:16:23 +0000886#define YY_NEVER_INTERACTIVE 1
Reid Spenceref9b9a72007-02-05 20:47:22 +0000887#line 28 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +0000888#include "ParserInternals.h"
889#include "llvm/Module.h"
890#include <list>
891#include "llvmAsmParser.h"
892#include <cctype>
893#include <cstdlib>
894
895void set_scan_file(FILE * F){
Reid Spencer832254e2007-02-02 02:16:23 +0000896 yy_switch_to_buffer(yy_create_buffer( F, YY_BUF_SIZE ) );
Reid Spencer68a24bd2005-08-27 18:50:39 +0000897}
898void set_scan_string (const char * str) {
Reid Spencer832254e2007-02-02 02:16:23 +0000899 yy_scan_string (str);
Reid Spencer68a24bd2005-08-27 18:50:39 +0000900}
901
Reid Spencer3ed469c2006-11-02 20:25:50 +0000902// Construct a token value for a non-obsolete token
Reid Spencer68a24bd2005-08-27 18:50:39 +0000903#define RET_TOK(type, Enum, sym) \
Reid Spencera132e042006-12-03 05:46:11 +0000904 llvmAsmlval.type = Instruction::Enum; \
905 return sym
906
Reid Spencer3ed469c2006-11-02 20:25:50 +0000907// Construct a token value for an obsolete token
Reid Spencera132e042006-12-03 05:46:11 +0000908#define RET_TY(CTYPE, SYM) \
909 llvmAsmlval.PrimType = CTYPE;\
Reid Spencer481169e2006-12-01 00:33:46 +0000910 return SYM
Reid Spencer68a24bd2005-08-27 18:50:39 +0000911
912namespace llvm {
913
914// TODO: All of the static identifiers are figured out by the lexer,
915// these should be hashed to reduce the lexer size
916
917
918// atoull - Convert an ascii string of decimal digits into the unsigned long
919// long representation... this does not have to do input error checking,
920// because we know that the input will be matched by a suitable regex...
921//
922static uint64_t atoull(const char *Buffer) {
923 uint64_t Result = 0;
924 for (; *Buffer; Buffer++) {
925 uint64_t OldRes = Result;
926 Result *= 10;
927 Result += *Buffer-'0';
928 if (Result < OldRes) // Uh, oh, overflow detected!!!
Reid Spencer61c83e02006-08-18 08:43:06 +0000929 GenerateError("constant bigger than 64 bits detected!");
Reid Spencer68a24bd2005-08-27 18:50:39 +0000930 }
931 return Result;
932}
933
934static uint64_t HexIntToVal(const char *Buffer) {
935 uint64_t Result = 0;
936 for (; *Buffer; ++Buffer) {
937 uint64_t OldRes = Result;
938 Result *= 16;
939 char C = *Buffer;
940 if (C >= '0' && C <= '9')
941 Result += C-'0';
942 else if (C >= 'A' && C <= 'F')
943 Result += C-'A'+10;
944 else if (C >= 'a' && C <= 'f')
945 Result += C-'a'+10;
946
947 if (Result < OldRes) // Uh, oh, overflow detected!!!
Reid Spencer61c83e02006-08-18 08:43:06 +0000948 GenerateError("constant bigger than 64 bits detected!");
Reid Spencer68a24bd2005-08-27 18:50:39 +0000949 }
950 return Result;
951}
952
953
954// HexToFP - Convert the ascii string in hexidecimal format to the floating
955// point representation of it.
956//
957static double HexToFP(const char *Buffer) {
958 // Behave nicely in the face of C TBAA rules... see:
959 // http://www.nullstone.com/htmls/category/aliastyp.htm
960 union {
961 uint64_t UI;
962 double FP;
963 } UIntToFP;
964 UIntToFP.UI = HexIntToVal(Buffer);
965
966 assert(sizeof(double) == sizeof(uint64_t) &&
967 "Data sizes incompatible on this target!");
968 return UIntToFP.FP; // Cast Hex constant to double
969}
970
971
972// UnEscapeLexed - Run through the specified buffer and change \xx codes to the
973// appropriate character. If AllowNull is set to false, a \00 value will cause
974// an exception to be thrown.
975//
976// If AllowNull is set to true, the return value of the function points to the
977// last character of the string in memory.
978//
979char *UnEscapeLexed(char *Buffer, bool AllowNull) {
980 char *BOut = Buffer;
981 for (char *BIn = Buffer; *BIn; ) {
982 if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) {
983 char Tmp = BIn[3]; BIn[3] = 0; // Terminate string
984 *BOut = (char)strtol(BIn+1, 0, 16); // Convert to number
985 if (!AllowNull && !*BOut)
Reid Spencer61c83e02006-08-18 08:43:06 +0000986 GenerateError("String literal cannot accept \\00 escape!");
Reid Spencer68a24bd2005-08-27 18:50:39 +0000987
988 BIn[3] = Tmp; // Restore character
989 BIn += 3; // Skip over handled chars
990 ++BOut;
991 } else {
992 *BOut++ = *BIn++;
993 }
994 }
995
996 return BOut;
997}
998
999} // End llvm namespace
1000
1001using namespace llvm;
1002
1003#define YY_NEVER_INTERACTIVE 1
1004/* Comments start with a ; and go till end of line */
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001005/* Local Values and Type identifiers start with a % sign */
1006/* Global Value identifiers start with an @ sign */
Reid Spencer68a24bd2005-08-27 18:50:39 +00001007/* Label identifiers end with a colon */
1008/* Quoted names can contain any character except " and \ */
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001009/* LocalVarID/GlobalVarID: match an unnamed local variable slot ID. */
1010/* Integer types are specified with i and a bitwidth */
1011/* E[PN]Integer: match positive and negative literal integer values. */
Reid Spencer68a24bd2005-08-27 18:50:39 +00001012/* FPConstant - A Floating point constant.
1013 */
1014/* HexFPConstant - Floating point constant represented in IEEE format as a
1015 * hexadecimal number for when exponential notation is not precise enough.
1016 */
1017/* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
1018 * it to deal with 64 bit numbers.
1019 */
Reid Spencer832254e2007-02-02 02:16:23 +00001020#line 1021 "Lexer.cpp"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001021
1022/* Macros after this point can all be overridden by user definitions in
1023 * section 1.
1024 */
1025
1026#ifndef YY_SKIP_YYWRAP
1027#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001028extern "C" int yywrap YY_PROTO(( void ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001029#else
Reid Spencer832254e2007-02-02 02:16:23 +00001030extern int yywrap YY_PROTO(( void ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001031#endif
1032#endif
1033
Reid Spencer832254e2007-02-02 02:16:23 +00001034#ifndef YY_NO_UNPUT
1035static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1036#endif
1037
Reid Spencer68a24bd2005-08-27 18:50:39 +00001038#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00001039static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001040#endif
1041
1042#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00001043static int yy_flex_strlen YY_PROTO(( yyconst char * ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001044#endif
1045
1046#ifndef YY_NO_INPUT
1047#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001048static int yyinput YY_PROTO(( void ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001049#else
Reid Spencer832254e2007-02-02 02:16:23 +00001050static int input YY_PROTO(( void ));
1051#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00001052#endif
1053
Reid Spencer832254e2007-02-02 02:16:23 +00001054#if YY_STACK_USED
1055static int yy_start_stack_ptr = 0;
1056static int yy_start_stack_depth = 0;
1057static int *yy_start_stack = 0;
1058#ifndef YY_NO_PUSH_STATE
1059static void yy_push_state YY_PROTO(( int new_state ));
1060#endif
1061#ifndef YY_NO_POP_STATE
1062static void yy_pop_state YY_PROTO(( void ));
1063#endif
1064#ifndef YY_NO_TOP_STATE
1065static int yy_top_state YY_PROTO(( void ));
1066#endif
1067
1068#else
1069#define YY_NO_PUSH_STATE 1
1070#define YY_NO_POP_STATE 1
1071#define YY_NO_TOP_STATE 1
1072#endif
1073
1074#ifdef YY_MALLOC_DECL
1075YY_MALLOC_DECL
1076#else
1077#if __STDC__
1078#ifndef __cplusplus
1079#include <stdlib.h>
1080#endif
1081#else
1082/* Just try to get by without declaring the routines. This will fail
1083 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1084 * or sizeof(void*) != sizeof(int).
1085 */
1086#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00001087#endif
1088
1089/* Amount of stuff to slurp up with each read. */
1090#ifndef YY_READ_BUF_SIZE
1091#define YY_READ_BUF_SIZE 8192
1092#endif
1093
1094/* Copy whatever the last rule matched to the standard output. */
Reid Spencer832254e2007-02-02 02:16:23 +00001095
Reid Spencer68a24bd2005-08-27 18:50:39 +00001096#ifndef ECHO
1097/* This used to be an fputs(), but since the string might contain NUL's,
1098 * we now use fwrite().
1099 */
Reid Spencer832254e2007-02-02 02:16:23 +00001100#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001101#endif
1102
1103/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1104 * is returned in "result".
1105 */
1106#ifndef YY_INPUT
1107#define YY_INPUT(buf,result,max_size) \
Reid Spencer832254e2007-02-02 02:16:23 +00001108 if ( yy_current_buffer->yy_is_interactive ) \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001109 { \
Reid Spencer832254e2007-02-02 02:16:23 +00001110 int c = '*', n; \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001111 for ( n = 0; n < max_size && \
Reid Spencer832254e2007-02-02 02:16:23 +00001112 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001113 buf[n] = (char) c; \
1114 if ( c == '\n' ) \
1115 buf[n++] = (char) c; \
Reid Spencer832254e2007-02-02 02:16:23 +00001116 if ( c == EOF && ferror( yyin ) ) \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001117 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1118 result = n; \
1119 } \
Reid Spencer832254e2007-02-02 02:16:23 +00001120 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1121 && ferror( yyin ) ) \
1122 YY_FATAL_ERROR( "input in flex scanner failed" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00001123#endif
1124
1125/* No semi-colon after return; correct usage is to write "yyterminate();" -
1126 * we don't want an extra ';' after the "return" because that will cause
1127 * some compilers to complain about unreachable statements.
1128 */
1129#ifndef yyterminate
1130#define yyterminate() return YY_NULL
1131#endif
1132
1133/* Number of entries by which start-condition stack grows. */
1134#ifndef YY_START_STACK_INCR
1135#define YY_START_STACK_INCR 25
1136#endif
1137
1138/* Report a fatal error. */
1139#ifndef YY_FATAL_ERROR
1140#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1141#endif
1142
1143/* Default declaration of generated scanner - a define so the user can
1144 * easily add parameters.
1145 */
1146#ifndef YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001147#define YY_DECL int yylex YY_PROTO(( void ))
1148#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00001149
Reid Spencer832254e2007-02-02 02:16:23 +00001150/* Code executed at the beginning of each rule, after yytext and yyleng
Reid Spencer68a24bd2005-08-27 18:50:39 +00001151 * have been set up.
1152 */
1153#ifndef YY_USER_ACTION
1154#define YY_USER_ACTION
1155#endif
1156
1157/* Code executed at the end of each rule. */
1158#ifndef YY_BREAK
1159#define YY_BREAK break;
1160#endif
1161
1162#define YY_RULE_SETUP \
1163 YY_USER_ACTION
1164
1165YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001166 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00001167 register yy_state_type yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00001168 register char *yy_cp = NULL, *yy_bp = NULL;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001169 register int yy_act;
Reid Spencer832254e2007-02-02 02:16:23 +00001170
Reid Spenceref9b9a72007-02-05 20:47:22 +00001171#line 189 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001172
1173
Reid Spencer832254e2007-02-02 02:16:23 +00001174#line 1175 "Lexer.cpp"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001175
Reid Spencer832254e2007-02-02 02:16:23 +00001176 if ( yy_init )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001177 {
Reid Spencer832254e2007-02-02 02:16:23 +00001178 yy_init = 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001179
1180#ifdef YY_USER_INIT
1181 YY_USER_INIT;
1182#endif
1183
Reid Spencer832254e2007-02-02 02:16:23 +00001184 if ( ! yy_start )
1185 yy_start = 1; /* first start state */
Reid Spencer68a24bd2005-08-27 18:50:39 +00001186
Reid Spencer832254e2007-02-02 02:16:23 +00001187 if ( ! yyin )
1188 yyin = stdin;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001189
Reid Spencer832254e2007-02-02 02:16:23 +00001190 if ( ! yyout )
1191 yyout = stdout;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001192
Reid Spencer832254e2007-02-02 02:16:23 +00001193 if ( ! yy_current_buffer )
1194 yy_current_buffer =
1195 yy_create_buffer( yyin, YY_BUF_SIZE );
Reid Spencer68a24bd2005-08-27 18:50:39 +00001196
Reid Spencer832254e2007-02-02 02:16:23 +00001197 yy_load_buffer_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00001198 }
1199
1200 while ( 1 ) /* loops until end-of-file is reached */
1201 {
Reid Spencer832254e2007-02-02 02:16:23 +00001202 yy_cp = yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001203
Reid Spencer832254e2007-02-02 02:16:23 +00001204 /* Support of yytext. */
1205 *yy_cp = yy_hold_char;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001206
1207 /* yy_bp points to the position in yy_ch_buf of the start of
1208 * the current run.
1209 */
1210 yy_bp = yy_cp;
1211
Reid Spencer832254e2007-02-02 02:16:23 +00001212 yy_current_state = yy_start;
1213 yy_state_ptr = yy_state_buf;
1214 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001215yy_match:
1216 do
1217 {
1218 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1219 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1220 {
1221 yy_current_state = (int) yy_def[yy_current_state];
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001222 if ( yy_current_state >= 539 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001223 yy_c = yy_meta[(unsigned int) yy_c];
1224 }
1225 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00001226 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001227 ++yy_cp;
1228 }
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001229 while ( yy_current_state != 538 );
Reid Spencer68a24bd2005-08-27 18:50:39 +00001230
1231yy_find_action:
Reid Spencer832254e2007-02-02 02:16:23 +00001232 yy_current_state = *--yy_state_ptr;
1233 yy_lp = yy_accept[yy_current_state];
1234find_rule: /* we branch to this label when backing up */
1235 for ( ; ; ) /* until we find what rule we matched */
1236 {
1237 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1238 {
1239 yy_act = yy_acclist[yy_lp];
1240 {
1241 yy_full_match = yy_cp;
1242 break;
1243 }
1244 }
1245 --yy_cp;
1246 yy_current_state = *--yy_state_ptr;
1247 yy_lp = yy_accept[yy_current_state];
1248 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001249
1250 YY_DO_BEFORE_ACTION;
1251
Reid Spencer832254e2007-02-02 02:16:23 +00001252 if ( yy_act != YY_END_OF_BUFFER )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001253 {
1254 int yyl;
Reid Spencer832254e2007-02-02 02:16:23 +00001255 for ( yyl = 0; yyl < yyleng; ++yyl )
1256 if ( yytext[yyl] == '\n' )
1257 ++yylineno;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001258 }
1259
1260do_action: /* This label is used only to access EOF actions. */
1261
Reid Spencer832254e2007-02-02 02:16:23 +00001262
Reid Spencer68a24bd2005-08-27 18:50:39 +00001263 switch ( yy_act )
1264 { /* beginning of action switch */
1265case 1:
1266YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001267#line 191 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001268{ /* Ignore comments for now */ }
1269 YY_BREAK
1270case 2:
1271YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001272#line 193 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001273{ return BEGINTOK; }
1274 YY_BREAK
1275case 3:
1276YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001277#line 194 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001278{ return ENDTOK; }
1279 YY_BREAK
1280case 4:
1281YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001282#line 195 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001283{ return TRUETOK; }
1284 YY_BREAK
1285case 5:
1286YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001287#line 196 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001288{ return FALSETOK; }
1289 YY_BREAK
1290case 6:
1291YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001292#line 197 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001293{ return DECLARE; }
1294 YY_BREAK
1295case 7:
1296YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001297#line 198 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001298{ return DEFINE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001299 YY_BREAK
1300case 8:
1301YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001302#line 199 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001303{ return GLOBAL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001304 YY_BREAK
1305case 9:
1306YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001307#line 200 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001308{ return CONSTANT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001309 YY_BREAK
1310case 10:
1311YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001312#line 201 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001313{ return INTERNAL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001314 YY_BREAK
1315case 11:
1316YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001317#line 202 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001318{ return LINKONCE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001319 YY_BREAK
1320case 12:
1321YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001322#line 203 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001323{ return WEAK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001324 YY_BREAK
1325case 13:
1326YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001327#line 204 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001328{ return APPENDING; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001329 YY_BREAK
1330case 14:
1331YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001332#line 205 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001333{ return DLLIMPORT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001334 YY_BREAK
1335case 15:
1336YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001337#line 206 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001338{ return DLLEXPORT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001339 YY_BREAK
1340case 16:
1341YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001342#line 207 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001343{ return HIDDEN; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001344 YY_BREAK
1345case 17:
1346YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001347#line 208 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001348{ return EXTERN_WEAK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001349 YY_BREAK
1350case 18:
1351YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001352#line 209 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001353{ return EXTERNAL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001354 YY_BREAK
1355case 19:
1356YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001357#line 210 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001358{ return IMPLEMENTATION; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001359 YY_BREAK
1360case 20:
1361YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001362#line 211 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001363{ return ZEROINITIALIZER; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001364 YY_BREAK
1365case 21:
1366YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001367#line 212 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001368{ return DOTDOTDOT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001369 YY_BREAK
1370case 22:
1371YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001372#line 213 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001373{ return UNDEF; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001374 YY_BREAK
1375case 23:
1376YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001377#line 214 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001378{ return NULL_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001379 YY_BREAK
1380case 24:
1381YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001382#line 215 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001383{ return TO; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001384 YY_BREAK
1385case 25:
1386YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001387#line 216 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001388{ return TAIL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001389 YY_BREAK
1390case 26:
1391YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001392#line 217 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001393{ return TARGET; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001394 YY_BREAK
1395case 27:
1396YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001397#line 218 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001398{ return TRIPLE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001399 YY_BREAK
1400case 28:
1401YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001402#line 219 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001403{ return DEPLIBS; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001404 YY_BREAK
1405case 29:
1406YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001407#line 220 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001408{ return DATALAYOUT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001409 YY_BREAK
1410case 30:
1411YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001412#line 221 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001413{ return VOLATILE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001414 YY_BREAK
1415case 31:
1416YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001417#line 222 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001418{ return ALIGN; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001419 YY_BREAK
1420case 32:
1421YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001422#line 223 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001423{ return SECTION; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001424 YY_BREAK
1425case 33:
1426YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001427#line 224 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001428{ return MODULE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001429 YY_BREAK
1430case 34:
1431YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001432#line 225 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001433{ return ASM_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001434 YY_BREAK
1435case 35:
1436YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001437#line 226 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001438{ return SIDEEFFECT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001439 YY_BREAK
1440case 36:
1441YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001442#line 228 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001443{ return CC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001444 YY_BREAK
1445case 37:
1446YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001447#line 229 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001448{ return CCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001449 YY_BREAK
1450case 38:
1451YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001452#line 230 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001453{ return FASTCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001454 YY_BREAK
1455case 39:
1456YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001457#line 231 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001458{ return COLDCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001459 YY_BREAK
1460case 40:
1461YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001462#line 232 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001463{ return X86_STDCALLCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001464 YY_BREAK
1465case 41:
1466YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001467#line 233 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001468{ return X86_FASTCALLCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001469 YY_BREAK
1470case 42:
1471YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001472#line 235 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001473{ return INREG; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001474 YY_BREAK
1475case 43:
1476YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001477#line 236 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001478{ return SRET; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001479 YY_BREAK
1480case 44:
1481YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001482#line 238 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001483{ RET_TY(Type::VoidTy, VOID); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001484 YY_BREAK
1485case 45:
1486YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001487#line 239 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001488{ RET_TY(Type::FloatTy, FLOAT); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001489 YY_BREAK
1490case 46:
1491YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001492#line 240 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001493{ RET_TY(Type::DoubleTy,DOUBLE);}
Reid Spencer68a24bd2005-08-27 18:50:39 +00001494 YY_BREAK
1495case 47:
1496YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001497#line 241 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001498{ RET_TY(Type::LabelTy, LABEL); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001499 YY_BREAK
1500case 48:
1501YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001502#line 242 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001503{ return TYPE; }
1504 YY_BREAK
1505case 49:
1506YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001507#line 243 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001508{ return OPAQUE; }
1509 YY_BREAK
1510case 50:
1511YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001512#line 244 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001513{ uint64_t NumBits = atoull(yytext+1);
Reid Spencera54b7cb2007-01-12 07:05:14 +00001514 if (NumBits < IntegerType::MIN_INT_BITS ||
1515 NumBits > IntegerType::MAX_INT_BITS)
1516 GenerateError("Bitwidth for integer type out of range!");
1517 const Type* Ty = IntegerType::get(NumBits);
1518 RET_TY(Ty, INTTYPE);
1519 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001520 YY_BREAK
Reid Spencer41dff5e2007-01-26 08:05:27 +00001521case 51:
1522YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001523#line 252 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001524{ RET_TOK(BinaryOpVal, Add, ADD); }
Reid Spencer41dff5e2007-01-26 08:05:27 +00001525 YY_BREAK
1526case 52:
1527YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001528#line 253 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001529{ RET_TOK(BinaryOpVal, Sub, SUB); }
Reid Spencer41dff5e2007-01-26 08:05:27 +00001530 YY_BREAK
1531case 53:
1532YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001533#line 254 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001534{ RET_TOK(BinaryOpVal, Mul, MUL); }
Reid Spencer41dff5e2007-01-26 08:05:27 +00001535 YY_BREAK
Reid Spencer6f407902007-01-13 05:00:46 +00001536case 54:
1537YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001538#line 255 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001539{ RET_TOK(BinaryOpVal, UDiv, UDIV); }
Reid Spencer6f407902007-01-13 05:00:46 +00001540 YY_BREAK
Reid Spencer68a24bd2005-08-27 18:50:39 +00001541case 55:
1542YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001543#line 256 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001544{ RET_TOK(BinaryOpVal, SDiv, SDIV); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001545 YY_BREAK
1546case 56:
1547YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001548#line 257 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001549{ RET_TOK(BinaryOpVal, FDiv, FDIV); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001550 YY_BREAK
1551case 57:
1552YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001553#line 258 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001554{ RET_TOK(BinaryOpVal, URem, UREM); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001555 YY_BREAK
1556case 58:
1557YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001558#line 259 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001559{ RET_TOK(BinaryOpVal, SRem, SREM); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001560 YY_BREAK
1561case 59:
1562YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001563#line 260 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001564{ RET_TOK(BinaryOpVal, FRem, FREM); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001565 YY_BREAK
1566case 60:
1567YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001568#line 261 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001569{ RET_TOK(BinaryOpVal, Shl, SHL); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001570 YY_BREAK
1571case 61:
1572YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001573#line 262 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001574{ RET_TOK(BinaryOpVal, LShr, LSHR); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001575 YY_BREAK
1576case 62:
1577YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001578#line 263 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001579{ RET_TOK(BinaryOpVal, AShr, ASHR); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001580 YY_BREAK
1581case 63:
1582YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001583#line 264 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001584{ RET_TOK(BinaryOpVal, And, AND); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001585 YY_BREAK
1586case 64:
1587YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001588#line 265 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001589{ RET_TOK(BinaryOpVal, Or , OR ); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001590 YY_BREAK
1591case 65:
1592YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001593#line 266 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001594{ RET_TOK(BinaryOpVal, Xor, XOR); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001595 YY_BREAK
1596case 66:
1597YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001598#line 267 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001599{ RET_TOK(OtherOpVal, ICmp, ICMP); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001600 YY_BREAK
1601case 67:
1602YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001603#line 268 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001604{ RET_TOK(OtherOpVal, FCmp, FCMP); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001605 YY_BREAK
1606case 68:
1607YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001608#line 270 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001609{ return EQ; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001610 YY_BREAK
1611case 69:
1612YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001613#line 271 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001614{ return NE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001615 YY_BREAK
1616case 70:
1617YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001618#line 272 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001619{ return SLT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001620 YY_BREAK
1621case 71:
1622YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001623#line 273 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001624{ return SGT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001625 YY_BREAK
1626case 72:
1627YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001628#line 274 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001629{ return SLE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001630 YY_BREAK
1631case 73:
1632YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001633#line 275 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001634{ return SGE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001635 YY_BREAK
1636case 74:
1637YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001638#line 276 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001639{ return ULT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001640 YY_BREAK
1641case 75:
1642YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001643#line 277 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001644{ return UGT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001645 YY_BREAK
1646case 76:
1647YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001648#line 278 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001649{ return ULE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001650 YY_BREAK
1651case 77:
1652YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001653#line 279 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001654{ return UGE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001655 YY_BREAK
1656case 78:
1657YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001658#line 280 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001659{ return OEQ; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001660 YY_BREAK
1661case 79:
1662YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001663#line 281 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001664{ return ONE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001665 YY_BREAK
1666case 80:
1667YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001668#line 282 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001669{ return OLT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001670 YY_BREAK
1671case 81:
1672YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001673#line 283 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001674{ return OGT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001675 YY_BREAK
1676case 82:
1677YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001678#line 284 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001679{ return OLE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001680 YY_BREAK
1681case 83:
1682YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001683#line 285 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001684{ return OGE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001685 YY_BREAK
1686case 84:
1687YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001688#line 286 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001689{ return ORD; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001690 YY_BREAK
1691case 85:
1692YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001693#line 287 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001694{ return UNO; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001695 YY_BREAK
1696case 86:
1697YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001698#line 288 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001699{ return UEQ; }
Nate Begeman14b05292005-11-05 09:21:28 +00001700 YY_BREAK
1701case 87:
1702YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001703#line 289 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001704{ return UNE; }
Chris Lattnere869eef2005-11-12 00:11:49 +00001705 YY_BREAK
1706case 88:
1707YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001708#line 291 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001709{ RET_TOK(OtherOpVal, PHI, PHI_TOK); }
Robert Bocchino9c62b562006-01-10 19:04:32 +00001710 YY_BREAK
1711case 89:
1712YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001713#line 292 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001714{ RET_TOK(OtherOpVal, Call, CALL); }
Robert Bocchino2def1b32006-01-17 20:06:25 +00001715 YY_BREAK
1716case 90:
1717YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001718#line 293 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001719{ RET_TOK(CastOpVal, Trunc, TRUNC); }
Chris Lattner8335e842006-01-23 23:05:42 +00001720 YY_BREAK
1721case 91:
1722YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001723#line 294 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001724{ RET_TOK(CastOpVal, ZExt, ZEXT); }
Chris Lattner66316012006-01-24 04:14:29 +00001725 YY_BREAK
1726case 92:
1727YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001728#line 295 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001729{ RET_TOK(CastOpVal, SExt, SEXT); }
Chris Lattner0e9c3762006-01-25 22:27:16 +00001730 YY_BREAK
1731case 93:
1732YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001733#line 296 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001734{ RET_TOK(CastOpVal, FPTrunc, FPTRUNC); }
Chris Lattnerd5efe842006-04-08 01:18:56 +00001735 YY_BREAK
1736case 94:
1737YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001738#line 297 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001739{ RET_TOK(CastOpVal, FPExt, FPEXT); }
Chris Lattner75466192006-05-19 21:28:53 +00001740 YY_BREAK
1741case 95:
1742YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001743#line 298 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001744{ RET_TOK(CastOpVal, UIToFP, UITOFP); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001745 YY_BREAK
Chris Lattner75466192006-05-19 21:28:53 +00001746case 96:
Reid Spencer68a24bd2005-08-27 18:50:39 +00001747YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001748#line 299 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001749{ RET_TOK(CastOpVal, SIToFP, SITOFP); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001750 YY_BREAK
Chris Lattner75466192006-05-19 21:28:53 +00001751case 97:
Reid Spencer68a24bd2005-08-27 18:50:39 +00001752YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001753#line 300 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001754{ RET_TOK(CastOpVal, FPToUI, FPTOUI); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001755 YY_BREAK
Chris Lattner75466192006-05-19 21:28:53 +00001756case 98:
Reid Spencer68a24bd2005-08-27 18:50:39 +00001757YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001758#line 301 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001759{ RET_TOK(CastOpVal, FPToSI, FPTOSI); }
Anton Korobeynikovbcb97702006-09-17 20:25:45 +00001760 YY_BREAK
1761case 99:
1762YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001763#line 302 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001764{ RET_TOK(CastOpVal, IntToPtr, INTTOPTR); }
Anton Korobeynikovbcb97702006-09-17 20:25:45 +00001765 YY_BREAK
1766case 100:
1767YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001768#line 303 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001769{ RET_TOK(CastOpVal, PtrToInt, PTRTOINT); }
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001770 YY_BREAK
Anton Korobeynikovbcb97702006-09-17 20:25:45 +00001771case 101:
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001772YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001773#line 304 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001774{ RET_TOK(CastOpVal, BitCast, BITCAST); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001775 YY_BREAK
1776case 102:
1777YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001778#line 305 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001779{ RET_TOK(OtherOpVal, Select, SELECT); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001780 YY_BREAK
1781case 103:
1782YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001783#line 306 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001784{ RET_TOK(OtherOpVal, VAArg , VAARG); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001785 YY_BREAK
1786case 104:
1787YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001788#line 307 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001789{ RET_TOK(TermOpVal, Ret, RET); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001790 YY_BREAK
1791case 105:
1792YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001793#line 308 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001794{ RET_TOK(TermOpVal, Br, BR); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001795 YY_BREAK
1796case 106:
1797YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001798#line 309 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001799{ RET_TOK(TermOpVal, Switch, SWITCH); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001800 YY_BREAK
1801case 107:
1802YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001803#line 310 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001804{ RET_TOK(TermOpVal, Invoke, INVOKE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001805 YY_BREAK
1806case 108:
1807YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001808#line 311 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001809{ RET_TOK(TermOpVal, Unwind, UNWIND); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001810 YY_BREAK
1811case 109:
1812YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001813#line 312 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001814{ RET_TOK(TermOpVal, Unreachable, UNREACHABLE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001815 YY_BREAK
1816case 110:
1817YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001818#line 314 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001819{ RET_TOK(MemOpVal, Malloc, MALLOC); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001820 YY_BREAK
1821case 111:
1822YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001823#line 315 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001824{ RET_TOK(MemOpVal, Alloca, ALLOCA); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001825 YY_BREAK
1826case 112:
1827YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001828#line 316 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001829{ RET_TOK(MemOpVal, Free, FREE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001830 YY_BREAK
1831case 113:
1832YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001833#line 317 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001834{ RET_TOK(MemOpVal, Load, LOAD); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001835 YY_BREAK
1836case 114:
1837YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001838#line 318 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001839{ RET_TOK(MemOpVal, Store, STORE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001840 YY_BREAK
1841case 115:
1842YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001843#line 319 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001844{ RET_TOK(MemOpVal, GetElementPtr, GETELEMENTPTR); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001845 YY_BREAK
1846case 116:
1847YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001848#line 321 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001849{ RET_TOK(OtherOpVal, ExtractElement, EXTRACTELEMENT); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001850 YY_BREAK
1851case 117:
1852YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001853#line 322 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001854{ RET_TOK(OtherOpVal, InsertElement, INSERTELEMENT); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001855 YY_BREAK
1856case 118:
1857YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001858#line 323 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001859{ RET_TOK(OtherOpVal, ShuffleVector, SHUFFLEVECTOR); }
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001860 YY_BREAK
Reid Spencer41dff5e2007-01-26 08:05:27 +00001861case 119:
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001862YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001863#line 326 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001864{
Reid Spencer832254e2007-02-02 02:16:23 +00001865 UnEscapeLexed(yytext+1);
1866 llvmAsmlval.StrVal = strdup(yytext+1); // Skip %
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001867 return LOCALVAR;
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001868 }
1869 YY_BREAK
Reid Spencer41dff5e2007-01-26 08:05:27 +00001870case 120:
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001871YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001872#line 331 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Owen Anderson1dc69692006-10-18 02:21:48 +00001873{
Reid Spencer832254e2007-02-02 02:16:23 +00001874 UnEscapeLexed(yytext+1);
1875 llvmAsmlval.StrVal = strdup(yytext+1); // Skip @
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001876 return GLOBALVAR;
Owen Anderson1dc69692006-10-18 02:21:48 +00001877 }
1878 YY_BREAK
Reid Spencer41dff5e2007-01-26 08:05:27 +00001879case 121:
Owen Anderson1dc69692006-10-18 02:21:48 +00001880YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001881#line 336 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001882{
Reid Spencer832254e2007-02-02 02:16:23 +00001883 yytext[strlen(yytext)-1] = 0; // nuke colon
1884 UnEscapeLexed(yytext);
1885 llvmAsmlval.StrVal = strdup(yytext);
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001886 return LABELSTR;
1887 }
1888 YY_BREAK
1889case 122:
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001890YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001891#line 342 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001892{
Reid Spencer832254e2007-02-02 02:16:23 +00001893 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
1894 UnEscapeLexed(yytext+1);
1895 llvmAsmlval.StrVal = strdup(yytext+1);
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001896 return LABELSTR;
1897 }
1898 YY_BREAK
1899case 123:
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001900YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001901#line 349 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001902{ // Note that we cannot unescape a string constant here! The
1903 // string constant might contain a \00 which would not be
1904 // understood by the string stuff. It is valid to make a
1905 // [sbyte] c"Hello World\00" constant, for example.
1906 //
Reid Spencer832254e2007-02-02 02:16:23 +00001907 yytext[strlen(yytext)-1] = 0; // nuke end quote
1908 llvmAsmlval.StrVal = strdup(yytext+1); // Nuke start quote
Reid Spencer68a24bd2005-08-27 18:50:39 +00001909 return STRINGCONSTANT;
1910 }
1911 YY_BREAK
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001912case 124:
Reid Spencer6f407902007-01-13 05:00:46 +00001913YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001914#line 358 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001915{
Reid Spencer832254e2007-02-02 02:16:23 +00001916 yytext[strlen(yytext)-1] = 0; // nuke end quote
1917 llvmAsmlval.StrVal = strdup(yytext+2); // Nuke @, quote
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001918 return ATSTRINGCONSTANT;
1919 }
1920 YY_BREAK
1921case 125:
1922YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001923#line 366 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001924{ llvmAsmlval.UInt64Val = atoull(yytext); return EUINT64VAL; }
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001925 YY_BREAK
1926case 126:
1927YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001928#line 367 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001929{
Reid Spencer832254e2007-02-02 02:16:23 +00001930 uint64_t Val = atoull(yytext+1);
Reid Spencer68a24bd2005-08-27 18:50:39 +00001931 // +1: we have bigger negative range
1932 if (Val > (uint64_t)INT64_MAX+1)
Reid Spencer61c83e02006-08-18 08:43:06 +00001933 GenerateError("Constant too large for signed 64 bits!");
Reid Spencer68a24bd2005-08-27 18:50:39 +00001934 llvmAsmlval.SInt64Val = -Val;
1935 return ESINT64VAL;
1936 }
1937 YY_BREAK
Reid Spencer41dff5e2007-01-26 08:05:27 +00001938case 127:
Reid Spencer6f407902007-01-13 05:00:46 +00001939YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001940#line 375 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001941{
Reid Spencer832254e2007-02-02 02:16:23 +00001942 llvmAsmlval.UInt64Val = HexIntToVal(yytext+3);
1943 return yytext[0] == 's' ? ESINT64VAL : EUINT64VAL;
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001944 }
Reid Spencer6f407902007-01-13 05:00:46 +00001945 YY_BREAK
Reid Spencer41dff5e2007-01-26 08:05:27 +00001946case 128:
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001947YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001948#line 380 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001949{
Reid Spencer832254e2007-02-02 02:16:23 +00001950 uint64_t Val = atoull(yytext+1);
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001951 if ((unsigned)Val != Val)
1952 GenerateError("Invalid value number (too large)!");
1953 llvmAsmlval.UIntVal = unsigned(Val);
1954 return LOCALVAL_ID;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001955 }
1956 YY_BREAK
Reid Spencer41dff5e2007-01-26 08:05:27 +00001957case 129:
Owen Anderson1dc69692006-10-18 02:21:48 +00001958YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001959#line 387 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001960{
Reid Spencer832254e2007-02-02 02:16:23 +00001961 uint64_t Val = atoull(yytext+1);
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001962 if ((unsigned)Val != Val)
1963 GenerateError("Invalid value number (too large)!");
1964 llvmAsmlval.UIntVal = unsigned(Val);
1965 return GLOBALVAL_ID;
1966 }
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001967 YY_BREAK
Reid Spencer41dff5e2007-01-26 08:05:27 +00001968case 130:
Reid Spencer6f407902007-01-13 05:00:46 +00001969YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001970#line 395 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001971{ llvmAsmlval.FPVal = atof(yytext); return FPVAL; }
Reid Spencer6f407902007-01-13 05:00:46 +00001972 YY_BREAK
Reid Spencer41dff5e2007-01-26 08:05:27 +00001973case 131:
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001974YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001975#line 396 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001976{ llvmAsmlval.FPVal = HexToFP(yytext); return FPVAL; }
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001977 YY_BREAK
1978case YY_STATE_EOF(INITIAL):
Reid Spenceref9b9a72007-02-05 20:47:22 +00001979#line 398 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001980{
1981 /* Make sure to free the internal buffers for flex when we are
1982 * done reading our input!
1983 */
Reid Spencer832254e2007-02-02 02:16:23 +00001984 yy_delete_buffer(YY_CURRENT_BUFFER);
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001985 return EOF;
1986 }
1987 YY_BREAK
1988case 132:
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001989YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001990#line 406 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001991{ /* Ignore whitespace */ }
1992 YY_BREAK
1993case 133:
1994YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00001995#line 407 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001996{ return yytext[0]; }
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001997 YY_BREAK
1998case 134:
1999YY_RULE_SETUP
Reid Spenceref9b9a72007-02-05 20:47:22 +00002000#line 409 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00002001YY_FATAL_ERROR( "flex scanner jammed" );
2002 YY_BREAK
Reid Spencer832254e2007-02-02 02:16:23 +00002003#line 2004 "Lexer.cpp"
Reid Spencer68a24bd2005-08-27 18:50:39 +00002004
2005 case YY_END_OF_BUFFER:
2006 {
2007 /* Amount of text matched not including the EOB char. */
Reid Spencer832254e2007-02-02 02:16:23 +00002008 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002009
2010 /* Undo the effects of YY_DO_BEFORE_ACTION. */
Reid Spencer832254e2007-02-02 02:16:23 +00002011 *yy_cp = yy_hold_char;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002012 YY_RESTORE_YY_MORE_OFFSET
2013
Reid Spencer832254e2007-02-02 02:16:23 +00002014 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002015 {
2016 /* We're scanning a new file or input source. It's
2017 * possible that this happened because the user
Reid Spencer832254e2007-02-02 02:16:23 +00002018 * just pointed yyin at a new source and called
2019 * yylex(). If so, then we have to assure
2020 * consistency between yy_current_buffer and our
Reid Spencer68a24bd2005-08-27 18:50:39 +00002021 * globals. Here is the right place to do so, because
2022 * this is the first action (other than possibly a
2023 * back-up) that will match for the new input source.
2024 */
Reid Spencer832254e2007-02-02 02:16:23 +00002025 yy_n_chars = yy_current_buffer->yy_n_chars;
2026 yy_current_buffer->yy_input_file = yyin;
2027 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002028 }
2029
2030 /* Note that here we test for yy_c_buf_p "<=" to the position
2031 * of the first EOB in the buffer, since yy_c_buf_p will
2032 * already have been incremented past the NUL character
2033 * (since all states make transitions on EOB to the
2034 * end-of-buffer state). Contrast this with the test
2035 * in input().
2036 */
Reid Spencer832254e2007-02-02 02:16:23 +00002037 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002038 { /* This was really a NUL. */
2039 yy_state_type yy_next_state;
2040
Reid Spencer832254e2007-02-02 02:16:23 +00002041 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002042
Reid Spencer832254e2007-02-02 02:16:23 +00002043 yy_current_state = yy_get_previous_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002044
2045 /* Okay, we're now positioned to make the NUL
2046 * transition. We couldn't have
2047 * yy_get_previous_state() go ahead and do it
2048 * for us because it doesn't know how to deal
2049 * with the possibility of jamming (and we don't
2050 * want to build jamming into it because then it
2051 * will run more slowly).
2052 */
2053
2054 yy_next_state = yy_try_NUL_trans( yy_current_state );
2055
Reid Spencer832254e2007-02-02 02:16:23 +00002056 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002057
2058 if ( yy_next_state )
2059 {
2060 /* Consume the NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002061 yy_cp = ++yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002062 yy_current_state = yy_next_state;
2063 goto yy_match;
2064 }
2065
2066 else
2067 {
Reid Spencer832254e2007-02-02 02:16:23 +00002068 yy_cp = yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002069 goto yy_find_action;
2070 }
2071 }
2072
Reid Spencer832254e2007-02-02 02:16:23 +00002073 else switch ( yy_get_next_buffer() )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002074 {
2075 case EOB_ACT_END_OF_FILE:
2076 {
Reid Spencer832254e2007-02-02 02:16:23 +00002077 yy_did_buffer_switch_on_eof = 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002078
Reid Spencer832254e2007-02-02 02:16:23 +00002079 if ( yywrap() )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002080 {
2081 /* Note: because we've taken care in
2082 * yy_get_next_buffer() to have set up
Reid Spencer832254e2007-02-02 02:16:23 +00002083 * yytext, we can now set up
Reid Spencer68a24bd2005-08-27 18:50:39 +00002084 * yy_c_buf_p so that if some total
2085 * hoser (like flex itself) wants to
2086 * call the scanner after we return the
2087 * YY_NULL, it'll still work - another
2088 * YY_NULL will get returned.
2089 */
Reid Spencer832254e2007-02-02 02:16:23 +00002090 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002091
2092 yy_act = YY_STATE_EOF(YY_START);
2093 goto do_action;
2094 }
2095
2096 else
2097 {
Reid Spencer832254e2007-02-02 02:16:23 +00002098 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002099 YY_NEW_FILE;
2100 }
2101 break;
2102 }
2103
2104 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002105 yy_c_buf_p =
2106 yytext_ptr + yy_amount_of_matched_text;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002107
Reid Spencer832254e2007-02-02 02:16:23 +00002108 yy_current_state = yy_get_previous_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002109
Reid Spencer832254e2007-02-02 02:16:23 +00002110 yy_cp = yy_c_buf_p;
2111 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002112 goto yy_match;
2113
2114 case EOB_ACT_LAST_MATCH:
Reid Spencer832254e2007-02-02 02:16:23 +00002115 yy_c_buf_p =
2116 &yy_current_buffer->yy_ch_buf[yy_n_chars];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002117
Reid Spencer832254e2007-02-02 02:16:23 +00002118 yy_current_state = yy_get_previous_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002119
Reid Spencer832254e2007-02-02 02:16:23 +00002120 yy_cp = yy_c_buf_p;
2121 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002122 goto yy_find_action;
2123 }
2124 break;
2125 }
2126
2127 default:
2128 YY_FATAL_ERROR(
2129 "fatal flex scanner internal error--no action found" );
2130 } /* end of action switch */
2131 } /* end of scanning one token */
Reid Spencer832254e2007-02-02 02:16:23 +00002132 } /* end of yylex */
2133
Reid Spencer68a24bd2005-08-27 18:50:39 +00002134
2135/* yy_get_next_buffer - try to read in a new buffer
2136 *
2137 * Returns a code representing an action:
2138 * EOB_ACT_LAST_MATCH -
2139 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2140 * EOB_ACT_END_OF_FILE - end of file
2141 */
Reid Spencer832254e2007-02-02 02:16:23 +00002142
2143static int yy_get_next_buffer()
2144 {
2145 register char *dest = yy_current_buffer->yy_ch_buf;
2146 register char *source = yytext_ptr;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002147 register int number_to_move, i;
2148 int ret_val;
2149
Reid Spencer832254e2007-02-02 02:16:23 +00002150 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002151 YY_FATAL_ERROR(
2152 "fatal flex scanner internal error--end of buffer missed" );
2153
Reid Spencer832254e2007-02-02 02:16:23 +00002154 if ( yy_current_buffer->yy_fill_buffer == 0 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002155 { /* Don't try to fill the buffer, so this is an EOF. */
Reid Spencer832254e2007-02-02 02:16:23 +00002156 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002157 {
2158 /* We matched a single character, the EOB, so
2159 * treat this as a final EOF.
2160 */
2161 return EOB_ACT_END_OF_FILE;
2162 }
2163
2164 else
2165 {
2166 /* We matched some text prior to the EOB, first
2167 * process it.
2168 */
2169 return EOB_ACT_LAST_MATCH;
2170 }
2171 }
2172
2173 /* Try to read more data. */
2174
2175 /* First move last chars to start of buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002176 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002177
2178 for ( i = 0; i < number_to_move; ++i )
2179 *(dest++) = *(source++);
2180
Reid Spencer832254e2007-02-02 02:16:23 +00002181 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002182 /* don't do the read, it's not guaranteed to return an EOF,
2183 * just force an EOF
2184 */
Reid Spencer832254e2007-02-02 02:16:23 +00002185 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002186
2187 else
2188 {
Reid Spencer832254e2007-02-02 02:16:23 +00002189 int num_to_read =
2190 yy_current_buffer->yy_buf_size - number_to_move - 1;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002191
2192 while ( num_to_read <= 0 )
2193 { /* Not enough room in the buffer - grow it. */
Reid Spencer832254e2007-02-02 02:16:23 +00002194#ifdef YY_USES_REJECT
2195 YY_FATAL_ERROR(
2196"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2197#else
Reid Spencer68a24bd2005-08-27 18:50:39 +00002198
2199 /* just a shorter name for the current buffer */
Reid Spencer832254e2007-02-02 02:16:23 +00002200 YY_BUFFER_STATE b = yy_current_buffer;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002201
2202 int yy_c_buf_p_offset =
Reid Spencer832254e2007-02-02 02:16:23 +00002203 (int) (yy_c_buf_p - b->yy_ch_buf);
Reid Spencer68a24bd2005-08-27 18:50:39 +00002204
2205 if ( b->yy_is_our_buffer )
2206 {
2207 int new_size = b->yy_buf_size * 2;
2208
2209 if ( new_size <= 0 )
2210 b->yy_buf_size += b->yy_buf_size / 8;
2211 else
2212 b->yy_buf_size *= 2;
2213
2214 b->yy_ch_buf = (char *)
2215 /* Include room in for 2 EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002216 yy_flex_realloc( (void *) b->yy_ch_buf,
2217 b->yy_buf_size + 2 );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002218 }
2219 else
2220 /* Can't grow it, we don't own it. */
2221 b->yy_ch_buf = 0;
2222
2223 if ( ! b->yy_ch_buf )
2224 YY_FATAL_ERROR(
2225 "fatal error - scanner input buffer overflow" );
2226
Reid Spencer832254e2007-02-02 02:16:23 +00002227 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002228
Reid Spencer832254e2007-02-02 02:16:23 +00002229 num_to_read = yy_current_buffer->yy_buf_size -
Reid Spencer68a24bd2005-08-27 18:50:39 +00002230 number_to_move - 1;
Reid Spencer832254e2007-02-02 02:16:23 +00002231#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00002232 }
2233
2234 if ( num_to_read > YY_READ_BUF_SIZE )
2235 num_to_read = YY_READ_BUF_SIZE;
2236
2237 /* Read in more data. */
Reid Spencer832254e2007-02-02 02:16:23 +00002238 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2239 yy_n_chars, num_to_read );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002240
Reid Spencer832254e2007-02-02 02:16:23 +00002241 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002242 }
2243
Reid Spencer832254e2007-02-02 02:16:23 +00002244 if ( yy_n_chars == 0 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002245 {
2246 if ( number_to_move == YY_MORE_ADJ )
2247 {
2248 ret_val = EOB_ACT_END_OF_FILE;
Reid Spencer832254e2007-02-02 02:16:23 +00002249 yyrestart( yyin );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002250 }
2251
2252 else
2253 {
2254 ret_val = EOB_ACT_LAST_MATCH;
Reid Spencer832254e2007-02-02 02:16:23 +00002255 yy_current_buffer->yy_buffer_status =
Reid Spencer68a24bd2005-08-27 18:50:39 +00002256 YY_BUFFER_EOF_PENDING;
2257 }
2258 }
2259
2260 else
2261 ret_val = EOB_ACT_CONTINUE_SCAN;
2262
Reid Spencer832254e2007-02-02 02:16:23 +00002263 yy_n_chars += number_to_move;
2264 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2265 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002266
Reid Spencer832254e2007-02-02 02:16:23 +00002267 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002268
2269 return ret_val;
Reid Spencer832254e2007-02-02 02:16:23 +00002270 }
2271
Reid Spencer68a24bd2005-08-27 18:50:39 +00002272
2273/* yy_get_previous_state - get the state just before the EOB char was reached */
2274
Reid Spencer832254e2007-02-02 02:16:23 +00002275static yy_state_type yy_get_previous_state()
2276 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002277 register yy_state_type yy_current_state;
2278 register char *yy_cp;
2279
Reid Spencer832254e2007-02-02 02:16:23 +00002280 yy_current_state = yy_start;
2281 yy_state_ptr = yy_state_buf;
2282 *yy_state_ptr++ = yy_current_state;
2283
2284 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002285 {
2286 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2287 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2288 {
2289 yy_current_state = (int) yy_def[yy_current_state];
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002290 if ( yy_current_state >= 539 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002291 yy_c = yy_meta[(unsigned int) yy_c];
2292 }
2293 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00002294 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002295 }
2296
2297 return yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002298 }
2299
Reid Spencer68a24bd2005-08-27 18:50:39 +00002300
2301/* yy_try_NUL_trans - try to make a transition on the NUL character
2302 *
2303 * synopsis
2304 * next_state = yy_try_NUL_trans( current_state );
2305 */
Reid Spencer832254e2007-02-02 02:16:23 +00002306
2307#ifdef YY_USE_PROTOS
2308static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2309#else
2310static yy_state_type yy_try_NUL_trans( yy_current_state )
2311yy_state_type yy_current_state;
2312#endif
2313 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002314 register int yy_is_jam;
2315
2316 register YY_CHAR yy_c = 1;
2317 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2318 {
2319 yy_current_state = (int) yy_def[yy_current_state];
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002320 if ( yy_current_state >= 539 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002321 yy_c = yy_meta[(unsigned int) yy_c];
2322 }
2323 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002324 yy_is_jam = (yy_current_state == 538);
Reid Spencer832254e2007-02-02 02:16:23 +00002325 if ( ! yy_is_jam )
2326 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002327
2328 return yy_is_jam ? 0 : yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002329 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002330
2331
Reid Spencer832254e2007-02-02 02:16:23 +00002332#ifndef YY_NO_UNPUT
2333#ifdef YY_USE_PROTOS
2334static inline void yyunput( int c, register char *yy_bp )
2335#else
2336static inline void yyunput( c, yy_bp )
2337int c;
2338register char *yy_bp;
2339#endif
2340 {
2341 register char *yy_cp = yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002342
Reid Spencer832254e2007-02-02 02:16:23 +00002343 /* undo effects of setting up yytext */
2344 *yy_cp = yy_hold_char;
2345
2346 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002347 { /* need to shift things up to make room */
2348 /* +2 for EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002349 register int number_to_move = yy_n_chars + 2;
2350 register char *dest = &yy_current_buffer->yy_ch_buf[
2351 yy_current_buffer->yy_buf_size + 2];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002352 register char *source =
Reid Spencer832254e2007-02-02 02:16:23 +00002353 &yy_current_buffer->yy_ch_buf[number_to_move];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002354
Reid Spencer832254e2007-02-02 02:16:23 +00002355 while ( source > yy_current_buffer->yy_ch_buf )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002356 *--dest = *--source;
2357
2358 yy_cp += (int) (dest - source);
2359 yy_bp += (int) (dest - source);
Reid Spencer832254e2007-02-02 02:16:23 +00002360 yy_current_buffer->yy_n_chars =
2361 yy_n_chars = yy_current_buffer->yy_buf_size;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002362
Reid Spencer832254e2007-02-02 02:16:23 +00002363 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002364 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2365 }
2366
2367 *--yy_cp = (char) c;
2368
Reid Spencer832254e2007-02-02 02:16:23 +00002369 if ( c == '\n' )
2370 --yylineno;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002371
Reid Spencer832254e2007-02-02 02:16:23 +00002372 yytext_ptr = yy_bp;
2373 yy_hold_char = *yy_cp;
2374 yy_c_buf_p = yy_cp;
2375 }
2376#endif /* ifndef YY_NO_UNPUT */
2377
Reid Spencer6f407902007-01-13 05:00:46 +00002378
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002379#ifndef YY_NO_INPUT
Reid Spencer68a24bd2005-08-27 18:50:39 +00002380#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00002381static int yyinput()
Reid Spencer68a24bd2005-08-27 18:50:39 +00002382#else
Reid Spencer832254e2007-02-02 02:16:23 +00002383static int input()
Reid Spencer68a24bd2005-08-27 18:50:39 +00002384#endif
Reid Spencer832254e2007-02-02 02:16:23 +00002385 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002386 int c;
2387
Reid Spencer832254e2007-02-02 02:16:23 +00002388 *yy_c_buf_p = yy_hold_char;
2389
2390 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002391 {
2392 /* yy_c_buf_p now points to the character we want to return.
2393 * If this occurs *before* the EOB characters, then it's a
2394 * valid NUL; if not, then we've hit the end of the buffer.
2395 */
Reid Spencer832254e2007-02-02 02:16:23 +00002396 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002397 /* This was really a NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002398 *yy_c_buf_p = '\0';
Reid Spencer68a24bd2005-08-27 18:50:39 +00002399
2400 else
2401 { /* need more input */
Reid Spencer832254e2007-02-02 02:16:23 +00002402 int offset = yy_c_buf_p - yytext_ptr;
2403 ++yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002404
Reid Spencer832254e2007-02-02 02:16:23 +00002405 switch ( yy_get_next_buffer() )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002406 {
2407 case EOB_ACT_LAST_MATCH:
2408 /* This happens because yy_g_n_b()
2409 * sees that we've accumulated a
2410 * token and flags that we need to
2411 * try matching the token before
2412 * proceeding. But for input(),
2413 * there's no matching to consider.
2414 * So convert the EOB_ACT_LAST_MATCH
2415 * to EOB_ACT_END_OF_FILE.
2416 */
2417
2418 /* Reset buffer status. */
Reid Spencer832254e2007-02-02 02:16:23 +00002419 yyrestart( yyin );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002420
Reid Spencer832254e2007-02-02 02:16:23 +00002421 /* fall through */
Reid Spencer68a24bd2005-08-27 18:50:39 +00002422
2423 case EOB_ACT_END_OF_FILE:
2424 {
Reid Spencer832254e2007-02-02 02:16:23 +00002425 if ( yywrap() )
Reid Spencer61c83e02006-08-18 08:43:06 +00002426 return EOF;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002427
Reid Spencer832254e2007-02-02 02:16:23 +00002428 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002429 YY_NEW_FILE;
2430#ifdef __cplusplus
2431 return yyinput();
2432#else
2433 return input();
2434#endif
2435 }
2436
2437 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002438 yy_c_buf_p = yytext_ptr + offset;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002439 break;
2440 }
2441 }
2442 }
2443
Reid Spencer832254e2007-02-02 02:16:23 +00002444 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2445 *yy_c_buf_p = '\0'; /* preserve yytext */
2446 yy_hold_char = *++yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002447
2448 if ( c == '\n' )
Reid Spencer832254e2007-02-02 02:16:23 +00002449 ++yylineno;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002450
2451 return c;
Reid Spencer832254e2007-02-02 02:16:23 +00002452 }
2453#endif /* YY_NO_INPUT */
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002454
Reid Spencer832254e2007-02-02 02:16:23 +00002455#ifdef YY_USE_PROTOS
2456void yyrestart( FILE *input_file )
2457#else
2458void yyrestart( input_file )
2459FILE *input_file;
2460#endif
2461 {
2462 if ( ! yy_current_buffer )
2463 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2464
2465 yy_init_buffer( yy_current_buffer, input_file );
2466 yy_load_buffer_state();
Reid Spencer6f407902007-01-13 05:00:46 +00002467 }
Reid Spencer41dff5e2007-01-26 08:05:27 +00002468
Reid Spencer68a24bd2005-08-27 18:50:39 +00002469
Reid Spencer832254e2007-02-02 02:16:23 +00002470#ifdef YY_USE_PROTOS
2471void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2472#else
2473void yy_switch_to_buffer( new_buffer )
2474YY_BUFFER_STATE new_buffer;
2475#endif
2476 {
2477 if ( yy_current_buffer == new_buffer )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002478 return;
2479
Reid Spencer832254e2007-02-02 02:16:23 +00002480 if ( yy_current_buffer )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002481 {
2482 /* Flush out information for old buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002483 *yy_c_buf_p = yy_hold_char;
2484 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2485 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002486 }
2487
Reid Spencer832254e2007-02-02 02:16:23 +00002488 yy_current_buffer = new_buffer;
2489 yy_load_buffer_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002490
2491 /* We don't actually know whether we did this switch during
Reid Spencer832254e2007-02-02 02:16:23 +00002492 * EOF (yywrap()) processing, but the only time this flag
2493 * is looked at is after yywrap() is called, so it's safe
Reid Spencer68a24bd2005-08-27 18:50:39 +00002494 * to go ahead and always set it.
2495 */
Reid Spencer832254e2007-02-02 02:16:23 +00002496 yy_did_buffer_switch_on_eof = 1;
2497 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002498
2499
Reid Spencer832254e2007-02-02 02:16:23 +00002500#ifdef YY_USE_PROTOS
2501void yy_load_buffer_state( void )
2502#else
2503void yy_load_buffer_state()
2504#endif
2505 {
2506 yy_n_chars = yy_current_buffer->yy_n_chars;
2507 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2508 yyin = yy_current_buffer->yy_input_file;
2509 yy_hold_char = *yy_c_buf_p;
2510 }
2511
2512
2513#ifdef YY_USE_PROTOS
2514YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2515#else
2516YY_BUFFER_STATE yy_create_buffer( file, size )
2517FILE *file;
2518int size;
2519#endif
2520 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002521 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002522
2523 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002524 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002525 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002526
2527 b->yy_buf_size = size;
2528
2529 /* yy_ch_buf has to be 2 characters longer than the size given because
2530 * we need to put in 2 end-of-buffer characters.
2531 */
Reid Spencer832254e2007-02-02 02:16:23 +00002532 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002533 if ( ! b->yy_ch_buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002534 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002535
2536 b->yy_is_our_buffer = 1;
2537
Reid Spencer832254e2007-02-02 02:16:23 +00002538 yy_init_buffer( b, file );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002539
2540 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002541 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002542
Reid Spencer832254e2007-02-02 02:16:23 +00002543
2544#ifdef YY_USE_PROTOS
2545void yy_delete_buffer( YY_BUFFER_STATE b )
2546#else
2547void yy_delete_buffer( b )
2548YY_BUFFER_STATE b;
2549#endif
2550 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002551 if ( ! b )
2552 return;
2553
Reid Spencer832254e2007-02-02 02:16:23 +00002554 if ( b == yy_current_buffer )
2555 yy_current_buffer = (YY_BUFFER_STATE) 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002556
2557 if ( b->yy_is_our_buffer )
Reid Spencer832254e2007-02-02 02:16:23 +00002558 yy_flex_free( (void *) b->yy_ch_buf );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002559
Reid Spencer832254e2007-02-02 02:16:23 +00002560 yy_flex_free( (void *) b );
2561 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002562
2563
Reid Spencer832254e2007-02-02 02:16:23 +00002564
2565#ifdef YY_USE_PROTOS
2566void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2567#else
2568void yy_init_buffer( b, file )
2569YY_BUFFER_STATE b;
2570FILE *file;
2571#endif
2572
2573
2574 {
2575 yy_flush_buffer( b );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002576
2577 b->yy_input_file = file;
2578 b->yy_fill_buffer = 1;
2579
Reid Spencer832254e2007-02-02 02:16:23 +00002580#if YY_ALWAYS_INTERACTIVE
2581 b->yy_is_interactive = 1;
2582#else
2583#if YY_NEVER_INTERACTIVE
2584 b->yy_is_interactive = 0;
2585#else
2586 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2587#endif
2588#endif
2589 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002590
2591
Reid Spencer832254e2007-02-02 02:16:23 +00002592#ifdef YY_USE_PROTOS
2593void yy_flush_buffer( YY_BUFFER_STATE b )
2594#else
2595void yy_flush_buffer( b )
2596YY_BUFFER_STATE b;
2597#endif
2598
2599 {
2600 if ( ! b )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002601 return;
2602
2603 b->yy_n_chars = 0;
2604
2605 /* We always need two end-of-buffer characters. The first causes
2606 * a transition to the end-of-buffer state. The second causes
2607 * a jam in that state.
2608 */
2609 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2610 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2611
2612 b->yy_buf_pos = &b->yy_ch_buf[0];
2613
2614 b->yy_at_bol = 1;
2615 b->yy_buffer_status = YY_BUFFER_NEW;
2616
Reid Spencer832254e2007-02-02 02:16:23 +00002617 if ( b == yy_current_buffer )
2618 yy_load_buffer_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002619 }
2620
2621
Reid Spencer832254e2007-02-02 02:16:23 +00002622#ifndef YY_NO_SCAN_BUFFER
2623#ifdef YY_USE_PROTOS
2624YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2625#else
2626YY_BUFFER_STATE yy_scan_buffer( base, size )
2627char *base;
2628yy_size_t size;
2629#endif
2630 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002631 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002632
Reid Spencer68a24bd2005-08-27 18:50:39 +00002633 if ( size < 2 ||
2634 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2635 base[size-1] != YY_END_OF_BUFFER_CHAR )
2636 /* They forgot to leave room for the EOB's. */
2637 return 0;
2638
Reid Spencer832254e2007-02-02 02:16:23 +00002639 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002640 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002641 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002642
2643 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2644 b->yy_buf_pos = b->yy_ch_buf = base;
2645 b->yy_is_our_buffer = 0;
2646 b->yy_input_file = 0;
2647 b->yy_n_chars = b->yy_buf_size;
2648 b->yy_is_interactive = 0;
2649 b->yy_at_bol = 1;
2650 b->yy_fill_buffer = 0;
2651 b->yy_buffer_status = YY_BUFFER_NEW;
2652
Reid Spencer832254e2007-02-02 02:16:23 +00002653 yy_switch_to_buffer( b );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002654
2655 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002656 }
2657#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00002658
2659
Reid Spencer832254e2007-02-02 02:16:23 +00002660#ifndef YY_NO_SCAN_STRING
2661#ifdef YY_USE_PROTOS
2662YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2663#else
2664YY_BUFFER_STATE yy_scan_string( yy_str )
2665yyconst char *yy_str;
2666#endif
2667 {
2668 int len;
2669 for ( len = 0; yy_str[len]; ++len )
2670 ;
2671
2672 return yy_scan_bytes( yy_str, len );
2673 }
2674#endif
2675
2676
2677#ifndef YY_NO_SCAN_BYTES
2678#ifdef YY_USE_PROTOS
2679YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2680#else
2681YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2682yyconst char *bytes;
2683int len;
2684#endif
2685 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002686 YY_BUFFER_STATE b;
2687 char *buf;
2688 yy_size_t n;
2689 int i;
Reid Spencer832254e2007-02-02 02:16:23 +00002690
Reid Spencer68a24bd2005-08-27 18:50:39 +00002691 /* Get memory for full buffer, including space for trailing EOB's. */
Reid Spencer832254e2007-02-02 02:16:23 +00002692 n = len + 2;
2693 buf = (char *) yy_flex_alloc( n );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002694 if ( ! buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002695 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002696
Reid Spencer832254e2007-02-02 02:16:23 +00002697 for ( i = 0; i < len; ++i )
2698 buf[i] = bytes[i];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002699
Reid Spencer832254e2007-02-02 02:16:23 +00002700 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002701
Reid Spencer832254e2007-02-02 02:16:23 +00002702 b = yy_scan_buffer( buf, n );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002703 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002704 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002705
2706 /* It's okay to grow etc. this buffer, and we should throw it
2707 * away when we're done.
2708 */
2709 b->yy_is_our_buffer = 1;
2710
2711 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002712 }
2713#endif
2714
2715
2716#ifndef YY_NO_PUSH_STATE
2717#ifdef YY_USE_PROTOS
2718static void yy_push_state( int new_state )
2719#else
2720static void yy_push_state( new_state )
2721int new_state;
2722#endif
2723 {
2724 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2725 {
2726 yy_size_t new_size;
2727
2728 yy_start_stack_depth += YY_START_STACK_INCR;
2729 new_size = yy_start_stack_depth * sizeof( int );
2730
2731 if ( ! yy_start_stack )
2732 yy_start_stack = (int *) yy_flex_alloc( new_size );
2733
2734 else
2735 yy_start_stack = (int *) yy_flex_realloc(
2736 (void *) yy_start_stack, new_size );
2737
2738 if ( ! yy_start_stack )
2739 YY_FATAL_ERROR(
2740 "out of memory expanding start-condition stack" );
2741 }
2742
2743 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2744
2745 BEGIN(new_state);
2746 }
2747#endif
2748
2749
2750#ifndef YY_NO_POP_STATE
2751static void yy_pop_state()
2752 {
2753 if ( --yy_start_stack_ptr < 0 )
2754 YY_FATAL_ERROR( "start-condition stack underflow" );
2755
2756 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2757 }
2758#endif
2759
2760
2761#ifndef YY_NO_TOP_STATE
2762static int yy_top_state()
2763 {
2764 return yy_start_stack[yy_start_stack_ptr - 1];
2765 }
2766#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00002767
2768#ifndef YY_EXIT_FAILURE
2769#define YY_EXIT_FAILURE 2
2770#endif
2771
Reid Spencer832254e2007-02-02 02:16:23 +00002772#ifdef YY_USE_PROTOS
2773static void yy_fatal_error( yyconst char msg[] )
2774#else
2775static void yy_fatal_error( msg )
2776char msg[];
2777#endif
2778 {
2779 (void) fprintf( stderr, "%s\n", msg );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002780 exit( YY_EXIT_FAILURE );
Reid Spencer832254e2007-02-02 02:16:23 +00002781 }
2782
2783
Reid Spencer68a24bd2005-08-27 18:50:39 +00002784
2785/* Redefine yyless() so it works in section 3 code. */
2786
2787#undef yyless
2788#define yyless(n) \
2789 do \
2790 { \
Reid Spencer832254e2007-02-02 02:16:23 +00002791 /* Undo effects of setting up yytext. */ \
2792 yytext[yyleng] = yy_hold_char; \
2793 yy_c_buf_p = yytext + n; \
2794 yy_hold_char = *yy_c_buf_p; \
2795 *yy_c_buf_p = '\0'; \
2796 yyleng = n; \
Reid Spencer68a24bd2005-08-27 18:50:39 +00002797 } \
2798 while ( 0 )
2799
2800
Reid Spencer832254e2007-02-02 02:16:23 +00002801/* Internal utility routines. */
Reid Spencer68a24bd2005-08-27 18:50:39 +00002802
2803#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00002804#ifdef YY_USE_PROTOS
2805static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2806#else
2807static void yy_flex_strncpy( s1, s2, n )
2808char *s1;
2809yyconst char *s2;
2810int n;
2811#endif
2812 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002813 register int i;
2814 for ( i = 0; i < n; ++i )
2815 s1[i] = s2[i];
Reid Spencer832254e2007-02-02 02:16:23 +00002816 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002817#endif
2818
2819#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00002820#ifdef YY_USE_PROTOS
2821static int yy_flex_strlen( yyconst char *s )
2822#else
2823static int yy_flex_strlen( s )
2824yyconst char *s;
2825#endif
2826 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002827 register int n;
2828 for ( n = 0; s[n]; ++n )
2829 ;
2830
2831 return n;
Reid Spencer832254e2007-02-02 02:16:23 +00002832 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002833#endif
2834
Reid Spencer6f407902007-01-13 05:00:46 +00002835
Reid Spencer832254e2007-02-02 02:16:23 +00002836#ifdef YY_USE_PROTOS
2837static void *yy_flex_alloc( yy_size_t size )
2838#else
2839static void *yy_flex_alloc( size )
2840yy_size_t size;
2841#endif
2842 {
2843 return (void *) malloc( size );
2844 }
2845
2846#ifdef YY_USE_PROTOS
2847static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
2848#else
2849static inline void *yy_flex_realloc( ptr, size )
2850void *ptr;
2851yy_size_t size;
2852#endif
2853 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002854 /* The cast to (char *) in the following accommodates both
2855 * implementations that use char* generic pointers, and those
2856 * that use void* generic pointers. It works with the latter
2857 * because both ANSI C and C++ allow castless assignment from
2858 * any pointer type to void*, and deal with argument conversions
2859 * as though doing an assignment.
2860 */
2861 return (void *) realloc( (char *) ptr, size );
Reid Spencer832254e2007-02-02 02:16:23 +00002862 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002863
Reid Spencer832254e2007-02-02 02:16:23 +00002864#ifdef YY_USE_PROTOS
2865static void yy_flex_free( void *ptr )
2866#else
2867static void yy_flex_free( ptr )
2868void *ptr;
2869#endif
2870 {
2871 free( ptr );
2872 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002873
Reid Spencer832254e2007-02-02 02:16:23 +00002874#if YY_MAIN
2875int main()
2876 {
2877 yylex();
2878 return 0;
2879 }
2880#endif
Reid Spenceref9b9a72007-02-05 20:47:22 +00002881#line 409 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Chris Lattner2fecc0f2006-02-15 07:02:59 +00002882