1 /* A lexical scanner generated by flex */
3 /* Scanner skeleton version:
4 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
8 #define YY_FLEX_MAJOR_VERSION 2
9 #define YY_FLEX_MINOR_VERSION 5
14 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
27 /* Use prototypes in function declarations. */
30 /* The "const" storage-class-modifier is valid. */
33 #else /* ! __cplusplus */
41 #endif /* ! __cplusplus */
60 #define YY_PROTO(proto) proto
62 #define YY_PROTO(proto) ()
65 /* Returned upon end-of-file. */
68 /* Promotes a possibly negative, possibly signed char to an unsigned
69 * integer for use as an array index. If the signed char is negative,
70 * we want to instead treat it as an 8-bit unsigned char, hence the
73 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
75 /* Enter a start condition. This macro really ought to take a parameter,
76 * but we do it the disgusting crufty way forced on us by the ()-less
77 * definition of BEGIN.
79 #define BEGIN yy_start = 1 + 2 *
81 /* Translate the current start state into a value that can be later handed
82 * to BEGIN to return to the state. The YYSTATE alias is for lex
85 #define YY_START ((yy_start - 1) / 2)
86 #define YYSTATE YY_START
88 /* Action number for EOF rule of a given start state. */
89 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
91 /* Special action meaning "start processing a new file". */
92 #define YY_NEW_FILE yyrestart( yyin )
94 #define YY_END_OF_BUFFER_CHAR 0
96 /* Size of default input buffer. */
97 #define YY_BUF_SIZE 16384
99 typedef struct yy_buffer_state *YY_BUFFER_STATE;
102 extern FILE *yyin, *yyout;
104 #define EOB_ACT_CONTINUE_SCAN 0
105 #define EOB_ACT_END_OF_FILE 1
106 #define EOB_ACT_LAST_MATCH 2
108 /* The funky do-while in the following #define is used to turn the definition
109 * int a single C statement (which needs a semi-colon terminator). This
110 * avoids problems with code like:
112 * if ( condition_holds )
115 * do_something_else();
117 * Prior to using the do-while the compiler would get upset at the
118 * "else" because it interpreted the "if" statement as being all
119 * done when it reached the ';' after the yyless() call.
122 /* Return all but the first 'n' matched characters back to the input stream. */
127 /* Undo effects of setting up yytext. */ \
128 *yy_cp = yy_hold_char; \
129 YY_RESTORE_YY_MORE_OFFSET \
130 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
131 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
135 #define unput(c) yyunput( c, yytext_ptr )
137 /* The following is because we cannot portably get our hands on size_t
138 * (without autoconf's help, which isn't available because we want
139 * flex-generated scanners to compile on their own).
141 typedef unsigned int yy_size_t;
144 struct yy_buffer_state
148 char *yy_ch_buf; /* input buffer */
149 char *yy_buf_pos; /* current position in input buffer */
151 /* Size of input buffer in bytes, not including room for EOB
154 yy_size_t yy_buf_size;
156 /* Number of characters read into yy_ch_buf, not including EOB
161 /* Whether we "own" the buffer - i.e., we know we created it,
162 * and can realloc() it to grow it, and should free() it to
165 int yy_is_our_buffer;
167 /* Whether this is an "interactive" input source; if so, and
168 * if we're using stdio for input, then we want to use getc()
169 * instead of fread(), to make sure we stop fetching input after
172 int yy_is_interactive;
174 /* Whether we're considered to be at the beginning of a line.
175 * If so, '^' rules will be active on the next match, otherwise
180 /* Whether to try to fill the input buffer when we reach the
185 int yy_buffer_status;
186 #define YY_BUFFER_NEW 0
187 #define YY_BUFFER_NORMAL 1
188 /* When an EOF's been seen but there's still some text to process
189 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
190 * shouldn't try reading from the input source any more. We might
191 * still have a bunch of tokens to match, though, because of
192 * possible backing-up.
194 * When we actually see the EOF, we change the status to "new"
195 * (via yyrestart()), so that the user can continue scanning by
196 * just pointing yyin at a new input file.
198 #define YY_BUFFER_EOF_PENDING 2
201 static YY_BUFFER_STATE yy_current_buffer = 0;
203 /* We provide macros for accessing buffer states in case in the
204 * future we want to put the buffer states in a more general
207 #define YY_CURRENT_BUFFER yy_current_buffer
210 /* yy_hold_char holds the character lost when yytext is formed. */
211 static char yy_hold_char;
213 static int yy_n_chars; /* number of characters read into yy_ch_buf */
218 /* Points to current character in buffer. */
219 static char *yy_c_buf_p = (char *) 0;
220 static int yy_init = 1; /* whether we need to initialize */
221 static int yy_start = 0; /* start state number */
223 /* Flag which is used to allow yywrap()'s to do buffer switches
224 * instead of setting up a fresh yyin. A bit of a hack ...
226 static int yy_did_buffer_switch_on_eof;
228 void yyrestart YY_PROTO(( FILE *input_file ));
230 void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
231 void yy_load_buffer_state YY_PROTO(( void ));
232 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
233 void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
234 void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
235 void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
236 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
238 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
239 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
240 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
242 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
243 static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
244 static void yy_flex_free YY_PROTO(( void * ));
246 #define yy_new_buffer yy_create_buffer
248 #define yy_set_interactive(is_interactive) \
250 if ( ! yy_current_buffer ) \
251 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
252 yy_current_buffer->yy_is_interactive = is_interactive; \
255 #define yy_set_bol(at_bol) \
257 if ( ! yy_current_buffer ) \
258 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
259 yy_current_buffer->yy_at_bol = at_bol; \
262 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
265 #define YY_USES_REJECT
266 typedef unsigned char YY_CHAR;
267 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
268 typedef int yy_state_type;
270 #define yytext_ptr yytext
272 static yy_state_type yy_get_previous_state YY_PROTO(( void ));
273 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
274 static int yy_get_next_buffer YY_PROTO(( void ));
275 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
277 /* Done after the current pattern has been matched and before the
278 * corresponding action - sets up yytext.
280 #define YY_DO_BEFORE_ACTION \
281 yytext_ptr = yy_bp; \
282 yyleng = (int) (yy_cp - yy_bp); \
283 yy_hold_char = *yy_cp; \
287 #define YY_NUM_RULES 61
288 #define YY_END_OF_BUFFER 62
289 static yyconst short int yy_acclist[302] =
291 62, 60, 61, 59, 60, 61, 1, 59, 61, 60,
292 61, 60, 61, 60, 61, 60, 61, 12, 60, 61,
293 1, 13, 61, 12, 60, 61, 12, 60, 61, 28,
294 60, 61, 1, 29, 61, 22, 28, 60, 61, 28,
295 60, 61, 28, 60, 61, 28, 60, 61, 28, 60,
296 61, 26, 28, 60, 61, 27, 28, 60, 61, 28,
297 60, 61, 25, 60, 61, 1, 61, 24, 25, 60,
298 61, 25, 60, 61, 25, 60, 61, 60, 61, 60,
299 61, 55, 60, 61, 55, 60, 61, 55, 60, 61,
300 56, 60, 61, 60, 61, 60, 61, 53, 60, 61,
302 53, 60, 61, 55, 60, 61, 55, 60, 61, 55,
303 60, 61, 55, 60, 61, 55, 60, 61, 55, 60,
304 61, 55, 60, 61, 55, 60, 61, 55, 60, 61,
305 55, 60, 61, 55, 60, 61, 55, 60, 61, 57,
306 60, 61, 58, 60, 61, 7, 15, 11, 8, 21,
307 16, 23, 9, 55, 54, 55, 55, 53, 10, 53,
308 53, 55, 55, 55, 55, 55, 55, 55, 55, 55,
309 55, 55, 55, 55, 55, 55, 55, 55, 55, 3,
310 14, 17, 19, 4, 5, 54, 55, 55, 45, 53,
311 6, 53, 53, 55, 55, 55, 55, 55, 55, 40,
313 55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
314 55, 55, 55, 18, 20, 55, 31, 55, 55, 43,
315 55, 55, 55, 35, 55, 55, 38, 55, 55, 55,
316 55, 55, 55, 55, 55, 55, 55, 55, 32, 55,
317 30, 55, 55, 44, 55, 55, 41, 55, 55, 55,
318 55, 55, 39, 55, 55, 55, 55, 34, 55, 55,
319 55, 55, 55, 42, 55, 55, 55, 55, 46, 55,
320 50, 55, 36, 55, 33, 55, 55, 55, 55, 55,
321 52, 55, 55, 47, 55, 55, 49, 55, 55, 48,
322 55, 51, 55, 37, 55, 55, 55, 55, 2, 2,
327 static yyconst short int yy_accept[233] =
329 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
330 1, 1, 1, 2, 4, 7, 10, 12, 14, 16,
331 18, 21, 24, 27, 30, 33, 36, 40, 43, 46,
332 49, 52, 56, 60, 63, 66, 68, 72, 75, 78,
333 80, 82, 85, 88, 91, 94, 96, 98, 101, 104,
334 107, 110, 113, 116, 119, 122, 125, 128, 131, 134,
335 137, 140, 143, 146, 147, 147, 147, 147, 147, 148,
336 149, 149, 149, 149, 150, 150, 151, 152, 153, 154,
337 154, 154, 155, 156, 157, 158, 158, 159, 160, 160,
338 160, 161, 161, 161, 162, 163, 164, 165, 166, 167,
340 168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
341 178, 179, 180, 180, 181, 181, 181, 182, 182, 182,
342 183, 184, 184, 185, 185, 186, 186, 187, 188, 189,
343 190, 191, 191, 192, 193, 194, 195, 196, 197, 198,
344 199, 200, 202, 203, 204, 205, 206, 207, 208, 209,
345 210, 211, 212, 213, 214, 214, 214, 215, 216, 217,
346 219, 220, 222, 223, 224, 226, 227, 229, 230, 231,
347 232, 233, 234, 235, 236, 237, 238, 239, 241, 241,
348 242, 243, 244, 246, 247, 249, 250, 251, 252, 253,
349 255, 256, 257, 258, 260, 261, 262, 262, 263, 264,
351 266, 267, 268, 269, 271, 273, 275, 277, 278, 279,
352 279, 280, 281, 283, 284, 286, 287, 289, 289, 290,
353 292, 294, 296, 296, 297, 297, 298, 298, 299, 300,
357 static yyconst int yy_ec[256] =
359 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
360 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
361 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
362 1, 2, 1, 4, 1, 1, 5, 1, 6, 1,
363 1, 7, 1, 1, 1, 8, 9, 10, 11, 11,
364 11, 11, 11, 11, 11, 12, 12, 13, 1, 1,
365 1, 1, 1, 1, 14, 14, 15, 14, 16, 17,
366 18, 19, 18, 18, 20, 18, 21, 18, 22, 18,
367 18, 23, 18, 24, 25, 18, 18, 18, 18, 18,
368 1, 26, 1, 1, 18, 1, 27, 28, 29, 30,
370 31, 32, 33, 34, 35, 18, 18, 36, 37, 38,
371 39, 40, 18, 41, 42, 43, 44, 45, 18, 46,
372 18, 18, 47, 1, 48, 1, 1, 1, 1, 1,
373 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
374 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
375 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
376 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
377 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
378 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
379 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
381 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
382 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
383 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
384 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
385 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
389 static yyconst int yy_meta[49] =
391 1, 1, 2, 1, 1, 1, 1, 1, 1, 3,
392 3, 3, 4, 5, 5, 5, 5, 6, 6, 6,
393 6, 6, 6, 6, 6, 1, 5, 5, 5, 5,
394 5, 5, 6, 6, 6, 6, 6, 6, 6, 6,
395 6, 6, 6, 6, 6, 6, 1, 1
398 static yyconst short int yy_base[248] =
400 0, 2, 3, 5, 29, 75, 13, 15, 123, 171,
401 212, 0, 493, 494, 494, 494, 6, 470, 455, 6,
402 494, 494, 481, 467, 494, 494, 494, 1, 13, 466,
403 0, 494, 494, 439, 494, 494, 494, 464, 0, 21,
404 0, 472, 24, 1, 494, 46, 36, 51, 56, 31,
405 52, 12, 47, 34, 56, 60, 62, 61, 69, 70,
406 74, 494, 494, 494, 481, 459, 455, 434, 494, 494,
407 41, 474, 473, 494, 475, 494, 494, 494, 494, 474,
408 463, 462, 461, 82, 77, 465, 107, 494, 469, 127,
409 135, 140, 0, 146, 107, 140, 128, 98, 146, 147,
411 148, 149, 79, 175, 58, 172, 150, 180, 155, 191,
412 186, 181, 468, 494, 451, 427, 494, 462, 461, 494,
413 494, 463, 494, 462, 494, 451, 450, 102, 188, 494,
414 197, 459, 494, 200, 0, 151, 189, 156, 201, 218,
415 219, 448, 202, 204, 221, 192, 225, 223, 215, 227,
416 236, 237, 245, 250, 444, 417, 494, 494, 252, 445,
417 253, 444, 254, 256, 443, 257, 442, 260, 261, 264,
418 263, 265, 268, 85, 266, 270, 269, 441, 430, 494,
419 271, 274, 439, 276, 438, 272, 280, 273, 283, 437,
420 293, 296, 297, 436, 301, 304, 431, 305, 306, 434,
422 307, 308, 310, 433, 432, 431, 430, 311, 314, 417,
423 312, 315, 427, 320, 383, 317, 377, 342, 319, 343,
424 342, 341, 333, 323, 336, 333, 142, 322, 494, 39,
425 494, 358, 364, 370, 376, 382, 388, 394, 396, 400,
426 406, 412, 418, 422, 426, 432, 436
429 static yyconst short int yy_def[248] =
431 232, 232, 233, 233, 234, 234, 235, 235, 236, 236,
432 10, 11, 231, 231, 231, 231, 231, 231, 231, 231,
433 231, 231, 231, 231, 231, 231, 231, 231, 231, 231,
434 237, 231, 231, 231, 231, 231, 231, 231, 238, 231,
435 239, 240, 240, 240, 231, 231, 231, 231, 231, 240,
436 240, 240, 240, 240, 240, 240, 240, 240, 240, 240,
437 240, 231, 231, 231, 241, 231, 231, 231, 231, 231,
438 231, 231, 231, 231, 242, 231, 231, 231, 231, 243,
439 244, 240, 245, 240, 240, 231, 231, 231, 246, 231,
440 231, 231, 247, 231, 240, 240, 240, 240, 240, 240,
442 240, 240, 240, 240, 240, 240, 240, 240, 240, 240,
443 240, 240, 241, 231, 231, 231, 231, 231, 231, 231,
444 231, 242, 231, 243, 231, 244, 245, 240, 240, 231,
445 231, 246, 231, 231, 247, 240, 240, 240, 240, 240,
446 240, 240, 240, 240, 240, 240, 240, 240, 240, 240,
447 240, 240, 240, 240, 231, 231, 231, 231, 240, 240,
448 240, 240, 240, 240, 240, 240, 240, 240, 240, 240,
449 240, 240, 240, 240, 240, 240, 240, 240, 231, 231,
450 240, 240, 240, 240, 240, 240, 240, 240, 240, 240,
451 240, 240, 240, 240, 240, 240, 231, 240, 240, 240,
453 240, 240, 240, 240, 240, 240, 240, 240, 240, 231,
454 240, 240, 240, 240, 240, 240, 240, 231, 240, 240,
455 240, 240, 231, 240, 231, 240, 231, 240, 231, 240,
456 0, 231, 231, 231, 231, 231, 231, 231, 231, 231,
457 231, 231, 231, 231, 231, 231, 231
460 static yyconst short int yy_nxt[543] =
462 231, 15, 16, 15, 16, 22, 20, 22, 17, 23,
463 17, 23, 64, 83, 65, 36, 37, 36, 37, 74,
464 18, 75, 18, 24, 83, 24, 71, 79, 19, 80,
465 19, 26, 27, 38, 28, 38, 83, 29, 39, 68,
466 39, 85, 88, 83, 89, 84, 83, 72, 73, 30,
467 98, 83, 69, 86, 31, 87, 87, 87, 90, 83,
468 91, 91, 92, 90, 83, 94, 94, 94, 83, 100,
469 83, 95, 83, 83, 83, 32, 33, 26, 27, 34,
470 28, 83, 83, 29, 99, 96, 83, 118, 119, 83,
471 97, 83, 146, 101, 83, 30, 93, 83, 102, 103,
473 31, 105, 107, 108, 106, 128, 104, 110, 111, 144,
474 83, 109, 112, 193, 83, 129, 131, 131, 131, 83,
475 159, 32, 33, 14, 15, 16, 14, 14, 14, 14,
476 14, 40, 14, 14, 14, 41, 134, 134, 134, 136,
477 83, 139, 90, 43, 91, 91, 92, 90, 14, 92,
478 92, 92, 83, 90, 44, 94, 94, 94, 83, 83,
479 83, 83, 83, 83, 229, 138, 137, 83, 83, 45,
480 14, 14, 15, 16, 14, 14, 14, 14, 14, 40,
481 14, 14, 14, 41, 83, 141, 143, 83, 148, 140,
482 142, 43, 83, 83, 161, 150, 14, 163, 83, 147,
484 83, 83, 44, 83, 83, 145, 131, 131, 131, 134,
485 134, 134, 149, 83, 83, 154, 83, 45, 14, 46,
486 47, 48, 49, 49, 160, 151, 153, 83, 164, 162,
487 83, 83, 152, 83, 167, 83, 170, 83, 50, 83,
488 51, 52, 53, 54, 168, 166, 55, 56, 83, 83,
489 57, 58, 173, 59, 165, 60, 61, 83, 62, 63,
490 171, 169, 83, 172, 83, 83, 83, 181, 83, 83,
491 174, 176, 83, 83, 175, 83, 83, 83, 83, 178,
492 83, 83, 83, 83, 83, 83, 83, 177, 83, 182,
493 188, 184, 83, 198, 191, 83, 183, 189, 192, 185,
495 186, 187, 195, 194, 199, 83, 200, 190, 83, 83,
496 201, 204, 196, 83, 202, 203, 83, 83, 83, 83,
497 83, 211, 83, 83, 83, 206, 83, 83, 205, 83,
498 209, 83, 83, 224, 83, 83, 219, 214, 208, 207,
499 215, 216, 226, 212, 230, 83, 222, 213, 228, 217,
500 221, 227, 225, 83, 83, 83, 223, 220, 14, 14,
501 14, 14, 14, 14, 21, 21, 21, 21, 21, 21,
502 25, 25, 25, 25, 25, 25, 35, 35, 35, 35,
503 35, 35, 42, 42, 42, 42, 42, 42, 76, 83,
504 76, 76, 76, 76, 78, 83, 78, 78, 78, 78,
506 81, 81, 82, 82, 82, 82, 113, 113, 113, 113,
507 113, 113, 122, 122, 122, 122, 122, 122, 124, 124,
508 124, 124, 124, 124, 126, 126, 126, 126, 127, 127,
509 127, 127, 132, 132, 132, 132, 132, 132, 135, 83,
510 135, 218, 83, 83, 83, 83, 83, 210, 83, 83,
511 83, 83, 197, 83, 83, 83, 83, 83, 180, 179,
512 83, 133, 83, 83, 125, 123, 158, 157, 156, 155,
513 114, 133, 130, 83, 83, 83, 125, 123, 121, 120,
514 117, 116, 115, 114, 83, 66, 77, 66, 66, 70,
515 67, 66, 231, 13, 231, 231, 231, 231, 231, 231,
517 231, 231, 231, 231, 231, 231, 231, 231, 231, 231,
518 231, 231, 231, 231, 231, 231, 231, 231, 231, 231,
519 231, 231, 231, 231, 231, 231, 231, 231, 231, 231,
520 231, 231, 231, 231, 231, 231, 231, 231, 231, 231,
524 static yyconst short int yy_chk[543] =
526 0, 1, 1, 2, 2, 3, 2, 4, 1, 3,
527 2, 4, 17, 44, 17, 7, 7, 8, 8, 29,
528 1, 29, 2, 3, 52, 4, 28, 40, 1, 40,
529 2, 5, 5, 7, 5, 8, 43, 5, 7, 20,
530 8, 44, 47, 50, 47, 43, 54, 28, 28, 5,
531 52, 230, 20, 46, 5, 46, 46, 46, 48, 53,
532 48, 48, 48, 49, 51, 49, 49, 49, 55, 54,
533 105, 50, 56, 58, 57, 5, 5, 6, 6, 6,
534 6, 59, 60, 6, 53, 51, 61, 71, 71, 85,
535 51, 103, 105, 55, 84, 6, 48, 174, 56, 57,
537 6, 58, 59, 59, 58, 84, 57, 60, 61, 103,
538 98, 59, 61, 174, 128, 85, 87, 87, 87, 95,
539 128, 6, 6, 9, 9, 9, 9, 9, 9, 9,
540 9, 9, 9, 9, 9, 9, 90, 90, 90, 95,
541 97, 98, 91, 9, 91, 91, 91, 92, 9, 92,
542 92, 92, 96, 94, 9, 94, 94, 94, 99, 100,
543 101, 102, 107, 136, 227, 97, 96, 109, 138, 9,
544 9, 10, 10, 10, 10, 10, 10, 10, 10, 10,
545 10, 10, 10, 10, 106, 100, 102, 104, 107, 99,
546 101, 10, 108, 112, 136, 109, 10, 138, 111, 106,
548 129, 137, 10, 110, 146, 104, 131, 131, 131, 134,
549 134, 134, 108, 139, 143, 112, 144, 10, 10, 11,
550 11, 11, 11, 11, 129, 110, 111, 149, 139, 137,
551 140, 141, 110, 145, 143, 148, 146, 147, 11, 150,
552 11, 11, 11, 11, 144, 141, 11, 11, 151, 152,
553 11, 11, 149, 11, 140, 11, 11, 153, 11, 11,
554 147, 145, 154, 148, 159, 161, 163, 159, 164, 166,
555 150, 152, 168, 169, 151, 171, 170, 172, 175, 154,
556 173, 177, 176, 181, 186, 188, 182, 153, 184, 161,
557 170, 164, 187, 181, 173, 189, 163, 171, 173, 166,
559 168, 169, 176, 175, 182, 191, 184, 172, 192, 193,
560 186, 189, 177, 195, 187, 188, 196, 198, 199, 201,
561 202, 198, 203, 208, 211, 192, 209, 212, 191, 216,
562 196, 219, 214, 219, 228, 224, 211, 202, 195, 193,
563 203, 208, 224, 199, 228, 226, 216, 201, 226, 209,
564 214, 225, 223, 222, 221, 220, 218, 212, 232, 232,
565 232, 232, 232, 232, 233, 233, 233, 233, 233, 233,
566 234, 234, 234, 234, 234, 234, 235, 235, 235, 235,
567 235, 235, 236, 236, 236, 236, 236, 236, 237, 217,
568 237, 237, 237, 237, 238, 215, 238, 238, 238, 238,
570 239, 239, 240, 240, 240, 240, 241, 241, 241, 241,
571 241, 241, 242, 242, 242, 242, 242, 242, 243, 243,
572 243, 243, 243, 243, 244, 244, 244, 244, 245, 245,
573 245, 245, 246, 246, 246, 246, 246, 246, 247, 213,
574 247, 210, 207, 206, 205, 204, 200, 197, 194, 190,
575 185, 183, 179, 178, 167, 165, 162, 160, 156, 155,
576 142, 132, 127, 126, 124, 122, 119, 118, 116, 115,
577 113, 89, 86, 83, 82, 81, 80, 75, 73, 72,
578 68, 67, 66, 65, 42, 38, 34, 30, 24, 23,
579 19, 18, 13, 231, 231, 231, 231, 231, 231, 231,
581 231, 231, 231, 231, 231, 231, 231, 231, 231, 231,
582 231, 231, 231, 231, 231, 231, 231, 231, 231, 231,
583 231, 231, 231, 231, 231, 231, 231, 231, 231, 231,
584 231, 231, 231, 231, 231, 231, 231, 231, 231, 231,
588 static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
589 static char *yy_full_match;
593 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
594 yy_cp = yy_full_match; /* restore poss. backed-over text */ \
598 #define yymore() yymore_used_but_not_detected
599 #define YY_MORE_ADJ 0
600 #define YY_RESTORE_YY_MORE_OFFSET
604 /* GOB C Preprocessor
605 * Copyright (C) 1999 the Free Software Foundation.
607 * Author: George Lebl
609 * This program is free software; you can redistribute it and/or modify
610 * it under the terms of the GNU General Public License as published by
611 * the Free Software Foundation; either version 2 of the License, or
612 * (at your option) any later version.
614 * This program is distributed in the hope that it will be useful,
615 * but WITHOUT ANY WARRANTY; without even the implied warranty of
616 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
617 * GNU General Public License for more details.
619 * You should have received a copy of the GNU General Public License
620 * along with this program; if not, write to the Free Software
621 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
631 static int parenth_depth = 0;
632 static int before_comment = INITIAL;
633 static int class_after_c = FALSE;
634 static int header_c = FALSE;
636 static GString *cbuf = NULL;
645 cbuf = g_string_new("");
647 cbuf = g_string_assign(cbuf,"");
655 cbuf = g_string_new(s);
657 cbuf = g_string_append(cbuf,s);
665 #define C_CODE_STRING 3
669 #define CLASS_CODE_I 5
673 /* Macros after this point can all be overridden by user definitions in
677 #ifndef YY_SKIP_YYWRAP
679 extern "C" int yywrap YY_PROTO(( void ));
681 extern int yywrap YY_PROTO(( void ));
686 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
690 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
693 #ifdef YY_NEED_STRLEN
694 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
699 static int yyinput YY_PROTO(( void ));
701 static int input YY_PROTO(( void ));
706 static int yy_start_stack_ptr = 0;
707 static int yy_start_stack_depth = 0;
708 static int *yy_start_stack = 0;
709 #ifndef YY_NO_PUSH_STATE
710 static void yy_push_state YY_PROTO(( int new_state ));
712 #ifndef YY_NO_POP_STATE
713 static void yy_pop_state YY_PROTO(( void ));
715 #ifndef YY_NO_TOP_STATE
716 static int yy_top_state YY_PROTO(( void ));
720 #define YY_NO_PUSH_STATE 1
721 #define YY_NO_POP_STATE 1
722 #define YY_NO_TOP_STATE 1
725 #ifdef YY_MALLOC_DECL
733 /* Just try to get by without declaring the routines. This will fail
734 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
735 * or sizeof(void*) != sizeof(int).
740 /* Amount of stuff to slurp up with each read. */
741 #ifndef YY_READ_BUF_SIZE
742 #define YY_READ_BUF_SIZE 8192
745 /* Copy whatever the last rule matched to the standard output. */
748 /* This used to be an fputs(), but since the string might contain NUL's,
749 * we now use fwrite().
751 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
754 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
755 * is returned in "result".
758 #define YY_INPUT(buf,result,max_size) \
759 if ( yy_current_buffer->yy_is_interactive ) \
762 for ( n = 0; n < max_size && \
763 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
766 buf[n++] = (char) c; \
767 if ( c == EOF && ferror( yyin ) ) \
768 YY_FATAL_ERROR( "input in flex scanner failed" ); \
771 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
772 && ferror( yyin ) ) \
773 YY_FATAL_ERROR( "input in flex scanner failed" );
776 /* No semi-colon after return; correct usage is to write "yyterminate();" -
777 * we don't want an extra ';' after the "return" because that will cause
778 * some compilers to complain about unreachable statements.
781 #define yyterminate() return YY_NULL
784 /* Number of entries by which start-condition stack grows. */
785 #ifndef YY_START_STACK_INCR
786 #define YY_START_STACK_INCR 25
789 /* Report a fatal error. */
790 #ifndef YY_FATAL_ERROR
791 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
794 /* Default declaration of generated scanner - a define so the user can
795 * easily add parameters.
798 #define YY_DECL int yylex YY_PROTO(( void ))
801 /* Code executed at the beginning of each rule, after yytext and yyleng
804 #ifndef YY_USER_ACTION
805 #define YY_USER_ACTION
808 /* Code executed at the end of each rule. */
810 #define YY_BREAK break;
813 #define YY_RULE_SETUP \
815 yy_current_buffer->yy_at_bol = \
816 (yytext[yyleng - 1] == '\n'); \
821 register yy_state_type yy_current_state;
822 register char *yy_cp, *yy_bp;
839 yy_start = 1; /* first start state */
847 if ( ! yy_current_buffer )
849 yy_create_buffer( yyin, YY_BUF_SIZE );
851 yy_load_buffer_state();
854 while ( 1 ) /* loops until end-of-file is reached */
858 /* Support of yytext. */
859 *yy_cp = yy_hold_char;
861 /* yy_bp points to the position in yy_ch_buf of the start of
866 yy_current_state = yy_start;
867 yy_current_state += YY_AT_BOL();
868 yy_state_ptr = yy_state_buf;
869 *yy_state_ptr++ = yy_current_state;
873 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
874 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
876 yy_current_state = (int) yy_def[yy_current_state];
877 if ( yy_current_state >= 232 )
878 yy_c = yy_meta[(unsigned int) yy_c];
880 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
881 *yy_state_ptr++ = yy_current_state;
884 while ( yy_base[yy_current_state] != 494 );
887 yy_current_state = *--yy_state_ptr;
888 yy_lp = yy_accept[yy_current_state];
889 find_rule: /* we branch to this label when backing up */
890 for ( ; ; ) /* until we find what rule we matched */
892 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
894 yy_act = yy_acclist[yy_lp];
896 yy_full_match = yy_cp;
901 yy_current_state = *--yy_state_ptr;
902 yy_lp = yy_accept[yy_current_state];
908 do_action: /* This label is used only to access EOF actions. */
912 { /* beginning of action switch */
916 { line_no++; REJECT; }
921 { fprintf(stderr,"You are a bad bad person!\n"); REJECT; }
924 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
925 yy_c_buf_p = yy_cp -= 1;
926 YY_DO_BEFORE_ACTION; /* set up yytext again */
929 { ; /*comment, ignore*/ }
932 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
933 yy_c_buf_p = yy_cp -= 1;
934 YY_DO_BEFORE_ACTION; /* set up yytext again */
937 { ; /*comment, ignore*/ }
940 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
941 yy_c_buf_p = yy_cp -= 1;
942 YY_DO_BEFORE_ACTION; /* set up yytext again */
945 { ; /*comment, ignore*/ }
948 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
949 yy_c_buf_p = yy_cp -= 1;
950 YY_DO_BEFORE_ACTION; /* set up yytext again */
953 { ; /*comment, ignore*/ }
958 {BEGIN(COMMENT); before_comment = INITIAL; }
963 {BEGIN(COMMENT); before_comment = C_CODE; }
968 {BEGIN(COMMENT); before_comment = CLASS_CODE; }
973 {BEGIN(COMMENT); before_comment = CLASS_CODE_I; }
978 {BEGIN(before_comment);}
983 { ; /* comment, ignore */ }
988 { ; /* comment, ignore */ }
996 class_after_c = FALSE;
999 ccode_line = line_no;
1008 class_after_c = FALSE;
1011 ccode_line = line_no;
1030 { add_to_cbuf(yytext); }
1035 { add_to_cbuf(yytext); }
1040 { add_to_cbuf(yytext); }
1045 { add_to_cbuf(yytext); }
1050 { add_to_cbuf(yytext); }
1056 BEGIN(C_CODE_STRING);
1057 add_to_cbuf(yytext);
1064 add_to_cbuf(yytext);
1072 add_to_cbuf(yytext);
1079 add_to_cbuf(yytext);
1087 add_to_cbuf(yytext);
1095 if(parenth_depth<0) {
1097 } else if(parenth_depth==0 && class_after_c) {
1098 BEGIN(CLASS_CODE_I);
1103 add_to_cbuf(yytext);
1109 { add_to_cbuf(yytext); }
1114 { add_to_cbuf(yytext); }
1202 {yylval.line = line_no; return PUBLIC;}
1207 {yylval.line = line_no; return PRIVATE;}
1212 {yylval.line = line_no; return ARGUMENT;}
1217 {yylval.line = line_no; return VIRTUAL;}
1222 {yylval.line = line_no; return SIGNAL;}
1227 {yylval.line = line_no; return OVERRIDE;}
1238 yylval.id = g_strdup(yytext);
1246 yylval.id = g_strdup(yytext);
1254 yylval.id = g_strdup(yytext);
1262 BEGIN(CLASS_CODE_I);
1272 class_after_c = TRUE;
1273 ccode_line = line_no;
1274 yylval.line = line_no;
1295 yylval.line = line_no;
1304 #line 1305 "lex.yy.c"
1305 case YY_STATE_EOF(INITIAL):
1306 case YY_STATE_EOF(COMMENT):
1307 case YY_STATE_EOF(C_CODE):
1308 case YY_STATE_EOF(C_CODE_STRING):
1309 case YY_STATE_EOF(CLASS_CODE):
1310 case YY_STATE_EOF(CLASS_CODE_I):
1313 case YY_END_OF_BUFFER:
1315 /* Amount of text matched not including the EOB char. */
1316 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
1318 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1319 *yy_cp = yy_hold_char;
1320 YY_RESTORE_YY_MORE_OFFSET
1322 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
1324 /* We're scanning a new file or input source. It's
1325 * possible that this happened because the user
1326 * just pointed yyin at a new source and called
1327 * yylex(). If so, then we have to assure
1328 * consistency between yy_current_buffer and our
1329 * globals. Here is the right place to do so, because
1330 * this is the first action (other than possibly a
1331 * back-up) that will match for the new input source.
1333 yy_n_chars = yy_current_buffer->yy_n_chars;
1334 yy_current_buffer->yy_input_file = yyin;
1335 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
1338 /* Note that here we test for yy_c_buf_p "<=" to the position
1339 * of the first EOB in the buffer, since yy_c_buf_p will
1340 * already have been incremented past the NUL character
1341 * (since all states make transitions on EOB to the
1342 * end-of-buffer state). Contrast this with the test
1345 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1346 { /* This was really a NUL. */
1347 yy_state_type yy_next_state;
1349 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
1351 yy_current_state = yy_get_previous_state();
1353 /* Okay, we're now positioned to make the NUL
1354 * transition. We couldn't have
1355 * yy_get_previous_state() go ahead and do it
1356 * for us because it doesn't know how to deal
1357 * with the possibility of jamming (and we don't
1358 * want to build jamming into it because then it
1359 * will run more slowly).
1362 yy_next_state = yy_try_NUL_trans( yy_current_state );
1364 yy_bp = yytext_ptr + YY_MORE_ADJ;
1366 if ( yy_next_state )
1368 /* Consume the NUL. */
1369 yy_cp = ++yy_c_buf_p;
1370 yy_current_state = yy_next_state;
1377 goto yy_find_action;
1381 else switch ( yy_get_next_buffer() )
1383 case EOB_ACT_END_OF_FILE:
1385 yy_did_buffer_switch_on_eof = 0;
1389 /* Note: because we've taken care in
1390 * yy_get_next_buffer() to have set up
1391 * yytext, we can now set up
1392 * yy_c_buf_p so that if some total
1393 * hoser (like flex itself) wants to
1394 * call the scanner after we return the
1395 * YY_NULL, it'll still work - another
1396 * YY_NULL will get returned.
1398 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
1400 yy_act = YY_STATE_EOF(YY_START);
1406 if ( ! yy_did_buffer_switch_on_eof )
1412 case EOB_ACT_CONTINUE_SCAN:
1414 yytext_ptr + yy_amount_of_matched_text;
1416 yy_current_state = yy_get_previous_state();
1419 yy_bp = yytext_ptr + YY_MORE_ADJ;
1422 case EOB_ACT_LAST_MATCH:
1424 &yy_current_buffer->yy_ch_buf[yy_n_chars];
1426 yy_current_state = yy_get_previous_state();
1429 yy_bp = yytext_ptr + YY_MORE_ADJ;
1430 goto yy_find_action;
1437 "fatal flex scanner internal error--no action found" );
1438 } /* end of action switch */
1439 } /* end of scanning one token */
1440 } /* end of yylex */
1443 /* yy_get_next_buffer - try to read in a new buffer
1445 * Returns a code representing an action:
1446 * EOB_ACT_LAST_MATCH -
1447 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1448 * EOB_ACT_END_OF_FILE - end of file
1451 static int yy_get_next_buffer()
1453 register char *dest = yy_current_buffer->yy_ch_buf;
1454 register char *source = yytext_ptr;
1455 register int number_to_move, i;
1458 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
1460 "fatal flex scanner internal error--end of buffer missed" );
1462 if ( yy_current_buffer->yy_fill_buffer == 0 )
1463 { /* Don't try to fill the buffer, so this is an EOF. */
1464 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
1466 /* We matched a single character, the EOB, so
1467 * treat this as a final EOF.
1469 return EOB_ACT_END_OF_FILE;
1474 /* We matched some text prior to the EOB, first
1477 return EOB_ACT_LAST_MATCH;
1481 /* Try to read more data. */
1483 /* First move last chars to start of buffer. */
1484 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
1486 for ( i = 0; i < number_to_move; ++i )
1487 *(dest++) = *(source++);
1489 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1490 /* don't do the read, it's not guaranteed to return an EOF,
1493 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
1498 yy_current_buffer->yy_buf_size - number_to_move - 1;
1500 while ( num_to_read <= 0 )
1501 { /* Not enough room in the buffer - grow it. */
1502 #ifdef YY_USES_REJECT
1504 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1507 /* just a shorter name for the current buffer */
1508 YY_BUFFER_STATE b = yy_current_buffer;
1510 int yy_c_buf_p_offset =
1511 (int) (yy_c_buf_p - b->yy_ch_buf);
1513 if ( b->yy_is_our_buffer )
1515 int new_size = b->yy_buf_size * 2;
1517 if ( new_size <= 0 )
1518 b->yy_buf_size += b->yy_buf_size / 8;
1520 b->yy_buf_size *= 2;
1522 b->yy_ch_buf = (char *)
1523 /* Include room in for 2 EOB chars. */
1524 yy_flex_realloc( (void *) b->yy_ch_buf,
1525 b->yy_buf_size + 2 );
1528 /* Can't grow it, we don't own it. */
1531 if ( ! b->yy_ch_buf )
1533 "fatal error - scanner input buffer overflow" );
1535 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1537 num_to_read = yy_current_buffer->yy_buf_size -
1542 if ( num_to_read > YY_READ_BUF_SIZE )
1543 num_to_read = YY_READ_BUF_SIZE;
1545 /* Read in more data. */
1546 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
1547 yy_n_chars, num_to_read );
1549 yy_current_buffer->yy_n_chars = yy_n_chars;
1552 if ( yy_n_chars == 0 )
1554 if ( number_to_move == YY_MORE_ADJ )
1556 ret_val = EOB_ACT_END_OF_FILE;
1562 ret_val = EOB_ACT_LAST_MATCH;
1563 yy_current_buffer->yy_buffer_status =
1564 YY_BUFFER_EOF_PENDING;
1569 ret_val = EOB_ACT_CONTINUE_SCAN;
1571 yy_n_chars += number_to_move;
1572 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1573 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1575 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
1581 /* yy_get_previous_state - get the state just before the EOB char was reached */
1583 static yy_state_type yy_get_previous_state()
1585 register yy_state_type yy_current_state;
1586 register char *yy_cp;
1588 yy_current_state = yy_start;
1589 yy_current_state += YY_AT_BOL();
1590 yy_state_ptr = yy_state_buf;
1591 *yy_state_ptr++ = yy_current_state;
1593 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
1595 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1596 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1598 yy_current_state = (int) yy_def[yy_current_state];
1599 if ( yy_current_state >= 232 )
1600 yy_c = yy_meta[(unsigned int) yy_c];
1602 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1603 *yy_state_ptr++ = yy_current_state;
1606 return yy_current_state;
1610 /* yy_try_NUL_trans - try to make a transition on the NUL character
1613 * next_state = yy_try_NUL_trans( current_state );
1616 #ifdef YY_USE_PROTOS
1617 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
1619 static yy_state_type yy_try_NUL_trans( yy_current_state )
1620 yy_state_type yy_current_state;
1623 register int yy_is_jam;
1625 register YY_CHAR yy_c = 1;
1626 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1628 yy_current_state = (int) yy_def[yy_current_state];
1629 if ( yy_current_state >= 232 )
1630 yy_c = yy_meta[(unsigned int) yy_c];
1632 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1633 yy_is_jam = (yy_current_state == 231);
1635 *yy_state_ptr++ = yy_current_state;
1637 return yy_is_jam ? 0 : yy_current_state;
1642 #ifdef YY_USE_PROTOS
1643 static void yyunput( int c, register char *yy_bp )
1645 static void yyunput( c, yy_bp )
1647 register char *yy_bp;
1650 register char *yy_cp = yy_c_buf_p;
1652 /* undo effects of setting up yytext */
1653 *yy_cp = yy_hold_char;
1655 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1656 { /* need to shift things up to make room */
1657 /* +2 for EOB chars. */
1658 register int number_to_move = yy_n_chars + 2;
1659 register char *dest = &yy_current_buffer->yy_ch_buf[
1660 yy_current_buffer->yy_buf_size + 2];
1661 register char *source =
1662 &yy_current_buffer->yy_ch_buf[number_to_move];
1664 while ( source > yy_current_buffer->yy_ch_buf )
1665 *--dest = *--source;
1667 yy_cp += (int) (dest - source);
1668 yy_bp += (int) (dest - source);
1669 yy_current_buffer->yy_n_chars =
1670 yy_n_chars = yy_current_buffer->yy_buf_size;
1672 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1673 YY_FATAL_ERROR( "flex scanner push-back overflow" );
1676 *--yy_cp = (char) c;
1680 yy_hold_char = *yy_cp;
1683 #endif /* ifndef YY_NO_UNPUT */
1687 static int yyinput()
1694 *yy_c_buf_p = yy_hold_char;
1696 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1698 /* yy_c_buf_p now points to the character we want to return.
1699 * If this occurs *before* the EOB characters, then it's a
1700 * valid NUL; if not, then we've hit the end of the buffer.
1702 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1703 /* This was really a NUL. */
1707 { /* need more input */
1708 int offset = yy_c_buf_p - yytext_ptr;
1711 switch ( yy_get_next_buffer() )
1713 case EOB_ACT_LAST_MATCH:
1714 /* This happens because yy_g_n_b()
1715 * sees that we've accumulated a
1716 * token and flags that we need to
1717 * try matching the token before
1718 * proceeding. But for input(),
1719 * there's no matching to consider.
1720 * So convert the EOB_ACT_LAST_MATCH
1721 * to EOB_ACT_END_OF_FILE.
1724 /* Reset buffer status. */
1729 case EOB_ACT_END_OF_FILE:
1734 if ( ! yy_did_buffer_switch_on_eof )
1743 case EOB_ACT_CONTINUE_SCAN:
1744 yy_c_buf_p = yytext_ptr + offset;
1750 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
1751 *yy_c_buf_p = '\0'; /* preserve yytext */
1752 yy_hold_char = *++yy_c_buf_p;
1754 yy_current_buffer->yy_at_bol = (c == '\n');
1760 #ifdef YY_USE_PROTOS
1761 void yyrestart( FILE *input_file )
1763 void yyrestart( input_file )
1767 if ( ! yy_current_buffer )
1768 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
1770 yy_init_buffer( yy_current_buffer, input_file );
1771 yy_load_buffer_state();
1775 #ifdef YY_USE_PROTOS
1776 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
1778 void yy_switch_to_buffer( new_buffer )
1779 YY_BUFFER_STATE new_buffer;
1782 if ( yy_current_buffer == new_buffer )
1785 if ( yy_current_buffer )
1787 /* Flush out information for old buffer. */
1788 *yy_c_buf_p = yy_hold_char;
1789 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
1790 yy_current_buffer->yy_n_chars = yy_n_chars;
1793 yy_current_buffer = new_buffer;
1794 yy_load_buffer_state();
1796 /* We don't actually know whether we did this switch during
1797 * EOF (yywrap()) processing, but the only time this flag
1798 * is looked at is after yywrap() is called, so it's safe
1799 * to go ahead and always set it.
1801 yy_did_buffer_switch_on_eof = 1;
1805 #ifdef YY_USE_PROTOS
1806 void yy_load_buffer_state( void )
1808 void yy_load_buffer_state()
1811 yy_n_chars = yy_current_buffer->yy_n_chars;
1812 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
1813 yyin = yy_current_buffer->yy_input_file;
1814 yy_hold_char = *yy_c_buf_p;
1818 #ifdef YY_USE_PROTOS
1819 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
1821 YY_BUFFER_STATE yy_create_buffer( file, size )
1828 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
1830 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1832 b->yy_buf_size = size;
1834 /* yy_ch_buf has to be 2 characters longer than the size given because
1835 * we need to put in 2 end-of-buffer characters.
1837 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
1838 if ( ! b->yy_ch_buf )
1839 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1841 b->yy_is_our_buffer = 1;
1843 yy_init_buffer( b, file );
1849 #ifdef YY_USE_PROTOS
1850 void yy_delete_buffer( YY_BUFFER_STATE b )
1852 void yy_delete_buffer( b )
1859 if ( b == yy_current_buffer )
1860 yy_current_buffer = (YY_BUFFER_STATE) 0;
1862 if ( b->yy_is_our_buffer )
1863 yy_flex_free( (void *) b->yy_ch_buf );
1865 yy_flex_free( (void *) b );
1869 #ifndef YY_ALWAYS_INTERACTIVE
1870 #ifndef YY_NEVER_INTERACTIVE
1871 extern int isatty YY_PROTO(( int ));
1875 #ifdef YY_USE_PROTOS
1876 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
1878 void yy_init_buffer( b, file )
1885 yy_flush_buffer( b );
1887 b->yy_input_file = file;
1888 b->yy_fill_buffer = 1;
1890 #if YY_ALWAYS_INTERACTIVE
1891 b->yy_is_interactive = 1;
1893 #if YY_NEVER_INTERACTIVE
1894 b->yy_is_interactive = 0;
1896 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1902 #ifdef YY_USE_PROTOS
1903 void yy_flush_buffer( YY_BUFFER_STATE b )
1905 void yy_flush_buffer( b )
1915 /* We always need two end-of-buffer characters. The first causes
1916 * a transition to the end-of-buffer state. The second causes
1917 * a jam in that state.
1919 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1920 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1922 b->yy_buf_pos = &b->yy_ch_buf[0];
1925 b->yy_buffer_status = YY_BUFFER_NEW;
1927 if ( b == yy_current_buffer )
1928 yy_load_buffer_state();
1932 #ifndef YY_NO_SCAN_BUFFER
1933 #ifdef YY_USE_PROTOS
1934 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
1936 YY_BUFFER_STATE yy_scan_buffer( base, size )
1944 base[size-2] != YY_END_OF_BUFFER_CHAR ||
1945 base[size-1] != YY_END_OF_BUFFER_CHAR )
1946 /* They forgot to leave room for the EOB's. */
1949 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
1951 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1953 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1954 b->yy_buf_pos = b->yy_ch_buf = base;
1955 b->yy_is_our_buffer = 0;
1956 b->yy_input_file = 0;
1957 b->yy_n_chars = b->yy_buf_size;
1958 b->yy_is_interactive = 0;
1960 b->yy_fill_buffer = 0;
1961 b->yy_buffer_status = YY_BUFFER_NEW;
1963 yy_switch_to_buffer( b );
1970 #ifndef YY_NO_SCAN_STRING
1971 #ifdef YY_USE_PROTOS
1972 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
1974 YY_BUFFER_STATE yy_scan_string( yy_str )
1975 yyconst char *yy_str;
1979 for ( len = 0; yy_str[len]; ++len )
1982 return yy_scan_bytes( yy_str, len );
1987 #ifndef YY_NO_SCAN_BYTES
1988 #ifdef YY_USE_PROTOS
1989 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
1991 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
1992 yyconst char *bytes;
2001 /* Get memory for full buffer, including space for trailing EOB's. */
2003 buf = (char *) yy_flex_alloc( n );
2005 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2007 for ( i = 0; i < len; ++i )
2010 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2012 b = yy_scan_buffer( buf, n );
2014 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2016 /* It's okay to grow etc. this buffer, and we should throw it
2017 * away when we're done.
2019 b->yy_is_our_buffer = 1;
2026 #ifndef YY_NO_PUSH_STATE
2027 #ifdef YY_USE_PROTOS
2028 static void yy_push_state( int new_state )
2030 static void yy_push_state( new_state )
2034 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2038 yy_start_stack_depth += YY_START_STACK_INCR;
2039 new_size = yy_start_stack_depth * sizeof( int );
2041 if ( ! yy_start_stack )
2042 yy_start_stack = (int *) yy_flex_alloc( new_size );
2045 yy_start_stack = (int *) yy_flex_realloc(
2046 (void *) yy_start_stack, new_size );
2048 if ( ! yy_start_stack )
2050 "out of memory expanding start-condition stack" );
2053 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2060 #ifndef YY_NO_POP_STATE
2061 static void yy_pop_state()
2063 if ( --yy_start_stack_ptr < 0 )
2064 YY_FATAL_ERROR( "start-condition stack underflow" );
2066 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2071 #ifndef YY_NO_TOP_STATE
2072 static int yy_top_state()
2074 return yy_start_stack[yy_start_stack_ptr - 1];
2078 #ifndef YY_EXIT_FAILURE
2079 #define YY_EXIT_FAILURE 2
2082 #ifdef YY_USE_PROTOS
2083 static void yy_fatal_error( yyconst char msg[] )
2085 static void yy_fatal_error( msg )
2089 (void) fprintf( stderr, "%s\n", msg );
2090 exit( YY_EXIT_FAILURE );
2095 /* Redefine yyless() so it works in section 3 code. */
2101 /* Undo effects of setting up yytext. */ \
2102 yytext[yyleng] = yy_hold_char; \
2103 yy_c_buf_p = yytext + n; \
2104 yy_hold_char = *yy_c_buf_p; \
2105 *yy_c_buf_p = '\0'; \
2111 /* Internal utility routines. */
2114 #ifdef YY_USE_PROTOS
2115 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2117 static void yy_flex_strncpy( s1, s2, n )
2124 for ( i = 0; i < n; ++i )
2129 #ifdef YY_NEED_STRLEN
2130 #ifdef YY_USE_PROTOS
2131 static int yy_flex_strlen( yyconst char *s )
2133 static int yy_flex_strlen( s )
2138 for ( n = 0; s[n]; ++n )
2146 #ifdef YY_USE_PROTOS
2147 static void *yy_flex_alloc( yy_size_t size )
2149 static void *yy_flex_alloc( size )
2153 return (void *) malloc( size );
2156 #ifdef YY_USE_PROTOS
2157 static void *yy_flex_realloc( void *ptr, yy_size_t size )
2159 static void *yy_flex_realloc( ptr, size )
2164 /* The cast to (char *) in the following accommodates both
2165 * implementations that use char* generic pointers, and those
2166 * that use void* generic pointers. It works with the latter
2167 * because both ANSI C and C++ allow castless assignment from
2168 * any pointer type to void*, and deal with argument conversions
2169 * as though doing an assignment.
2171 return (void *) realloc( (char *) ptr, size );
2174 #ifdef YY_USE_PROTOS
2175 static void yy_flex_free( void *ptr )
2177 static void yy_flex_free( ptr )