blob: cc66a3f462268a0ee44c863bdf0a25b3bf162c55 [file] [log] [blame]
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +000019#line 20 "Lexer.cpp"
Reid Spencer3da59db2006-11-27 01:05:10 +000020/* A lexical scanner generated by flex*/
Reid Spencer68a24bd2005-08-27 18:50:39 +000021
Owen Anderson1dc69692006-10-18 02:21:48 +000022/* Scanner skeleton version:
23 * $Header$
24 */
25
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 Spencer3da59db2006-11-27 01:05:10 +000031#include <unistd.h>
Reid Spencer68a24bd2005-08-27 18:50:39 +000032
33
Owen Anderson1dc69692006-10-18 02:21:48 +000034/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
35#ifdef c_plusplus
36#ifndef __cplusplus
37#define __cplusplus
38#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +000039#endif
40
41
42#ifdef __cplusplus
43
Owen Anderson1dc69692006-10-18 02:21:48 +000044#include <stdlib.h>
Owen Anderson1dc69692006-10-18 02:21:48 +000045
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
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +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 */
Owen Anderson1dc69692006-10-18 02:21:48 +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 */
Owen Anderson1dc69692006-10-18 02:21:48 +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". */
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +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 { \
Owen Anderson1dc69692006-10-18 02:21:48 +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 \
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +0000154#define unput(c) yyunput( c, yytext_ptr )
Reid Spencer68a24bd2005-08-27 18:50:39 +0000155
Reid Spencer3da59db2006-11-27 01:05:10 +0000156/* 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
164
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
Owen Anderson1dc69692006-10-18 02:21:48 +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"
Owen Anderson1dc69692006-10-18 02:21:48 +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 Korobeynikov43e3aad2006-09-14 18:25:26 +0000227 };
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +0000228
Owen Anderson1dc69692006-10-18 02:21:48 +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 */
Owen Anderson1dc69692006-10-18 02:21:48 +0000235#define YY_CURRENT_BUFFER yy_current_buffer
Reid Spencer68a24bd2005-08-27 18:50:39 +0000236
237
Owen Anderson1dc69692006-10-18 02:21:48 +0000238/* yy_hold_char holds the character lost when yytext is formed. */
Reid Spencer68a24bd2005-08-27 18:50:39 +0000239static char yy_hold_char;
Owen Anderson1dc69692006-10-18 02:21:48 +0000240
Reid Spencer68a24bd2005-08-27 18:50:39 +0000241static int yy_n_chars; /* number of characters read into yy_ch_buf */
Owen Anderson1dc69692006-10-18 02:21:48 +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;
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +0000256void yyrestart YY_PROTO(( FILE *input_file ));
Reid Spencer68a24bd2005-08-27 18:50:39 +0000257
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +0000270static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
Reid Spencer3da59db2006-11-27 01:05:10 +0000271static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED;
Owen Anderson1dc69692006-10-18 02:21:48 +0000272static void yy_flex_free YY_PROTO(( void * ));
Reid Spencer68a24bd2005-08-27 18:50:39 +0000273
Owen Anderson1dc69692006-10-18 02:21:48 +0000274#define yy_new_buffer yy_create_buffer
Reid Spencer68a24bd2005-08-27 18:50:39 +0000275
276#define yy_set_interactive(is_interactive) \
277 { \
Owen Anderson1dc69692006-10-18 02:21:48 +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 { \
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +0000290#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
Reid Spencer68a24bd2005-08-27 18:50:39 +0000291
292
Owen Anderson1dc69692006-10-18 02:21:48 +0000293#define YY_USES_REJECT
294
295#define yywrap() 1
Reid Spencer68a24bd2005-08-27 18:50:39 +0000296#define YY_SKIP_YYWRAP
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +0000297typedef unsigned char YY_CHAR;
Owen Anderson1dc69692006-10-18 02:21:48 +0000298FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +0000299typedef int yy_state_type;
Owen Anderson1dc69692006-10-18 02:21:48 +0000300extern int yylineno;
301int yylineno = 1;
302extern char *yytext;
303#define yytext_ptr yytext
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +0000304
Owen Anderson1dc69692006-10-18 02:21:48 +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
Owen Anderson1dc69692006-10-18 02:21:48 +0000311 * corresponding action - sets up yytext.
Reid Spencer68a24bd2005-08-27 18:50:39 +0000312 */
313#define YY_DO_BEFORE_ACTION \
Owen Anderson1dc69692006-10-18 02:21:48 +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'; \
Owen Anderson1dc69692006-10-18 02:21:48 +0000318 yy_c_buf_p = yy_cp;
Reid Spencer68a24bd2005-08-27 18:50:39 +0000319
Reid Spencer14310612006-12-31 05:40:51 +0000320#define YY_NUM_RULES 138
321#define YY_END_OF_BUFFER 139
322static yyconst short int yy_acclist[216] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000323 { 0,
Reid Spencer14310612006-12-31 05:40:51 +0000324 139, 137, 138, 136, 137, 138, 136, 138, 137, 138,
325 137, 138, 137, 138, 137, 138, 137, 138, 137, 138,
326 129, 137, 138, 129, 137, 138, 1, 137, 138, 137,
327 138, 137, 138, 137, 138, 137, 138, 137, 138, 137,
328 138, 137, 138, 137, 138, 137, 138, 137, 138, 137,
329 138, 137, 138, 137, 138, 137, 138, 137, 138, 137,
330 138, 137, 138, 137, 138, 137, 138, 137, 138, 137,
331 138, 128, 126, 125, 125, 132, 130, 134, 129, 1,
332 111, 39, 71, 48, 72, 67, 23, 128, 125, 125,
333 133, 134, 20, 134, 135, 57, 66, 37, 32, 40,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000334
Reid Spencer14310612006-12-31 05:40:51 +0000335 3, 49, 50, 51, 59, 81, 86, 84, 85, 83,
336 82, 87, 91, 110, 76, 74, 106, 75, 73, 58,
337 89, 80, 78, 79, 77, 90, 88, 68, 127, 134,
338 134, 108, 47, 92, 70, 62, 118, 65, 69, 119,
339 107, 22, 131, 61, 95, 64, 24, 4, 55, 60,
340 63, 46, 12, 94, 134, 34, 2, 5, 52, 97,
341 54, 120, 93, 21, 117, 43, 7, 53, 28, 42,
342 101, 100, 8, 113, 31, 116, 36, 56, 105, 99,
343 112, 25, 26, 98, 114, 109, 104, 41, 6, 27,
344 96, 35, 9, 17, 10, 102, 11, 103, 33, 13,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000345
Reid Spencer14310612006-12-31 05:40:51 +0000346 15, 14, 30, 38, 16, 29, 115, 121, 123, 124,
347 44, 122, 18, 45, 19
Reid Spencer68a24bd2005-08-27 18:50:39 +0000348 } ;
349
Reid Spencer14310612006-12-31 05:40:51 +0000350static yyconst short int yy_accept[558] =
Owen Anderson1dc69692006-10-18 02:21:48 +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, 72, 73, 73,
356 74, 75, 76, 77, 77, 78, 78, 79, 80, 80,
357 81, 81, 81, 81, 81, 81, 81, 81, 81, 82,
Reid Spencera132e042006-12-03 05:46:11 +0000358 82, 83, 83, 83, 83, 83, 83, 83, 83, 84,
Owen Anderson1dc69692006-10-18 02:21:48 +0000359 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
Reid Spencer14310612006-12-31 05:40:51 +0000360 84, 84, 85, 85, 85, 85, 85, 85, 85, 85,
361 85, 85, 85, 86, 86, 86, 86, 86, 86, 86,
Owen Anderson1dc69692006-10-18 02:21:48 +0000362
Reid Spencera132e042006-12-03 05:46:11 +0000363 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
Reid Spencer14310612006-12-31 05:40:51 +0000364 87, 87, 87, 87, 87, 87, 87, 88, 88, 88,
365 88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
366 88, 88, 88, 89, 90, 92, 93, 94, 95, 95,
367 96, 97, 97, 97, 98, 98, 98, 99, 99, 100,
368 100, 100, 100, 101, 101, 101, 101, 101, 101, 101,
369 101, 101, 101, 102, 102, 102, 102, 102, 102, 102,
370 102, 102, 102, 102, 102, 103, 104, 105, 105, 105,
371 105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
372 106, 106, 107, 108, 109, 110, 111, 112, 112, 113,
Reid Spencer3da59db2006-11-27 01:05:10 +0000373
Reid Spencer14310612006-12-31 05:40:51 +0000374 114, 114, 114, 115, 115, 115, 115, 115, 115, 116,
375 117, 118, 118, 118, 118, 119, 120, 120, 120, 121,
376 121, 121, 121, 121, 121, 121, 121, 122, 123, 124,
377 124, 125, 126, 126, 127, 128, 128, 128, 128, 128,
378 128, 128, 128, 128, 129, 129, 129, 130, 131, 131,
379 131, 131, 132, 132, 132, 132, 133, 133, 133, 134,
380 135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
381 135, 135, 135, 135, 135, 135, 136, 137, 137, 137,
382 137, 137, 138, 139, 139, 139, 140, 140, 140, 140,
383 140, 140, 140, 140, 140, 141, 142, 142, 142, 143,
Owen Anderson1dc69692006-10-18 02:21:48 +0000384
Reid Spencer14310612006-12-31 05:40:51 +0000385 143, 143, 143, 144, 145, 145, 145, 146, 146, 146,
386 146, 147, 147, 147, 148, 148, 148, 149, 149, 150,
387 151, 151, 151, 151, 151, 152, 152, 153, 153, 154,
388 154, 154, 155, 156, 157, 157, 157, 158, 158, 158,
389 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
390 158, 158, 159, 159, 160, 161, 161, 161, 161, 161,
391 161, 161, 161, 161, 161, 161, 162, 162, 162, 162,
392 162, 162, 162, 162, 162, 162, 162, 162, 162, 163,
393 163, 163, 163, 164, 164, 165, 165, 165, 165, 165,
394 165, 165, 165, 166, 166, 166, 167, 167, 167, 167,
Owen Anderson1dc69692006-10-18 02:21:48 +0000395
Reid Spencer14310612006-12-31 05:40:51 +0000396 167, 168, 168, 168, 168, 169, 170, 170, 170, 171,
397 172, 173, 173, 173, 174, 174, 174, 174, 174, 175,
398 175, 176, 177, 178, 179, 179, 179, 179, 180, 180,
399 180, 181, 182, 183, 184, 185, 185, 186, 187, 187,
400 187, 187, 187, 187, 188, 188, 189, 189, 190, 191,
401 191, 191, 191, 191, 191, 192, 192, 192, 192, 192,
402 192, 192, 192, 192, 193, 193, 193, 193, 193, 193,
403 193, 193, 193, 194, 194, 194, 194, 194, 195, 195,
404 195, 195, 195, 196, 197, 198, 198, 199, 199, 199,
405 199, 200, 200, 200, 200, 201, 201, 202, 203, 203,
Owen Anderson1dc69692006-10-18 02:21:48 +0000406
Reid Spencer14310612006-12-31 05:40:51 +0000407 203, 203, 203, 203, 203, 203, 203, 203, 203, 203,
408 203, 204, 204, 204, 204, 204, 204, 204, 204, 205,
409 205, 205, 205, 205, 206, 206, 206, 206, 206, 207,
410 207, 208, 208, 208, 208, 208, 208, 208, 208, 208,
411 208, 208, 208, 208, 209, 209, 210, 211, 211, 212,
412 212, 213, 214, 215, 215, 216, 216
Owen Anderson1dc69692006-10-18 02:21:48 +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 Spencer14310612006-12-31 05:40:51 +0000421 1, 1, 7, 1, 8, 9, 1, 10, 11, 12,
422 13, 14, 15, 16, 15, 17, 15, 18, 19, 1,
423 1, 1, 1, 1, 20, 20, 20, 20, 21, 20,
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,
Reid Spencer14310612006-12-31 05:40:51 +0000426 1, 1, 1, 1, 22, 1, 23, 24, 25, 26,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000427
Reid Spencer14310612006-12-31 05:40:51 +0000428 27, 28, 29, 30, 31, 5, 32, 33, 34, 35,
429 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
430 46, 47, 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 Spencer14310612006-12-31 05:40:51 +0000447static yyconst int yy_meta[48] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000448 { 0,
Reid Spencer14310612006-12-31 05:40:51 +0000449 1, 1, 2, 1, 3, 1, 4, 5, 3, 6,
450 6, 6, 6, 6, 6, 6, 6, 7, 1, 3,
451 8, 3, 3, 3, 3, 3, 8, 3, 3, 3,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000452 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
Reid Spencer14310612006-12-31 05:40:51 +0000453 3, 3, 3, 3, 3, 3, 3
Reid Spencer68a24bd2005-08-27 18:50:39 +0000454 } ;
455
Reid Spencer14310612006-12-31 05:40:51 +0000456static yyconst short int yy_base[566] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000457 { 0,
Reid Spencer14310612006-12-31 05:40:51 +0000458 0, 0, 1196, 1197, 1197, 1197, 1191, 1176, 40, 0,
459 48, 58, 68, 1148, 0, 68, 71, 81, 91, 52,
460 97, 98, 126, 110, 117, 120, 136, 138, 73, 170,
461 159, 205, 134, 131, 56, 137, 1188, 1197, 1173, 1197,
462 0, 235, 0, 1181, 1180, 158, 243, 1143, 261, 0,
463 70, 154, 93, 31, 160, 163, 175, 57, 1169, 173,
464 192, 189, 127, 54, 200, 202, 166, 195, 1168, 201,
465 250, 114, 171, 225, 273, 212, 251, 244, 53, 215,
466 249, 1167, 261, 275, 276, 278, 280, 281, 211, 285,
467 279, 289, 1166, 290, 288, 283, 293, 309, 307, 311,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000468
Reid Spencer14310612006-12-31 05:40:51 +0000469 310, 313, 314, 315, 295, 317, 321, 320, 325, 324,
470 333, 337, 327, 344, 339, 341, 1165, 351, 334, 355,
471 357, 358, 359, 360, 370, 363, 361, 371, 380, 376,
472 366, 373, 1164, 0, 0, 386, 1163, 0, 412, 0,
473 1162, 392, 397, 1161, 390, 393, 1160, 412, 1159, 413,
474 416, 417, 1158, 418, 419, 421, 422, 423, 424, 428,
475 433, 429, 434, 436, 439, 440, 448, 444, 449, 450,
476 452, 455, 451, 453, 1157, 1156, 1155, 456, 465, 472,
477 474, 458, 478, 94, 462, 482, 468, 479, 484, 1154,
478 486, 1153, 1152, 1151, 1150, 1149, 1148, 491, 1147, 1146,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000479
Reid Spencer14310612006-12-31 05:40:51 +0000480 488, 492, 1145, 524, 499, 502, 495, 512, 1144, 1143,
481 1142, 493, 498, 496, 1141, 1140, 528, 536, 1139, 537,
482 538, 539, 540, 545, 500, 541, 1138, 1137, 1136, 543,
483 1135, 1134, 542, 1133, 1132, 546, 552, 547, 564, 548,
484 567, 568, 506, 1131, 558, 570, 1197, 568, 258, 584,
485 589, 591, 575, 583, 584, 1130, 585, 586, 1129, 1128,
486 587, 588, 589, 595, 598, 596, 604, 597, 599, 605,
487 609, 600, 618, 607, 619, 1127, 1126, 606, 608, 622,
488 625, 1125, 1124, 627, 628, 1123, 630, 632, 634, 636,
489 637, 635, 638, 643, 1122, 1121, 641, 645, 1120, 640,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000490
Reid Spencer14310612006-12-31 05:40:51 +0000491 647, 648, 0, 1119, 652, 661, 1118, 657, 662, 663,
492 1117, 669, 672, 1116, 674, 675, 1115, 677, 1114, 1113,
493 676, 681, 680, 682, 1112, 687, 1111, 688, 1110, 692,
494 693, 1109, 0, 1108, 689, 695, 1107, 696, 697, 700,
495 709, 707, 698, 701, 715, 713, 717, 720, 722, 723,
496 724, 1106, 726, 1105, 1104, 725, 728, 727, 734, 730,
497 735, 737, 742, 746, 747, 1103, 749, 748, 754, 753,
498 755, 758, 750, 752, 768, 769, 771, 773, 1102, 774,
499 772, 776, 1101, 775, 1100, 780, 782, 777, 783, 793,
500 778, 789, 1099, 797, 779, 1098, 799, 800, 803, 804,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000501
Reid Spencer14310612006-12-31 05:40:51 +0000502 1097, 805, 808, 811, 1096, 1095, 814, 809, 1094, 1093,
503 1092, 815, 812, 1091, 821, 824, 820, 817, 1090, 834,
504 1089, 1088, 1087, 1086, 823, 835, 836, 1085, 837, 838,
505 1084, 1083, 1082, 1081, 1080, 839, 1079, 1078, 842, 843,
506 847, 845, 849, 1077, 850, 1076, 854, 1075, 1070, 856,
507 859, 860, 861, 862, 1067, 869, 864, 867, 868, 863,
508 870, 874, 875, 1064, 885, 888, 887, 890, 889, 893,
509 891, 894, 1056, 895, 901, 902, 904, 1053, 903, 906,
510 907, 908, 1050, 1044, 1033, 909, 1032, 911, 921, 926,
511 1031, 927, 931, 916, 1030, 915, 1026, 1025, 935, 933,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000512
Reid Spencer14310612006-12-31 05:40:51 +0000513 937, 939, 941, 943, 945, 946, 947, 948, 949, 950,
514 1024, 951, 954, 956, 958, 959, 967, 961, 1023, 971,
515 963, 973, 974, 1022, 977, 979, 982, 966, 1018, 985,
516 1016, 990, 987, 991, 992, 993, 997, 996, 999, 1000,
517 1001, 998, 1006, 549, 1011, 513, 466, 1010, 398, 1012,
518 331, 291, 208, 1013, 168, 1197, 1052, 1058, 1064, 177,
519 1072, 1078, 123, 1081, 1086
Reid Spencer68a24bd2005-08-27 18:50:39 +0000520 } ;
521
Reid Spencer14310612006-12-31 05:40:51 +0000522static yyconst short int yy_def[566] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000523 { 0,
Reid Spencer14310612006-12-31 05:40:51 +0000524 556, 1, 556, 556, 556, 556, 557, 558, 559, 560,
525 558, 558, 11, 13, 561, 558, 558, 558, 558, 558,
526 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
527 558, 558, 558, 558, 558, 558, 557, 556, 558, 556,
528 562, 562, 563, 560, 11, 558, 11, 13, 11, 561,
529 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
530 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
531 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
532 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
533 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000534
Reid Spencer14310612006-12-31 05:40:51 +0000535 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
536 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
537 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
538 558, 558, 556, 562, 42, 564, 558, 47, 11, 49,
539 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
540 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
541 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
542 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
543 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
544 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000545
Reid Spencer14310612006-12-31 05:40:51 +0000546 558, 558, 558, 49, 558, 558, 558, 558, 558, 558,
547 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
548 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
549 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
550 558, 558, 558, 558, 558, 558, 556, 564, 565, 565,
551 139, 139, 558, 558, 558, 558, 558, 558, 558, 558,
552 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
553 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
554 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
555 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000556
Reid Spencer14310612006-12-31 05:40:51 +0000557 558, 558, 204, 558, 558, 558, 558, 558, 558, 558,
558 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
559 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
560 558, 558, 250, 558, 558, 558, 558, 558, 558, 558,
561 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
562 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
563 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
564 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
565 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
566 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000567
Reid Spencer14310612006-12-31 05:40:51 +0000568 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
569 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
570 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
571 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
572 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
573 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
574 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
575 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
576 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
577 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000578
Reid Spencer14310612006-12-31 05:40:51 +0000579 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
580 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
581 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
582 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
583 558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
584 558, 558, 558, 558, 558, 0, 556, 556, 556, 556,
585 556, 556, 556, 556, 556
Reid Spencer68a24bd2005-08-27 18:50:39 +0000586 } ;
587
Reid Spencer14310612006-12-31 05:40:51 +0000588static yyconst short int yy_nxt[1245] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000589 { 0,
590 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
Reid Spencer14310612006-12-31 05:40:51 +0000591 14, 14, 14, 14, 14, 14, 14, 4, 15, 8,
592 8, 8, 16, 17, 18, 19, 20, 21, 22, 8,
593 23, 8, 24, 25, 26, 27, 28, 8, 29, 30,
594 31, 32, 33, 34, 35, 8, 36, 42, 40, 43,
595 43, 43, 43, 43, 43, 43, 43, 45, 45, 45,
596 45, 45, 45, 45, 45, 40, 46, 145, 175, 40,
597 40, 40, 130, 40, 40, 40, 47, 48, 48, 48,
598 48, 48, 48, 48, 48, 40, 68, 40, 40, 69,
599 40, 131, 151, 51, 157, 141, 70, 56, 40, 104,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000600
Reid Spencer14310612006-12-31 05:40:51 +0000601 52, 57, 53, 60, 54, 61, 58, 55, 40, 59,
602 40, 40, 49, 64, 40, 40, 62, 65, 144, 71,
603 63, 72, 73, 66, 77, 293, 67, 40, 43, 74,
604 78, 40, 86, 75, 40, 76, 79, 40, 80, 90,
605 87, 81, 82, 40, 40, 88, 93, 167, 40, 89,
606 83, 40, 91, 40, 40, 40, 127, 129, 92, 84,
607 85, 94, 95, 132, 96, 156, 137, 101, 97, 128,
608 98, 40, 99, 102, 100, 40, 40, 40, 103, 105,
609 40, 116, 44, 40, 142, 40, 143, 40, 40, 146,
610 40, 148, 40, 147, 117, 106, 107, 118, 108, 109,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000611
Reid Spencer14310612006-12-31 05:40:51 +0000612 110, 168, 111, 149, 119, 152, 40, 162, 112, 40,
613 113, 114, 40, 115, 105, 150, 153, 40, 40, 40,
614 163, 154, 40, 155, 158, 40, 176, 159, 40, 40,
615 120, 121, 40, 122, 161, 123, 160, 124, 172, 125,
616 187, 164, 40, 126, 135, 135, 135, 135, 135, 135,
617 135, 135, 138, 138, 138, 138, 138, 138, 138, 138,
618 169, 40, 177, 139, 250, 250, 40, 40, 40, 139,
619 140, 140, 140, 140, 140, 140, 140, 140, 40, 174,
620 140, 140, 165, 140, 140, 140, 140, 140, 140, 166,
621 40, 173, 40, 40, 178, 40, 40, 40, 40, 170,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000622
Reid Spencer14310612006-12-31 05:40:51 +0000623 40, 183, 40, 186, 189, 40, 40, 40, 40, 193,
624 40, 179, 40, 171, 184, 180, 181, 188, 182, 195,
625 185, 190, 191, 194, 40, 192, 40, 40, 40, 198,
626 40, 40, 40, 196, 40, 197, 199, 40, 40, 204,
627 200, 40, 40, 201, 40, 206, 209, 205, 40, 213,
628 40, 40, 202, 207, 40, 203, 40, 211, 40, 215,
629 210, 40, 218, 217, 214, 208, 212, 219, 40, 220,
630 225, 221, 40, 216, 40, 40, 40, 40, 40, 222,
631 40, 223, 239, 40, 228, 226, 231, 40, 40, 238,
632 40, 243, 224, 40, 227, 233, 234, 40, 229, 230,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000633
Reid Spencer14310612006-12-31 05:40:51 +0000634 232, 240, 242, 241, 244, 235, 249, 40, 236, 40,
635 40, 245, 249, 237, 40, 40, 255, 246, 250, 251,
636 253, 252, 252, 252, 252, 252, 252, 252, 252, 40,
637 40, 256, 254, 40, 40, 40, 40, 258, 40, 40,
638 40, 40, 257, 261, 264, 40, 40, 263, 259, 260,
639 40, 40, 270, 40, 266, 265, 40, 40, 262, 268,
640 267, 40, 272, 269, 271, 40, 40, 40, 40, 40,
641 40, 278, 40, 40, 273, 40, 285, 284, 274, 40,
642 275, 282, 40, 40, 276, 40, 277, 280, 283, 40,
643 281, 40, 286, 291, 279, 40, 40, 287, 288, 40,
Reid Spencer6fd36ab2006-12-29 20:35:03 +0000644
Reid Spencer14310612006-12-31 05:40:51 +0000645 289, 40, 294, 40, 292, 40, 296, 295, 40, 40,
646 40, 297, 40, 40, 290, 40, 40, 40, 299, 40,
647 308, 306, 301, 40, 309, 298, 319, 330, 300, 40,
648 40, 310, 302, 303, 303, 303, 303, 303, 303, 303,
649 303, 304, 305, 303, 303, 40, 303, 303, 303, 303,
650 303, 303, 307, 40, 40, 40, 40, 40, 40, 40,
651 40, 311, 40, 40, 40, 40, 40, 315, 322, 40,
652 314, 317, 323, 327, 312, 40, 316, 313, 321, 318,
653 325, 40, 324, 320, 40, 40, 326, 40, 249, 328,
654 556, 556, 40, 331, 249, 556, 39, 556, 39, 329,
655
656 40, 40, 40, 40, 40, 40, 40, 335, 338, 334,
657 332, 339, 40, 40, 40, 40, 40, 40, 336, 337,
658 343, 40, 40, 40, 40, 40, 40, 342, 340, 341,
659 344, 349, 347, 352, 345, 40, 40, 348, 350, 40,
660 351, 346, 40, 353, 40, 40, 354, 40, 355, 40,
661 360, 40, 40, 40, 40, 40, 361, 40, 40, 359,
662 40, 356, 40, 357, 40, 40, 358, 366, 365, 40,
663 362, 364, 363, 367, 40, 368, 369, 370, 40, 40,
664 40, 371, 374, 373, 376, 375, 40, 372, 377, 40,
665 378, 40, 40, 40, 40, 379, 380, 40, 40, 40,
666
667 381, 383, 386, 384, 40, 40, 40, 382, 385, 40,
668 40, 393, 40, 40, 40, 40, 387, 40, 40, 390,
669 394, 396, 397, 392, 40, 388, 40, 401, 389, 399,
670 40, 391, 40, 398, 40, 395, 400, 40, 402, 40,
671 40, 40, 40, 40, 40, 40, 405, 40, 408, 403,
672 409, 40, 40, 404, 40, 410, 406, 407, 411, 40,
673 413, 412, 414, 40, 40, 40, 40, 40, 415, 40,
674 40, 40, 40, 419, 421, 40, 417, 416, 422, 423,
675 426, 424, 418, 420, 425, 40, 40, 427, 40, 40,
676 40, 40, 40, 40, 40, 40, 40, 40, 430, 40,
677
678 40, 429, 434, 432, 436, 438, 40, 437, 428, 431,
679 40, 435, 433, 439, 40, 440, 40, 40, 441, 444,
680 40, 40, 40, 442, 446, 40, 40, 443, 40, 40,
681 448, 40, 40, 445, 40, 452, 453, 40, 40, 455,
682 40, 40, 459, 450, 449, 456, 451, 457, 447, 454,
683 458, 40, 40, 40, 40, 40, 40, 460, 461, 40,
684 40, 462, 40, 465, 40, 466, 40, 40, 467, 463,
685 464, 40, 470, 40, 468, 471, 40, 40, 40, 40,
686 40, 40, 469, 472, 40, 40, 40, 40, 479, 474,
687 473, 40, 40, 478, 475, 480, 485, 476, 481, 482,
688
689 483, 484, 40, 477, 40, 40, 40, 40, 40, 490,
690 40, 40, 40, 486, 489, 487, 491, 493, 40, 40,
691 40, 40, 495, 40, 40, 40, 40, 488, 40, 492,
692 499, 494, 40, 40, 503, 500, 496, 505, 40, 504,
693 501, 497, 498, 40, 40, 506, 510, 502, 40, 507,
694 40, 508, 40, 509, 40, 511, 40, 512, 40, 513,
695 40, 515, 40, 40, 40, 40, 40, 40, 40, 518,
696 521, 40, 523, 40, 516, 40, 40, 514, 40, 520,
697 40, 522, 524, 40, 40, 528, 519, 525, 40, 517,
698 40, 40, 526, 529, 40, 532, 40, 531, 527, 40,
699
700 538, 530, 40, 535, 40, 533, 534, 40, 40, 40,
701 40, 541, 537, 40, 40, 40, 40, 40, 40, 536,
702 539, 542, 540, 40, 548, 549, 543, 40, 40, 40,
703 40, 544, 545, 40, 553, 40, 546, 547, 554, 40,
704 40, 40, 40, 40, 550, 552, 551, 40, 40, 40,
705 40, 555, 37, 37, 37, 37, 37, 37, 37, 37,
706 39, 40, 39, 39, 39, 39, 41, 40, 41, 41,
707 40, 41, 50, 40, 50, 50, 50, 50, 50, 50,
708 134, 40, 134, 134, 40, 134, 248, 40, 248, 333,
709 333, 333, 40, 40, 40, 40, 40, 40, 40, 40,
710
Reid Spencer6e18b7d2006-12-03 06:59:29 +0000711 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencer14310612006-12-31 05:40:51 +0000712 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencer3da59db2006-11-27 01:05:10 +0000713 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Chris Lattner0e9c3762006-01-25 22:27:16 +0000714 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Chris Lattnerd5efe842006-04-08 01:18:56 +0000715 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
716 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Chris Lattner75466192006-05-19 21:28:53 +0000717 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencere4d87aa2006-12-23 06:05:41 +0000718 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencer14310612006-12-31 05:40:51 +0000719 40, 247, 40, 40, 40, 40, 40, 39, 47, 136,
720 40, 133, 39, 40, 38, 556, 3, 556, 556, 556,
Chris Lattner75466192006-05-19 21:28:53 +0000721
Reid Spencer14310612006-12-31 05:40:51 +0000722 556, 556, 556, 556, 556, 556, 556, 556, 556, 556,
723 556, 556, 556, 556, 556, 556, 556, 556, 556, 556,
724 556, 556, 556, 556, 556, 556, 556, 556, 556, 556,
725 556, 556, 556, 556, 556, 556, 556, 556, 556, 556,
726 556, 556, 556, 556
Reid Spencer68a24bd2005-08-27 18:50:39 +0000727 } ;
728
Reid Spencer14310612006-12-31 05:40:51 +0000729static yyconst short int yy_chk[1245] =
Reid Spencer68a24bd2005-08-27 18:50:39 +0000730 { 0,
731 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
732 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
733 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
734 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Reid Spencer14310612006-12-31 05:40:51 +0000735 1, 1, 1, 1, 1, 1, 1, 9, 54, 9,
736 9, 9, 9, 9, 9, 9, 9, 11, 11, 11,
737 11, 11, 11, 11, 11, 11, 12, 54, 79, 20,
738 79, 64, 35, 35, 58, 12, 13, 13, 13, 13,
739 13, 13, 13, 13, 13, 16, 20, 51, 17, 20,
740 29, 35, 58, 16, 64, 51, 20, 17, 18, 29,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000741
Reid Spencer14310612006-12-31 05:40:51 +0000742 16, 17, 16, 18, 16, 18, 17, 16, 19, 17,
743 53, 184, 13, 19, 21, 22, 18, 19, 53, 21,
744 18, 21, 21, 19, 22, 184, 19, 24, 563, 21,
745 22, 72, 24, 21, 25, 21, 23, 26, 23, 25,
746 24, 23, 23, 23, 63, 24, 26, 72, 34, 24,
747 23, 33, 25, 27, 36, 28, 33, 34, 25, 23,
748 23, 26, 27, 36, 27, 63, 46, 28, 27, 33,
749 27, 52, 27, 28, 27, 46, 31, 55, 28, 30,
750 56, 31, 560, 67, 52, 555, 52, 30, 73, 55,
751 60, 56, 57, 55, 31, 30, 30, 31, 30, 30,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000752
Reid Spencer14310612006-12-31 05:40:51 +0000753 30, 73, 30, 57, 31, 60, 62, 67, 30, 61,
754 30, 30, 68, 30, 32, 57, 61, 65, 70, 66,
755 68, 62, 32, 62, 65, 553, 80, 65, 89, 76,
756 32, 32, 80, 32, 66, 32, 65, 32, 76, 32,
757 89, 70, 74, 32, 42, 42, 42, 42, 42, 42,
758 42, 42, 47, 47, 47, 47, 47, 47, 47, 47,
759 74, 78, 81, 47, 249, 249, 81, 71, 77, 47,
760 49, 49, 49, 49, 49, 49, 49, 49, 83, 78,
761 49, 49, 71, 49, 49, 49, 49, 49, 49, 71,
762 75, 77, 84, 85, 83, 86, 91, 87, 88, 75,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000763
Reid Spencer14310612006-12-31 05:40:51 +0000764 96, 86, 90, 88, 91, 95, 92, 94, 552, 96,
765 97, 84, 105, 75, 87, 85, 85, 90, 85, 97,
766 87, 92, 94, 96, 99, 95, 98, 101, 100, 99,
767 102, 103, 104, 97, 106, 98, 100, 108, 107, 105,
768 101, 110, 109, 102, 113, 107, 108, 106, 551, 110,
769 111, 119, 103, 107, 112, 104, 115, 109, 116, 111,
770 108, 114, 113, 112, 110, 107, 109, 114, 118, 115,
771 119, 116, 120, 111, 121, 122, 123, 124, 127, 116,
772 126, 118, 127, 131, 122, 120, 124, 125, 128, 126,
773 132, 130, 118, 130, 121, 125, 125, 129, 122, 123,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000774
Reid Spencer14310612006-12-31 05:40:51 +0000775 124, 128, 129, 128, 131, 125, 136, 145, 125, 142,
776 146, 132, 136, 125, 143, 549, 145, 132, 139, 139,
777 142, 139, 139, 139, 139, 139, 139, 139, 139, 148,
778 150, 146, 143, 151, 152, 154, 155, 150, 156, 157,
779 158, 159, 148, 154, 157, 160, 162, 156, 151, 152,
780 161, 163, 162, 164, 159, 158, 165, 166, 155, 161,
781 160, 168, 164, 161, 163, 167, 169, 170, 173, 171,
782 174, 169, 172, 178, 164, 182, 174, 173, 165, 185,
783 166, 172, 179, 547, 167, 187, 168, 171, 172, 180,
784 171, 181, 178, 182, 170, 183, 188, 179, 180, 186,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000785
Reid Spencer14310612006-12-31 05:40:51 +0000786 181, 189, 185, 191, 183, 201, 187, 186, 198, 202,
787 212, 188, 207, 214, 181, 213, 205, 225, 191, 206,
788 212, 207, 201, 243, 213, 189, 225, 243, 198, 208,
789 546, 214, 202, 204, 204, 204, 204, 204, 204, 204,
790 204, 205, 206, 204, 204, 217, 204, 204, 204, 204,
791 204, 204, 208, 218, 220, 221, 222, 223, 226, 233,
792 230, 217, 224, 236, 238, 240, 544, 222, 233, 237,
793 221, 224, 236, 240, 218, 245, 223, 220, 230, 224,
794 238, 239, 237, 226, 241, 242, 239, 246, 248, 241,
795 250, 250, 253, 245, 248, 251, 251, 252, 252, 242,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000796
Reid Spencer14310612006-12-31 05:40:51 +0000797 254, 255, 257, 258, 261, 262, 263, 254, 258, 253,
798 246, 261, 264, 266, 268, 265, 269, 272, 255, 257,
799 265, 267, 270, 278, 274, 279, 271, 264, 262, 263,
800 266, 271, 269, 274, 267, 273, 275, 270, 272, 280,
801 273, 268, 281, 275, 284, 285, 278, 287, 279, 288,
802 285, 289, 292, 290, 291, 293, 287, 300, 297, 284,
803 294, 280, 298, 280, 301, 302, 281, 292, 291, 305,
804 288, 290, 289, 293, 308, 294, 297, 298, 306, 309,
805 310, 300, 305, 302, 308, 306, 312, 301, 309, 313,
806 310, 315, 316, 321, 318, 312, 313, 323, 322, 324,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000807
Reid Spencer14310612006-12-31 05:40:51 +0000808 315, 318, 323, 321, 326, 328, 335, 316, 322, 330,
809 331, 335, 336, 338, 339, 343, 324, 340, 344, 330,
810 336, 339, 340, 331, 342, 326, 341, 344, 328, 342,
811 346, 330, 345, 341, 347, 338, 343, 348, 345, 349,
812 350, 351, 356, 353, 358, 357, 348, 360, 351, 346,
813 353, 359, 361, 347, 362, 356, 349, 350, 357, 363,
814 359, 358, 360, 364, 365, 368, 367, 373, 361, 374,
815 370, 369, 371, 365, 368, 372, 363, 362, 369, 370,
816 373, 371, 364, 367, 372, 375, 376, 374, 377, 381,
817 378, 380, 384, 382, 388, 391, 395, 386, 377, 387,
Reid Spencer68a24bd2005-08-27 18:50:39 +0000818
Reid Spencer14310612006-12-31 05:40:51 +0000819 389, 376, 382, 380, 386, 388, 392, 387, 375, 378,
820 390, 384, 381, 389, 394, 390, 397, 398, 391, 395,
821 399, 400, 402, 392, 398, 403, 408, 394, 404, 413,
822 400, 407, 412, 397, 418, 407, 407, 417, 415, 412,
823 425, 416, 417, 403, 402, 413, 404, 415, 399, 408,
824 416, 420, 426, 427, 429, 430, 436, 418, 420, 439,
825 440, 425, 442, 429, 441, 430, 443, 445, 436, 426,
826 427, 447, 441, 450, 439, 442, 451, 452, 453, 454,
827 460, 457, 440, 443, 458, 459, 456, 461, 454, 447,
828 445, 462, 463, 453, 450, 456, 461, 451, 457, 458,
Chris Lattnere869eef2005-11-12 00:11:49 +0000829
Reid Spencer14310612006-12-31 05:40:51 +0000830 459, 460, 465, 452, 467, 466, 469, 468, 471, 467,
831 470, 472, 474, 462, 466, 463, 468, 470, 475, 476,
832 479, 477, 472, 480, 481, 482, 486, 465, 488, 469,
833 477, 471, 496, 494, 482, 479, 474, 488, 489, 486,
834 480, 475, 476, 490, 492, 489, 494, 481, 493, 490,
835 500, 492, 499, 493, 501, 496, 502, 499, 503, 500,
836 504, 502, 505, 506, 507, 508, 509, 510, 512, 505,
837 508, 513, 510, 514, 503, 515, 516, 501, 518, 507,
838 521, 509, 512, 528, 517, 516, 506, 513, 520, 504,
839 522, 523, 514, 517, 525, 521, 526, 520, 515, 527,
Chris Lattner75466192006-05-19 21:28:53 +0000840
Reid Spencer14310612006-12-31 05:40:51 +0000841 528, 518, 530, 525, 533, 522, 523, 532, 534, 535,
842 536, 533, 527, 538, 537, 542, 539, 540, 541, 526,
843 530, 534, 532, 543, 540, 541, 535, 548, 545, 550,
844 554, 536, 537, 531, 548, 529, 538, 539, 550, 524,
845 519, 511, 498, 497, 542, 545, 543, 495, 491, 487,
846 485, 554, 557, 557, 557, 557, 557, 557, 557, 557,
847 558, 484, 558, 558, 558, 558, 559, 483, 559, 559,
848 478, 559, 561, 473, 561, 561, 561, 561, 561, 561,
849 562, 464, 562, 562, 455, 562, 564, 449, 564, 565,
850 565, 565, 448, 446, 444, 438, 437, 435, 434, 433,
Anton Korobeynikovbcb97702006-09-17 20:25:45 +0000851
Reid Spencer14310612006-12-31 05:40:51 +0000852 432, 431, 428, 424, 423, 422, 421, 419, 414, 411,
853 410, 409, 406, 405, 401, 396, 393, 385, 383, 379,
854 366, 355, 354, 352, 337, 334, 332, 329, 327, 325,
855 320, 319, 317, 314, 311, 307, 304, 299, 296, 295,
856 286, 283, 282, 277, 276, 260, 259, 256, 244, 235,
857 234, 232, 231, 229, 228, 227, 219, 216, 215, 211,
858 210, 209, 203, 200, 199, 197, 196, 195, 194, 193,
859 192, 190, 177, 176, 175, 153, 149, 147, 144, 141,
860 137, 133, 117, 93, 82, 69, 59, 48, 45, 44,
861 39, 37, 14, 8, 7, 3, 556, 556, 556, 556,
Reid Spencer3da59db2006-11-27 01:05:10 +0000862
Reid Spencer14310612006-12-31 05:40:51 +0000863 556, 556, 556, 556, 556, 556, 556, 556, 556, 556,
864 556, 556, 556, 556, 556, 556, 556, 556, 556, 556,
865 556, 556, 556, 556, 556, 556, 556, 556, 556, 556,
866 556, 556, 556, 556, 556, 556, 556, 556, 556, 556,
867 556, 556, 556, 556
Reid Spencer68a24bd2005-08-27 18:50:39 +0000868 } ;
869
Owen Anderson1dc69692006-10-18 02:21:48 +0000870static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
871static char *yy_full_match;
872static int yy_lp;
873#define REJECT \
874{ \
875*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
876yy_cp = yy_full_match; /* restore poss. backed-over text */ \
877++yy_lp; \
878goto find_rule; \
879}
Reid Spencer68a24bd2005-08-27 18:50:39 +0000880#define yymore() yymore_used_but_not_detected
881#define YY_MORE_ADJ 0
882#define YY_RESTORE_YY_MORE_OFFSET
Owen Anderson1dc69692006-10-18 02:21:48 +0000883char *yytext;
Reid Spencer14310612006-12-31 05:40:51 +0000884#line 1 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Owen Anderson1dc69692006-10-18 02:21:48 +0000885#define INITIAL 0
Reid Spencer68a24bd2005-08-27 18:50:39 +0000886/*===-- Lexer.l - Scanner for llvm assembly files --------------*- C++ -*--===//
887//
888// The LLVM Compiler Infrastructure
889//
890// This file was developed by the LLVM research group and is distributed under
891// the University of Illinois Open Source License. See LICENSE.TXT for details.
892//
893//===----------------------------------------------------------------------===//
894//
895// This file implements the flex scanner for LLVM assembly languages files.
896//
897//===----------------------------------------------------------------------===*/
Owen Anderson1dc69692006-10-18 02:21:48 +0000898#define YY_NEVER_INTERACTIVE 1
Reid Spencer14310612006-12-31 05:40:51 +0000899#line 28 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +0000900#include "ParserInternals.h"
901#include "llvm/Module.h"
902#include <list>
903#include "llvmAsmParser.h"
904#include <cctype>
905#include <cstdlib>
906
907void set_scan_file(FILE * F){
Owen Anderson1dc69692006-10-18 02:21:48 +0000908 yy_switch_to_buffer(yy_create_buffer( F, YY_BUF_SIZE ) );
Reid Spencer68a24bd2005-08-27 18:50:39 +0000909}
910void set_scan_string (const char * str) {
Owen Anderson1dc69692006-10-18 02:21:48 +0000911 yy_scan_string (str);
Reid Spencer68a24bd2005-08-27 18:50:39 +0000912}
913
Reid Spencer3ed469c2006-11-02 20:25:50 +0000914// Construct a token value for a non-obsolete token
Reid Spencer68a24bd2005-08-27 18:50:39 +0000915#define RET_TOK(type, Enum, sym) \
Reid Spencera132e042006-12-03 05:46:11 +0000916 llvmAsmlval.type = Instruction::Enum; \
917 return sym
918
Reid Spencer3ed469c2006-11-02 20:25:50 +0000919// Construct a token value for an obsolete token
Reid Spencera132e042006-12-03 05:46:11 +0000920#define RET_TY(CTYPE, SYM) \
921 llvmAsmlval.PrimType = CTYPE;\
Reid Spencer481169e2006-12-01 00:33:46 +0000922 return SYM
Reid Spencer68a24bd2005-08-27 18:50:39 +0000923
924namespace llvm {
925
926// TODO: All of the static identifiers are figured out by the lexer,
927// these should be hashed to reduce the lexer size
928
929
930// atoull - Convert an ascii string of decimal digits into the unsigned long
931// long representation... this does not have to do input error checking,
932// because we know that the input will be matched by a suitable regex...
933//
934static uint64_t atoull(const char *Buffer) {
935 uint64_t Result = 0;
936 for (; *Buffer; Buffer++) {
937 uint64_t OldRes = Result;
938 Result *= 10;
939 Result += *Buffer-'0';
940 if (Result < OldRes) // Uh, oh, overflow detected!!!
Reid Spencer61c83e02006-08-18 08:43:06 +0000941 GenerateError("constant bigger than 64 bits detected!");
Reid Spencer68a24bd2005-08-27 18:50:39 +0000942 }
943 return Result;
944}
945
946static uint64_t HexIntToVal(const char *Buffer) {
947 uint64_t Result = 0;
948 for (; *Buffer; ++Buffer) {
949 uint64_t OldRes = Result;
950 Result *= 16;
951 char C = *Buffer;
952 if (C >= '0' && C <= '9')
953 Result += C-'0';
954 else if (C >= 'A' && C <= 'F')
955 Result += C-'A'+10;
956 else if (C >= 'a' && C <= 'f')
957 Result += C-'a'+10;
958
959 if (Result < OldRes) // Uh, oh, overflow detected!!!
Reid Spencer61c83e02006-08-18 08:43:06 +0000960 GenerateError("constant bigger than 64 bits detected!");
Reid Spencer68a24bd2005-08-27 18:50:39 +0000961 }
962 return Result;
963}
964
965
966// HexToFP - Convert the ascii string in hexidecimal format to the floating
967// point representation of it.
968//
969static double HexToFP(const char *Buffer) {
970 // Behave nicely in the face of C TBAA rules... see:
971 // http://www.nullstone.com/htmls/category/aliastyp.htm
972 union {
973 uint64_t UI;
974 double FP;
975 } UIntToFP;
976 UIntToFP.UI = HexIntToVal(Buffer);
977
978 assert(sizeof(double) == sizeof(uint64_t) &&
979 "Data sizes incompatible on this target!");
980 return UIntToFP.FP; // Cast Hex constant to double
981}
982
983
984// UnEscapeLexed - Run through the specified buffer and change \xx codes to the
985// appropriate character. If AllowNull is set to false, a \00 value will cause
986// an exception to be thrown.
987//
988// If AllowNull is set to true, the return value of the function points to the
989// last character of the string in memory.
990//
991char *UnEscapeLexed(char *Buffer, bool AllowNull) {
992 char *BOut = Buffer;
993 for (char *BIn = Buffer; *BIn; ) {
994 if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) {
995 char Tmp = BIn[3]; BIn[3] = 0; // Terminate string
996 *BOut = (char)strtol(BIn+1, 0, 16); // Convert to number
997 if (!AllowNull && !*BOut)
Reid Spencer61c83e02006-08-18 08:43:06 +0000998 GenerateError("String literal cannot accept \\00 escape!");
Reid Spencer68a24bd2005-08-27 18:50:39 +0000999
1000 BIn[3] = Tmp; // Restore character
1001 BIn += 3; // Skip over handled chars
1002 ++BOut;
1003 } else {
1004 *BOut++ = *BIn++;
1005 }
1006 }
1007
1008 return BOut;
1009}
1010
1011} // End llvm namespace
1012
1013using namespace llvm;
1014
1015#define YY_NEVER_INTERACTIVE 1
1016/* Comments start with a ; and go till end of line */
1017/* Variable(Value) identifiers start with a % sign */
1018/* Label identifiers end with a colon */
1019/* Quoted names can contain any character except " and \ */
1020/* [PN]Integer: match positive and negative literal integer values that
1021 * are preceeded by a '%' character. These represent unnamed variable slots.
1022 */
1023/* E[PN]Integer: match positive and negative literal integer values */
1024/* FPConstant - A Floating point constant.
1025 */
1026/* HexFPConstant - Floating point constant represented in IEEE format as a
1027 * hexadecimal number for when exponential notation is not precise enough.
1028 */
1029/* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
1030 * it to deal with 64 bit numbers.
1031 */
Reid Spencer14310612006-12-31 05:40:51 +00001032#line 1033 "Lexer.cpp"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001033
1034/* Macros after this point can all be overridden by user definitions in
1035 * section 1.
1036 */
1037
1038#ifndef YY_SKIP_YYWRAP
1039#ifdef __cplusplus
Owen Anderson1dc69692006-10-18 02:21:48 +00001040extern "C" int yywrap YY_PROTO(( void ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001041#else
Owen Anderson1dc69692006-10-18 02:21:48 +00001042extern int yywrap YY_PROTO(( void ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001043#endif
1044#endif
1045
Owen Anderson1dc69692006-10-18 02:21:48 +00001046#ifndef YY_NO_UNPUT
1047static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1048#endif
1049
Reid Spencer68a24bd2005-08-27 18:50:39 +00001050#ifndef yytext_ptr
Owen Anderson1dc69692006-10-18 02:21:48 +00001051static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001052#endif
1053
1054#ifdef YY_NEED_STRLEN
Owen Anderson1dc69692006-10-18 02:21:48 +00001055static int yy_flex_strlen YY_PROTO(( yyconst char * ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001056#endif
1057
1058#ifndef YY_NO_INPUT
1059#ifdef __cplusplus
Owen Anderson1dc69692006-10-18 02:21:48 +00001060static int yyinput YY_PROTO(( void ));
Reid Spencer68a24bd2005-08-27 18:50:39 +00001061#else
Owen Anderson1dc69692006-10-18 02:21:48 +00001062static int input YY_PROTO(( void ));
1063#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00001064#endif
1065
Owen Anderson1dc69692006-10-18 02:21:48 +00001066#if YY_STACK_USED
1067static int yy_start_stack_ptr = 0;
1068static int yy_start_stack_depth = 0;
1069static int *yy_start_stack = 0;
1070#ifndef YY_NO_PUSH_STATE
1071static void yy_push_state YY_PROTO(( int new_state ));
1072#endif
1073#ifndef YY_NO_POP_STATE
1074static void yy_pop_state YY_PROTO(( void ));
1075#endif
1076#ifndef YY_NO_TOP_STATE
1077static int yy_top_state YY_PROTO(( void ));
1078#endif
1079
1080#else
1081#define YY_NO_PUSH_STATE 1
1082#define YY_NO_POP_STATE 1
1083#define YY_NO_TOP_STATE 1
1084#endif
1085
1086#ifdef YY_MALLOC_DECL
1087YY_MALLOC_DECL
1088#else
1089#if __STDC__
1090#ifndef __cplusplus
1091#include <stdlib.h>
1092#endif
1093#else
1094/* Just try to get by without declaring the routines. This will fail
1095 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1096 * or sizeof(void*) != sizeof(int).
1097 */
1098#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00001099#endif
1100
1101/* Amount of stuff to slurp up with each read. */
1102#ifndef YY_READ_BUF_SIZE
1103#define YY_READ_BUF_SIZE 8192
1104#endif
1105
1106/* Copy whatever the last rule matched to the standard output. */
Owen Anderson1dc69692006-10-18 02:21:48 +00001107
Reid Spencer68a24bd2005-08-27 18:50:39 +00001108#ifndef ECHO
1109/* This used to be an fputs(), but since the string might contain NUL's,
1110 * we now use fwrite().
1111 */
Owen Anderson1dc69692006-10-18 02:21:48 +00001112#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001113#endif
1114
1115/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1116 * is returned in "result".
1117 */
1118#ifndef YY_INPUT
1119#define YY_INPUT(buf,result,max_size) \
Owen Anderson1dc69692006-10-18 02:21:48 +00001120 if ( yy_current_buffer->yy_is_interactive ) \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001121 { \
Owen Anderson1dc69692006-10-18 02:21:48 +00001122 int c = '*', n; \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001123 for ( n = 0; n < max_size && \
Owen Anderson1dc69692006-10-18 02:21:48 +00001124 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001125 buf[n] = (char) c; \
1126 if ( c == '\n' ) \
1127 buf[n++] = (char) c; \
Owen Anderson1dc69692006-10-18 02:21:48 +00001128 if ( c == EOF && ferror( yyin ) ) \
Reid Spencer68a24bd2005-08-27 18:50:39 +00001129 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1130 result = n; \
1131 } \
Owen Anderson1dc69692006-10-18 02:21:48 +00001132 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1133 && ferror( yyin ) ) \
1134 YY_FATAL_ERROR( "input in flex scanner failed" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00001135#endif
1136
1137/* No semi-colon after return; correct usage is to write "yyterminate();" -
1138 * we don't want an extra ';' after the "return" because that will cause
1139 * some compilers to complain about unreachable statements.
1140 */
1141#ifndef yyterminate
1142#define yyterminate() return YY_NULL
1143#endif
1144
1145/* Number of entries by which start-condition stack grows. */
1146#ifndef YY_START_STACK_INCR
1147#define YY_START_STACK_INCR 25
1148#endif
1149
1150/* Report a fatal error. */
1151#ifndef YY_FATAL_ERROR
1152#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1153#endif
1154
1155/* Default declaration of generated scanner - a define so the user can
1156 * easily add parameters.
1157 */
1158#ifndef YY_DECL
Owen Anderson1dc69692006-10-18 02:21:48 +00001159#define YY_DECL int yylex YY_PROTO(( void ))
1160#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00001161
Owen Anderson1dc69692006-10-18 02:21:48 +00001162/* Code executed at the beginning of each rule, after yytext and yyleng
Reid Spencer68a24bd2005-08-27 18:50:39 +00001163 * have been set up.
1164 */
1165#ifndef YY_USER_ACTION
1166#define YY_USER_ACTION
1167#endif
1168
1169/* Code executed at the end of each rule. */
1170#ifndef YY_BREAK
1171#define YY_BREAK break;
1172#endif
1173
1174#define YY_RULE_SETUP \
1175 YY_USER_ACTION
1176
1177YY_DECL
Owen Anderson1dc69692006-10-18 02:21:48 +00001178 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00001179 register yy_state_type yy_current_state;
Reid Spencer3da59db2006-11-27 01:05:10 +00001180 register char *yy_cp = NULL, *yy_bp = NULL;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001181 register int yy_act;
Owen Anderson1dc69692006-10-18 02:21:48 +00001182
Reid Spencer14310612006-12-31 05:40:51 +00001183#line 186 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001184
1185
Reid Spencer14310612006-12-31 05:40:51 +00001186#line 1187 "Lexer.cpp"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001187
Owen Anderson1dc69692006-10-18 02:21:48 +00001188 if ( yy_init )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001189 {
Owen Anderson1dc69692006-10-18 02:21:48 +00001190 yy_init = 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001191
1192#ifdef YY_USER_INIT
1193 YY_USER_INIT;
1194#endif
1195
Owen Anderson1dc69692006-10-18 02:21:48 +00001196 if ( ! yy_start )
1197 yy_start = 1; /* first start state */
Reid Spencer68a24bd2005-08-27 18:50:39 +00001198
Owen Anderson1dc69692006-10-18 02:21:48 +00001199 if ( ! yyin )
1200 yyin = stdin;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001201
Owen Anderson1dc69692006-10-18 02:21:48 +00001202 if ( ! yyout )
1203 yyout = stdout;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001204
Owen Anderson1dc69692006-10-18 02:21:48 +00001205 if ( ! yy_current_buffer )
1206 yy_current_buffer =
1207 yy_create_buffer( yyin, YY_BUF_SIZE );
Reid Spencer68a24bd2005-08-27 18:50:39 +00001208
Owen Anderson1dc69692006-10-18 02:21:48 +00001209 yy_load_buffer_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00001210 }
1211
1212 while ( 1 ) /* loops until end-of-file is reached */
1213 {
Owen Anderson1dc69692006-10-18 02:21:48 +00001214 yy_cp = yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001215
Owen Anderson1dc69692006-10-18 02:21:48 +00001216 /* Support of yytext. */
1217 *yy_cp = yy_hold_char;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001218
1219 /* yy_bp points to the position in yy_ch_buf of the start of
1220 * the current run.
1221 */
1222 yy_bp = yy_cp;
1223
Owen Anderson1dc69692006-10-18 02:21:48 +00001224 yy_current_state = yy_start;
1225 yy_state_ptr = yy_state_buf;
1226 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001227yy_match:
1228 do
1229 {
1230 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1231 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1232 {
1233 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer14310612006-12-31 05:40:51 +00001234 if ( yy_current_state >= 557 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001235 yy_c = yy_meta[(unsigned int) yy_c];
1236 }
1237 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Owen Anderson1dc69692006-10-18 02:21:48 +00001238 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001239 ++yy_cp;
1240 }
Reid Spencer14310612006-12-31 05:40:51 +00001241 while ( yy_current_state != 556 );
Reid Spencer68a24bd2005-08-27 18:50:39 +00001242
1243yy_find_action:
Owen Anderson1dc69692006-10-18 02:21:48 +00001244 yy_current_state = *--yy_state_ptr;
1245 yy_lp = yy_accept[yy_current_state];
1246find_rule: /* we branch to this label when backing up */
1247 for ( ; ; ) /* until we find what rule we matched */
1248 {
1249 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1250 {
1251 yy_act = yy_acclist[yy_lp];
1252 {
1253 yy_full_match = yy_cp;
1254 break;
1255 }
1256 }
1257 --yy_cp;
1258 yy_current_state = *--yy_state_ptr;
1259 yy_lp = yy_accept[yy_current_state];
1260 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001261
1262 YY_DO_BEFORE_ACTION;
1263
Owen Anderson1dc69692006-10-18 02:21:48 +00001264 if ( yy_act != YY_END_OF_BUFFER )
Reid Spencer68a24bd2005-08-27 18:50:39 +00001265 {
1266 int yyl;
Owen Anderson1dc69692006-10-18 02:21:48 +00001267 for ( yyl = 0; yyl < yyleng; ++yyl )
1268 if ( yytext[yyl] == '\n' )
1269 ++yylineno;
Reid Spencer68a24bd2005-08-27 18:50:39 +00001270 }
1271
1272do_action: /* This label is used only to access EOF actions. */
1273
Owen Anderson1dc69692006-10-18 02:21:48 +00001274
Reid Spencer68a24bd2005-08-27 18:50:39 +00001275 switch ( yy_act )
1276 { /* beginning of action switch */
1277case 1:
1278YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001279#line 188 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001280{ /* Ignore comments for now */ }
1281 YY_BREAK
1282case 2:
1283YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001284#line 190 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001285{ return BEGINTOK; }
1286 YY_BREAK
1287case 3:
1288YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001289#line 191 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001290{ return ENDTOK; }
1291 YY_BREAK
1292case 4:
1293YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001294#line 192 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001295{ return TRUETOK; }
1296 YY_BREAK
1297case 5:
1298YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001299#line 193 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001300{ return FALSETOK; }
1301 YY_BREAK
1302case 6:
1303YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001304#line 194 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001305{ return DECLARE; }
1306 YY_BREAK
1307case 7:
1308YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001309#line 195 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001310{ return DEFINE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001311 YY_BREAK
1312case 8:
1313YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001314#line 196 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001315{ return GLOBAL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001316 YY_BREAK
1317case 9:
1318YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001319#line 197 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001320{ return CONSTANT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001321 YY_BREAK
1322case 10:
1323YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001324#line 198 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001325{ return INTERNAL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001326 YY_BREAK
1327case 11:
1328YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001329#line 199 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001330{ return LINKONCE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001331 YY_BREAK
1332case 12:
1333YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001334#line 200 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001335{ return WEAK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001336 YY_BREAK
1337case 13:
1338YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001339#line 201 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001340{ return APPENDING; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001341 YY_BREAK
1342case 14:
1343YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001344#line 202 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001345{ return DLLIMPORT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001346 YY_BREAK
1347case 15:
1348YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001349#line 203 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001350{ return DLLEXPORT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001351 YY_BREAK
1352case 16:
1353YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001354#line 204 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001355{ return EXTERN_WEAK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001356 YY_BREAK
1357case 17:
1358YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001359#line 205 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001360{ return EXTERNAL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001361 YY_BREAK
1362case 18:
1363YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001364#line 206 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001365{ return IMPLEMENTATION; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001366 YY_BREAK
1367case 19:
1368YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001369#line 207 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001370{ return ZEROINITIALIZER; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001371 YY_BREAK
1372case 20:
1373YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001374#line 208 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001375{ return DOTDOTDOT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001376 YY_BREAK
1377case 21:
1378YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001379#line 209 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001380{ return UNDEF; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001381 YY_BREAK
1382case 22:
1383YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001384#line 210 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001385{ return NULL_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001386 YY_BREAK
1387case 23:
1388YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001389#line 211 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001390{ return TO; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001391 YY_BREAK
1392case 24:
1393YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001394#line 212 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001395{ return TAIL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001396 YY_BREAK
1397case 25:
1398YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001399#line 213 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001400{ return TARGET; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001401 YY_BREAK
1402case 26:
1403YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001404#line 214 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001405{ return TRIPLE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001406 YY_BREAK
1407case 27:
1408YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001409#line 215 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001410{ return DEPLIBS; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001411 YY_BREAK
1412case 28:
1413YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001414#line 216 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001415{ return ENDIAN; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001416 YY_BREAK
1417case 29:
1418YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001419#line 217 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001420{ return POINTERSIZE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001421 YY_BREAK
1422case 30:
1423YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001424#line 218 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001425{ return DATALAYOUT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001426 YY_BREAK
1427case 31:
1428YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001429#line 219 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001430{ return LITTLE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001431 YY_BREAK
1432case 32:
1433YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001434#line 220 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001435{ return BIG; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001436 YY_BREAK
1437case 33:
1438YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001439#line 221 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001440{ return VOLATILE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001441 YY_BREAK
1442case 34:
1443YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001444#line 222 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001445{ return ALIGN; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001446 YY_BREAK
1447case 35:
1448YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001449#line 223 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001450{ return SECTION; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001451 YY_BREAK
1452case 36:
1453YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001454#line 224 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001455{ return MODULE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001456 YY_BREAK
1457case 37:
1458YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001459#line 225 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001460{ return ASM_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001461 YY_BREAK
1462case 38:
1463YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001464#line 226 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001465{ return SIDEEFFECT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001466 YY_BREAK
1467case 39:
1468YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001469#line 228 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001470{ return CC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001471 YY_BREAK
1472case 40:
1473YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001474#line 229 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001475{ return CCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001476 YY_BREAK
1477case 41:
1478YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001479#line 230 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001480{ return CSRETCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001481 YY_BREAK
1482case 42:
1483YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001484#line 231 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001485{ return FASTCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001486 YY_BREAK
1487case 43:
1488YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001489#line 232 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001490{ return COLDCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001491 YY_BREAK
1492case 44:
1493YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001494#line 233 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001495{ return X86_STDCALLCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001496 YY_BREAK
1497case 45:
1498YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001499#line 234 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001500{ return X86_FASTCALLCC_TOK; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001501 YY_BREAK
1502case 46:
1503YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001504#line 236 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001505{ RET_TY(Type::VoidTy, VOID); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001506 YY_BREAK
1507case 47:
1508YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001509#line 237 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001510{ RET_TY(Type::BoolTy, BOOL); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001511 YY_BREAK
1512case 48:
1513YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001514#line 238 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1515{ RET_TY(Type::Int8Ty, INT8); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001516 YY_BREAK
1517case 49:
1518YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001519#line 239 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1520{ RET_TY(Type::Int16Ty, INT16); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001521 YY_BREAK
1522case 50:
1523YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001524#line 240 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1525{ RET_TY(Type::Int32Ty, INT32); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001526 YY_BREAK
1527case 51:
1528YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001529#line 241 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1530{ RET_TY(Type::Int64Ty, INT64); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001531 YY_BREAK
1532case 52:
1533YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001534#line 242 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1535{ RET_TY(Type::FloatTy, FLOAT); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001536 YY_BREAK
1537case 53:
1538YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001539#line 243 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1540{ RET_TY(Type::DoubleTy,DOUBLE);}
Reid Spencer68a24bd2005-08-27 18:50:39 +00001541 YY_BREAK
1542case 54:
1543YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001544#line 244 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1545{ RET_TY(Type::LabelTy, LABEL); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001546 YY_BREAK
1547case 55:
1548YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001549#line 245 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1550{ return TYPE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001551 YY_BREAK
1552case 56:
1553YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001554#line 246 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1555{ return OPAQUE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001556 YY_BREAK
1557case 57:
1558YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001559#line 248 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1560{ RET_TOK(BinaryOpVal, Add, ADD); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001561 YY_BREAK
1562case 58:
1563YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001564#line 249 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1565{ RET_TOK(BinaryOpVal, Sub, SUB); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001566 YY_BREAK
1567case 59:
1568YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001569#line 250 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1570{ RET_TOK(BinaryOpVal, Mul, MUL); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001571 YY_BREAK
1572case 60:
1573YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001574#line 251 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1575{ RET_TOK(BinaryOpVal, UDiv, UDIV); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001576 YY_BREAK
1577case 61:
1578YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001579#line 252 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1580{ RET_TOK(BinaryOpVal, SDiv, SDIV); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001581 YY_BREAK
1582case 62:
1583YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001584#line 253 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1585{ RET_TOK(BinaryOpVal, FDiv, FDIV); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001586 YY_BREAK
1587case 63:
1588YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001589#line 254 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1590{ RET_TOK(BinaryOpVal, URem, UREM); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001591 YY_BREAK
1592case 64:
1593YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001594#line 255 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1595{ RET_TOK(BinaryOpVal, SRem, SREM); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001596 YY_BREAK
1597case 65:
1598YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001599#line 256 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1600{ RET_TOK(BinaryOpVal, FRem, FREM); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001601 YY_BREAK
1602case 66:
1603YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001604#line 257 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1605{ RET_TOK(BinaryOpVal, And, AND); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001606 YY_BREAK
1607case 67:
1608YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001609#line 258 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1610{ RET_TOK(BinaryOpVal, Or , OR ); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001611 YY_BREAK
1612case 68:
1613YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001614#line 259 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1615{ RET_TOK(BinaryOpVal, Xor, XOR); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001616 YY_BREAK
1617case 69:
1618YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001619#line 260 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1620{ RET_TOK(OtherOpVal, ICmp, ICMP); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001621 YY_BREAK
1622case 70:
1623YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001624#line 261 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1625{ RET_TOK(OtherOpVal, FCmp, FCMP); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001626 YY_BREAK
1627case 71:
1628YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001629#line 262 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1630{ return EQ; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001631 YY_BREAK
1632case 72:
1633YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001634#line 263 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1635{ return NE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001636 YY_BREAK
1637case 73:
1638YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001639#line 264 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1640{ return SLT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001641 YY_BREAK
1642case 74:
1643YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001644#line 265 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1645{ return SGT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001646 YY_BREAK
1647case 75:
1648YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001649#line 266 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1650{ return SLE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001651 YY_BREAK
1652case 76:
1653YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001654#line 267 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1655{ return SGE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001656 YY_BREAK
1657case 77:
1658YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001659#line 268 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1660{ return ULT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001661 YY_BREAK
1662case 78:
1663YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001664#line 269 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1665{ return UGT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001666 YY_BREAK
1667case 79:
1668YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001669#line 270 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1670{ return ULE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001671 YY_BREAK
1672case 80:
1673YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001674#line 271 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1675{ return UGE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001676 YY_BREAK
1677case 81:
1678YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001679#line 272 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1680{ return OEQ; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001681 YY_BREAK
1682case 82:
1683YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001684#line 273 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1685{ return ONE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001686 YY_BREAK
1687case 83:
1688YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001689#line 274 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1690{ return OLT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001691 YY_BREAK
1692case 84:
1693YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001694#line 275 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1695{ return OGT; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001696 YY_BREAK
1697case 85:
1698YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001699#line 276 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1700{ return OLE; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001701 YY_BREAK
1702case 86:
1703YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001704#line 277 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1705{ return OGE; }
Nate Begeman14b05292005-11-05 09:21:28 +00001706 YY_BREAK
1707case 87:
1708YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001709#line 278 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1710{ return ORD; }
Chris Lattnere869eef2005-11-12 00:11:49 +00001711 YY_BREAK
1712case 88:
1713YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001714#line 279 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1715{ return UNO; }
Robert Bocchino9c62b562006-01-10 19:04:32 +00001716 YY_BREAK
1717case 89:
1718YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001719#line 280 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1720{ return UEQ; }
Robert Bocchino2def1b32006-01-17 20:06:25 +00001721 YY_BREAK
1722case 90:
1723YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001724#line 281 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1725{ return UNE; }
Chris Lattner8335e842006-01-23 23:05:42 +00001726 YY_BREAK
1727case 91:
1728YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001729#line 283 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1730{ RET_TOK(OtherOpVal, PHI, PHI_TOK); }
Chris Lattner66316012006-01-24 04:14:29 +00001731 YY_BREAK
1732case 92:
1733YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001734#line 284 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1735{ RET_TOK(OtherOpVal, Call, CALL); }
Chris Lattner0e9c3762006-01-25 22:27:16 +00001736 YY_BREAK
1737case 93:
1738YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001739#line 285 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1740{ RET_TOK(CastOpVal, Trunc, TRUNC); }
Chris Lattnerd5efe842006-04-08 01:18:56 +00001741 YY_BREAK
1742case 94:
1743YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001744#line 286 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1745{ RET_TOK(CastOpVal, ZExt, ZEXT); }
Chris Lattner75466192006-05-19 21:28:53 +00001746 YY_BREAK
1747case 95:
1748YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001749#line 287 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1750{ RET_TOK(CastOpVal, SExt, SEXT); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001751 YY_BREAK
Chris Lattner75466192006-05-19 21:28:53 +00001752case 96:
Reid Spencer68a24bd2005-08-27 18:50:39 +00001753YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001754#line 288 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1755{ RET_TOK(CastOpVal, FPTrunc, FPTRUNC); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001756 YY_BREAK
Chris Lattner75466192006-05-19 21:28:53 +00001757case 97:
Reid Spencer68a24bd2005-08-27 18:50:39 +00001758YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001759#line 289 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1760{ RET_TOK(CastOpVal, FPExt, FPEXT); }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001761 YY_BREAK
Chris Lattner75466192006-05-19 21:28:53 +00001762case 98:
Reid Spencer68a24bd2005-08-27 18:50:39 +00001763YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001764#line 290 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1765{ RET_TOK(CastOpVal, UIToFP, UITOFP); }
Anton Korobeynikovbcb97702006-09-17 20:25:45 +00001766 YY_BREAK
1767case 99:
1768YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001769#line 291 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1770{ RET_TOK(CastOpVal, SIToFP, SITOFP); }
Anton Korobeynikovbcb97702006-09-17 20:25:45 +00001771 YY_BREAK
1772case 100:
1773YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001774#line 292 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1775{ RET_TOK(CastOpVal, FPToUI, FPTOUI); }
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001776 YY_BREAK
Anton Korobeynikovbcb97702006-09-17 20:25:45 +00001777case 101:
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001778YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001779#line 293 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1780{ RET_TOK(CastOpVal, FPToSI, FPTOSI); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001781 YY_BREAK
1782case 102:
1783YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001784#line 294 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1785{ RET_TOK(CastOpVal, IntToPtr, INTTOPTR); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001786 YY_BREAK
1787case 103:
1788YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001789#line 295 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1790{ RET_TOK(CastOpVal, PtrToInt, PTRTOINT); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001791 YY_BREAK
1792case 104:
1793YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001794#line 296 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1795{ RET_TOK(CastOpVal, BitCast, BITCAST); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001796 YY_BREAK
1797case 105:
1798YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001799#line 297 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1800{ RET_TOK(OtherOpVal, Select, SELECT); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001801 YY_BREAK
1802case 106:
1803YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001804#line 298 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1805{ RET_TOK(OtherOpVal, Shl, SHL); }
Reid Spencer3ed469c2006-11-02 20:25:50 +00001806 YY_BREAK
1807case 107:
1808YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001809#line 299 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1810{ RET_TOK(OtherOpVal, LShr, LSHR); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001811 YY_BREAK
1812case 108:
1813YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001814#line 300 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1815{ RET_TOK(OtherOpVal, AShr, ASHR); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001816 YY_BREAK
1817case 109:
1818YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001819#line 301 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1820{ RET_TOK(OtherOpVal, VAArg , VAARG); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001821 YY_BREAK
1822case 110:
1823YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001824#line 302 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1825{ RET_TOK(TermOpVal, Ret, RET); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001826 YY_BREAK
1827case 111:
1828YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001829#line 303 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1830{ RET_TOK(TermOpVal, Br, BR); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001831 YY_BREAK
1832case 112:
1833YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001834#line 304 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1835{ RET_TOK(TermOpVal, Switch, SWITCH); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001836 YY_BREAK
1837case 113:
1838YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001839#line 305 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1840{ RET_TOK(TermOpVal, Invoke, INVOKE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001841 YY_BREAK
1842case 114:
1843YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001844#line 306 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1845{ RET_TOK(TermOpVal, Unwind, UNWIND); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001846 YY_BREAK
1847case 115:
1848YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001849#line 307 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1850{ RET_TOK(TermOpVal, Unreachable, UNREACHABLE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001851 YY_BREAK
1852case 116:
1853YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001854#line 309 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1855{ RET_TOK(MemOpVal, Malloc, MALLOC); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001856 YY_BREAK
1857case 117:
1858YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001859#line 310 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1860{ RET_TOK(MemOpVal, Alloca, ALLOCA); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001861 YY_BREAK
1862case 118:
1863YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001864#line 311 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1865{ RET_TOK(MemOpVal, Free, FREE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001866 YY_BREAK
1867case 119:
1868YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001869#line 312 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1870{ RET_TOK(MemOpVal, Load, LOAD); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001871 YY_BREAK
1872case 120:
1873YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001874#line 313 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1875{ RET_TOK(MemOpVal, Store, STORE); }
Reid Spencer3da59db2006-11-27 01:05:10 +00001876 YY_BREAK
1877case 121:
1878YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001879#line 314 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1880{ RET_TOK(MemOpVal, GetElementPtr, GETELEMENTPTR); }
Reid Spencera132e042006-12-03 05:46:11 +00001881 YY_BREAK
1882case 122:
1883YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001884#line 316 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1885{ RET_TOK(OtherOpVal, ExtractElement, EXTRACTELEMENT); }
Reid Spencera132e042006-12-03 05:46:11 +00001886 YY_BREAK
1887case 123:
1888YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001889#line 317 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1890{ RET_TOK(OtherOpVal, InsertElement, INSERTELEMENT); }
Reid Spencera132e042006-12-03 05:46:11 +00001891 YY_BREAK
1892case 124:
1893YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001894#line 318 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
1895{ RET_TOK(OtherOpVal, ShuffleVector, SHUFFLEVECTOR); }
Reid Spencera132e042006-12-03 05:46:11 +00001896 YY_BREAK
1897case 125:
1898YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001899#line 321 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001900{
Owen Anderson1dc69692006-10-18 02:21:48 +00001901 UnEscapeLexed(yytext+1);
1902 llvmAsmlval.StrVal = strdup(yytext+1); // Skip %
1903 return VAR_ID;
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001904 }
1905 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00001906case 126:
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001907YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001908#line 326 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001909{
Owen Anderson1dc69692006-10-18 02:21:48 +00001910 yytext[strlen(yytext)-1] = 0; // nuke colon
1911 UnEscapeLexed(yytext);
1912 llvmAsmlval.StrVal = strdup(yytext);
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001913 return LABELSTR;
1914 }
1915 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00001916case 127:
Anton Korobeynikov43e3aad2006-09-14 18:25:26 +00001917YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001918#line 332 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Owen Anderson1dc69692006-10-18 02:21:48 +00001919{
1920 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
1921 UnEscapeLexed(yytext+1);
1922 llvmAsmlval.StrVal = strdup(yytext+1);
1923 return LABELSTR;
1924 }
1925 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00001926case 128:
Owen Anderson1dc69692006-10-18 02:21:48 +00001927YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001928#line 339 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001929{ // Note that we cannot unescape a string constant here! The
1930 // string constant might contain a \00 which would not be
1931 // understood by the string stuff. It is valid to make a
1932 // [sbyte] c"Hello World\00" constant, for example.
1933 //
Owen Anderson1dc69692006-10-18 02:21:48 +00001934 yytext[strlen(yytext)-1] = 0; // nuke end quote
1935 llvmAsmlval.StrVal = strdup(yytext+1); // Nuke start quote
Reid Spencer68a24bd2005-08-27 18:50:39 +00001936 return STRINGCONSTANT;
1937 }
1938 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00001939case 129:
Owen Anderson1dc69692006-10-18 02:21:48 +00001940YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001941#line 350 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001942{ llvmAsmlval.UInt64Val = atoull(yytext); return EUINT64VAL; }
1943 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00001944case 130:
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001945YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001946#line 351 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001947{
Owen Anderson1dc69692006-10-18 02:21:48 +00001948 uint64_t Val = atoull(yytext+1);
Reid Spencer68a24bd2005-08-27 18:50:39 +00001949 // +1: we have bigger negative range
1950 if (Val > (uint64_t)INT64_MAX+1)
Reid Spencer61c83e02006-08-18 08:43:06 +00001951 GenerateError("Constant too large for signed 64 bits!");
Reid Spencer68a24bd2005-08-27 18:50:39 +00001952 llvmAsmlval.SInt64Val = -Val;
1953 return ESINT64VAL;
1954 }
1955 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00001956case 131:
Reid Spencer68a24bd2005-08-27 18:50:39 +00001957YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001958#line 359 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001959{
Owen Anderson1dc69692006-10-18 02:21:48 +00001960 llvmAsmlval.UInt64Val = HexIntToVal(yytext+3);
1961 return yytext[0] == 's' ? ESINT64VAL : EUINT64VAL;
1962 }
1963 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00001964case 132:
Owen Anderson1dc69692006-10-18 02:21:48 +00001965YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001966#line 364 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Owen Anderson1dc69692006-10-18 02:21:48 +00001967{
1968 uint64_t Val = atoull(yytext+1);
Reid Spencer68a24bd2005-08-27 18:50:39 +00001969 if ((unsigned)Val != Val)
Reid Spencer61c83e02006-08-18 08:43:06 +00001970 GenerateError("Invalid value number (too large)!");
Reid Spencer68a24bd2005-08-27 18:50:39 +00001971 llvmAsmlval.UIntVal = unsigned(Val);
1972 return UINTVAL;
1973 }
1974 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00001975case 133:
Reid Spencer68a24bd2005-08-27 18:50:39 +00001976YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001977#line 371 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001978{
Owen Anderson1dc69692006-10-18 02:21:48 +00001979 uint64_t Val = atoull(yytext+2);
Reid Spencer68a24bd2005-08-27 18:50:39 +00001980 // +1: we have bigger negative range
1981 if (Val > (uint64_t)INT32_MAX+1)
Reid Spencer61c83e02006-08-18 08:43:06 +00001982 GenerateError("Constant too large for signed 32 bits!");
Reid Spencer68a24bd2005-08-27 18:50:39 +00001983 llvmAsmlval.SIntVal = (int)-Val;
1984 return SINTVAL;
1985 }
1986 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00001987case 134:
Owen Anderson1dc69692006-10-18 02:21:48 +00001988YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001989#line 380 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001990{ llvmAsmlval.FPVal = atof(yytext); return FPVAL; }
1991 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00001992case 135:
Reid Spencer6fd36ab2006-12-29 20:35:03 +00001993YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00001994#line 381 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Owen Anderson1dc69692006-10-18 02:21:48 +00001995{ llvmAsmlval.FPVal = HexToFP(yytext); return FPVAL; }
Reid Spencer68a24bd2005-08-27 18:50:39 +00001996 YY_BREAK
1997case YY_STATE_EOF(INITIAL):
Reid Spencer14310612006-12-31 05:40:51 +00001998#line 383 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00001999{
2000 /* Make sure to free the internal buffers for flex when we are
2001 * done reading our input!
2002 */
Owen Anderson1dc69692006-10-18 02:21:48 +00002003 yy_delete_buffer(YY_CURRENT_BUFFER);
Reid Spencer68a24bd2005-08-27 18:50:39 +00002004 return EOF;
2005 }
2006 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00002007case 136:
Anton Korobeynikovbcb97702006-09-17 20:25:45 +00002008YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00002009#line 391 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002010{ /* Ignore whitespace */ }
Owen Anderson1dc69692006-10-18 02:21:48 +00002011 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00002012case 137:
Owen Anderson1dc69692006-10-18 02:21:48 +00002013YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00002014#line 392 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002015{ return yytext[0]; }
2016 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00002017case 138:
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002018YY_RULE_SETUP
Reid Spencer14310612006-12-31 05:40:51 +00002019#line 394 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Reid Spencer68a24bd2005-08-27 18:50:39 +00002020YY_FATAL_ERROR( "flex scanner jammed" );
2021 YY_BREAK
Reid Spencer14310612006-12-31 05:40:51 +00002022#line 2023 "Lexer.cpp"
Reid Spencer68a24bd2005-08-27 18:50:39 +00002023
2024 case YY_END_OF_BUFFER:
2025 {
2026 /* Amount of text matched not including the EOB char. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002027 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002028
2029 /* Undo the effects of YY_DO_BEFORE_ACTION. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002030 *yy_cp = yy_hold_char;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002031 YY_RESTORE_YY_MORE_OFFSET
2032
Owen Anderson1dc69692006-10-18 02:21:48 +00002033 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002034 {
2035 /* We're scanning a new file or input source. It's
2036 * possible that this happened because the user
Owen Anderson1dc69692006-10-18 02:21:48 +00002037 * just pointed yyin at a new source and called
2038 * yylex(). If so, then we have to assure
2039 * consistency between yy_current_buffer and our
Reid Spencer68a24bd2005-08-27 18:50:39 +00002040 * globals. Here is the right place to do so, because
2041 * this is the first action (other than possibly a
2042 * back-up) that will match for the new input source.
2043 */
Owen Anderson1dc69692006-10-18 02:21:48 +00002044 yy_n_chars = yy_current_buffer->yy_n_chars;
2045 yy_current_buffer->yy_input_file = yyin;
2046 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002047 }
2048
2049 /* Note that here we test for yy_c_buf_p "<=" to the position
2050 * of the first EOB in the buffer, since yy_c_buf_p will
2051 * already have been incremented past the NUL character
2052 * (since all states make transitions on EOB to the
2053 * end-of-buffer state). Contrast this with the test
2054 * in input().
2055 */
Owen Anderson1dc69692006-10-18 02:21:48 +00002056 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002057 { /* This was really a NUL. */
2058 yy_state_type yy_next_state;
2059
Owen Anderson1dc69692006-10-18 02:21:48 +00002060 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002061
Owen Anderson1dc69692006-10-18 02:21:48 +00002062 yy_current_state = yy_get_previous_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002063
2064 /* Okay, we're now positioned to make the NUL
2065 * transition. We couldn't have
2066 * yy_get_previous_state() go ahead and do it
2067 * for us because it doesn't know how to deal
2068 * with the possibility of jamming (and we don't
2069 * want to build jamming into it because then it
2070 * will run more slowly).
2071 */
2072
2073 yy_next_state = yy_try_NUL_trans( yy_current_state );
2074
Owen Anderson1dc69692006-10-18 02:21:48 +00002075 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002076
2077 if ( yy_next_state )
2078 {
2079 /* Consume the NUL. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002080 yy_cp = ++yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002081 yy_current_state = yy_next_state;
2082 goto yy_match;
2083 }
2084
2085 else
2086 {
Owen Anderson1dc69692006-10-18 02:21:48 +00002087 yy_cp = yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002088 goto yy_find_action;
2089 }
2090 }
2091
Owen Anderson1dc69692006-10-18 02:21:48 +00002092 else switch ( yy_get_next_buffer() )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002093 {
2094 case EOB_ACT_END_OF_FILE:
2095 {
Owen Anderson1dc69692006-10-18 02:21:48 +00002096 yy_did_buffer_switch_on_eof = 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002097
Owen Anderson1dc69692006-10-18 02:21:48 +00002098 if ( yywrap() )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002099 {
2100 /* Note: because we've taken care in
2101 * yy_get_next_buffer() to have set up
Owen Anderson1dc69692006-10-18 02:21:48 +00002102 * yytext, we can now set up
Reid Spencer68a24bd2005-08-27 18:50:39 +00002103 * yy_c_buf_p so that if some total
2104 * hoser (like flex itself) wants to
2105 * call the scanner after we return the
2106 * YY_NULL, it'll still work - another
2107 * YY_NULL will get returned.
2108 */
Owen Anderson1dc69692006-10-18 02:21:48 +00002109 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002110
2111 yy_act = YY_STATE_EOF(YY_START);
2112 goto do_action;
2113 }
2114
2115 else
2116 {
Owen Anderson1dc69692006-10-18 02:21:48 +00002117 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002118 YY_NEW_FILE;
2119 }
2120 break;
2121 }
2122
2123 case EOB_ACT_CONTINUE_SCAN:
Owen Anderson1dc69692006-10-18 02:21:48 +00002124 yy_c_buf_p =
2125 yytext_ptr + yy_amount_of_matched_text;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002126
Owen Anderson1dc69692006-10-18 02:21:48 +00002127 yy_current_state = yy_get_previous_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002128
Owen Anderson1dc69692006-10-18 02:21:48 +00002129 yy_cp = yy_c_buf_p;
2130 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002131 goto yy_match;
2132
2133 case EOB_ACT_LAST_MATCH:
Owen Anderson1dc69692006-10-18 02:21:48 +00002134 yy_c_buf_p =
2135 &yy_current_buffer->yy_ch_buf[yy_n_chars];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002136
Owen Anderson1dc69692006-10-18 02:21:48 +00002137 yy_current_state = yy_get_previous_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002138
Owen Anderson1dc69692006-10-18 02:21:48 +00002139 yy_cp = yy_c_buf_p;
2140 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002141 goto yy_find_action;
2142 }
2143 break;
2144 }
2145
2146 default:
2147 YY_FATAL_ERROR(
2148 "fatal flex scanner internal error--no action found" );
2149 } /* end of action switch */
2150 } /* end of scanning one token */
Owen Anderson1dc69692006-10-18 02:21:48 +00002151 } /* end of yylex */
2152
Reid Spencer68a24bd2005-08-27 18:50:39 +00002153
2154/* yy_get_next_buffer - try to read in a new buffer
2155 *
2156 * Returns a code representing an action:
2157 * EOB_ACT_LAST_MATCH -
2158 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2159 * EOB_ACT_END_OF_FILE - end of file
2160 */
Owen Anderson1dc69692006-10-18 02:21:48 +00002161
2162static int yy_get_next_buffer()
2163 {
2164 register char *dest = yy_current_buffer->yy_ch_buf;
2165 register char *source = yytext_ptr;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002166 register int number_to_move, i;
2167 int ret_val;
2168
Owen Anderson1dc69692006-10-18 02:21:48 +00002169 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002170 YY_FATAL_ERROR(
2171 "fatal flex scanner internal error--end of buffer missed" );
2172
Owen Anderson1dc69692006-10-18 02:21:48 +00002173 if ( yy_current_buffer->yy_fill_buffer == 0 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002174 { /* Don't try to fill the buffer, so this is an EOF. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002175 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002176 {
2177 /* We matched a single character, the EOB, so
2178 * treat this as a final EOF.
2179 */
2180 return EOB_ACT_END_OF_FILE;
2181 }
2182
2183 else
2184 {
2185 /* We matched some text prior to the EOB, first
2186 * process it.
2187 */
2188 return EOB_ACT_LAST_MATCH;
2189 }
2190 }
2191
2192 /* Try to read more data. */
2193
2194 /* First move last chars to start of buffer. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002195 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002196
2197 for ( i = 0; i < number_to_move; ++i )
2198 *(dest++) = *(source++);
2199
Owen Anderson1dc69692006-10-18 02:21:48 +00002200 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002201 /* don't do the read, it's not guaranteed to return an EOF,
2202 * just force an EOF
2203 */
Owen Anderson1dc69692006-10-18 02:21:48 +00002204 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002205
2206 else
2207 {
Owen Anderson1dc69692006-10-18 02:21:48 +00002208 int num_to_read =
2209 yy_current_buffer->yy_buf_size - number_to_move - 1;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002210
2211 while ( num_to_read <= 0 )
2212 { /* Not enough room in the buffer - grow it. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002213#ifdef YY_USES_REJECT
2214 YY_FATAL_ERROR(
2215"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2216#else
Reid Spencer68a24bd2005-08-27 18:50:39 +00002217
2218 /* just a shorter name for the current buffer */
Owen Anderson1dc69692006-10-18 02:21:48 +00002219 YY_BUFFER_STATE b = yy_current_buffer;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002220
2221 int yy_c_buf_p_offset =
Owen Anderson1dc69692006-10-18 02:21:48 +00002222 (int) (yy_c_buf_p - b->yy_ch_buf);
Reid Spencer68a24bd2005-08-27 18:50:39 +00002223
2224 if ( b->yy_is_our_buffer )
2225 {
2226 int new_size = b->yy_buf_size * 2;
2227
2228 if ( new_size <= 0 )
2229 b->yy_buf_size += b->yy_buf_size / 8;
2230 else
2231 b->yy_buf_size *= 2;
2232
2233 b->yy_ch_buf = (char *)
2234 /* Include room in for 2 EOB chars. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002235 yy_flex_realloc( (void *) b->yy_ch_buf,
2236 b->yy_buf_size + 2 );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002237 }
2238 else
2239 /* Can't grow it, we don't own it. */
2240 b->yy_ch_buf = 0;
2241
2242 if ( ! b->yy_ch_buf )
2243 YY_FATAL_ERROR(
2244 "fatal error - scanner input buffer overflow" );
2245
Owen Anderson1dc69692006-10-18 02:21:48 +00002246 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002247
Owen Anderson1dc69692006-10-18 02:21:48 +00002248 num_to_read = yy_current_buffer->yy_buf_size -
Reid Spencer68a24bd2005-08-27 18:50:39 +00002249 number_to_move - 1;
Owen Anderson1dc69692006-10-18 02:21:48 +00002250#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00002251 }
2252
2253 if ( num_to_read > YY_READ_BUF_SIZE )
2254 num_to_read = YY_READ_BUF_SIZE;
2255
2256 /* Read in more data. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002257 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2258 yy_n_chars, num_to_read );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002259
Owen Anderson1dc69692006-10-18 02:21:48 +00002260 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002261 }
2262
Owen Anderson1dc69692006-10-18 02:21:48 +00002263 if ( yy_n_chars == 0 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002264 {
2265 if ( number_to_move == YY_MORE_ADJ )
2266 {
2267 ret_val = EOB_ACT_END_OF_FILE;
Owen Anderson1dc69692006-10-18 02:21:48 +00002268 yyrestart( yyin );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002269 }
2270
2271 else
2272 {
2273 ret_val = EOB_ACT_LAST_MATCH;
Owen Anderson1dc69692006-10-18 02:21:48 +00002274 yy_current_buffer->yy_buffer_status =
Reid Spencer68a24bd2005-08-27 18:50:39 +00002275 YY_BUFFER_EOF_PENDING;
2276 }
2277 }
2278
2279 else
2280 ret_val = EOB_ACT_CONTINUE_SCAN;
2281
Owen Anderson1dc69692006-10-18 02:21:48 +00002282 yy_n_chars += number_to_move;
2283 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2284 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002285
Owen Anderson1dc69692006-10-18 02:21:48 +00002286 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002287
2288 return ret_val;
Owen Anderson1dc69692006-10-18 02:21:48 +00002289 }
2290
Reid Spencer68a24bd2005-08-27 18:50:39 +00002291
2292/* yy_get_previous_state - get the state just before the EOB char was reached */
2293
Owen Anderson1dc69692006-10-18 02:21:48 +00002294static yy_state_type yy_get_previous_state()
2295 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002296 register yy_state_type yy_current_state;
2297 register char *yy_cp;
2298
Owen Anderson1dc69692006-10-18 02:21:48 +00002299 yy_current_state = yy_start;
2300 yy_state_ptr = yy_state_buf;
2301 *yy_state_ptr++ = yy_current_state;
2302
2303 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002304 {
2305 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2306 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2307 {
2308 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer14310612006-12-31 05:40:51 +00002309 if ( yy_current_state >= 557 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002310 yy_c = yy_meta[(unsigned int) yy_c];
2311 }
2312 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Owen Anderson1dc69692006-10-18 02:21:48 +00002313 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002314 }
2315
2316 return yy_current_state;
Owen Anderson1dc69692006-10-18 02:21:48 +00002317 }
2318
Reid Spencer68a24bd2005-08-27 18:50:39 +00002319
2320/* yy_try_NUL_trans - try to make a transition on the NUL character
2321 *
2322 * synopsis
2323 * next_state = yy_try_NUL_trans( current_state );
2324 */
Owen Anderson1dc69692006-10-18 02:21:48 +00002325
2326#ifdef YY_USE_PROTOS
2327static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2328#else
2329static yy_state_type yy_try_NUL_trans( yy_current_state )
2330yy_state_type yy_current_state;
2331#endif
2332 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002333 register int yy_is_jam;
2334
2335 register YY_CHAR yy_c = 1;
2336 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2337 {
2338 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer14310612006-12-31 05:40:51 +00002339 if ( yy_current_state >= 557 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002340 yy_c = yy_meta[(unsigned int) yy_c];
2341 }
2342 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer14310612006-12-31 05:40:51 +00002343 yy_is_jam = (yy_current_state == 556);
Owen Anderson1dc69692006-10-18 02:21:48 +00002344 if ( ! yy_is_jam )
2345 *yy_state_ptr++ = yy_current_state;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002346
2347 return yy_is_jam ? 0 : yy_current_state;
Owen Anderson1dc69692006-10-18 02:21:48 +00002348 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002349
2350
Owen Anderson1dc69692006-10-18 02:21:48 +00002351#ifndef YY_NO_UNPUT
2352#ifdef YY_USE_PROTOS
2353static inline void yyunput( int c, register char *yy_bp )
2354#else
2355static inline void yyunput( c, yy_bp )
2356int c;
2357register char *yy_bp;
2358#endif
2359 {
2360 register char *yy_cp = yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002361
Owen Anderson1dc69692006-10-18 02:21:48 +00002362 /* undo effects of setting up yytext */
2363 *yy_cp = yy_hold_char;
2364
2365 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002366 { /* need to shift things up to make room */
2367 /* +2 for EOB chars. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002368 register int number_to_move = yy_n_chars + 2;
2369 register char *dest = &yy_current_buffer->yy_ch_buf[
2370 yy_current_buffer->yy_buf_size + 2];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002371 register char *source =
Owen Anderson1dc69692006-10-18 02:21:48 +00002372 &yy_current_buffer->yy_ch_buf[number_to_move];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002373
Owen Anderson1dc69692006-10-18 02:21:48 +00002374 while ( source > yy_current_buffer->yy_ch_buf )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002375 *--dest = *--source;
2376
2377 yy_cp += (int) (dest - source);
2378 yy_bp += (int) (dest - source);
Owen Anderson1dc69692006-10-18 02:21:48 +00002379 yy_current_buffer->yy_n_chars =
2380 yy_n_chars = yy_current_buffer->yy_buf_size;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002381
Owen Anderson1dc69692006-10-18 02:21:48 +00002382 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002383 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2384 }
2385
2386 *--yy_cp = (char) c;
2387
Owen Anderson1dc69692006-10-18 02:21:48 +00002388 if ( c == '\n' )
2389 --yylineno;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002390
Owen Anderson1dc69692006-10-18 02:21:48 +00002391 yytext_ptr = yy_bp;
2392 yy_hold_char = *yy_cp;
2393 yy_c_buf_p = yy_cp;
2394 }
2395#endif /* ifndef YY_NO_UNPUT */
Reid Spencer68a24bd2005-08-27 18:50:39 +00002396
Owen Anderson1dc69692006-10-18 02:21:48 +00002397
Reid Spencer3da59db2006-11-27 01:05:10 +00002398#ifndef YY_NO_INPUT
Reid Spencer68a24bd2005-08-27 18:50:39 +00002399#ifdef __cplusplus
Owen Anderson1dc69692006-10-18 02:21:48 +00002400static int yyinput()
Reid Spencer68a24bd2005-08-27 18:50:39 +00002401#else
Owen Anderson1dc69692006-10-18 02:21:48 +00002402static int input()
Reid Spencer68a24bd2005-08-27 18:50:39 +00002403#endif
Owen Anderson1dc69692006-10-18 02:21:48 +00002404 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002405 int c;
2406
Owen Anderson1dc69692006-10-18 02:21:48 +00002407 *yy_c_buf_p = yy_hold_char;
2408
2409 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002410 {
2411 /* yy_c_buf_p now points to the character we want to return.
2412 * If this occurs *before* the EOB characters, then it's a
2413 * valid NUL; if not, then we've hit the end of the buffer.
2414 */
Owen Anderson1dc69692006-10-18 02:21:48 +00002415 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002416 /* This was really a NUL. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002417 *yy_c_buf_p = '\0';
Reid Spencer68a24bd2005-08-27 18:50:39 +00002418
2419 else
2420 { /* need more input */
Owen Anderson1dc69692006-10-18 02:21:48 +00002421 int offset = yy_c_buf_p - yytext_ptr;
2422 ++yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002423
Owen Anderson1dc69692006-10-18 02:21:48 +00002424 switch ( yy_get_next_buffer() )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002425 {
2426 case EOB_ACT_LAST_MATCH:
2427 /* This happens because yy_g_n_b()
2428 * sees that we've accumulated a
2429 * token and flags that we need to
2430 * try matching the token before
2431 * proceeding. But for input(),
2432 * there's no matching to consider.
2433 * So convert the EOB_ACT_LAST_MATCH
2434 * to EOB_ACT_END_OF_FILE.
2435 */
2436
2437 /* Reset buffer status. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002438 yyrestart( yyin );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002439
Owen Anderson1dc69692006-10-18 02:21:48 +00002440 /* fall through */
Reid Spencer68a24bd2005-08-27 18:50:39 +00002441
2442 case EOB_ACT_END_OF_FILE:
2443 {
Owen Anderson1dc69692006-10-18 02:21:48 +00002444 if ( yywrap() )
Reid Spencer61c83e02006-08-18 08:43:06 +00002445 return EOF;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002446
Owen Anderson1dc69692006-10-18 02:21:48 +00002447 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002448 YY_NEW_FILE;
2449#ifdef __cplusplus
2450 return yyinput();
2451#else
2452 return input();
2453#endif
2454 }
2455
2456 case EOB_ACT_CONTINUE_SCAN:
Owen Anderson1dc69692006-10-18 02:21:48 +00002457 yy_c_buf_p = yytext_ptr + offset;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002458 break;
2459 }
2460 }
2461 }
2462
Owen Anderson1dc69692006-10-18 02:21:48 +00002463 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2464 *yy_c_buf_p = '\0'; /* preserve yytext */
2465 yy_hold_char = *++yy_c_buf_p;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002466
2467 if ( c == '\n' )
Owen Anderson1dc69692006-10-18 02:21:48 +00002468 ++yylineno;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002469
2470 return c;
2471 }
Reid Spencer3da59db2006-11-27 01:05:10 +00002472#endif /* YY_NO_INPUT */
Reid Spencer68a24bd2005-08-27 18:50:39 +00002473
Owen Anderson1dc69692006-10-18 02:21:48 +00002474#ifdef YY_USE_PROTOS
2475void yyrestart( FILE *input_file )
2476#else
2477void yyrestart( input_file )
2478FILE *input_file;
2479#endif
2480 {
2481 if ( ! yy_current_buffer )
2482 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2483
2484 yy_init_buffer( yy_current_buffer, input_file );
2485 yy_load_buffer_state();
2486 }
2487
2488
2489#ifdef YY_USE_PROTOS
2490void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2491#else
2492void yy_switch_to_buffer( new_buffer )
2493YY_BUFFER_STATE new_buffer;
2494#endif
2495 {
2496 if ( yy_current_buffer == new_buffer )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002497 return;
2498
Owen Anderson1dc69692006-10-18 02:21:48 +00002499 if ( yy_current_buffer )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002500 {
2501 /* Flush out information for old buffer. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002502 *yy_c_buf_p = yy_hold_char;
2503 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2504 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002505 }
2506
Owen Anderson1dc69692006-10-18 02:21:48 +00002507 yy_current_buffer = new_buffer;
2508 yy_load_buffer_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002509
2510 /* We don't actually know whether we did this switch during
Owen Anderson1dc69692006-10-18 02:21:48 +00002511 * EOF (yywrap()) processing, but the only time this flag
2512 * is looked at is after yywrap() is called, so it's safe
Reid Spencer68a24bd2005-08-27 18:50:39 +00002513 * to go ahead and always set it.
2514 */
Owen Anderson1dc69692006-10-18 02:21:48 +00002515 yy_did_buffer_switch_on_eof = 1;
2516 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002517
2518
Owen Anderson1dc69692006-10-18 02:21:48 +00002519#ifdef YY_USE_PROTOS
2520void yy_load_buffer_state( void )
2521#else
2522void yy_load_buffer_state()
2523#endif
2524 {
2525 yy_n_chars = yy_current_buffer->yy_n_chars;
2526 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2527 yyin = yy_current_buffer->yy_input_file;
2528 yy_hold_char = *yy_c_buf_p;
2529 }
2530
2531
2532#ifdef YY_USE_PROTOS
2533YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2534#else
2535YY_BUFFER_STATE yy_create_buffer( file, size )
2536FILE *file;
2537int size;
2538#endif
2539 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002540 YY_BUFFER_STATE b;
Owen Anderson1dc69692006-10-18 02:21:48 +00002541
2542 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002543 if ( ! b )
Owen Anderson1dc69692006-10-18 02:21:48 +00002544 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002545
2546 b->yy_buf_size = size;
2547
2548 /* yy_ch_buf has to be 2 characters longer than the size given because
2549 * we need to put in 2 end-of-buffer characters.
2550 */
Owen Anderson1dc69692006-10-18 02:21:48 +00002551 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002552 if ( ! b->yy_ch_buf )
Owen Anderson1dc69692006-10-18 02:21:48 +00002553 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002554
2555 b->yy_is_our_buffer = 1;
2556
Owen Anderson1dc69692006-10-18 02:21:48 +00002557 yy_init_buffer( b, file );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002558
2559 return b;
Owen Anderson1dc69692006-10-18 02:21:48 +00002560 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002561
Owen Anderson1dc69692006-10-18 02:21:48 +00002562
2563#ifdef YY_USE_PROTOS
2564void yy_delete_buffer( YY_BUFFER_STATE b )
2565#else
2566void yy_delete_buffer( b )
2567YY_BUFFER_STATE b;
2568#endif
2569 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002570 if ( ! b )
2571 return;
2572
Owen Anderson1dc69692006-10-18 02:21:48 +00002573 if ( b == yy_current_buffer )
2574 yy_current_buffer = (YY_BUFFER_STATE) 0;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002575
2576 if ( b->yy_is_our_buffer )
Owen Anderson1dc69692006-10-18 02:21:48 +00002577 yy_flex_free( (void *) b->yy_ch_buf );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002578
Owen Anderson1dc69692006-10-18 02:21:48 +00002579 yy_flex_free( (void *) b );
2580 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002581
2582
Owen Anderson1dc69692006-10-18 02:21:48 +00002583
2584#ifdef YY_USE_PROTOS
2585void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2586#else
2587void yy_init_buffer( b, file )
2588YY_BUFFER_STATE b;
2589FILE *file;
2590#endif
2591
2592
2593 {
2594 yy_flush_buffer( b );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002595
2596 b->yy_input_file = file;
2597 b->yy_fill_buffer = 1;
2598
Owen Anderson1dc69692006-10-18 02:21:48 +00002599#if YY_ALWAYS_INTERACTIVE
2600 b->yy_is_interactive = 1;
2601#else
2602#if YY_NEVER_INTERACTIVE
2603 b->yy_is_interactive = 0;
2604#else
2605 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2606#endif
2607#endif
2608 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002609
2610
Owen Anderson1dc69692006-10-18 02:21:48 +00002611#ifdef YY_USE_PROTOS
2612void yy_flush_buffer( YY_BUFFER_STATE b )
2613#else
2614void yy_flush_buffer( b )
2615YY_BUFFER_STATE b;
2616#endif
2617
2618 {
2619 if ( ! b )
Reid Spencer68a24bd2005-08-27 18:50:39 +00002620 return;
2621
2622 b->yy_n_chars = 0;
2623
2624 /* We always need two end-of-buffer characters. The first causes
2625 * a transition to the end-of-buffer state. The second causes
2626 * a jam in that state.
2627 */
2628 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2629 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2630
2631 b->yy_buf_pos = &b->yy_ch_buf[0];
2632
2633 b->yy_at_bol = 1;
2634 b->yy_buffer_status = YY_BUFFER_NEW;
2635
Owen Anderson1dc69692006-10-18 02:21:48 +00002636 if ( b == yy_current_buffer )
2637 yy_load_buffer_state();
Reid Spencer68a24bd2005-08-27 18:50:39 +00002638 }
2639
2640
Owen Anderson1dc69692006-10-18 02:21:48 +00002641#ifndef YY_NO_SCAN_BUFFER
2642#ifdef YY_USE_PROTOS
2643YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2644#else
2645YY_BUFFER_STATE yy_scan_buffer( base, size )
2646char *base;
2647yy_size_t size;
2648#endif
2649 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002650 YY_BUFFER_STATE b;
Owen Anderson1dc69692006-10-18 02:21:48 +00002651
Reid Spencer68a24bd2005-08-27 18:50:39 +00002652 if ( size < 2 ||
2653 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2654 base[size-1] != YY_END_OF_BUFFER_CHAR )
2655 /* They forgot to leave room for the EOB's. */
2656 return 0;
2657
Owen Anderson1dc69692006-10-18 02:21:48 +00002658 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002659 if ( ! b )
Owen Anderson1dc69692006-10-18 02:21:48 +00002660 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002661
2662 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2663 b->yy_buf_pos = b->yy_ch_buf = base;
2664 b->yy_is_our_buffer = 0;
2665 b->yy_input_file = 0;
2666 b->yy_n_chars = b->yy_buf_size;
2667 b->yy_is_interactive = 0;
2668 b->yy_at_bol = 1;
2669 b->yy_fill_buffer = 0;
2670 b->yy_buffer_status = YY_BUFFER_NEW;
2671
Owen Anderson1dc69692006-10-18 02:21:48 +00002672 yy_switch_to_buffer( b );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002673
2674 return b;
Owen Anderson1dc69692006-10-18 02:21:48 +00002675 }
2676#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00002677
2678
Owen Anderson1dc69692006-10-18 02:21:48 +00002679#ifndef YY_NO_SCAN_STRING
2680#ifdef YY_USE_PROTOS
2681YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2682#else
2683YY_BUFFER_STATE yy_scan_string( yy_str )
2684yyconst char *yy_str;
2685#endif
2686 {
2687 int len;
2688 for ( len = 0; yy_str[len]; ++len )
2689 ;
2690
2691 return yy_scan_bytes( yy_str, len );
2692 }
2693#endif
2694
2695
2696#ifndef YY_NO_SCAN_BYTES
2697#ifdef YY_USE_PROTOS
2698YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2699#else
2700YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2701yyconst char *bytes;
2702int len;
2703#endif
2704 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002705 YY_BUFFER_STATE b;
2706 char *buf;
2707 yy_size_t n;
2708 int i;
Owen Anderson1dc69692006-10-18 02:21:48 +00002709
Reid Spencer68a24bd2005-08-27 18:50:39 +00002710 /* Get memory for full buffer, including space for trailing EOB's. */
Owen Anderson1dc69692006-10-18 02:21:48 +00002711 n = len + 2;
2712 buf = (char *) yy_flex_alloc( n );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002713 if ( ! buf )
Owen Anderson1dc69692006-10-18 02:21:48 +00002714 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002715
Owen Anderson1dc69692006-10-18 02:21:48 +00002716 for ( i = 0; i < len; ++i )
2717 buf[i] = bytes[i];
Reid Spencer68a24bd2005-08-27 18:50:39 +00002718
Owen Anderson1dc69692006-10-18 02:21:48 +00002719 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
Reid Spencer68a24bd2005-08-27 18:50:39 +00002720
Owen Anderson1dc69692006-10-18 02:21:48 +00002721 b = yy_scan_buffer( buf, n );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002722 if ( ! b )
Owen Anderson1dc69692006-10-18 02:21:48 +00002723 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002724
2725 /* It's okay to grow etc. this buffer, and we should throw it
2726 * away when we're done.
2727 */
2728 b->yy_is_our_buffer = 1;
2729
2730 return b;
Owen Anderson1dc69692006-10-18 02:21:48 +00002731 }
2732#endif
2733
2734
2735#ifndef YY_NO_PUSH_STATE
2736#ifdef YY_USE_PROTOS
2737static void yy_push_state( int new_state )
2738#else
2739static void yy_push_state( new_state )
2740int new_state;
2741#endif
2742 {
2743 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2744 {
2745 yy_size_t new_size;
2746
2747 yy_start_stack_depth += YY_START_STACK_INCR;
2748 new_size = yy_start_stack_depth * sizeof( int );
2749
2750 if ( ! yy_start_stack )
2751 yy_start_stack = (int *) yy_flex_alloc( new_size );
2752
2753 else
2754 yy_start_stack = (int *) yy_flex_realloc(
2755 (void *) yy_start_stack, new_size );
2756
2757 if ( ! yy_start_stack )
2758 YY_FATAL_ERROR(
2759 "out of memory expanding start-condition stack" );
2760 }
2761
2762 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2763
2764 BEGIN(new_state);
2765 }
2766#endif
2767
2768
2769#ifndef YY_NO_POP_STATE
2770static void yy_pop_state()
2771 {
2772 if ( --yy_start_stack_ptr < 0 )
2773 YY_FATAL_ERROR( "start-condition stack underflow" );
2774
2775 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2776 }
2777#endif
2778
2779
2780#ifndef YY_NO_TOP_STATE
2781static int yy_top_state()
2782 {
2783 return yy_start_stack[yy_start_stack_ptr - 1];
2784 }
2785#endif
Reid Spencer68a24bd2005-08-27 18:50:39 +00002786
2787#ifndef YY_EXIT_FAILURE
2788#define YY_EXIT_FAILURE 2
2789#endif
2790
Owen Anderson1dc69692006-10-18 02:21:48 +00002791#ifdef YY_USE_PROTOS
2792static void yy_fatal_error( yyconst char msg[] )
2793#else
2794static void yy_fatal_error( msg )
2795char msg[];
2796#endif
2797 {
2798 (void) fprintf( stderr, "%s\n", msg );
Reid Spencer68a24bd2005-08-27 18:50:39 +00002799 exit( YY_EXIT_FAILURE );
Owen Anderson1dc69692006-10-18 02:21:48 +00002800 }
2801
2802
Reid Spencer68a24bd2005-08-27 18:50:39 +00002803
2804/* Redefine yyless() so it works in section 3 code. */
2805
2806#undef yyless
2807#define yyless(n) \
2808 do \
2809 { \
Owen Anderson1dc69692006-10-18 02:21:48 +00002810 /* Undo effects of setting up yytext. */ \
2811 yytext[yyleng] = yy_hold_char; \
2812 yy_c_buf_p = yytext + n; \
2813 yy_hold_char = *yy_c_buf_p; \
2814 *yy_c_buf_p = '\0'; \
2815 yyleng = n; \
Reid Spencer68a24bd2005-08-27 18:50:39 +00002816 } \
2817 while ( 0 )
2818
2819
Owen Anderson1dc69692006-10-18 02:21:48 +00002820/* Internal utility routines. */
Reid Spencer68a24bd2005-08-27 18:50:39 +00002821
2822#ifndef yytext_ptr
Owen Anderson1dc69692006-10-18 02:21:48 +00002823#ifdef YY_USE_PROTOS
2824static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2825#else
2826static void yy_flex_strncpy( s1, s2, n )
2827char *s1;
2828yyconst char *s2;
2829int n;
2830#endif
2831 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002832 register int i;
2833 for ( i = 0; i < n; ++i )
2834 s1[i] = s2[i];
Owen Anderson1dc69692006-10-18 02:21:48 +00002835 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002836#endif
2837
2838#ifdef YY_NEED_STRLEN
Owen Anderson1dc69692006-10-18 02:21:48 +00002839#ifdef YY_USE_PROTOS
2840static int yy_flex_strlen( yyconst char *s )
2841#else
2842static int yy_flex_strlen( s )
2843yyconst char *s;
2844#endif
2845 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002846 register int n;
2847 for ( n = 0; s[n]; ++n )
2848 ;
2849
2850 return n;
Owen Anderson1dc69692006-10-18 02:21:48 +00002851 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002852#endif
2853
Reid Spencer68a24bd2005-08-27 18:50:39 +00002854
Owen Anderson1dc69692006-10-18 02:21:48 +00002855#ifdef YY_USE_PROTOS
2856static void *yy_flex_alloc( yy_size_t size )
2857#else
2858static void *yy_flex_alloc( size )
2859yy_size_t size;
2860#endif
2861 {
2862 return (void *) malloc( size );
2863 }
2864
2865#ifdef YY_USE_PROTOS
2866static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
2867#else
2868static inline void *yy_flex_realloc( ptr, size )
2869void *ptr;
2870yy_size_t size;
2871#endif
2872 {
Reid Spencer68a24bd2005-08-27 18:50:39 +00002873 /* The cast to (char *) in the following accommodates both
2874 * implementations that use char* generic pointers, and those
2875 * that use void* generic pointers. It works with the latter
2876 * because both ANSI C and C++ allow castless assignment from
2877 * any pointer type to void*, and deal with argument conversions
2878 * as though doing an assignment.
2879 */
2880 return (void *) realloc( (char *) ptr, size );
Owen Anderson1dc69692006-10-18 02:21:48 +00002881 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002882
Owen Anderson1dc69692006-10-18 02:21:48 +00002883#ifdef YY_USE_PROTOS
2884static void yy_flex_free( void *ptr )
2885#else
2886static void yy_flex_free( ptr )
2887void *ptr;
2888#endif
2889 {
2890 free( ptr );
2891 }
Reid Spencer68a24bd2005-08-27 18:50:39 +00002892
Owen Anderson1dc69692006-10-18 02:21:48 +00002893#if YY_MAIN
2894int main()
2895 {
2896 yylex();
2897 return 0;
2898 }
2899#endif
Reid Spencer14310612006-12-31 05:40:51 +00002900#line 394 "/proj/llvm/llvm-3/lib/AsmParser/Lexer.l"
Chris Lattner2fecc0f2006-02-15 07:02:59 +00002901