blob: 6b536b5cbb160ff6119b8a45df534952e4cee278 [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
Reid Spencer67d8ed92007-03-22 02:14:08 +0000320#define YY_NUM_RULES 136
321#define YY_END_OF_BUFFER 137
322static yyconst short int yy_acclist[217] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000323 { 0,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000324 137, 135, 136, 134, 135, 136, 134, 136, 135, 136,
325 135, 136, 135, 136, 135, 136, 135, 136, 135, 136,
326 127, 135, 136, 127, 135, 136, 1, 135, 136, 135,
327 136, 135, 136, 135, 136, 135, 136, 135, 136, 135,
328 136, 135, 136, 135, 136, 135, 136, 135, 136, 135,
329 136, 135, 136, 135, 136, 135, 136, 135, 136, 135,
330 136, 135, 136, 135, 136, 135, 136, 135, 136, 135,
331 136, 135, 136, 135, 136, 125, 123, 121, 130, 128,
332 132, 127, 1, 122, 131, 107, 36, 70, 52, 71,
333 66, 24, 125, 121, 132, 21, 132, 133, 126, 122,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000334
Reid Spencer67d8ed92007-03-22 02:14:08 +0000335 53, 65, 34, 37, 3, 55, 80, 85, 83, 84,
336 82, 81, 86, 90, 106, 75, 73, 62, 74, 72,
337 54, 88, 79, 77, 78, 76, 89, 87, 67, 124,
338 132, 132, 64, 91, 69, 58, 114, 61, 68, 115,
339 63, 23, 129, 57, 94, 60, 43, 25, 4, 50,
340 56, 59, 46, 12, 93, 132, 31, 2, 5, 47,
341 96, 42, 49, 116, 92, 22, 113, 39, 7, 48,
342 38, 100, 99, 8, 16, 109, 112, 33, 51, 104,
343 98, 108, 26, 27, 97, 110, 105, 103, 6, 28,
344 95, 32, 9, 18, 10, 101, 11, 45, 44, 102,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000345
Reid Spencer3025dfd2007-03-29 18:50:01 +0000346 30, 13, 15, 14, 29, 35, 17, 111, 117, 119,
347 120, 40, 118, 19, 41, 20
Reid Spencer68a24bd2005-08-27 18:50:39 +0000348 } ;
349
Reid Spencer3025dfd2007-03-29 18:50:01 +0000350static yyconst short int yy_accept[553] =
Reid Spencer832254e2007-02-02 02:16:23 +0000351 { 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,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000359 88, 89, 89, 89, 89, 89, 89, 89, 89, 89,
360 89, 89, 90, 90, 90, 90, 90, 90, 90, 90,
Reid Spencer832254e2007-02-02 02:16:23 +0000361 90, 90, 90, 91, 91, 91, 91, 91, 91, 91,
362
Reid Spencer67d8ed92007-03-22 02:14:08 +0000363 91, 92, 92, 92, 92, 92, 92, 92, 92, 92,
364 92, 92, 92, 92, 92, 92, 92, 93, 93, 93,
Reid Spencer832254e2007-02-02 02:16:23 +0000365 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000366 93, 93, 93, 94, 95, 96, 97, 98, 98, 99,
367 99, 100, 101, 102, 102, 102, 103, 103, 103, 104,
368 104, 104, 104, 105, 105, 105, 105, 105, 105, 105,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000369 105, 105, 106, 106, 106, 106, 106, 106, 106, 106,
Reid Spencer832254e2007-02-02 02:16:23 +0000370 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000371 106, 106, 106, 106, 106, 106, 106, 107, 107, 107,
372 107, 108, 109, 110, 111, 112, 113, 113, 114, 115,
Reid Spencer832254e2007-02-02 02:16:23 +0000373
Reid Spencer67d8ed92007-03-22 02:14:08 +0000374 115, 116, 116, 116, 116, 116, 116, 117, 118, 119,
375 119, 119, 119, 120, 121, 121, 121, 122, 122, 122,
376 122, 122, 122, 122, 122, 123, 124, 125, 125, 126,
377 127, 127, 128, 129, 129, 129, 129, 129, 129, 129,
378 129, 129, 130, 130, 130, 131, 132, 132, 132, 132,
379 133, 133, 133, 133, 134, 134, 134, 135, 135, 135,
380 135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000381 135, 136, 137, 137, 137, 137, 137, 138, 139, 139,
382 139, 139, 140, 140, 140, 140, 140, 140, 140, 140,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000383 140, 141, 142, 142, 142, 142, 142, 143, 143, 143,
Reid Spencer832254e2007-02-02 02:16:23 +0000384
Reid Spencer67d8ed92007-03-22 02:14:08 +0000385 144, 145, 145, 145, 146, 146, 146, 146, 147, 148,
386 148, 148, 149, 149, 149, 150, 150, 151, 152, 152,
387 152, 152, 152, 153, 153, 154, 154, 155, 155, 155,
388 156, 157, 158, 158, 158, 159, 159, 159, 159, 159,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000389 159, 159, 159, 159, 159, 159, 159, 159, 160, 160,
390 161, 162, 162, 162, 162, 162, 162, 162, 162, 163,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000391 163, 163, 163, 163, 164, 164, 164, 164, 164, 164,
392 164, 164, 164, 164, 164, 164, 164, 165, 165, 165,
393 165, 166, 166, 167, 167, 167, 167, 167, 167, 167,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000394 167, 168, 168, 168, 169, 169, 169, 169, 170, 170,
Reid Spencer832254e2007-02-02 02:16:23 +0000395
Reid Spencer3025dfd2007-03-29 18:50:01 +0000396 170, 170, 171, 171, 171, 172, 173, 174, 174, 174,
397 175, 176, 176, 176, 176, 176, 177, 177, 178, 179,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000398 179, 179, 180, 180, 180, 181, 181, 181, 182, 183,
399 184, 185, 186, 186, 187, 188, 188, 188, 188, 188,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000400 188, 189, 189, 189, 190, 191, 191, 191, 191, 191,
401 191, 192, 192, 192, 192, 192, 192, 192, 192, 192,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000402 192, 193, 193, 193, 193, 193, 193, 193, 193, 193,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000403 194, 194, 194, 194, 194, 195, 195, 195, 195, 195,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000404 196, 197, 198, 199, 200, 201, 201, 201, 201, 202,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000405 202, 202, 202, 203, 203, 204, 205, 205, 205, 205,
Reid Spencer832254e2007-02-02 02:16:23 +0000406
Reid Spencer3025dfd2007-03-29 18:50:01 +0000407 205, 205, 205, 205, 205, 205, 205, 205, 206, 206,
408 206, 206, 206, 206, 206, 207, 207, 207, 207, 207,
409 208, 208, 208, 208, 208, 208, 209, 209, 209, 209,
410 209, 209, 209, 209, 209, 209, 209, 209, 209, 210,
411 210, 211, 212, 212, 213, 213, 214, 215, 216, 216,
412 217, 217
Reid Spencer832254e2007-02-02 02:16:23 +0000413 } ;
414
415static yyconst int yy_ec[256] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000416 { 0,
417 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
418 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
419 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
420 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
Reid Spencera54b7cb2007-01-12 07:05:14 +0000421 1, 1, 7, 1, 8, 9, 1, 10, 11, 11,
422 11, 11, 11, 12, 11, 13, 11, 14, 15, 1,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000423 1, 1, 1, 16, 17, 17, 17, 17, 18, 17,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000424 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
425 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000426 1, 1, 1, 1, 19, 1, 20, 21, 22, 23,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000427
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000428 24, 25, 26, 27, 28, 5, 29, 30, 31, 32,
429 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
430 43, 44, 1, 1, 1, 1, 1, 1, 1, 1,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
432 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
433 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
436 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
438
439 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
440 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
441 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
442 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
443 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
444 1, 1, 1, 1, 1
445 } ;
446
Reid Spencer832254e2007-02-02 02:16:23 +0000447static yyconst int yy_meta[45] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000448 { 0,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000449 1, 1, 2, 3, 4, 1, 1, 4, 4, 4,
450 4, 4, 4, 5, 1, 1, 4, 4, 4, 4,
451 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
452 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
453 4, 4, 4, 4
Reid Spencer68a24bd2005-08-27 18:50:39 +0000454 } ;
455
Reid Spencer3025dfd2007-03-29 18:50:01 +0000456static yyconst short int yy_base[560] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000457 { 0,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000458 0, 0, 1199, 1200, 1200, 1200, 1194, 1183, 35, 39,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000459 43, 49, 55, 61, 0, 72, 64, 67, 66, 86,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000460 76, 106, 91, 65, 133, 121, 117, 99, 152, 95,
461 78, 179, 137, 211, 139, 90, 148, 93, 1192, 1200,
462 1181, 1200, 0, 49, 185, 217, 116, 238, 254, 259,
463 0, 1190, 0, 200, 125, 149, 146, 153, 177, 63,
464 154, 1179, 160, 161, 208, 185, 264, 171, 113, 210,
465 1178, 222, 260, 228, 186, 261, 271, 110, 273, 274,
466 230, 223, 277, 278, 279, 282, 286, 285, 205, 290,
467 287, 292, 1177, 288, 299, 300, 307, 309, 312, 314,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000468
Reid Spencer3025dfd2007-03-29 18:50:01 +0000469 316, 318, 323, 311, 324, 326, 328, 327, 330, 329,
470 339, 347, 341, 343, 334, 354, 1176, 358, 342, 359,
471 361, 364, 365, 367, 371, 369, 370, 378, 395, 386,
472 385, 387, 1175, 0, 406, 1174, 421, 439, 0, 1183,
473 1200, 0, 1172, 232, 408, 1171, 396, 400, 1170, 397,
474 426, 412, 1169, 414, 424, 440, 413, 430, 441, 442,
475 443, 1168, 445, 448, 449, 454, 451, 453, 458, 460,
476 466, 462, 461, 469, 464, 465, 470, 475, 487, 488,
477 489, 490, 491, 492, 493, 494, 1167, 496, 495, 501,
478 1166, 1165, 1164, 1163, 1162, 1161, 502, 1160, 1159, 498,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000479
Reid Spencer3025dfd2007-03-29 18:50:01 +0000480 1158, 528, 503, 504, 508, 516, 1157, 1156, 1155, 510,
481 520, 533, 1154, 1153, 541, 542, 1152, 543, 544, 545,
482 546, 551, 549, 547, 1151, 1150, 1149, 553, 1148, 1147,
483 568, 1146, 1145, 570, 548, 554, 550, 574, 575, 576,
484 577, 1144, 579, 563, 1200, 596, 611, 615, 619, 624,
485 584, 588, 585, 1143, 625, 626, 1142, 589, 627, 628,
486 629, 630, 631, 633, 636, 634, 637, 640, 639, 647,
487 1141, 1140, 638, 641, 652, 642, 1139, 1138, 654, 657,
488 656, 1137, 658, 660, 664, 669, 671, 586, 673, 674,
489 1136, 1135, 676, 678, 679, 680, 1134, 681, 682, 0,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000490
Reid Spencer3025dfd2007-03-29 18:50:01 +0000491 1133, 683, 684, 1132, 685, 688, 699, 1131, 1130, 702,
492 700, 1129, 704, 705, 1128, 709, 1127, 1126, 711, 713,
493 719, 715, 1125, 716, 1124, 718, 1123, 720, 723, 1122,
494 730, 1121, 730, 590, 1120, 732, 739, 734, 735, 744,
495 746, 745, 748, 749, 750, 753, 751, 1119, 754, 1118,
496 1117, 758, 761, 763, 757, 764, 765, 770, 1116, 773,
497 774, 776, 778, 1115, 777, 782, 779, 784, 785, 791,
498 786, 793, 794, 798, 802, 803, 1114, 804, 805, 806,
499 1113, 807, 1112, 811, 815, 808, 821, 822, 810, 825,
500 1111, 826, 830, 1110, 831, 832, 836, 1109, 833, 838,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000501
Reid Spencer3025dfd2007-03-29 18:50:01 +0000502 839, 1108, 842, 841, 1107, 1106, 1105, 837, 850, 1104,
503 1103, 852, 853, 860, 844, 1102, 851, 1101, 1100, 855,
504 864, 1099, 869, 870, 1098, 871, 872, 1097, 1096, 1095,
505 1094, 1093, 873, 1092, 1091, 874, 875, 876, 878, 879,
506 1090, 880, 884, 1089, 1088, 889, 891, 893, 894, 895,
507 1087, 896, 899, 900, 902, 901, 909, 907, 912, 908,
508 1076, 914, 924, 922, 926, 915, 927, 929, 930, 1066,
509 931, 933, 937, 938, 1065, 943, 944, 941, 945, 1064,
510 1063, 1062, 1059, 1058, 1057, 950, 946, 951, 1056, 963,
511 964, 952, 1054, 949, 1053, 1052, 968, 967, 969, 972,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000512
Reid Spencer3025dfd2007-03-29 18:50:01 +0000513 975, 976, 979, 980, 981, 982, 983, 1047, 985, 988,
514 986, 990, 991, 994, 1046, 997, 995, 999, 1004, 947,
515 1002, 1008, 1009, 1010, 1016, 687, 1013, 1017, 1019, 1021,
516 1022, 1024, 1026, 1027, 1030, 1034, 1031, 1036, 555, 1037,
517 515, 512, 1040, 463, 1041, 399, 366, 247, 1045, 243,
518 1200, 1081, 1083, 212, 1088, 1091, 167, 1095, 108
Reid Spencer68a24bd2005-08-27 18:50:39 +0000519 } ;
520
Reid Spencer3025dfd2007-03-29 18:50:01 +0000521static yyconst short int yy_def[560] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000522 { 0,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000523 551, 1, 551, 551, 551, 551, 552, 553, 554, 551,
524 553, 553, 553, 553, 555, 556, 553, 553, 553, 553,
525 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
526 553, 553, 553, 553, 553, 553, 553, 553, 552, 551,
527 553, 551, 557, 551, 551, 553, 553, 553, 553, 553,
528 555, 558, 559, 551, 553, 553, 553, 553, 553, 553,
529 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
530 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
531 553, 25, 553, 553, 553, 553, 553, 553, 553, 553,
532 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000533
Reid Spencer3025dfd2007-03-29 18:50:01 +0000534 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
535 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
536 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
537 553, 553, 551, 557, 551, 553, 553, 553, 50, 558,
538 551, 559, 553, 553, 553, 553, 553, 553, 553, 553,
539 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
540 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
541 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
542 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
543 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000544
Reid Spencer3025dfd2007-03-29 18:50:01 +0000545 553, 50, 553, 553, 553, 553, 553, 553, 553, 553,
546 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
547 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
548 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
549 553, 553, 553, 553, 551, 551, 551, 551, 553, 553,
550 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
551 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
552 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
553 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
554 553, 553, 553, 553, 553, 553, 553, 553, 553, 202,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000555
Reid Spencer3025dfd2007-03-29 18:50:01 +0000556 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
557 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
558 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
559 551, 553, 553, 553, 553, 553, 553, 553, 553, 553,
560 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
561 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
562 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
563 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
564 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
565 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000566
Reid Spencer3025dfd2007-03-29 18:50:01 +0000567 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
568 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
569 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
570 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
571 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
572 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
573 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
574 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
575 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
576 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000577
Reid Spencer3025dfd2007-03-29 18:50:01 +0000578 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
579 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
580 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
581 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
582 553, 553, 553, 553, 553, 553, 553, 553, 553, 553,
583 0, 551, 551, 551, 551, 551, 551, 551, 551
Reid Spencer68a24bd2005-08-27 18:50:39 +0000584 } ;
585
Reid Spencer3025dfd2007-03-29 18:50:01 +0000586static yyconst short int yy_nxt[1245] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000587 { 0,
588 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000589 14, 14, 14, 4, 15, 16, 8, 8, 8, 17,
590 18, 19, 20, 21, 22, 23, 24, 25, 8, 26,
591 27, 28, 29, 30, 8, 31, 32, 33, 34, 35,
592 36, 37, 8, 38, 44, 44, 44, 44, 45, 45,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000593 45, 45, 46, 46, 46, 46, 42, 47, 44, 44,
594 44, 44, 42, 48, 49, 49, 49, 49, 42, 48,
595 49, 49, 49, 49, 42, 52, 42, 42, 42, 42,
596 42, 54, 54, 54, 54, 63, 55, 64, 150, 42,
597 60, 42, 81, 56, 61, 57, 50, 58, 65, 42,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000598
Reid Spencer3025dfd2007-03-29 18:50:01 +0000599 59, 104, 62, 42, 42, 66, 42, 70, 42, 67,
600 71, 142, 42, 129, 79, 68, 132, 72, 69, 42,
601 80, 102, 93, 42, 136, 73, 42, 74, 75, 42,
602 42, 94, 103, 171, 42, 76, 90, 95, 42, 77,
603 86, 78, 82, 82, 82, 82, 42, 143, 87, 91,
604 42, 161, 42, 88, 83, 92, 116, 89, 127, 42,
605 130, 42, 42, 84, 85, 42, 42, 42, 146, 117,
606 134, 128, 118, 42, 42, 96, 144, 97, 145, 119,
607 131, 98, 153, 99, 42, 100, 147, 101, 105, 152,
608 42, 151, 42, 135, 45, 45, 45, 45, 42, 42,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000609
Reid Spencer3025dfd2007-03-29 18:50:01 +0000610 160, 106, 107, 148, 108, 109, 110, 149, 111, 54,
611 54, 54, 54, 167, 112, 43, 113, 114, 42, 115,
612 105, 42, 156, 42, 42, 48, 46, 46, 46, 46,
613 42, 184, 162, 120, 121, 42, 122, 154, 123, 155,
614 124, 42, 125, 42, 41, 42, 126, 137, 137, 137,
615 137, 42, 174, 41, 41, 138, 42, 251, 166, 163,
616 42, 138, 48, 49, 49, 49, 49, 42, 139, 139,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000617 139, 139, 42, 42, 42, 139, 139, 42, 139, 139,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000618 139, 139, 139, 139, 42, 157, 42, 42, 158, 164,
619 42, 42, 42, 168, 169, 42, 165, 159, 42, 42,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000620
Reid Spencer3025dfd2007-03-29 18:50:01 +0000621 42, 42, 181, 42, 183, 42, 173, 175, 170, 186,
622 172, 176, 42, 42, 177, 178, 179, 182, 180, 185,
623 42, 187, 42, 188, 42, 42, 189, 42, 190, 42,
624 192, 42, 194, 197, 191, 196, 42, 42, 198, 42,
625 42, 42, 42, 42, 193, 199, 195, 42, 201, 204,
626 207, 211, 42, 203, 42, 42, 42, 205, 200, 209,
627 42, 218, 213, 217, 208, 202, 212, 42, 210, 206,
628 215, 42, 42, 216, 42, 223, 214, 42, 42, 42,
629 42, 219, 42, 42, 42, 221, 224, 226, 237, 220,
630 229, 42, 236, 231, 232, 225, 222, 241, 42, 42,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000631
Reid Spencer3025dfd2007-03-29 18:50:01 +0000632 42, 227, 228, 233, 230, 238, 234, 239, 42, 42,
633 42, 235, 42, 42, 240, 246, 246, 246, 246, 253,
634 242, 42, 243, 247, 255, 42, 42, 42, 244, 247,
635 137, 137, 137, 137, 42, 254, 258, 42, 138, 42,
636 252, 257, 261, 42, 138, 248, 249, 256, 250, 250,
637 250, 250, 42, 42, 42, 42, 42, 262, 42, 260,
638 259, 42, 42, 266, 42, 264, 42, 42, 267, 265,
639 263, 42, 273, 42, 42, 42, 42, 42, 42, 42,
640 268, 280, 42, 42, 269, 279, 270, 271, 42, 277,
641 272, 281, 275, 284, 283, 276, 278, 282, 285, 274,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000642
Reid Spencer3025dfd2007-03-29 18:50:01 +0000643 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
644 286, 42, 289, 291, 42, 42, 42, 42, 290, 295,
645 288, 42, 293, 42, 287, 42, 296, 292, 42, 42,
646 297, 303, 294, 42, 305, 299, 298, 300, 300, 300,
647 300, 302, 301, 306, 300, 300, 42, 300, 300, 300,
648 300, 300, 300, 304, 42, 42, 42, 42, 42, 42,
649 42, 42, 42, 42, 42, 307, 42, 42, 42, 324,
650 313, 308, 317, 312, 315, 322, 42, 310, 309, 314,
651 311, 42, 316, 42, 323, 319, 318, 42, 42, 42,
652 42, 320, 42, 321, 326, 328, 325, 42, 42, 42,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000653
Reid Spencer3025dfd2007-03-29 18:50:01 +0000654 330, 42, 42, 42, 327, 246, 246, 246, 246, 333,
655 337, 329, 392, 247, 363, 332, 334, 248, 248, 247,
656 331, 331, 331, 331, 331, 331, 331, 331, 250, 250,
657 250, 250, 42, 250, 250, 250, 250, 42, 42, 42,
658 42, 42, 42, 42, 42, 336, 42, 42, 340, 42,
659 42, 42, 42, 42, 42, 42, 335, 339, 342, 347,
660 42, 341, 348, 345, 338, 42, 344, 42, 349, 42,
661 42, 42, 346, 42, 343, 350, 356, 42, 351, 357,
662 354, 358, 42, 355, 42, 359, 42, 42, 352, 42,
663 353, 42, 42, 42, 42, 42, 42, 42, 42, 360,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000664
Reid Spencer3025dfd2007-03-29 18:50:01 +0000665 42, 42, 364, 362, 361, 373, 365, 367, 366, 374,
666 372, 375, 42, 42, 371, 42, 368, 42, 42, 370,
667 369, 378, 42, 376, 42, 377, 42, 379, 42, 42,
668 381, 42, 42, 42, 380, 382, 42, 383, 384, 331,
669 331, 331, 331, 42, 388, 42, 385, 42, 42, 391,
670 390, 386, 42, 395, 396, 387, 389, 42, 42, 42,
671 394, 42, 42, 42, 42, 399, 42, 42, 393, 398,
672 42, 42, 404, 402, 42, 405, 42, 42, 42, 397,
673 409, 400, 401, 42, 403, 406, 42, 42, 407, 42,
674 42, 42, 42, 410, 408, 42, 411, 42, 42, 42,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000675
Reid Spencer3025dfd2007-03-29 18:50:01 +0000676 412, 416, 419, 418, 42, 414, 42, 42, 417, 415,
677 413, 42, 421, 423, 422, 42, 42, 42, 42, 42,
678 42, 42, 420, 42, 42, 424, 427, 426, 42, 431,
679 429, 425, 433, 435, 42, 42, 428, 434, 42, 42,
680 432, 437, 430, 42, 42, 42, 42, 438, 436, 42,
681 42, 42, 42, 440, 42, 42, 439, 42, 451, 444,
682 448, 449, 442, 42, 42, 42, 42, 441, 42, 445,
683 446, 447, 457, 42, 443, 453, 454, 42, 450, 455,
684 452, 456, 42, 42, 42, 42, 42, 42, 42, 42,
685 458, 42, 42, 42, 462, 459, 463, 42, 467, 464,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000686
Reid Spencer3025dfd2007-03-29 18:50:01 +0000687 460, 461, 42, 465, 42, 468, 42, 42, 42, 42,
688 469, 466, 42, 42, 42, 42, 471, 470, 476, 477,
689 42, 42, 42, 475, 472, 42, 473, 42, 42, 479,
690 478, 480, 482, 474, 484, 42, 481, 42, 483, 42,
691 42, 488, 42, 42, 42, 485, 42, 487, 491, 489,
692 42, 42, 490, 486, 42, 493, 42, 42, 42, 42,
693 42, 497, 42, 42, 42, 42, 492, 503, 501, 494,
694 495, 504, 498, 502, 496, 499, 42, 42, 500, 507,
695 42, 42, 42, 506, 505, 42, 508, 509, 42, 42,
696 510, 512, 42, 42, 42, 42, 42, 514, 42, 42,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000697
Reid Spencer3025dfd2007-03-29 18:50:01 +0000698 517, 42, 519, 42, 42, 513, 511, 42, 42, 516,
699 42, 518, 42, 520, 524, 42, 515, 42, 521, 522,
700 526, 42, 42, 42, 527, 530, 42, 523, 528, 42,
701 42, 525, 42, 529, 42, 42, 532, 42, 536, 42,
702 42, 533, 535, 42, 42, 531, 537, 42, 534, 42,
703 42, 543, 538, 42, 42, 544, 540, 539, 42, 42,
704 42, 548, 542, 541, 549, 42, 42, 42, 547, 42,
705 42, 42, 42, 546, 545, 42, 42, 42, 42, 42,
706 550, 39, 39, 39, 39, 39, 41, 41, 51, 42,
707 51, 51, 51, 53, 53, 140, 140, 140, 140, 140,
Reid Spencer14310612006-12-31 05:40:51 +0000708
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000709 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
710 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
711 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
712 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
713 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
714 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
Reid Spencer67d8ed92007-03-22 02:14:08 +0000715 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
716 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000717 42, 42, 42, 42, 42, 42, 141, 42, 245, 42,
718 42, 42, 42, 141, 42, 133, 42, 40, 551, 3,
Chris Lattner75466192006-05-19 21:28:53 +0000719
Reid Spencer3025dfd2007-03-29 18:50:01 +0000720 551, 551, 551, 551, 551, 551, 551, 551, 551, 551,
721 551, 551, 551, 551, 551, 551, 551, 551, 551, 551,
722 551, 551, 551, 551, 551, 551, 551, 551, 551, 551,
723 551, 551, 551, 551, 551, 551, 551, 551, 551, 551,
724 551, 551, 551, 551
Reid Spencer68a24bd2005-08-27 18:50:39 +0000725 } ;
726
Reid Spencer3025dfd2007-03-29 18:50:01 +0000727static yyconst short int yy_chk[1245] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000728 { 0,
729 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
730 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
731 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
732 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000733 1, 1, 1, 1, 9, 9, 9, 9, 10, 10,
Reid Spencer3025dfd2007-03-29 18:50:01 +0000734 10, 10, 11, 11, 11, 11, 11, 12, 44, 44,
735 44, 44, 12, 13, 13, 13, 13, 13, 13, 14,
736 14, 14, 14, 14, 14, 16, 60, 17, 24, 19,
737 18, 16, 16, 16, 16, 19, 17, 19, 60, 21,
738 18, 31, 24, 17, 18, 17, 13, 17, 19, 20,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000739
Reid Spencer3025dfd2007-03-29 18:50:01 +0000740 17, 31, 18, 36, 23, 20, 38, 21, 30, 20,
741 21, 559, 28, 36, 23, 20, 38, 21, 20, 22,
742 23, 30, 28, 78, 47, 22, 69, 22, 22, 47,
743 27, 28, 30, 78, 26, 22, 27, 28, 55, 22,
744 26, 22, 25, 25, 25, 25, 25, 55, 26, 27,
745 33, 69, 35, 26, 25, 27, 33, 26, 35, 57,
746 37, 37, 56, 25, 25, 29, 58, 61, 57, 33,
747 557, 35, 33, 63, 64, 29, 56, 29, 56, 33,
748 37, 29, 64, 29, 68, 29, 58, 29, 32, 63,
749 59, 61, 32, 45, 45, 45, 45, 45, 66, 75,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000750
Reid Spencer3025dfd2007-03-29 18:50:01 +0000751 68, 32, 32, 59, 32, 32, 32, 59, 32, 54,
752 54, 54, 54, 75, 32, 554, 32, 32, 89, 32,
753 34, 65, 66, 70, 34, 46, 46, 46, 46, 46,
754 46, 89, 70, 34, 34, 72, 34, 65, 34, 65,
755 34, 74, 34, 81, 82, 144, 34, 48, 48, 48,
756 48, 48, 81, 82, 82, 48, 550, 144, 74, 72,
757 548, 48, 49, 49, 49, 49, 49, 49, 50, 50,
758 50, 50, 50, 73, 76, 50, 50, 67, 50, 50,
759 50, 50, 50, 50, 77, 67, 79, 80, 67, 73,
760 83, 84, 85, 76, 77, 86, 73, 67, 88, 87,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000761
Reid Spencer3025dfd2007-03-29 18:50:01 +0000762 91, 94, 86, 90, 88, 92, 80, 83, 77, 91,
763 79, 84, 95, 96, 85, 85, 85, 87, 85, 90,
764 97, 92, 98, 94, 104, 99, 94, 100, 95, 101,
765 97, 102, 98, 100, 96, 99, 103, 105, 101, 106,
766 108, 107, 110, 109, 97, 102, 98, 115, 104, 107,
767 108, 110, 111, 106, 113, 119, 114, 107, 103, 109,
768 112, 115, 111, 114, 108, 105, 110, 116, 109, 107,
769 112, 118, 120, 113, 121, 119, 111, 122, 123, 547,
770 124, 116, 126, 127, 125, 118, 120, 122, 127, 116,
771 124, 128, 126, 125, 125, 121, 118, 130, 131, 130,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000772
Reid Spencer3025dfd2007-03-29 18:50:01 +0000773 132, 122, 123, 125, 124, 128, 125, 128, 129, 147,
774 150, 125, 546, 148, 129, 135, 135, 135, 135, 147,
775 131, 145, 132, 135, 150, 152, 157, 154, 132, 135,
776 137, 137, 137, 137, 137, 148, 154, 155, 137, 151,
777 145, 152, 157, 158, 137, 138, 138, 151, 138, 138,
778 138, 138, 138, 156, 159, 160, 161, 158, 163, 156,
779 155, 164, 165, 161, 167, 160, 168, 166, 163, 160,
780 159, 169, 168, 170, 173, 172, 544, 175, 176, 171,
781 163, 173, 174, 177, 164, 172, 165, 166, 178, 171,
782 167, 174, 170, 177, 176, 170, 171, 175, 178, 169,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000783
Reid Spencer3025dfd2007-03-29 18:50:01 +0000784 179, 180, 181, 182, 183, 184, 185, 186, 189, 188,
785 179, 200, 181, 183, 190, 197, 203, 204, 182, 188,
786 180, 205, 185, 210, 179, 542, 189, 184, 541, 206,
787 190, 205, 186, 211, 210, 200, 197, 202, 202, 202,
788 202, 204, 203, 211, 202, 202, 212, 202, 202, 202,
789 202, 202, 202, 206, 215, 216, 218, 219, 220, 221,
790 224, 235, 223, 237, 222, 212, 228, 236, 539, 237,
791 220, 215, 223, 219, 222, 235, 244, 216, 215, 221,
792 218, 231, 222, 234, 236, 228, 224, 238, 239, 240,
793 241, 231, 243, 234, 239, 241, 238, 251, 253, 288,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000794
Reid Spencer3025dfd2007-03-29 18:50:01 +0000795 244, 252, 258, 334, 240, 246, 246, 246, 246, 252,
796 258, 243, 334, 246, 288, 251, 253, 247, 247, 246,
797 247, 247, 247, 247, 248, 248, 248, 248, 249, 249,
798 249, 249, 249, 250, 250, 250, 250, 250, 255, 256,
799 259, 260, 261, 262, 263, 256, 264, 266, 261, 265,
800 267, 273, 269, 268, 274, 276, 255, 260, 263, 268,
801 270, 262, 269, 266, 259, 275, 265, 279, 270, 281,
802 280, 283, 267, 284, 264, 273, 280, 285, 274, 281,
803 276, 283, 286, 279, 287, 284, 289, 290, 275, 293,
804 275, 294, 295, 296, 298, 299, 302, 303, 305, 285,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000805
Reid Spencer3025dfd2007-03-29 18:50:01 +0000806 526, 306, 289, 287, 286, 303, 290, 294, 293, 305,
807 302, 306, 307, 311, 299, 310, 295, 313, 314, 298,
808 296, 311, 316, 307, 319, 310, 320, 313, 322, 324,
809 316, 326, 321, 328, 314, 319, 329, 320, 321, 331,
810 331, 331, 331, 333, 328, 336, 322, 338, 339, 333,
811 329, 324, 337, 338, 339, 326, 328, 340, 342, 341,
812 337, 343, 344, 345, 347, 342, 346, 349, 336, 341,
813 355, 352, 347, 345, 353, 349, 354, 356, 357, 340,
814 355, 343, 344, 358, 346, 352, 360, 361, 353, 362,
815 365, 363, 367, 356, 354, 366, 357, 368, 369, 371,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000816
Reid Spencer3025dfd2007-03-29 18:50:01 +0000817 358, 363, 367, 366, 370, 361, 372, 373, 365, 362,
818 360, 374, 369, 371, 370, 375, 376, 378, 379, 380,
819 382, 386, 368, 389, 384, 372, 375, 374, 385, 380,
820 378, 373, 384, 386, 387, 388, 376, 385, 390, 392,
821 382, 388, 379, 393, 395, 396, 399, 389, 387, 397,
822 408, 400, 401, 392, 404, 403, 390, 415, 408, 397,
823 403, 403, 395, 409, 417, 412, 413, 393, 420, 399,
824 400, 401, 417, 414, 396, 412, 413, 421, 404, 414,
825 409, 415, 423, 424, 426, 427, 433, 436, 437, 438,
826 420, 439, 440, 442, 426, 421, 427, 443, 438, 433,
Chris Lattnere869eef2005-11-12 00:11:49 +0000827
Reid Spencer3025dfd2007-03-29 18:50:01 +0000828 423, 424, 446, 436, 447, 439, 448, 449, 450, 452,
829 440, 437, 453, 454, 456, 455, 443, 442, 450, 452,
830 458, 460, 457, 449, 446, 459, 447, 462, 466, 454,
831 453, 455, 457, 448, 459, 464, 456, 463, 458, 465,
832 467, 464, 468, 469, 471, 460, 472, 463, 467, 465,
833 473, 474, 466, 462, 478, 469, 476, 477, 479, 487,
834 520, 474, 494, 486, 488, 492, 468, 487, 479, 471,
835 472, 488, 476, 486, 473, 477, 490, 491, 478, 492,
836 498, 497, 499, 491, 490, 500, 494, 497, 501, 502,
837 498, 500, 503, 504, 505, 506, 507, 502, 509, 511,
Chris Lattner75466192006-05-19 21:28:53 +0000838
Reid Spencer3025dfd2007-03-29 18:50:01 +0000839 505, 510, 507, 512, 513, 501, 499, 514, 517, 504,
840 516, 506, 518, 509, 513, 521, 503, 519, 510, 511,
841 516, 522, 523, 524, 517, 521, 527, 512, 518, 525,
842 528, 514, 529, 519, 530, 531, 523, 532, 528, 533,
843 534, 524, 527, 535, 537, 522, 529, 536, 525, 538,
844 540, 535, 530, 543, 545, 536, 532, 531, 549, 515,
845 508, 543, 534, 533, 545, 496, 495, 493, 540, 489,
846 485, 484, 483, 538, 537, 482, 481, 480, 475, 470,
847 549, 552, 552, 552, 552, 552, 553, 553, 555, 461,
848 555, 555, 555, 556, 556, 558, 558, 558, 558, 558,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000849
Reid Spencer3025dfd2007-03-29 18:50:01 +0000850 451, 445, 444, 441, 435, 434, 432, 431, 430, 429,
851 428, 425, 422, 419, 418, 416, 411, 410, 407, 406,
852 405, 402, 398, 394, 391, 383, 381, 377, 364, 359,
853 351, 350, 348, 335, 332, 330, 327, 325, 323, 318,
854 317, 315, 312, 309, 308, 304, 301, 297, 292, 291,
855 282, 278, 277, 272, 271, 257, 254, 242, 233, 232,
856 230, 229, 227, 226, 225, 217, 214, 213, 209, 208,
857 207, 201, 199, 198, 196, 195, 194, 193, 192, 191,
858 187, 162, 153, 149, 146, 143, 140, 136, 133, 117,
859 93, 71, 62, 52, 41, 39, 8, 7, 3, 551,
Reid Spencer3da59db2006-11-27 01:05:10 +0000860
Reid Spencer3025dfd2007-03-29 18:50:01 +0000861 551, 551, 551, 551, 551, 551, 551, 551, 551, 551,
862 551, 551, 551, 551, 551, 551, 551, 551, 551, 551,
863 551, 551, 551, 551, 551, 551, 551, 551, 551, 551,
864 551, 551, 551, 551, 551, 551, 551, 551, 551, 551,
865 551, 551, 551, 551
Reid Spencer68a24bd2005-08-27 18:50:39 +0000866 } ;
867
Reid Spencer832254e2007-02-02 02:16:23 +0000868static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
869static char *yy_full_match;
870static int yy_lp;
871#define REJECT \
872{ \
873*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
874yy_cp = yy_full_match; /* restore poss. backed-over text */ \
875++yy_lp; \
876goto find_rule; \
877}
Reid Spencer68a24bd2005-08-27 18:50:39 +0000878#define yymore() yymore_used_but_not_detected
879#define YY_MORE_ADJ 0
880#define YY_RESTORE_YY_MORE_OFFSET
Reid Spencer832254e2007-02-02 02:16:23 +0000881char *yytext;
Reid Spencer38c91a92007-02-28 02:24:54 +0000882#line 1 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +0000883#define INITIAL 0
Reid Spencer68a24bd2005-08-27 18:50:39 +0000884/*===-- Lexer.l - Scanner for llvm assembly files --------------*- C++ -*--===//
885//
886// The LLVM Compiler Infrastructure
887//
888// This file was developed by the LLVM research group and is distributed under
889// the University of Illinois Open Source License. See LICENSE.TXT for details.
890//
891//===----------------------------------------------------------------------===//
892//
893// This file implements the flex scanner for LLVM assembly languages files.
894//
895//===----------------------------------------------------------------------===*/
Reid Spencer832254e2007-02-02 02:16:23 +0000896#define YY_NEVER_INTERACTIVE 1
Reid Spencer38c91a92007-02-28 02:24:54 +0000897#line 28 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +0000898#include "ParserInternals.h"
899#include "llvm/Module.h"
900#include <list>
901#include "llvmAsmParser.h"
902#include <cctype>
903#include <cstdlib>
904
905void set_scan_file(FILE * F){
Reid Spencer832254e2007-02-02 02:16:23 +0000906 yy_switch_to_buffer(yy_create_buffer( F, YY_BUF_SIZE ) );
Reid Spencer68a24bd2005-08-27 18:50:39 +0000907}
908void set_scan_string (const char * str) {
Reid Spencer832254e2007-02-02 02:16:23 +0000909 yy_scan_string (str);
Reid Spencer68a24bd2005-08-27 18:50:39 +0000910}
911
Reid Spencer3ed469c2006-11-02 20:25:50 +0000912// Construct a token value for a non-obsolete token
Reid Spencer68a24bd2005-08-27 18:50:39 +0000913#define RET_TOK(type, Enum, sym) \
Reid Spencera132e042006-12-03 05:46:11 +0000914 llvmAsmlval.type = Instruction::Enum; \
915 return sym
916
Reid Spencer3ed469c2006-11-02 20:25:50 +0000917// Construct a token value for an obsolete token
Reid Spencera132e042006-12-03 05:46:11 +0000918#define RET_TY(CTYPE, SYM) \
919 llvmAsmlval.PrimType = CTYPE;\
Reid Spencer481169e2006-12-01 00:33:46 +0000920 return SYM
Reid Spencer68a24bd2005-08-27 18:50:39 +0000921
922namespace llvm {
923
924// TODO: All of the static identifiers are figured out by the lexer,
925// these should be hashed to reduce the lexer size
926
927
928// atoull - Convert an ascii string of decimal digits into the unsigned long
929// long representation... this does not have to do input error checking,
930// because we know that the input will be matched by a suitable regex...
931//
932static uint64_t atoull(const char *Buffer) {
933 uint64_t Result = 0;
934 for (; *Buffer; Buffer++) {
935 uint64_t OldRes = Result;
936 Result *= 10;
937 Result += *Buffer-'0';
938 if (Result < OldRes) // Uh, oh, overflow detected!!!
Reid Spencer61c83e02006-08-18 08:43:06 +0000939 GenerateError("constant bigger than 64 bits detected!");
Reid Spencer68a24bd2005-08-27 18:50:39 +0000940 }
941 return Result;
942}
943
944static uint64_t HexIntToVal(const char *Buffer) {
945 uint64_t Result = 0;
946 for (; *Buffer; ++Buffer) {
947 uint64_t OldRes = Result;
948 Result *= 16;
949 char C = *Buffer;
950 if (C >= '0' && C <= '9')
951 Result += C-'0';
952 else if (C >= 'A' && C <= 'F')
953 Result += C-'A'+10;
954 else if (C >= 'a' && C <= 'f')
955 Result += C-'a'+10;
956
957 if (Result < OldRes) // Uh, oh, overflow detected!!!
Reid Spencer61c83e02006-08-18 08:43:06 +0000958 GenerateError("constant bigger than 64 bits detected!");
Reid Spencer68a24bd2005-08-27 18:50:39 +0000959 }
960 return Result;
961}
962
963
964// HexToFP - Convert the ascii string in hexidecimal format to the floating
965// point representation of it.
966//
967static double HexToFP(const char *Buffer) {
968 // Behave nicely in the face of C TBAA rules... see:
969 // http://www.nullstone.com/htmls/category/aliastyp.htm
970 union {
971 uint64_t UI;
972 double FP;
973 } UIntToFP;
974 UIntToFP.UI = HexIntToVal(Buffer);
975
976 assert(sizeof(double) == sizeof(uint64_t) &&
977 "Data sizes incompatible on this target!");
978 return UIntToFP.FP; // Cast Hex constant to double
979}
980
981
982// UnEscapeLexed - Run through the specified buffer and change \xx codes to the
983// appropriate character. If AllowNull is set to false, a \00 value will cause
984// an exception to be thrown.
985//
986// If AllowNull is set to true, the return value of the function points to the
987// last character of the string in memory.
988//
989char *UnEscapeLexed(char *Buffer, bool AllowNull) {
990 char *BOut = Buffer;
991 for (char *BIn = Buffer; *BIn; ) {
992 if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) {
993 char Tmp = BIn[3]; BIn[3] = 0; // Terminate string
994 *BOut = (char)strtol(BIn+1, 0, 16); // Convert to number
995 if (!AllowNull && !*BOut)
Reid Spencer61c83e02006-08-18 08:43:06 +0000996 GenerateError("String literal cannot accept \\00 escape!");
Reid Spencer68a24bd2005-08-27 18:50:39 +0000997
998 BIn[3] = Tmp; // Restore character
999 BIn += 3; // Skip over handled chars
1000 ++BOut;
1001 } else {
1002 *BOut++ = *BIn++;
1003 }
1004 }
1005
1006 return BOut;
1007}
1008
1009} // End llvm namespace
1010
1011using namespace llvm;
1012
1013#define YY_NEVER_INTERACTIVE 1
1014/* Comments start with a ; and go till end of line */
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001015/* Local Values and Type identifiers start with a % sign */
1016/* Global Value identifiers start with an @ sign */
Reid Spencer68a24bd2005-08-27 18:50:39 +00001017/* Label identifiers end with a colon */
1018/* Quoted names can contain any character except " and \ */
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001019/* LocalVarID/GlobalVarID: match an unnamed local variable slot ID. */
1020/* Integer types are specified with i and a bitwidth */
1021/* E[PN]Integer: match positive and negative literal integer values. */
Reid Spencer68a24bd2005-08-27 18:50:39 +00001022/* FPConstant - A Floating point constant.
1023 */
1024/* HexFPConstant - Floating point constant represented in IEEE format as a
1025 * hexadecimal number for when exponential notation is not precise enough.
1026 */
1027/* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
1028 * it to deal with 64 bit numbers.
1029 */
Reid Spencer3025dfd2007-03-29 18:50:01 +00001030#line 1031 "Lexer.cpp"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001031
1032/* Macros after this point can all be overridden by user definitions in
1033 * section 1.
1034 */
1035
1036#ifndef YY_SKIP_YYWRAP
1037#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001038extern "C" int yywrap YY_PROTO(( void ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001039#else
Reid Spencer832254e2007-02-02 02:16:23 +00001040extern int yywrap YY_PROTO(( void ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001041#endif
1042#endif
1043
Reid Spencer832254e2007-02-02 02:16:23 +00001044#ifndef YY_NO_UNPUT
1045static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1046#endif
1047
Reid Spencer68a24bd2005-08-27 18:50:39 +00001048#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00001049static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001050#endif
1051
1052#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00001053static int yy_flex_strlen YY_PROTO(( yyconst char * ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001054#endif
1055
1056#ifndef YY_NO_INPUT
1057#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001058static int yyinput YY_PROTO(( void ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001059#else
Reid Spencer832254e2007-02-02 02:16:23 +00001060static int input YY_PROTO(( void ));
1061#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00001062#endif
1063
Reid Spencer832254e2007-02-02 02:16:23 +00001064#if YY_STACK_USED
1065static int yy_start_stack_ptr = 0;
1066static int yy_start_stack_depth = 0;
1067static int *yy_start_stack = 0;
1068#ifndef YY_NO_PUSH_STATE
1069static void yy_push_state YY_PROTO(( int new_state ));
1070#endif
1071#ifndef YY_NO_POP_STATE
1072static void yy_pop_state YY_PROTO(( void ));
1073#endif
1074#ifndef YY_NO_TOP_STATE
1075static int yy_top_state YY_PROTO(( void ));
1076#endif
1077
1078#else
1079#define YY_NO_PUSH_STATE 1
1080#define YY_NO_POP_STATE 1
1081#define YY_NO_TOP_STATE 1
1082#endif
1083
1084#ifdef YY_MALLOC_DECL
1085YY_MALLOC_DECL
1086#else
1087#if __STDC__
1088#ifndef __cplusplus
1089#include <stdlib.h>
1090#endif
1091#else
1092/* Just try to get by without declaring the routines. This will fail
1093 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1094 * or sizeof(void*) != sizeof(int).
1095 */
1096#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00001097#endif
1098
1099/* Amount of stuff to slurp up with each read. */
1100#ifndef YY_READ_BUF_SIZE
1101#define YY_READ_BUF_SIZE 8192
1102#endif
1103
1104/* Copy whatever the last rule matched to the standard output. */
Reid Spencer832254e2007-02-02 02:16:23 +00001105
Reid Spencer68a24bd2005-08-27 18:50:39 +00001106#ifndef ECHO
1107/* This used to be an fputs(), but since the string might contain NUL's,
1108 * we now use fwrite().
1109 */
Reid Spencer832254e2007-02-02 02:16:23 +00001110#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001111#endif
1112
1113/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1114 * is returned in "result".
1115 */
1116#ifndef YY_INPUT
1117#define YY_INPUT(buf,result,max_size) \
Reid Spencer832254e2007-02-02 02:16:23 +00001118 if ( yy_current_buffer->yy_is_interactive ) \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001119 { \
Reid Spencer832254e2007-02-02 02:16:23 +00001120 int c = '*', n; \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001121 for ( n = 0; n < max_size && \
Reid Spencer832254e2007-02-02 02:16:23 +00001122 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001123 buf[n] = (char) c; \
1124 if ( c == '\n' ) \
1125 buf[n++] = (char) c; \
Reid Spencer832254e2007-02-02 02:16:23 +00001126 if ( c == EOF && ferror( yyin ) ) \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001127 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1128 result = n; \
1129 } \
Reid Spencer832254e2007-02-02 02:16:23 +00001130 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1131 && ferror( yyin ) ) \
1132 YY_FATAL_ERROR( "input in flex scanner failed" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00001133#endif
1134
1135/* No semi-colon after return; correct usage is to write "yyterminate();" -
1136 * we don't want an extra ';' after the "return" because that will cause
1137 * some compilers to complain about unreachable statements.
1138 */
1139#ifndef yyterminate
1140#define yyterminate() return YY_NULL
1141#endif
1142
1143/* Number of entries by which start-condition stack grows. */
1144#ifndef YY_START_STACK_INCR
1145#define YY_START_STACK_INCR 25
1146#endif
1147
1148/* Report a fatal error. */
1149#ifndef YY_FATAL_ERROR
1150#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1151#endif
1152
1153/* Default declaration of generated scanner - a define so the user can
1154 * easily add parameters.
1155 */
1156#ifndef YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001157#define YY_DECL int yylex YY_PROTO(( void ))
1158#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00001159
Reid Spencer832254e2007-02-02 02:16:23 +00001160/* Code executed at the beginning of each rule, after yytext and yyleng
Reid Spencer68a24bd2005-08-27 18:50:39 +00001161 * have been set up.
1162 */
1163#ifndef YY_USER_ACTION
1164#define YY_USER_ACTION
1165#endif
1166
1167/* Code executed at the end of each rule. */
1168#ifndef YY_BREAK
1169#define YY_BREAK break;
1170#endif
1171
1172#define YY_RULE_SETUP \
1173 YY_USER_ACTION
1174
1175YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001176 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00001177 register yy_state_type yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00001178 register char *yy_cp = NULL, *yy_bp = NULL;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001179 register int yy_act;
Reid Spencer832254e2007-02-02 02:16:23 +00001180
Reid Spencer38c91a92007-02-28 02:24:54 +00001181#line 190 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001182
1183
Reid Spencer3025dfd2007-03-29 18:50:01 +00001184#line 1185 "Lexer.cpp"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001185
Reid Spencer832254e2007-02-02 02:16:23 +00001186 if ( yy_init )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001187 {
Reid Spencer832254e2007-02-02 02:16:23 +00001188 yy_init = 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001189
1190#ifdef YY_USER_INIT
1191 YY_USER_INIT;
1192#endif
1193
Reid Spencer832254e2007-02-02 02:16:23 +00001194 if ( ! yy_start )
1195 yy_start = 1; /* first start state */
Reid Spencer68a24bd2005-08-27 18:50:39 +00001196
Reid Spencer832254e2007-02-02 02:16:23 +00001197 if ( ! yyin )
1198 yyin = stdin;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001199
Reid Spencer832254e2007-02-02 02:16:23 +00001200 if ( ! yyout )
1201 yyout = stdout;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001202
Reid Spencer832254e2007-02-02 02:16:23 +00001203 if ( ! yy_current_buffer )
1204 yy_current_buffer =
1205 yy_create_buffer( yyin, YY_BUF_SIZE );
Reid Spencer68a24bd2005-08-27 18:50:39 +00001206
Reid Spencer832254e2007-02-02 02:16:23 +00001207 yy_load_buffer_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00001208 }
1209
1210 while ( 1 ) /* loops until end-of-file is reached */
1211 {
Reid Spencer832254e2007-02-02 02:16:23 +00001212 yy_cp = yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001213
Reid Spencer832254e2007-02-02 02:16:23 +00001214 /* Support of yytext. */
1215 *yy_cp = yy_hold_char;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001216
1217 /* yy_bp points to the position in yy_ch_buf of the start of
1218 * the current run.
1219 */
1220 yy_bp = yy_cp;
1221
Reid Spencer832254e2007-02-02 02:16:23 +00001222 yy_current_state = yy_start;
1223 yy_state_ptr = yy_state_buf;
1224 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001225yy_match:
1226 do
1227 {
1228 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1229 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1230 {
1231 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer3025dfd2007-03-29 18:50:01 +00001232 if ( yy_current_state >= 552 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001233 yy_c = yy_meta[(unsigned int) yy_c];
1234 }
1235 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00001236 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001237 ++yy_cp;
1238 }
Reid Spencer3025dfd2007-03-29 18:50:01 +00001239 while ( yy_current_state != 551 );
Reid Spencer68a24bd2005-08-27 18:50:39 +00001240
1241yy_find_action:
Reid Spencer832254e2007-02-02 02:16:23 +00001242 yy_current_state = *--yy_state_ptr;
1243 yy_lp = yy_accept[yy_current_state];
1244find_rule: /* we branch to this label when backing up */
1245 for ( ; ; ) /* until we find what rule we matched */
1246 {
1247 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1248 {
1249 yy_act = yy_acclist[yy_lp];
1250 {
1251 yy_full_match = yy_cp;
1252 break;
1253 }
1254 }
1255 --yy_cp;
1256 yy_current_state = *--yy_state_ptr;
1257 yy_lp = yy_accept[yy_current_state];
1258 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001259
1260 YY_DO_BEFORE_ACTION;
1261
Reid Spencer832254e2007-02-02 02:16:23 +00001262 if ( yy_act != YY_END_OF_BUFFER )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001263 {
1264 int yyl;
Reid Spencer832254e2007-02-02 02:16:23 +00001265 for ( yyl = 0; yyl < yyleng; ++yyl )
1266 if ( yytext[yyl] == '\n' )
1267 ++yylineno;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001268 }
1269
1270do_action: /* This label is used only to access EOF actions. */
1271
Reid Spencer832254e2007-02-02 02:16:23 +00001272
Reid Spencer68a24bd2005-08-27 18:50:39 +00001273 switch ( yy_act )
1274 { /* beginning of action switch */
1275case 1:
1276YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001277#line 192 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001278{ /* Ignore comments for now */ }
1279 YY_BREAK
1280case 2:
1281YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001282#line 194 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001283{ return BEGINTOK; }
1284 YY_BREAK
1285case 3:
1286YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001287#line 195 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001288{ return ENDTOK; }
1289 YY_BREAK
1290case 4:
1291YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001292#line 196 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001293{ return TRUETOK; }
1294 YY_BREAK
1295case 5:
1296YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001297#line 197 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001298{ return FALSETOK; }
1299 YY_BREAK
1300case 6:
1301YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001302#line 198 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001303{ return DECLARE; }
1304 YY_BREAK
1305case 7:
1306YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001307#line 199 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001308{ return DEFINE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001309 YY_BREAK
1310case 8:
1311YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001312#line 200 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001313{ return GLOBAL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001314 YY_BREAK
1315case 9:
1316YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001317#line 201 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001318{ return CONSTANT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001319 YY_BREAK
1320case 10:
1321YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001322#line 202 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001323{ return INTERNAL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001324 YY_BREAK
1325case 11:
1326YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001327#line 203 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001328{ return LINKONCE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001329 YY_BREAK
1330case 12:
1331YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001332#line 204 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001333{ return WEAK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001334 YY_BREAK
1335case 13:
1336YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001337#line 205 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001338{ return APPENDING; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001339 YY_BREAK
1340case 14:
1341YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001342#line 206 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001343{ return DLLIMPORT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001344 YY_BREAK
1345case 15:
1346YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001347#line 207 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001348{ return DLLEXPORT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001349 YY_BREAK
1350case 16:
1351YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001352#line 208 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001353{ return HIDDEN; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001354 YY_BREAK
1355case 17:
1356YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001357#line 209 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001358{ return EXTERN_WEAK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001359 YY_BREAK
1360case 18:
1361YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001362#line 210 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001363{ return EXTERNAL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001364 YY_BREAK
1365case 19:
1366YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001367#line 211 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer3025dfd2007-03-29 18:50:01 +00001368{ return IMPLEMENTATION; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001369 YY_BREAK
1370case 20:
1371YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001372#line 212 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001373{ return ZEROINITIALIZER; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001374 YY_BREAK
1375case 21:
1376YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001377#line 213 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001378{ return DOTDOTDOT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001379 YY_BREAK
1380case 22:
1381YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001382#line 214 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001383{ return UNDEF; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001384 YY_BREAK
1385case 23:
1386YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001387#line 215 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001388{ return NULL_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001389 YY_BREAK
1390case 24:
1391YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001392#line 216 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001393{ return TO; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001394 YY_BREAK
1395case 25:
1396YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001397#line 217 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001398{ return TAIL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001399 YY_BREAK
1400case 26:
1401YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001402#line 218 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001403{ return TARGET; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001404 YY_BREAK
1405case 27:
1406YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001407#line 219 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001408{ return TRIPLE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001409 YY_BREAK
1410case 28:
1411YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001412#line 220 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov178a3522007-01-12 19:22:51 +00001413{ return DEPLIBS; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001414 YY_BREAK
1415case 29:
1416YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001417#line 221 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001418{ return DATALAYOUT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001419 YY_BREAK
1420case 30:
1421YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001422#line 222 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001423{ return VOLATILE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001424 YY_BREAK
1425case 31:
1426YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001427#line 223 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001428{ return ALIGN; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001429 YY_BREAK
1430case 32:
1431YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001432#line 224 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001433{ return SECTION; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001434 YY_BREAK
1435case 33:
1436YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001437#line 225 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001438{ return MODULE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001439 YY_BREAK
1440case 34:
1441YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001442#line 226 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001443{ return ASM_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001444 YY_BREAK
1445case 35:
1446YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001447#line 227 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001448{ return SIDEEFFECT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001449 YY_BREAK
1450case 36:
1451YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001452#line 229 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001453{ return CC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001454 YY_BREAK
1455case 37:
1456YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001457#line 230 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer41dff5e2007-01-26 08:05:27 +00001458{ return CCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001459 YY_BREAK
1460case 38:
1461YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001462#line 231 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001463{ return FASTCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001464 YY_BREAK
1465case 39:
1466YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001467#line 232 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001468{ return COLDCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001469 YY_BREAK
1470case 40:
1471YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001472#line 233 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001473{ return X86_STDCALLCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001474 YY_BREAK
1475case 41:
1476YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001477#line 234 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001478{ return X86_FASTCALLCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001479 YY_BREAK
1480case 42:
1481YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001482#line 236 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001483{ return INREG; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001484 YY_BREAK
1485case 43:
1486YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001487#line 237 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001488{ return SRET; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001489 YY_BREAK
1490case 44:
1491YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001492#line 238 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1493{ return NOUNWIND; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001494 YY_BREAK
1495case 45:
1496YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001497#line 239 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1498{ return NORETURN; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001499 YY_BREAK
1500case 46:
1501YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001502#line 241 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001503{ RET_TY(Type::VoidTy, VOID); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001504 YY_BREAK
1505case 47:
1506YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001507#line 242 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001508{ RET_TY(Type::FloatTy, FLOAT); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001509 YY_BREAK
1510case 48:
1511YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001512#line 243 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001513{ RET_TY(Type::DoubleTy,DOUBLE);}
Reid Spencer832254e2007-02-02 02:16:23 +00001514 YY_BREAK
1515case 49:
1516YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001517#line 244 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001518{ RET_TY(Type::LabelTy, LABEL); }
Reid Spencer832254e2007-02-02 02:16:23 +00001519 YY_BREAK
1520case 50:
1521YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001522#line 245 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001523{ return TYPE; }
1524 YY_BREAK
1525case 51:
1526YY_RULE_SETUP
1527#line 246 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1528{ return OPAQUE; }
1529 YY_BREAK
1530case 52:
1531YY_RULE_SETUP
1532#line 247 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00001533{ uint64_t NumBits = atoull(yytext+1);
Reid Spencera54b7cb2007-01-12 07:05:14 +00001534 if (NumBits < IntegerType::MIN_INT_BITS ||
1535 NumBits > IntegerType::MAX_INT_BITS)
1536 GenerateError("Bitwidth for integer type out of range!");
1537 const Type* Ty = IntegerType::get(NumBits);
1538 RET_TY(Ty, INTTYPE);
1539 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001540 YY_BREAK
Reid Spencer41dff5e2007-01-26 08:05:27 +00001541case 53:
1542YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001543#line 255 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001544{ RET_TOK(BinaryOpVal, Add, ADD); }
Reid Spencer41dff5e2007-01-26 08:05:27 +00001545 YY_BREAK
Reid Spencer6f407902007-01-13 05:00:46 +00001546case 54:
1547YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001548#line 256 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001549{ RET_TOK(BinaryOpVal, Sub, SUB); }
Reid Spencer6f407902007-01-13 05:00:46 +00001550 YY_BREAK
Reid Spencer68a24bd2005-08-27 18:50:39 +00001551case 55:
1552YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001553#line 257 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001554{ RET_TOK(BinaryOpVal, Mul, MUL); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001555 YY_BREAK
1556case 56:
1557YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001558#line 258 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001559{ RET_TOK(BinaryOpVal, UDiv, UDIV); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001560 YY_BREAK
1561case 57:
1562YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001563#line 259 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001564{ RET_TOK(BinaryOpVal, SDiv, SDIV); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001565 YY_BREAK
1566case 58:
1567YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001568#line 260 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001569{ RET_TOK(BinaryOpVal, FDiv, FDIV); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001570 YY_BREAK
1571case 59:
1572YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001573#line 261 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001574{ RET_TOK(BinaryOpVal, URem, UREM); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001575 YY_BREAK
1576case 60:
1577YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001578#line 262 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001579{ RET_TOK(BinaryOpVal, SRem, SREM); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001580 YY_BREAK
1581case 61:
1582YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001583#line 263 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001584{ RET_TOK(BinaryOpVal, FRem, FREM); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001585 YY_BREAK
1586case 62:
1587YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001588#line 264 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001589{ RET_TOK(BinaryOpVal, Shl, SHL); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001590 YY_BREAK
1591case 63:
1592YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001593#line 265 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001594{ RET_TOK(BinaryOpVal, LShr, LSHR); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001595 YY_BREAK
1596case 64:
1597YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001598#line 266 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001599{ RET_TOK(BinaryOpVal, AShr, ASHR); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001600 YY_BREAK
1601case 65:
1602YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001603#line 267 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001604{ RET_TOK(BinaryOpVal, And, AND); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001605 YY_BREAK
1606case 66:
1607YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001608#line 268 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001609{ RET_TOK(BinaryOpVal, Or , OR ); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001610 YY_BREAK
1611case 67:
1612YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001613#line 269 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001614{ RET_TOK(BinaryOpVal, Xor, XOR); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001615 YY_BREAK
1616case 68:
1617YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001618#line 270 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1619{ RET_TOK(OtherOpVal, ICmp, ICMP); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001620 YY_BREAK
1621case 69:
1622YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001623#line 271 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1624{ RET_TOK(OtherOpVal, FCmp, FCMP); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001625 YY_BREAK
1626case 70:
1627YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001628#line 273 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001629{ return EQ; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001630 YY_BREAK
1631case 71:
1632YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001633#line 274 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001634{ return NE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001635 YY_BREAK
1636case 72:
1637YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001638#line 275 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001639{ return SLT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001640 YY_BREAK
1641case 73:
1642YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001643#line 276 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001644{ return SGT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001645 YY_BREAK
1646case 74:
1647YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001648#line 277 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001649{ return SLE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001650 YY_BREAK
1651case 75:
1652YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001653#line 278 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001654{ return SGE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001655 YY_BREAK
1656case 76:
1657YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001658#line 279 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001659{ return ULT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001660 YY_BREAK
1661case 77:
1662YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001663#line 280 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001664{ return UGT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001665 YY_BREAK
1666case 78:
1667YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001668#line 281 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001669{ return ULE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001670 YY_BREAK
1671case 79:
1672YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001673#line 282 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001674{ return UGE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001675 YY_BREAK
1676case 80:
1677YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001678#line 283 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001679{ return OEQ; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001680 YY_BREAK
1681case 81:
1682YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001683#line 284 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001684{ return ONE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001685 YY_BREAK
1686case 82:
1687YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001688#line 285 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001689{ return OLT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001690 YY_BREAK
1691case 83:
1692YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001693#line 286 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001694{ return OGT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001695 YY_BREAK
1696case 84:
1697YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001698#line 287 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001699{ return OLE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001700 YY_BREAK
1701case 85:
1702YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001703#line 288 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001704{ return OGE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001705 YY_BREAK
1706case 86:
1707YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001708#line 289 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001709{ return ORD; }
Nate Begeman14b05292005-11-05 09:21:28 +00001710 YY_BREAK
1711case 87:
1712YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001713#line 290 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001714{ return UNO; }
Chris Lattnere869eef2005-11-12 00:11:49 +00001715 YY_BREAK
1716case 88:
1717YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001718#line 291 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1719{ return UEQ; }
Robert Bocchino9c62b562006-01-10 19:04:32 +00001720 YY_BREAK
1721case 89:
1722YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001723#line 292 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1724{ return UNE; }
Robert Bocchino2def1b32006-01-17 20:06:25 +00001725 YY_BREAK
1726case 90:
1727YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001728#line 294 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001729{ RET_TOK(OtherOpVal, PHI, PHI_TOK); }
Chris Lattner8335e842006-01-23 23:05:42 +00001730 YY_BREAK
1731case 91:
1732YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001733#line 295 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001734{ RET_TOK(OtherOpVal, Call, CALL); }
Chris Lattner66316012006-01-24 04:14:29 +00001735 YY_BREAK
1736case 92:
1737YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001738#line 296 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001739{ RET_TOK(CastOpVal, Trunc, TRUNC); }
Chris Lattner0e9c3762006-01-25 22:27:16 +00001740 YY_BREAK
1741case 93:
1742YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001743#line 297 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001744{ RET_TOK(CastOpVal, ZExt, ZEXT); }
Chris Lattnerd5efe842006-04-08 01:18:56 +00001745 YY_BREAK
1746case 94:
1747YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001748#line 298 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001749{ RET_TOK(CastOpVal, SExt, SEXT); }
Chris Lattner75466192006-05-19 21:28:53 +00001750 YY_BREAK
1751case 95:
1752YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001753#line 299 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001754{ RET_TOK(CastOpVal, FPTrunc, FPTRUNC); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001755 YY_BREAK
Chris Lattner75466192006-05-19 21:28:53 +00001756case 96:
Reid Spencer68a24bd2005-08-27 18:50:39 +00001757YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001758#line 300 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001759{ RET_TOK(CastOpVal, FPExt, FPEXT); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001760 YY_BREAK
Chris Lattner75466192006-05-19 21:28:53 +00001761case 97:
Reid Spencer68a24bd2005-08-27 18:50:39 +00001762YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001763#line 301 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001764{ RET_TOK(CastOpVal, UIToFP, UITOFP); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001765 YY_BREAK
Chris Lattner75466192006-05-19 21:28:53 +00001766case 98:
Reid Spencer68a24bd2005-08-27 18:50:39 +00001767YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001768#line 302 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001769{ RET_TOK(CastOpVal, SIToFP, SITOFP); }
Anton Korobeynikovbcb97702006-09-17 20:25:45 +00001770 YY_BREAK
1771case 99:
1772YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001773#line 303 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001774{ RET_TOK(CastOpVal, FPToUI, FPTOUI); }
Anton Korobeynikovbcb97702006-09-17 20:25:45 +00001775 YY_BREAK
1776case 100:
1777YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001778#line 304 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001779{ RET_TOK(CastOpVal, FPToSI, FPTOSI); }
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001780 YY_BREAK
Anton Korobeynikovbcb97702006-09-17 20:25:45 +00001781case 101:
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001782YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001783#line 305 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001784{ RET_TOK(CastOpVal, IntToPtr, INTTOPTR); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001785 YY_BREAK
1786case 102:
1787YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001788#line 306 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001789{ RET_TOK(CastOpVal, PtrToInt, PTRTOINT); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001790 YY_BREAK
1791case 103:
1792YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001793#line 307 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001794{ RET_TOK(CastOpVal, BitCast, BITCAST); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001795 YY_BREAK
1796case 104:
1797YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001798#line 308 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001799{ RET_TOK(OtherOpVal, Select, SELECT); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001800 YY_BREAK
1801case 105:
1802YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001803#line 309 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001804{ RET_TOK(OtherOpVal, VAArg , VAARG); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001805 YY_BREAK
1806case 106:
1807YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001808#line 310 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001809{ RET_TOK(TermOpVal, Ret, RET); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001810 YY_BREAK
1811case 107:
1812YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001813#line 311 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001814{ RET_TOK(TermOpVal, Br, BR); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001815 YY_BREAK
1816case 108:
1817YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001818#line 312 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001819{ RET_TOK(TermOpVal, Switch, SWITCH); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001820 YY_BREAK
1821case 109:
1822YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001823#line 313 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001824{ RET_TOK(TermOpVal, Invoke, INVOKE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001825 YY_BREAK
1826case 110:
1827YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001828#line 314 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1829{ RET_TOK(TermOpVal, Unwind, UNWIND); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001830 YY_BREAK
1831case 111:
1832YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001833#line 315 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1834{ RET_TOK(TermOpVal, Unreachable, UNREACHABLE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001835 YY_BREAK
1836case 112:
1837YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001838#line 317 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001839{ RET_TOK(MemOpVal, Malloc, MALLOC); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001840 YY_BREAK
1841case 113:
1842YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001843#line 318 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001844{ RET_TOK(MemOpVal, Alloca, ALLOCA); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001845 YY_BREAK
1846case 114:
1847YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001848#line 319 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001849{ RET_TOK(MemOpVal, Free, FREE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001850 YY_BREAK
1851case 115:
1852YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001853#line 320 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001854{ RET_TOK(MemOpVal, Load, LOAD); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001855 YY_BREAK
1856case 116:
1857YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001858#line 321 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1859{ RET_TOK(MemOpVal, Store, STORE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001860 YY_BREAK
1861case 117:
1862YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001863#line 322 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1864{ RET_TOK(MemOpVal, GetElementPtr, GETELEMENTPTR); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001865 YY_BREAK
1866case 118:
1867YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00001868#line 324 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00001869{ RET_TOK(OtherOpVal, ExtractElement, EXTRACTELEMENT); }
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001870 YY_BREAK
Reid Spencer41dff5e2007-01-26 08:05:27 +00001871case 119:
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001872YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001873#line 325 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1874{ RET_TOK(OtherOpVal, InsertElement, INSERTELEMENT); }
1875 YY_BREAK
1876case 120:
1877YY_RULE_SETUP
1878#line 326 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
1879{ RET_TOK(OtherOpVal, ShuffleVector, SHUFFLEVECTOR); }
1880 YY_BREAK
1881case 121:
1882YY_RULE_SETUP
1883#line 329 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001884{
Reid Spencer832254e2007-02-02 02:16:23 +00001885 UnEscapeLexed(yytext+1);
1886 llvmAsmlval.StrVal = strdup(yytext+1); // Skip %
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001887 return LOCALVAR;
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001888 }
1889 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00001890case 122:
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001891YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001892#line 334 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Owen Anderson1dc69692006-10-18 02:21:48 +00001893{
Reid Spencer832254e2007-02-02 02:16:23 +00001894 UnEscapeLexed(yytext+1);
1895 llvmAsmlval.StrVal = strdup(yytext+1); // Skip @
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001896 return GLOBALVAR;
Owen Anderson1dc69692006-10-18 02:21:48 +00001897 }
1898 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00001899case 123:
Owen Anderson1dc69692006-10-18 02:21:48 +00001900YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001901#line 339 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001902{
Reid Spencer832254e2007-02-02 02:16:23 +00001903 yytext[strlen(yytext)-1] = 0; // nuke colon
1904 UnEscapeLexed(yytext);
1905 llvmAsmlval.StrVal = strdup(yytext);
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001906 return LABELSTR;
1907 }
1908 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00001909case 124:
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001910YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001911#line 345 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001912{
Reid Spencer832254e2007-02-02 02:16:23 +00001913 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
1914 UnEscapeLexed(yytext+1);
1915 llvmAsmlval.StrVal = strdup(yytext+1);
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001916 return LABELSTR;
1917 }
1918 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00001919case 125:
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001920YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001921#line 352 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001922{ // Note that we cannot unescape a string constant here! The
1923 // string constant might contain a \00 which would not be
1924 // understood by the string stuff. It is valid to make a
1925 // [sbyte] c"Hello World\00" constant, for example.
1926 //
Reid Spencer832254e2007-02-02 02:16:23 +00001927 yytext[strlen(yytext)-1] = 0; // nuke end quote
1928 llvmAsmlval.StrVal = strdup(yytext+1); // Nuke start quote
Reid Spencer68a24bd2005-08-27 18:50:39 +00001929 return STRINGCONSTANT;
1930 }
1931 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00001932case 126:
Reid Spencer6f407902007-01-13 05:00:46 +00001933YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001934#line 361 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001935{
Reid Spencer832254e2007-02-02 02:16:23 +00001936 yytext[strlen(yytext)-1] = 0; // nuke end quote
1937 llvmAsmlval.StrVal = strdup(yytext+2); // Nuke @, quote
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001938 return ATSTRINGCONSTANT;
1939 }
1940 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00001941case 127:
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001942YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001943#line 367 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer38c91a92007-02-28 02:24:54 +00001944{ int len = strlen(yytext);
1945 uint32_t numBits = ((len * 64) / 19) + 1;
1946 APInt Tmp(numBits, yytext, len, 10);
1947 uint32_t activeBits = Tmp.getActiveBits();
1948 if (activeBits > 0 && activeBits < numBits)
1949 Tmp.trunc(activeBits);
1950 if (Tmp.getBitWidth() > 64) {
1951 llvmAsmlval.APIntVal = new APInt(Tmp);
1952 return EUAPINTVAL;
1953 } else {
1954 llvmAsmlval.UInt64Val = Tmp.getZExtValue();
1955 return EUINT64VAL;
1956 }
1957 }
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001958 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00001959case 128:
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001960YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001961#line 381 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer38c91a92007-02-28 02:24:54 +00001962{ int len = strlen(yytext);
Reid Spencerafc37822007-03-09 21:19:09 +00001963 uint32_t numBits = (((len-1) * 64) / 19) + 2;
Reid Spencer38c91a92007-02-28 02:24:54 +00001964 APInt Tmp(numBits, yytext, len, 10);
1965 uint32_t minBits = Tmp.getMinSignedBits();
1966 if (minBits > 0 && minBits < numBits)
1967 Tmp.trunc(minBits);
1968 if (Tmp.getBitWidth() > 64) {
1969 llvmAsmlval.APIntVal = new APInt(Tmp);
1970 return ESAPINTVAL;
1971 } else {
1972 llvmAsmlval.SInt64Val = Tmp.getSExtValue();
1973 return ESINT64VAL;
1974 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001975 }
1976 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00001977case 129:
Reid Spencer6f407902007-01-13 05:00:46 +00001978YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00001979#line 396 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer38c91a92007-02-28 02:24:54 +00001980{ int len = strlen(yytext+3) - 3;
1981 uint32_t bits = len * 4;
1982 APInt Tmp(bits, yytext+3, len, 16);
1983 uint32_t activeBits = Tmp.getActiveBits();
1984 if (activeBits > 0 && activeBits < bits)
1985 Tmp.trunc(activeBits);
1986 if (Tmp.getBitWidth() > 64) {
1987 llvmAsmlval.APIntVal = new APInt(Tmp);
1988 return yytext[0] == 's' ? ESAPINTVAL : EUAPINTVAL;
1989 } else if (yytext[0] == 's') {
1990 llvmAsmlval.SInt64Val = Tmp.getSExtValue();
1991 return ESINT64VAL;
1992 } else {
1993 llvmAsmlval.UInt64Val = Tmp.getZExtValue();
1994 return EUINT64VAL;
1995 }
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00001996 }
Reid Spencer6f407902007-01-13 05:00:46 +00001997 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00001998case 130:
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001999YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00002000#line 414 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00002001{
Reid Spencer832254e2007-02-02 02:16:23 +00002002 uint64_t Val = atoull(yytext+1);
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002003 if ((unsigned)Val != Val)
2004 GenerateError("Invalid value number (too large)!");
2005 llvmAsmlval.UIntVal = unsigned(Val);
2006 return LOCALVAL_ID;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002007 }
2008 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00002009case 131:
Owen Anderson1dc69692006-10-18 02:21:48 +00002010YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00002011#line 421 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002012{
Reid Spencer832254e2007-02-02 02:16:23 +00002013 uint64_t Val = atoull(yytext+1);
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002014 if ((unsigned)Val != Val)
2015 GenerateError("Invalid value number (too large)!");
2016 llvmAsmlval.UIntVal = unsigned(Val);
2017 return GLOBALVAL_ID;
2018 }
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002019 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00002020case 132:
Reid Spencer6f407902007-01-13 05:00:46 +00002021YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00002022#line 429 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002023{ llvmAsmlval.FPVal = atof(yytext); return FPVAL; }
Reid Spencer6f407902007-01-13 05:00:46 +00002024 YY_BREAK
Reid Spencer67d8ed92007-03-22 02:14:08 +00002025case 133:
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002026YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00002027#line 430 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer832254e2007-02-02 02:16:23 +00002028{ llvmAsmlval.FPVal = HexToFP(yytext); return FPVAL; }
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002029 YY_BREAK
2030case YY_STATE_EOF(INITIAL):
Reid Spencer67d8ed92007-03-22 02:14:08 +00002031#line 432 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002032{
2033 /* Make sure to free the internal buffers for flex when we are
2034 * done reading our input!
2035 */
Reid Spencer832254e2007-02-02 02:16:23 +00002036 yy_delete_buffer(YY_CURRENT_BUFFER);
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002037 return EOF;
2038 }
2039 YY_BREAK
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002040case 134:
2041YY_RULE_SETUP
Reid Spencer67d8ed92007-03-22 02:14:08 +00002042#line 440 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
2043{ /* Ignore whitespace */ }
2044 YY_BREAK
2045case 135:
2046YY_RULE_SETUP
Reid Spencer38c91a92007-02-28 02:24:54 +00002047#line 441 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer67d8ed92007-03-22 02:14:08 +00002048{ return yytext[0]; }
2049 YY_BREAK
2050case 136:
2051YY_RULE_SETUP
2052#line 443 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00002053YY_FATAL_ERROR( "flex scanner jammed" );
2054 YY_BREAK
Reid Spencer3025dfd2007-03-29 18:50:01 +00002055#line 2056 "Lexer.cpp"
Reid Spencer68a24bd2005-08-27 18:50:39 +00002056
2057 case YY_END_OF_BUFFER:
2058 {
2059 /* Amount of text matched not including the EOB char. */
Reid Spencer832254e2007-02-02 02:16:23 +00002060 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002061
2062 /* Undo the effects of YY_DO_BEFORE_ACTION. */
Reid Spencer832254e2007-02-02 02:16:23 +00002063 *yy_cp = yy_hold_char;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002064 YY_RESTORE_YY_MORE_OFFSET
2065
Reid Spencer832254e2007-02-02 02:16:23 +00002066 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002067 {
2068 /* We're scanning a new file or input source. It's
2069 * possible that this happened because the user
Reid Spencer832254e2007-02-02 02:16:23 +00002070 * just pointed yyin at a new source and called
2071 * yylex(). If so, then we have to assure
2072 * consistency between yy_current_buffer and our
Reid Spencer68a24bd2005-08-27 18:50:39 +00002073 * globals. Here is the right place to do so, because
2074 * this is the first action (other than possibly a
2075 * back-up) that will match for the new input source.
2076 */
Reid Spencer832254e2007-02-02 02:16:23 +00002077 yy_n_chars = yy_current_buffer->yy_n_chars;
2078 yy_current_buffer->yy_input_file = yyin;
2079 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002080 }
2081
2082 /* Note that here we test for yy_c_buf_p "<=" to the position
2083 * of the first EOB in the buffer, since yy_c_buf_p will
2084 * already have been incremented past the NUL character
2085 * (since all states make transitions on EOB to the
2086 * end-of-buffer state). Contrast this with the test
2087 * in input().
2088 */
Reid Spencer832254e2007-02-02 02:16:23 +00002089 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002090 { /* This was really a NUL. */
2091 yy_state_type yy_next_state;
2092
Reid Spencer832254e2007-02-02 02:16:23 +00002093 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002094
Reid Spencer832254e2007-02-02 02:16:23 +00002095 yy_current_state = yy_get_previous_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002096
2097 /* Okay, we're now positioned to make the NUL
2098 * transition. We couldn't have
2099 * yy_get_previous_state() go ahead and do it
2100 * for us because it doesn't know how to deal
2101 * with the possibility of jamming (and we don't
2102 * want to build jamming into it because then it
2103 * will run more slowly).
2104 */
2105
2106 yy_next_state = yy_try_NUL_trans( yy_current_state );
2107
Reid Spencer832254e2007-02-02 02:16:23 +00002108 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002109
2110 if ( yy_next_state )
2111 {
2112 /* Consume the NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002113 yy_cp = ++yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002114 yy_current_state = yy_next_state;
2115 goto yy_match;
2116 }
2117
2118 else
2119 {
Reid Spencer832254e2007-02-02 02:16:23 +00002120 yy_cp = yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002121 goto yy_find_action;
2122 }
2123 }
2124
Reid Spencer832254e2007-02-02 02:16:23 +00002125 else switch ( yy_get_next_buffer() )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002126 {
2127 case EOB_ACT_END_OF_FILE:
2128 {
Reid Spencer832254e2007-02-02 02:16:23 +00002129 yy_did_buffer_switch_on_eof = 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002130
Reid Spencer832254e2007-02-02 02:16:23 +00002131 if ( yywrap() )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002132 {
2133 /* Note: because we've taken care in
2134 * yy_get_next_buffer() to have set up
Reid Spencer832254e2007-02-02 02:16:23 +00002135 * yytext, we can now set up
Reid Spencer68a24bd2005-08-27 18:50:39 +00002136 * yy_c_buf_p so that if some total
2137 * hoser (like flex itself) wants to
2138 * call the scanner after we return the
2139 * YY_NULL, it'll still work - another
2140 * YY_NULL will get returned.
2141 */
Reid Spencer832254e2007-02-02 02:16:23 +00002142 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002143
2144 yy_act = YY_STATE_EOF(YY_START);
2145 goto do_action;
2146 }
2147
2148 else
2149 {
Reid Spencer832254e2007-02-02 02:16:23 +00002150 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002151 YY_NEW_FILE;
2152 }
2153 break;
2154 }
2155
2156 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002157 yy_c_buf_p =
2158 yytext_ptr + yy_amount_of_matched_text;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002159
Reid Spencer832254e2007-02-02 02:16:23 +00002160 yy_current_state = yy_get_previous_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002161
Reid Spencer832254e2007-02-02 02:16:23 +00002162 yy_cp = yy_c_buf_p;
2163 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002164 goto yy_match;
2165
2166 case EOB_ACT_LAST_MATCH:
Reid Spencer832254e2007-02-02 02:16:23 +00002167 yy_c_buf_p =
2168 &yy_current_buffer->yy_ch_buf[yy_n_chars];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002169
Reid Spencer832254e2007-02-02 02:16:23 +00002170 yy_current_state = yy_get_previous_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002171
Reid Spencer832254e2007-02-02 02:16:23 +00002172 yy_cp = yy_c_buf_p;
2173 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002174 goto yy_find_action;
2175 }
2176 break;
2177 }
2178
2179 default:
2180 YY_FATAL_ERROR(
2181 "fatal flex scanner internal error--no action found" );
2182 } /* end of action switch */
2183 } /* end of scanning one token */
Reid Spencer832254e2007-02-02 02:16:23 +00002184 } /* end of yylex */
2185
Reid Spencer68a24bd2005-08-27 18:50:39 +00002186
2187/* yy_get_next_buffer - try to read in a new buffer
2188 *
2189 * Returns a code representing an action:
2190 * EOB_ACT_LAST_MATCH -
2191 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2192 * EOB_ACT_END_OF_FILE - end of file
2193 */
Reid Spencer832254e2007-02-02 02:16:23 +00002194
2195static int yy_get_next_buffer()
2196 {
2197 register char *dest = yy_current_buffer->yy_ch_buf;
2198 register char *source = yytext_ptr;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002199 register int number_to_move, i;
2200 int ret_val;
2201
Reid Spencer832254e2007-02-02 02:16:23 +00002202 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002203 YY_FATAL_ERROR(
2204 "fatal flex scanner internal error--end of buffer missed" );
2205
Reid Spencer832254e2007-02-02 02:16:23 +00002206 if ( yy_current_buffer->yy_fill_buffer == 0 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002207 { /* Don't try to fill the buffer, so this is an EOF. */
Reid Spencer832254e2007-02-02 02:16:23 +00002208 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002209 {
2210 /* We matched a single character, the EOB, so
2211 * treat this as a final EOF.
2212 */
2213 return EOB_ACT_END_OF_FILE;
2214 }
2215
2216 else
2217 {
2218 /* We matched some text prior to the EOB, first
2219 * process it.
2220 */
2221 return EOB_ACT_LAST_MATCH;
2222 }
2223 }
2224
2225 /* Try to read more data. */
2226
2227 /* First move last chars to start of buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002228 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002229
2230 for ( i = 0; i < number_to_move; ++i )
2231 *(dest++) = *(source++);
2232
Reid Spencer832254e2007-02-02 02:16:23 +00002233 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002234 /* don't do the read, it's not guaranteed to return an EOF,
2235 * just force an EOF
2236 */
Reid Spencer832254e2007-02-02 02:16:23 +00002237 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002238
2239 else
2240 {
Reid Spencer832254e2007-02-02 02:16:23 +00002241 int num_to_read =
2242 yy_current_buffer->yy_buf_size - number_to_move - 1;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002243
2244 while ( num_to_read <= 0 )
2245 { /* Not enough room in the buffer - grow it. */
Reid Spencer832254e2007-02-02 02:16:23 +00002246#ifdef YY_USES_REJECT
2247 YY_FATAL_ERROR(
2248"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2249#else
Reid Spencer68a24bd2005-08-27 18:50:39 +00002250
2251 /* just a shorter name for the current buffer */
Reid Spencer832254e2007-02-02 02:16:23 +00002252 YY_BUFFER_STATE b = yy_current_buffer;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002253
2254 int yy_c_buf_p_offset =
Reid Spencer832254e2007-02-02 02:16:23 +00002255 (int) (yy_c_buf_p - b->yy_ch_buf);
Reid Spencer68a24bd2005-08-27 18:50:39 +00002256
2257 if ( b->yy_is_our_buffer )
2258 {
2259 int new_size = b->yy_buf_size * 2;
2260
2261 if ( new_size <= 0 )
2262 b->yy_buf_size += b->yy_buf_size / 8;
2263 else
2264 b->yy_buf_size *= 2;
2265
2266 b->yy_ch_buf = (char *)
2267 /* Include room in for 2 EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002268 yy_flex_realloc( (void *) b->yy_ch_buf,
2269 b->yy_buf_size + 2 );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002270 }
2271 else
2272 /* Can't grow it, we don't own it. */
2273 b->yy_ch_buf = 0;
2274
2275 if ( ! b->yy_ch_buf )
2276 YY_FATAL_ERROR(
2277 "fatal error - scanner input buffer overflow" );
2278
Reid Spencer832254e2007-02-02 02:16:23 +00002279 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002280
Reid Spencer832254e2007-02-02 02:16:23 +00002281 num_to_read = yy_current_buffer->yy_buf_size -
Reid Spencer68a24bd2005-08-27 18:50:39 +00002282 number_to_move - 1;
Reid Spencer832254e2007-02-02 02:16:23 +00002283#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00002284 }
2285
2286 if ( num_to_read > YY_READ_BUF_SIZE )
2287 num_to_read = YY_READ_BUF_SIZE;
2288
2289 /* Read in more data. */
Reid Spencer832254e2007-02-02 02:16:23 +00002290 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2291 yy_n_chars, num_to_read );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002292
Reid Spencer832254e2007-02-02 02:16:23 +00002293 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002294 }
2295
Reid Spencer832254e2007-02-02 02:16:23 +00002296 if ( yy_n_chars == 0 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002297 {
2298 if ( number_to_move == YY_MORE_ADJ )
2299 {
2300 ret_val = EOB_ACT_END_OF_FILE;
Reid Spencer832254e2007-02-02 02:16:23 +00002301 yyrestart( yyin );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002302 }
2303
2304 else
2305 {
2306 ret_val = EOB_ACT_LAST_MATCH;
Reid Spencer832254e2007-02-02 02:16:23 +00002307 yy_current_buffer->yy_buffer_status =
Reid Spencer68a24bd2005-08-27 18:50:39 +00002308 YY_BUFFER_EOF_PENDING;
2309 }
2310 }
2311
2312 else
2313 ret_val = EOB_ACT_CONTINUE_SCAN;
2314
Reid Spencer832254e2007-02-02 02:16:23 +00002315 yy_n_chars += number_to_move;
2316 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2317 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002318
Reid Spencer832254e2007-02-02 02:16:23 +00002319 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002320
2321 return ret_val;
Reid Spencer832254e2007-02-02 02:16:23 +00002322 }
2323
Reid Spencer68a24bd2005-08-27 18:50:39 +00002324
2325/* yy_get_previous_state - get the state just before the EOB char was reached */
2326
Reid Spencer832254e2007-02-02 02:16:23 +00002327static yy_state_type yy_get_previous_state()
2328 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002329 register yy_state_type yy_current_state;
2330 register char *yy_cp;
2331
Reid Spencer832254e2007-02-02 02:16:23 +00002332 yy_current_state = yy_start;
2333 yy_state_ptr = yy_state_buf;
2334 *yy_state_ptr++ = yy_current_state;
2335
2336 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002337 {
2338 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2339 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2340 {
2341 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer3025dfd2007-03-29 18:50:01 +00002342 if ( yy_current_state >= 552 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002343 yy_c = yy_meta[(unsigned int) yy_c];
2344 }
2345 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00002346 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002347 }
2348
2349 return yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002350 }
2351
Reid Spencer68a24bd2005-08-27 18:50:39 +00002352
2353/* yy_try_NUL_trans - try to make a transition on the NUL character
2354 *
2355 * synopsis
2356 * next_state = yy_try_NUL_trans( current_state );
2357 */
Reid Spencer832254e2007-02-02 02:16:23 +00002358
2359#ifdef YY_USE_PROTOS
2360static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2361#else
2362static yy_state_type yy_try_NUL_trans( yy_current_state )
2363yy_state_type yy_current_state;
2364#endif
2365 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002366 register int yy_is_jam;
2367
2368 register YY_CHAR yy_c = 1;
2369 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2370 {
2371 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer3025dfd2007-03-29 18:50:01 +00002372 if ( yy_current_state >= 552 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002373 yy_c = yy_meta[(unsigned int) yy_c];
2374 }
2375 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer3025dfd2007-03-29 18:50:01 +00002376 yy_is_jam = (yy_current_state == 551);
Reid Spencer832254e2007-02-02 02:16:23 +00002377 if ( ! yy_is_jam )
2378 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002379
2380 return yy_is_jam ? 0 : yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002381 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002382
2383
Reid Spencer832254e2007-02-02 02:16:23 +00002384#ifndef YY_NO_UNPUT
2385#ifdef YY_USE_PROTOS
2386static inline void yyunput( int c, register char *yy_bp )
2387#else
2388static inline void yyunput( c, yy_bp )
2389int c;
2390register char *yy_bp;
2391#endif
2392 {
2393 register char *yy_cp = yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002394
Reid Spencer832254e2007-02-02 02:16:23 +00002395 /* undo effects of setting up yytext */
2396 *yy_cp = yy_hold_char;
2397
2398 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002399 { /* need to shift things up to make room */
2400 /* +2 for EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002401 register int number_to_move = yy_n_chars + 2;
2402 register char *dest = &yy_current_buffer->yy_ch_buf[
2403 yy_current_buffer->yy_buf_size + 2];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002404 register char *source =
Reid Spencer832254e2007-02-02 02:16:23 +00002405 &yy_current_buffer->yy_ch_buf[number_to_move];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002406
Reid Spencer832254e2007-02-02 02:16:23 +00002407 while ( source > yy_current_buffer->yy_ch_buf )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002408 *--dest = *--source;
2409
2410 yy_cp += (int) (dest - source);
2411 yy_bp += (int) (dest - source);
Reid Spencer832254e2007-02-02 02:16:23 +00002412 yy_current_buffer->yy_n_chars =
2413 yy_n_chars = yy_current_buffer->yy_buf_size;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002414
Reid Spencer832254e2007-02-02 02:16:23 +00002415 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002416 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2417 }
2418
2419 *--yy_cp = (char) c;
2420
Reid Spencer832254e2007-02-02 02:16:23 +00002421 if ( c == '\n' )
2422 --yylineno;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002423
Reid Spencer832254e2007-02-02 02:16:23 +00002424 yytext_ptr = yy_bp;
2425 yy_hold_char = *yy_cp;
2426 yy_c_buf_p = yy_cp;
2427 }
2428#endif /* ifndef YY_NO_UNPUT */
2429
Reid Spencer6f407902007-01-13 05:00:46 +00002430
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002431#ifndef YY_NO_INPUT
Reid Spencer68a24bd2005-08-27 18:50:39 +00002432#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00002433static int yyinput()
Reid Spencer68a24bd2005-08-27 18:50:39 +00002434#else
Reid Spencer832254e2007-02-02 02:16:23 +00002435static int input()
Reid Spencer68a24bd2005-08-27 18:50:39 +00002436#endif
Reid Spencer832254e2007-02-02 02:16:23 +00002437 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002438 int c;
2439
Reid Spencer832254e2007-02-02 02:16:23 +00002440 *yy_c_buf_p = yy_hold_char;
2441
2442 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002443 {
2444 /* yy_c_buf_p now points to the character we want to return.
2445 * If this occurs *before* the EOB characters, then it's a
2446 * valid NUL; if not, then we've hit the end of the buffer.
2447 */
Reid Spencer832254e2007-02-02 02:16:23 +00002448 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002449 /* This was really a NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002450 *yy_c_buf_p = '\0';
Reid Spencer68a24bd2005-08-27 18:50:39 +00002451
2452 else
2453 { /* need more input */
Reid Spencer832254e2007-02-02 02:16:23 +00002454 int offset = yy_c_buf_p - yytext_ptr;
2455 ++yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002456
Reid Spencer832254e2007-02-02 02:16:23 +00002457 switch ( yy_get_next_buffer() )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002458 {
2459 case EOB_ACT_LAST_MATCH:
2460 /* This happens because yy_g_n_b()
2461 * sees that we've accumulated a
2462 * token and flags that we need to
2463 * try matching the token before
2464 * proceeding. But for input(),
2465 * there's no matching to consider.
2466 * So convert the EOB_ACT_LAST_MATCH
2467 * to EOB_ACT_END_OF_FILE.
2468 */
2469
2470 /* Reset buffer status. */
Reid Spencer832254e2007-02-02 02:16:23 +00002471 yyrestart( yyin );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002472
Reid Spencer832254e2007-02-02 02:16:23 +00002473 /* fall through */
Reid Spencer68a24bd2005-08-27 18:50:39 +00002474
2475 case EOB_ACT_END_OF_FILE:
2476 {
Reid Spencer832254e2007-02-02 02:16:23 +00002477 if ( yywrap() )
Reid Spencer61c83e02006-08-18 08:43:06 +00002478 return EOF;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002479
Reid Spencer832254e2007-02-02 02:16:23 +00002480 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002481 YY_NEW_FILE;
2482#ifdef __cplusplus
2483 return yyinput();
2484#else
2485 return input();
2486#endif
2487 }
2488
2489 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002490 yy_c_buf_p = yytext_ptr + offset;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002491 break;
2492 }
2493 }
2494 }
2495
Reid Spencer832254e2007-02-02 02:16:23 +00002496 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2497 *yy_c_buf_p = '\0'; /* preserve yytext */
2498 yy_hold_char = *++yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002499
2500 if ( c == '\n' )
Reid Spencer832254e2007-02-02 02:16:23 +00002501 ++yylineno;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002502
2503 return c;
Reid Spencer832254e2007-02-02 02:16:23 +00002504 }
2505#endif /* YY_NO_INPUT */
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +00002506
Reid Spencer832254e2007-02-02 02:16:23 +00002507#ifdef YY_USE_PROTOS
2508void yyrestart( FILE *input_file )
2509#else
2510void yyrestart( input_file )
2511FILE *input_file;
2512#endif
2513 {
2514 if ( ! yy_current_buffer )
2515 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2516
2517 yy_init_buffer( yy_current_buffer, input_file );
2518 yy_load_buffer_state();
Reid Spencer6f407902007-01-13 05:00:46 +00002519 }
Reid Spencer41dff5e2007-01-26 08:05:27 +00002520
Reid Spencer68a24bd2005-08-27 18:50:39 +00002521
Reid Spencer832254e2007-02-02 02:16:23 +00002522#ifdef YY_USE_PROTOS
2523void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2524#else
2525void yy_switch_to_buffer( new_buffer )
2526YY_BUFFER_STATE new_buffer;
2527#endif
2528 {
2529 if ( yy_current_buffer == new_buffer )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002530 return;
2531
Reid Spencer832254e2007-02-02 02:16:23 +00002532 if ( yy_current_buffer )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002533 {
2534 /* Flush out information for old buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002535 *yy_c_buf_p = yy_hold_char;
2536 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2537 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002538 }
2539
Reid Spencer832254e2007-02-02 02:16:23 +00002540 yy_current_buffer = new_buffer;
2541 yy_load_buffer_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002542
2543 /* We don't actually know whether we did this switch during
Reid Spencer832254e2007-02-02 02:16:23 +00002544 * EOF (yywrap()) processing, but the only time this flag
2545 * is looked at is after yywrap() is called, so it's safe
Reid Spencer68a24bd2005-08-27 18:50:39 +00002546 * to go ahead and always set it.
2547 */
Reid Spencer832254e2007-02-02 02:16:23 +00002548 yy_did_buffer_switch_on_eof = 1;
2549 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002550
2551
Reid Spencer832254e2007-02-02 02:16:23 +00002552#ifdef YY_USE_PROTOS
2553void yy_load_buffer_state( void )
2554#else
2555void yy_load_buffer_state()
2556#endif
2557 {
2558 yy_n_chars = yy_current_buffer->yy_n_chars;
2559 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2560 yyin = yy_current_buffer->yy_input_file;
2561 yy_hold_char = *yy_c_buf_p;
2562 }
2563
2564
2565#ifdef YY_USE_PROTOS
2566YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2567#else
2568YY_BUFFER_STATE yy_create_buffer( file, size )
2569FILE *file;
2570int size;
2571#endif
2572 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002573 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002574
2575 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002576 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002577 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002578
2579 b->yy_buf_size = size;
2580
2581 /* yy_ch_buf has to be 2 characters longer than the size given because
2582 * we need to put in 2 end-of-buffer characters.
2583 */
Reid Spencer832254e2007-02-02 02:16:23 +00002584 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002585 if ( ! b->yy_ch_buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002586 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002587
2588 b->yy_is_our_buffer = 1;
2589
Reid Spencer832254e2007-02-02 02:16:23 +00002590 yy_init_buffer( b, file );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002591
2592 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002593 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002594
Reid Spencer832254e2007-02-02 02:16:23 +00002595
2596#ifdef YY_USE_PROTOS
2597void yy_delete_buffer( YY_BUFFER_STATE b )
2598#else
2599void yy_delete_buffer( b )
2600YY_BUFFER_STATE b;
2601#endif
2602 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002603 if ( ! b )
2604 return;
2605
Reid Spencer832254e2007-02-02 02:16:23 +00002606 if ( b == yy_current_buffer )
2607 yy_current_buffer = (YY_BUFFER_STATE) 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002608
2609 if ( b->yy_is_our_buffer )
Reid Spencer832254e2007-02-02 02:16:23 +00002610 yy_flex_free( (void *) b->yy_ch_buf );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002611
Reid Spencer832254e2007-02-02 02:16:23 +00002612 yy_flex_free( (void *) b );
2613 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002614
2615
Reid Spencer832254e2007-02-02 02:16:23 +00002616
2617#ifdef YY_USE_PROTOS
2618void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2619#else
2620void yy_init_buffer( b, file )
2621YY_BUFFER_STATE b;
2622FILE *file;
2623#endif
2624
2625
2626 {
2627 yy_flush_buffer( b );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002628
2629 b->yy_input_file = file;
2630 b->yy_fill_buffer = 1;
2631
Reid Spencer832254e2007-02-02 02:16:23 +00002632#if YY_ALWAYS_INTERACTIVE
2633 b->yy_is_interactive = 1;
2634#else
2635#if YY_NEVER_INTERACTIVE
2636 b->yy_is_interactive = 0;
2637#else
2638 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2639#endif
2640#endif
2641 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002642
2643
Reid Spencer832254e2007-02-02 02:16:23 +00002644#ifdef YY_USE_PROTOS
2645void yy_flush_buffer( YY_BUFFER_STATE b )
2646#else
2647void yy_flush_buffer( b )
2648YY_BUFFER_STATE b;
2649#endif
2650
2651 {
2652 if ( ! b )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002653 return;
2654
2655 b->yy_n_chars = 0;
2656
2657 /* We always need two end-of-buffer characters. The first causes
2658 * a transition to the end-of-buffer state. The second causes
2659 * a jam in that state.
2660 */
2661 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2662 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2663
2664 b->yy_buf_pos = &b->yy_ch_buf[0];
2665
2666 b->yy_at_bol = 1;
2667 b->yy_buffer_status = YY_BUFFER_NEW;
2668
Reid Spencer832254e2007-02-02 02:16:23 +00002669 if ( b == yy_current_buffer )
2670 yy_load_buffer_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002671 }
2672
2673
Reid Spencer832254e2007-02-02 02:16:23 +00002674#ifndef YY_NO_SCAN_BUFFER
2675#ifdef YY_USE_PROTOS
2676YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2677#else
2678YY_BUFFER_STATE yy_scan_buffer( base, size )
2679char *base;
2680yy_size_t size;
2681#endif
2682 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002683 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002684
Reid Spencer68a24bd2005-08-27 18:50:39 +00002685 if ( size < 2 ||
2686 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2687 base[size-1] != YY_END_OF_BUFFER_CHAR )
2688 /* They forgot to leave room for the EOB's. */
2689 return 0;
2690
Reid Spencer832254e2007-02-02 02:16:23 +00002691 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002692 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002693 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002694
2695 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2696 b->yy_buf_pos = b->yy_ch_buf = base;
2697 b->yy_is_our_buffer = 0;
2698 b->yy_input_file = 0;
2699 b->yy_n_chars = b->yy_buf_size;
2700 b->yy_is_interactive = 0;
2701 b->yy_at_bol = 1;
2702 b->yy_fill_buffer = 0;
2703 b->yy_buffer_status = YY_BUFFER_NEW;
2704
Reid Spencer832254e2007-02-02 02:16:23 +00002705 yy_switch_to_buffer( b );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002706
2707 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002708 }
2709#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00002710
2711
Reid Spencer832254e2007-02-02 02:16:23 +00002712#ifndef YY_NO_SCAN_STRING
2713#ifdef YY_USE_PROTOS
2714YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2715#else
2716YY_BUFFER_STATE yy_scan_string( yy_str )
2717yyconst char *yy_str;
2718#endif
2719 {
2720 int len;
2721 for ( len = 0; yy_str[len]; ++len )
2722 ;
2723
2724 return yy_scan_bytes( yy_str, len );
2725 }
2726#endif
2727
2728
2729#ifndef YY_NO_SCAN_BYTES
2730#ifdef YY_USE_PROTOS
2731YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2732#else
2733YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2734yyconst char *bytes;
2735int len;
2736#endif
2737 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002738 YY_BUFFER_STATE b;
2739 char *buf;
2740 yy_size_t n;
2741 int i;
Reid Spencer832254e2007-02-02 02:16:23 +00002742
Reid Spencer68a24bd2005-08-27 18:50:39 +00002743 /* Get memory for full buffer, including space for trailing EOB's. */
Reid Spencer832254e2007-02-02 02:16:23 +00002744 n = len + 2;
2745 buf = (char *) yy_flex_alloc( n );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002746 if ( ! buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002747 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002748
Reid Spencer832254e2007-02-02 02:16:23 +00002749 for ( i = 0; i < len; ++i )
2750 buf[i] = bytes[i];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002751
Reid Spencer832254e2007-02-02 02:16:23 +00002752 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002753
Reid Spencer832254e2007-02-02 02:16:23 +00002754 b = yy_scan_buffer( buf, n );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002755 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002756 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002757
2758 /* It's okay to grow etc. this buffer, and we should throw it
2759 * away when we're done.
2760 */
2761 b->yy_is_our_buffer = 1;
2762
2763 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002764 }
2765#endif
2766
2767
2768#ifndef YY_NO_PUSH_STATE
2769#ifdef YY_USE_PROTOS
2770static void yy_push_state( int new_state )
2771#else
2772static void yy_push_state( new_state )
2773int new_state;
2774#endif
2775 {
2776 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2777 {
2778 yy_size_t new_size;
2779
2780 yy_start_stack_depth += YY_START_STACK_INCR;
2781 new_size = yy_start_stack_depth * sizeof( int );
2782
2783 if ( ! yy_start_stack )
2784 yy_start_stack = (int *) yy_flex_alloc( new_size );
2785
2786 else
2787 yy_start_stack = (int *) yy_flex_realloc(
2788 (void *) yy_start_stack, new_size );
2789
2790 if ( ! yy_start_stack )
2791 YY_FATAL_ERROR(
2792 "out of memory expanding start-condition stack" );
2793 }
2794
2795 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2796
2797 BEGIN(new_state);
2798 }
2799#endif
2800
2801
2802#ifndef YY_NO_POP_STATE
2803static void yy_pop_state()
2804 {
2805 if ( --yy_start_stack_ptr < 0 )
2806 YY_FATAL_ERROR( "start-condition stack underflow" );
2807
2808 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2809 }
2810#endif
2811
2812
2813#ifndef YY_NO_TOP_STATE
2814static int yy_top_state()
2815 {
2816 return yy_start_stack[yy_start_stack_ptr - 1];
2817 }
2818#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00002819
2820#ifndef YY_EXIT_FAILURE
2821#define YY_EXIT_FAILURE 2
2822#endif
2823
Reid Spencer832254e2007-02-02 02:16:23 +00002824#ifdef YY_USE_PROTOS
2825static void yy_fatal_error( yyconst char msg[] )
2826#else
2827static void yy_fatal_error( msg )
2828char msg[];
2829#endif
2830 {
2831 (void) fprintf( stderr, "%s\n", msg );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002832 exit( YY_EXIT_FAILURE );
Reid Spencer832254e2007-02-02 02:16:23 +00002833 }
2834
2835
Reid Spencer68a24bd2005-08-27 18:50:39 +00002836
2837/* Redefine yyless() so it works in section 3 code. */
2838
2839#undef yyless
2840#define yyless(n) \
2841 do \
2842 { \
Reid Spencer832254e2007-02-02 02:16:23 +00002843 /* Undo effects of setting up yytext. */ \
2844 yytext[yyleng] = yy_hold_char; \
2845 yy_c_buf_p = yytext + n; \
2846 yy_hold_char = *yy_c_buf_p; \
2847 *yy_c_buf_p = '\0'; \
2848 yyleng = n; \
Reid Spencer68a24bd2005-08-27 18:50:39 +00002849 } \
2850 while ( 0 )
2851
2852
Reid Spencer832254e2007-02-02 02:16:23 +00002853/* Internal utility routines. */
Reid Spencer68a24bd2005-08-27 18:50:39 +00002854
2855#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00002856#ifdef YY_USE_PROTOS
2857static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2858#else
2859static void yy_flex_strncpy( s1, s2, n )
2860char *s1;
2861yyconst char *s2;
2862int n;
2863#endif
2864 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002865 register int i;
2866 for ( i = 0; i < n; ++i )
2867 s1[i] = s2[i];
Reid Spencer832254e2007-02-02 02:16:23 +00002868 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002869#endif
2870
2871#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00002872#ifdef YY_USE_PROTOS
2873static int yy_flex_strlen( yyconst char *s )
2874#else
2875static int yy_flex_strlen( s )
2876yyconst char *s;
2877#endif
2878 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002879 register int n;
2880 for ( n = 0; s[n]; ++n )
2881 ;
2882
2883 return n;
Reid Spencer832254e2007-02-02 02:16:23 +00002884 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002885#endif
2886
Reid Spencer6f407902007-01-13 05:00:46 +00002887
Reid Spencer832254e2007-02-02 02:16:23 +00002888#ifdef YY_USE_PROTOS
2889static void *yy_flex_alloc( yy_size_t size )
2890#else
2891static void *yy_flex_alloc( size )
2892yy_size_t size;
2893#endif
2894 {
2895 return (void *) malloc( size );
2896 }
2897
2898#ifdef YY_USE_PROTOS
2899static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
2900#else
2901static inline void *yy_flex_realloc( ptr, size )
2902void *ptr;
2903yy_size_t size;
2904#endif
2905 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002906 /* The cast to (char *) in the following accommodates both
2907 * implementations that use char* generic pointers, and those
2908 * that use void* generic pointers. It works with the latter
2909 * because both ANSI C and C++ allow castless assignment from
2910 * any pointer type to void*, and deal with argument conversions
2911 * as though doing an assignment.
2912 */
2913 return (void *) realloc( (char *) ptr, size );
Reid Spencer832254e2007-02-02 02:16:23 +00002914 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002915
Reid Spencer832254e2007-02-02 02:16:23 +00002916#ifdef YY_USE_PROTOS
2917static void yy_flex_free( void *ptr )
2918#else
2919static void yy_flex_free( ptr )
2920void *ptr;
2921#endif
2922 {
2923 free( ptr );
2924 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002925
Reid Spencer832254e2007-02-02 02:16:23 +00002926#if YY_MAIN
2927int main()
2928 {
2929 yylex();
2930 return 0;
2931 }
2932#endif
Reid Spencer67d8ed92007-03-22 02:14:08 +00002933#line 443 "/proj/llvm/llvm-1/lib/AsmParser/Lexer.l"
Chris Lattner2fecc0f2006-02-15 07:02:59 +00002934