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 68
288 #define YY_END_OF_BUFFER 69
289 static yyconst short int yy_acclist[343] =
291 69, 66, 68, 65, 66, 68, 1, 67, 68, 66,
292 67, 68, 66, 68, 66, 68, 66, 68, 66, 68,
293 13, 66, 68, 1, 14, 67, 68, 13, 66, 67,
294 68, 13, 66, 68, 13, 66, 68, 32, 66, 68,
295 1, 33, 67, 68, 32, 66, 67, 68, 25, 32,
296 66, 68, 32, 66, 68, 32, 66, 68, 32, 66,
297 68, 32, 66, 68, 30, 32, 66, 68, 31, 32,
298 66, 68, 32, 66, 68, 32, 66, 68, 28, 66,
299 68, 1, 29, 67, 68, 28, 66, 67, 68, 27,
300 28, 66, 68, 28, 66, 68, 28, 66, 68, 66,
302 68, 66, 68, 60, 66, 68, 60, 66, 68, 60,
303 66, 68, 60, 66, 68, 60, 66, 68, 62, 66,
304 68, 66, 68, 66, 68, 58, 66, 68, 58, 66,
305 68, 66, 68, 60, 66, 68, 60, 66, 68, 60,
306 66, 68, 60, 66, 68, 60, 66, 68, 60, 66,
307 68, 60, 66, 68, 60, 66, 68, 60, 66, 68,
308 60, 66, 68, 60, 66, 68, 60, 66, 68, 63,
309 66, 68, 64, 66, 68, 8, 16, 12, 9, 24,
310 17, 26, 10, 60, 59, 60, 60, 60, 60, 58,
311 11, 58, 58, 61, 60, 60, 60, 60, 60, 60,
313 60, 60, 60, 60, 60, 60, 60, 60, 60, 60,
314 60, 60, 3, 15, 22, 18, 20, 5, 6, 59,
315 60, 60, 60, 60, 50, 58, 7, 58, 58, 60,
316 60, 60, 60, 60, 60, 45, 60, 60, 60, 60,
317 60, 60, 60, 60, 60, 60, 60, 60, 60, 23,
318 19, 21, 60, 60, 36, 60, 35, 60, 60, 48,
319 60, 60, 60, 40, 60, 60, 43, 60, 60, 60,
320 60, 60, 60, 60, 60, 60, 60, 60, 37, 60,
321 34, 60, 60, 49, 60, 60, 46, 60, 60, 60,
322 60, 60, 44, 60, 60, 60, 60, 39, 60, 60,
324 60, 60, 60, 47, 60, 60, 60, 60, 51, 60,
325 55, 60, 41, 60, 38, 60, 60, 60, 60, 60,
326 57, 60, 60, 52, 60, 60, 54, 60, 60, 53,
327 60, 56, 60, 42, 60, 60, 60, 4, 60, 2,
331 static yyconst short int yy_accept[266] =
333 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
334 1, 1, 1, 2, 4, 7, 10, 13, 15, 17,
335 19, 21, 24, 28, 32, 35, 38, 41, 45, 49,
336 53, 56, 59, 62, 65, 69, 73, 76, 79, 82,
337 86, 90, 94, 97, 100, 102, 104, 107, 110, 113,
338 116, 119, 122, 124, 126, 129, 132, 134, 137, 140,
339 143, 146, 149, 152, 155, 158, 161, 164, 167, 170,
340 173, 176, 177, 177, 177, 177, 177, 178, 179, 179,
341 179, 179, 179, 180, 180, 181, 181, 181, 182, 183,
342 184, 184, 184, 185, 186, 187, 188, 189, 190, 190,
344 191, 192, 192, 192, 193, 193, 193, 194, 194, 195,
345 196, 197, 198, 199, 200, 201, 202, 203, 204, 205,
346 206, 207, 208, 209, 210, 211, 212, 213, 213, 214,
347 214, 214, 215, 216, 216, 216, 216, 217, 218, 218,
348 219, 219, 219, 220, 220, 221, 222, 223, 224, 225,
349 226, 227, 227, 228, 229, 230, 230, 231, 232, 233,
350 234, 235, 236, 238, 239, 240, 241, 242, 243, 244,
351 245, 246, 247, 248, 249, 250, 250, 250, 251, 252,
352 253, 253, 254, 255, 257, 259, 260, 262, 263, 264,
353 266, 267, 269, 270, 271, 272, 273, 274, 275, 276,
355 277, 278, 279, 281, 281, 282, 282, 283, 284, 286,
356 287, 289, 290, 291, 292, 293, 295, 296, 297, 298,
357 300, 301, 302, 302, 302, 303, 304, 306, 307, 308,
358 309, 311, 313, 315, 317, 318, 319, 319, 319, 320,
359 321, 323, 324, 326, 327, 329, 329, 329, 330, 332,
360 334, 336, 336, 336, 337, 337, 337, 338, 338, 338,
361 339, 340, 341, 343, 343
364 static yyconst int yy_ec[256] =
366 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
367 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
368 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
369 1, 2, 1, 5, 6, 1, 7, 1, 8, 1,
370 1, 9, 1, 1, 1, 10, 11, 12, 13, 13,
371 13, 13, 13, 13, 13, 14, 14, 15, 1, 16,
372 1, 17, 1, 1, 18, 18, 19, 18, 20, 21,
373 22, 23, 22, 22, 24, 22, 25, 22, 26, 22,
374 22, 27, 22, 28, 29, 22, 22, 22, 22, 22,
375 30, 31, 32, 1, 22, 1, 33, 34, 35, 36,
377 37, 38, 39, 40, 41, 22, 22, 42, 43, 44,
378 45, 46, 22, 47, 48, 49, 50, 51, 22, 52,
379 22, 22, 53, 1, 54, 1, 1, 1, 1, 1,
380 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,
386 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
388 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
389 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
390 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
391 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
392 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
396 static yyconst int yy_meta[55] =
398 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
399 1, 3, 3, 3, 4, 1, 1, 5, 5, 5,
400 5, 6, 6, 6, 6, 6, 6, 6, 6, 1,
401 1, 1, 5, 5, 5, 5, 5, 5, 6, 6,
402 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
406 static yyconst short int yy_base[281] =
408 0, 3, 9, 12, 36, 88, 26, 45, 142, 0,
409 187, 0, 572, 573, 573, 573, 573, 8, 545, 528,
410 2, 573, 573, 573, 558, 542, 573, 573, 573, 573,
411 15, 13, 541, 0, 573, 573, 21, 512, 573, 573,
412 573, 573, 539, 0, 34, 0, 549, 37, 11, 12,
413 18, 573, 61, 45, 68, 73, 52, 57, 82, 62,
414 64, 73, 85, 83, 86, 88, 91, 90, 189, 573,
415 573, 573, 560, 534, 528, 507, 573, 573, 551, 197,
416 550, 549, 573, 553, 573, 201, 511, 573, 573, 573,
417 551, 538, 537, 536, 95, 103, 94, 190, 540, 194,
419 573, 546, 197, 202, 233, 0, 242, 245, 518, 21,
420 203, 204, 211, 212, 224, 229, 238, 96, 234, 245,
421 87, 248, 249, 250, 251, 253, 255, 544, 573, 523,
422 497, 573, 573, 536, 535, 534, 573, 573, 538, 573,
423 505, 536, 573, 523, 522, 102, 257, 252, 258, 573,
424 262, 533, 573, 267, 0, 271, 272, 274, 275, 276,
425 283, 279, 520, 286, 287, 289, 292, 293, 294, 296,
426 298, 299, 301, 300, 302, 514, 485, 573, 573, 573,
427 490, 304, 303, 516, 515, 312, 514, 305, 314, 513,
428 313, 512, 316, 317, 324, 318, 322, 332, 315, 330,
430 331, 337, 511, 498, 573, 474, 99, 338, 508, 343,
431 507, 345, 351, 346, 353, 506, 352, 357, 358, 505,
432 361, 363, 498, 482, 362, 364, 502, 366, 367, 369,
433 501, 500, 499, 498, 374, 370, 479, 468, 371, 376,
434 446, 382, 440, 384, 413, 407, 422, 97, 408, 407,
435 403, 380, 393, 386, 201, 397, 401, 186, 410, 573,
436 402, 573, 17, 573, 429, 435, 441, 447, 453, 459,
437 461, 465, 471, 477, 483, 487, 491, 497, 501, 506
440 static yyconst short int yy_def[281] =
442 265, 265, 266, 266, 267, 267, 268, 268, 264, 9,
443 9, 11, 264, 264, 264, 264, 264, 264, 264, 264,
444 264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
445 264, 264, 264, 269, 264, 264, 264, 264, 264, 264,
446 264, 264, 264, 270, 264, 271, 272, 272, 272, 272,
447 272, 264, 264, 264, 264, 264, 264, 272, 272, 272,
448 272, 272, 272, 272, 272, 272, 272, 272, 272, 264,
449 264, 264, 273, 264, 264, 264, 264, 264, 264, 264,
450 264, 264, 264, 274, 264, 264, 264, 264, 264, 264,
451 275, 276, 272, 277, 272, 272, 272, 272, 264, 264,
453 264, 278, 264, 264, 264, 279, 264, 264, 264, 272,
454 272, 272, 272, 272, 272, 272, 272, 272, 272, 272,
455 272, 272, 272, 272, 272, 272, 272, 273, 264, 264,
456 264, 264, 264, 264, 264, 264, 264, 264, 274, 264,
457 264, 275, 264, 276, 277, 272, 272, 272, 272, 264,
458 264, 278, 264, 264, 279, 264, 272, 272, 272, 272,
459 272, 272, 272, 272, 272, 272, 272, 272, 272, 272,
460 272, 272, 272, 272, 272, 264, 264, 264, 264, 264,
461 264, 272, 272, 272, 272, 272, 272, 272, 272, 272,
462 272, 272, 272, 272, 272, 272, 272, 272, 272, 272,
464 272, 272, 272, 264, 264, 264, 272, 272, 272, 272,
465 272, 272, 272, 272, 272, 272, 272, 272, 272, 272,
466 272, 272, 264, 264, 272, 272, 272, 272, 272, 272,
467 272, 272, 272, 272, 272, 272, 264, 264, 272, 272,
468 272, 272, 272, 272, 272, 264, 264, 272, 272, 272,
469 272, 264, 264, 272, 264, 280, 272, 264, 280, 264,
470 272, 264, 272, 0, 264, 264, 264, 264, 264, 264,
471 264, 264, 264, 264, 264, 264, 264, 264, 264, 264
474 static yyconst short int yy_nxt[628] =
476 264, 15, 16, 17, 15, 16, 17, 264, 264, 21,
477 18, 23, 24, 18, 23, 24, 72, 25, 73, 79,
478 25, 83, 86, 84, 19, 94, 94, 19, 40, 41,
479 42, 94, 94, 26, 20, 94, 26, 20, 28, 29,
480 30, 76, 90, 31, 91, 80, 32, 40, 41, 42,
481 43, 94, 96, 101, 77, 102, 44, 98, 97, 157,
482 33, 87, 95, 108, 108, 108, 34, 81, 82, 43,
483 99, 94, 100, 100, 100, 44, 94, 103, 94, 104,
484 104, 105, 103, 109, 107, 107, 107, 94, 35, 36,
485 28, 29, 30, 37, 38, 31, 94, 94, 32, 94,
487 94, 94, 94, 110, 94, 94, 113, 114, 94, 94,
488 94, 94, 33, 94, 115, 254, 94, 94, 34, 106,
489 168, 111, 146, 96, 182, 225, 112, 117, 116, 118,
490 122, 123, 165, 125, 120, 147, 119, 121, 148, 124,
491 35, 36, 14, 15, 16, 17, 14, 14, 14, 14,
492 14, 14, 45, 14, 14, 14, 46, 14, 14, 47,
493 47, 47, 47, 47, 47, 47, 48, 47, 47, 47,
494 47, 14, 14, 14, 47, 47, 49, 47, 47, 50,
495 47, 47, 47, 47, 47, 47, 47, 47, 47, 47,
496 51, 47, 47, 47, 52, 14, 53, 54, 55, 56,
498 56, 134, 86, 94, 94, 151, 151, 151, 154, 154,
499 154, 103, 262, 104, 104, 105, 57, 94, 94, 58,
500 258, 59, 60, 61, 62, 94, 94, 63, 64, 126,
501 149, 65, 66, 127, 67, 158, 68, 69, 94, 70,
502 71, 87, 103, 94, 105, 105, 105, 159, 94, 135,
503 136, 103, 94, 107, 107, 107, 108, 108, 108, 94,
504 160, 161, 94, 94, 94, 94, 94, 94, 162, 94,
505 166, 94, 94, 151, 151, 151, 109, 163, 154, 154,
506 154, 164, 108, 108, 108, 167, 94, 170, 94, 94,
507 94, 172, 169, 94, 184, 175, 171, 94, 173, 174,
509 94, 94, 109, 94, 183, 185, 94, 94, 94, 189,
510 94, 191, 94, 94, 94, 94, 94, 94, 94, 94,
511 187, 186, 188, 207, 192, 190, 94, 94, 94, 94,
512 94, 94, 94, 193, 196, 194, 94, 203, 94, 198,
513 197, 201, 195, 200, 94, 94, 94, 199, 202, 219,
514 185, 94, 94, 209, 208, 210, 214, 94, 215, 94,
515 94, 211, 212, 213, 217, 94, 94, 94, 218, 221,
516 216, 94, 94, 220, 226, 94, 94, 94, 94, 227,
517 94, 94, 239, 94, 94, 94, 222, 231, 94, 228,
518 94, 229, 233, 232, 230, 236, 94, 256, 94, 248,
520 94, 260, 242, 255, 235, 243, 234, 240, 256, 257,
521 244, 245, 241, 260, 260, 94, 94, 94, 250, 251,
522 261, 94, 94, 253, 249, 252, 260, 94, 263, 14,
523 14, 14, 14, 14, 14, 22, 22, 22, 22, 22,
524 22, 27, 27, 27, 27, 27, 27, 39, 39, 39,
525 39, 39, 39, 85, 94, 85, 85, 85, 85, 89,
526 94, 89, 89, 89, 89, 92, 92, 93, 93, 93,
527 93, 128, 128, 128, 128, 128, 128, 139, 139, 139,
528 139, 139, 139, 142, 142, 142, 142, 142, 142, 144,
529 144, 144, 144, 145, 145, 145, 145, 152, 152, 152,
531 152, 152, 152, 155, 247, 155, 259, 246, 259, 259,
532 259, 259, 94, 94, 94, 94, 94, 238, 237, 94,
533 94, 94, 94, 224, 223, 94, 94, 94, 94, 94,
534 94, 206, 205, 204, 94, 153, 94, 94, 143, 181,
535 140, 180, 179, 178, 177, 176, 129, 156, 153, 150,
536 94, 94, 94, 143, 141, 140, 138, 137, 133, 132,
537 131, 130, 129, 94, 74, 88, 74, 74, 78, 75,
538 74, 264, 13, 264, 264, 264, 264, 264, 264, 264,
539 264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
540 264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
542 264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
543 264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
544 264, 264, 264, 264, 264, 264, 264
547 static yyconst short int yy_chk[628] =
549 0, 1, 1, 1, 2, 2, 2, 0, 0, 2,
550 1, 3, 3, 2, 4, 4, 18, 3, 18, 31,
551 4, 32, 37, 32, 1, 49, 50, 2, 7, 7,
552 7, 263, 51, 3, 1, 110, 4, 2, 5, 5,
553 5, 21, 45, 5, 45, 31, 5, 8, 8, 8,
554 7, 48, 49, 54, 21, 54, 7, 51, 50, 110,
555 5, 37, 48, 57, 57, 57, 5, 31, 31, 8,
556 53, 58, 53, 53, 53, 8, 60, 55, 61, 55,
557 55, 55, 56, 57, 56, 56, 56, 62, 5, 5,
558 6, 6, 6, 6, 6, 6, 59, 64, 6, 63,
560 65, 121, 66, 58, 68, 67, 60, 61, 97, 95,
561 118, 248, 6, 207, 62, 248, 146, 96, 6, 55,
562 121, 59, 95, 59, 146, 207, 59, 64, 63, 65,
563 67, 67, 118, 68, 66, 96, 65, 66, 97, 67,
564 6, 6, 9, 9, 9, 9, 9, 9, 9, 9,
565 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
566 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
567 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
568 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
569 9, 9, 9, 9, 9, 9, 11, 11, 11, 11,
571 11, 80, 86, 69, 98, 100, 100, 100, 103, 103,
572 103, 104, 258, 104, 104, 104, 11, 111, 112, 11,
573 255, 11, 11, 11, 11, 113, 114, 11, 11, 69,
574 98, 11, 11, 69, 11, 111, 11, 11, 115, 11,
575 11, 86, 105, 116, 105, 105, 105, 112, 119, 80,
576 80, 107, 117, 107, 107, 107, 108, 108, 108, 120,
577 113, 114, 122, 123, 124, 125, 148, 126, 115, 127,
578 119, 147, 149, 151, 151, 151, 108, 116, 154, 154,
579 154, 117, 156, 156, 156, 120, 157, 123, 158, 159,
580 160, 125, 122, 162, 148, 127, 124, 161, 125, 126,
582 164, 165, 156, 166, 147, 149, 167, 168, 169, 160,
583 170, 162, 171, 172, 174, 173, 175, 183, 182, 188,
584 158, 157, 159, 182, 164, 161, 186, 191, 189, 199,
585 193, 194, 196, 165, 168, 166, 197, 175, 195, 170,
586 169, 173, 167, 172, 200, 201, 198, 171, 174, 199,
587 183, 202, 208, 188, 186, 189, 195, 210, 196, 212,
588 214, 191, 193, 194, 198, 213, 217, 215, 198, 201,
589 197, 218, 219, 200, 208, 221, 225, 222, 226, 210,
590 228, 229, 225, 230, 236, 239, 202, 215, 235, 212,
591 240, 213, 218, 217, 214, 222, 242, 253, 244, 239,
593 254, 256, 229, 252, 221, 230, 219, 226, 253, 254,
594 235, 236, 228, 256, 259, 257, 261, 251, 242, 244,
595 257, 250, 249, 247, 240, 246, 259, 245, 261, 265,
596 265, 265, 265, 265, 265, 266, 266, 266, 266, 266,
597 266, 267, 267, 267, 267, 267, 267, 268, 268, 268,
598 268, 268, 268, 269, 243, 269, 269, 269, 269, 270,
599 241, 270, 270, 270, 270, 271, 271, 272, 272, 272,
600 272, 273, 273, 273, 273, 273, 273, 274, 274, 274,
601 274, 274, 274, 275, 275, 275, 275, 275, 275, 276,
602 276, 276, 276, 277, 277, 277, 277, 278, 278, 278,
604 278, 278, 278, 279, 238, 279, 280, 237, 280, 280,
605 280, 280, 234, 233, 232, 231, 227, 224, 223, 220,
606 216, 211, 209, 206, 204, 203, 192, 190, 187, 185,
607 184, 181, 177, 176, 163, 152, 145, 144, 142, 141,
608 139, 136, 135, 134, 131, 130, 128, 109, 102, 99,
609 94, 93, 92, 91, 87, 84, 82, 81, 79, 76,
610 75, 74, 73, 47, 43, 38, 33, 26, 25, 20,
611 19, 13, 264, 264, 264, 264, 264, 264, 264, 264,
612 264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
613 264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
615 264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
616 264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
617 264, 264, 264, 264, 264, 264, 264
620 static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
621 static char *yy_full_match;
625 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
626 yy_cp = yy_full_match; /* restore poss. backed-over text */ \
630 #define yymore() yymore_used_but_not_detected
631 #define YY_MORE_ADJ 0
632 #define YY_RESTORE_YY_MORE_OFFSET
636 /* GOB C Preprocessor
637 * Copyright (C) 1999 the Free Software Foundation.
639 * Author: George Lebl
641 * This program is free software; you can redistribute it and/or modify
642 * it under the terms of the GNU General Public License as published by
643 * the Free Software Foundation; either version 2 of the License, or
644 * (at your option) any later version.
646 * This program is distributed in the hope that it will be useful,
647 * but WITHOUT ANY WARRANTY; without even the implied warranty of
648 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
649 * GNU General Public License for more details.
651 * You should have received a copy of the GNU General Public License
652 * along with this program; if not, write to the Free Software
653 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
665 extern gboolean for_cpp;
667 static int parenth_depth = 0;
668 static int before_comment = INITIAL;
669 static int class_after_c = FALSE;
670 static int header_c = FALSE;
672 static GString *cbuf = NULL;
675 GList *include_files = NULL;
676 /* 0 no, 1 means yes, 2+ means don't even start looking anymore */
677 static int look_for_includes = 0;
685 cbuf = g_string_new("");
687 cbuf = g_string_assign(cbuf,"");
695 cbuf = g_string_new(s);
697 cbuf = g_string_append(cbuf,s);
705 #define C_CODE_STRING 3
709 #define CLASS_CODE_I 5
713 /* Macros after this point can all be overridden by user definitions in
717 #ifndef YY_SKIP_YYWRAP
719 extern "C" int yywrap YY_PROTO(( void ));
721 extern int yywrap YY_PROTO(( void ));
726 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
730 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
733 #ifdef YY_NEED_STRLEN
734 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
739 static int yyinput YY_PROTO(( void ));
741 static int input YY_PROTO(( void ));
746 static int yy_start_stack_ptr = 0;
747 static int yy_start_stack_depth = 0;
748 static int *yy_start_stack = 0;
749 #ifndef YY_NO_PUSH_STATE
750 static void yy_push_state YY_PROTO(( int new_state ));
752 #ifndef YY_NO_POP_STATE
753 static void yy_pop_state YY_PROTO(( void ));
755 #ifndef YY_NO_TOP_STATE
756 static int yy_top_state YY_PROTO(( void ));
760 #define YY_NO_PUSH_STATE 1
761 #define YY_NO_POP_STATE 1
762 #define YY_NO_TOP_STATE 1
765 #ifdef YY_MALLOC_DECL
773 /* Just try to get by without declaring the routines. This will fail
774 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
775 * or sizeof(void*) != sizeof(int).
780 /* Amount of stuff to slurp up with each read. */
781 #ifndef YY_READ_BUF_SIZE
782 #define YY_READ_BUF_SIZE 8192
785 /* Copy whatever the last rule matched to the standard output. */
788 /* This used to be an fputs(), but since the string might contain NUL's,
789 * we now use fwrite().
791 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
794 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
795 * is returned in "result".
798 #define YY_INPUT(buf,result,max_size) \
799 if ( yy_current_buffer->yy_is_interactive ) \
802 for ( n = 0; n < max_size && \
803 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
806 buf[n++] = (char) c; \
807 if ( c == EOF && ferror( yyin ) ) \
808 YY_FATAL_ERROR( "input in flex scanner failed" ); \
811 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
812 && ferror( yyin ) ) \
813 YY_FATAL_ERROR( "input in flex scanner failed" );
816 /* No semi-colon after return; correct usage is to write "yyterminate();" -
817 * we don't want an extra ';' after the "return" because that will cause
818 * some compilers to complain about unreachable statements.
821 #define yyterminate() return YY_NULL
824 /* Number of entries by which start-condition stack grows. */
825 #ifndef YY_START_STACK_INCR
826 #define YY_START_STACK_INCR 25
829 /* Report a fatal error. */
830 #ifndef YY_FATAL_ERROR
831 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
834 /* Default declaration of generated scanner - a define so the user can
835 * easily add parameters.
838 #define YY_DECL int yylex YY_PROTO(( void ))
841 /* Code executed at the beginning of each rule, after yytext and yyleng
844 #ifndef YY_USER_ACTION
845 #define YY_USER_ACTION
848 /* Code executed at the end of each rule. */
850 #define YY_BREAK break;
853 #define YY_RULE_SETUP \
855 yy_current_buffer->yy_at_bol = \
856 (yytext[yyleng - 1] == '\n'); \
861 register yy_state_type yy_current_state;
862 register char *yy_cp = NULL, *yy_bp = NULL;
879 yy_start = 1; /* first start state */
887 if ( ! yy_current_buffer )
889 yy_create_buffer( yyin, YY_BUF_SIZE );
891 yy_load_buffer_state();
894 while ( 1 ) /* loops until end-of-file is reached */
898 /* Support of yytext. */
899 *yy_cp = yy_hold_char;
901 /* yy_bp points to the position in yy_ch_buf of the start of
906 yy_current_state = yy_start;
907 yy_current_state += YY_AT_BOL();
908 yy_state_ptr = yy_state_buf;
909 *yy_state_ptr++ = yy_current_state;
913 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
914 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
916 yy_current_state = (int) yy_def[yy_current_state];
917 if ( yy_current_state >= 265 )
918 yy_c = yy_meta[(unsigned int) yy_c];
920 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
921 *yy_state_ptr++ = yy_current_state;
924 while ( yy_base[yy_current_state] != 573 );
927 yy_current_state = *--yy_state_ptr;
928 yy_lp = yy_accept[yy_current_state];
929 find_rule: /* we branch to this label when backing up */
930 for ( ; ; ) /* until we find what rule we matched */
932 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
934 yy_act = yy_acclist[yy_lp];
936 yy_full_match = yy_cp;
941 yy_current_state = *--yy_state_ptr;
942 yy_lp = yy_accept[yy_current_state];
948 do_action: /* This label is used only to access EOF actions. */
952 { /* beginning of action switch */
956 { line_no++; REJECT; }
961 { fprintf(stderr,"You are a bad bad person!\n"); REJECT; }
964 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
965 yy_c_buf_p = yy_cp -= 1;
966 YY_DO_BEFORE_ACTION; /* set up yytext again */
969 { ; /*comment, ignore*/ }
975 if(look_for_includes==1) {
978 char *str = g_strdup(yytext);
979 file = strchr(str,'"');
980 if(!file) file = strchr(str,'<');
982 p = strchr(file,'"');
983 if(!p) p = strchr(file,'>');
985 include_files = g_list_prepend(include_files,g_strdup(file));
992 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
993 yy_c_buf_p = yy_cp -= 1;
994 YY_DO_BEFORE_ACTION; /* set up yytext again */
997 { add_to_cbuf(yytext); /*comment, ignore*/ }
1000 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1001 yy_c_buf_p = yy_cp -= 1;
1002 YY_DO_BEFORE_ACTION; /* set up yytext again */
1005 { ; /*comment, ignore*/ }
1008 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1009 yy_c_buf_p = yy_cp -= 1;
1010 YY_DO_BEFORE_ACTION; /* set up yytext again */
1013 { ; /*comment, ignore*/ }
1018 {BEGIN(COMMENT); before_comment = INITIAL; }
1024 add_to_cbuf(yytext);
1026 before_comment = C_CODE;
1032 {BEGIN(COMMENT); before_comment = CLASS_CODE; }
1037 {BEGIN(COMMENT); before_comment = CLASS_CODE_I; }
1043 if(before_comment == C_CODE) add_to_cbuf(yytext);
1044 BEGIN(before_comment);
1051 /* comment, ignore */
1052 if(before_comment == C_CODE) add_to_cbuf(yytext);
1059 /* comment, ignore */
1060 if(before_comment == C_CODE) add_to_cbuf(yytext);
1069 class_after_c = FALSE;
1072 ccode_line = line_no;
1081 class_after_c = FALSE;
1084 ccode_line = line_no;
1085 if(look_for_includes==0)
1086 look_for_includes=1;
1096 if(look_for_includes==1)
1097 look_for_includes=0;
1107 { add_to_cbuf(yytext); }
1112 { add_to_cbuf(yytext); }
1117 { add_to_cbuf(yytext); }
1122 { add_to_cbuf(yytext); }
1127 { add_to_cbuf(yytext); }
1132 { add_to_cbuf(yytext); }
1137 { add_to_cbuf(yytext); }
1143 BEGIN(C_CODE_STRING);
1144 add_to_cbuf(yytext);
1150 { add_to_cbuf(yytext); }
1157 add_to_cbuf(yytext);
1163 { add_to_cbuf(yytext); }
1168 { add_to_cbuf(yytext); }
1175 add_to_cbuf(yytext);
1183 if(parenth_depth<0) {
1185 } else if(parenth_depth==0 && class_after_c) {
1186 BEGIN(CLASS_CODE_I);
1191 add_to_cbuf(yytext);
1197 { add_to_cbuf(yytext); }
1202 { add_to_cbuf(yytext); }
1208 look_for_includes = 2;
1219 s = g_strdup_printf("'%s' keyword should not "
1220 "be used when generating "
1222 print_error(TRUE,s, line_no);
1306 {yylval.line = line_no; return PUBLIC;}
1311 {yylval.line = line_no; return PRIVATE;}
1316 {yylval.line = line_no; return ARGUMENT;}
1321 {yylval.line = line_no; return VIRTUAL;}
1326 {yylval.line = line_no; return SIGNAL;}
1331 {yylval.line = line_no; return OVERRIDE;}
1342 yylval.id = g_strdup(yytext);
1350 yylval.id = g_strdup(yytext);
1358 yylval.id = g_strdup(yytext);
1366 yylval.id = g_strdup(yytext);
1374 BEGIN(CLASS_CODE_I);
1384 class_after_c = TRUE;
1385 yylval.line = line_no;
1387 ccode_line = line_no;
1408 yylval.line = line_no;
1422 #line 1423 "lex.yy.c"
1423 case YY_STATE_EOF(INITIAL):
1424 case YY_STATE_EOF(COMMENT):
1425 case YY_STATE_EOF(C_CODE):
1426 case YY_STATE_EOF(C_CODE_STRING):
1427 case YY_STATE_EOF(CLASS_CODE):
1428 case YY_STATE_EOF(CLASS_CODE_I):
1431 case YY_END_OF_BUFFER:
1433 /* Amount of text matched not including the EOB char. */
1434 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
1436 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1437 *yy_cp = yy_hold_char;
1438 YY_RESTORE_YY_MORE_OFFSET
1440 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
1442 /* We're scanning a new file or input source. It's
1443 * possible that this happened because the user
1444 * just pointed yyin at a new source and called
1445 * yylex(). If so, then we have to assure
1446 * consistency between yy_current_buffer and our
1447 * globals. Here is the right place to do so, because
1448 * this is the first action (other than possibly a
1449 * back-up) that will match for the new input source.
1451 yy_n_chars = yy_current_buffer->yy_n_chars;
1452 yy_current_buffer->yy_input_file = yyin;
1453 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
1456 /* Note that here we test for yy_c_buf_p "<=" to the position
1457 * of the first EOB in the buffer, since yy_c_buf_p will
1458 * already have been incremented past the NUL character
1459 * (since all states make transitions on EOB to the
1460 * end-of-buffer state). Contrast this with the test
1463 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1464 { /* This was really a NUL. */
1465 yy_state_type yy_next_state;
1467 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
1469 yy_current_state = yy_get_previous_state();
1471 /* Okay, we're now positioned to make the NUL
1472 * transition. We couldn't have
1473 * yy_get_previous_state() go ahead and do it
1474 * for us because it doesn't know how to deal
1475 * with the possibility of jamming (and we don't
1476 * want to build jamming into it because then it
1477 * will run more slowly).
1480 yy_next_state = yy_try_NUL_trans( yy_current_state );
1482 yy_bp = yytext_ptr + YY_MORE_ADJ;
1484 if ( yy_next_state )
1486 /* Consume the NUL. */
1487 yy_cp = ++yy_c_buf_p;
1488 yy_current_state = yy_next_state;
1495 goto yy_find_action;
1499 else switch ( yy_get_next_buffer() )
1501 case EOB_ACT_END_OF_FILE:
1503 yy_did_buffer_switch_on_eof = 0;
1507 /* Note: because we've taken care in
1508 * yy_get_next_buffer() to have set up
1509 * yytext, we can now set up
1510 * yy_c_buf_p so that if some total
1511 * hoser (like flex itself) wants to
1512 * call the scanner after we return the
1513 * YY_NULL, it'll still work - another
1514 * YY_NULL will get returned.
1516 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
1518 yy_act = YY_STATE_EOF(YY_START);
1524 if ( ! yy_did_buffer_switch_on_eof )
1530 case EOB_ACT_CONTINUE_SCAN:
1532 yytext_ptr + yy_amount_of_matched_text;
1534 yy_current_state = yy_get_previous_state();
1537 yy_bp = yytext_ptr + YY_MORE_ADJ;
1540 case EOB_ACT_LAST_MATCH:
1542 &yy_current_buffer->yy_ch_buf[yy_n_chars];
1544 yy_current_state = yy_get_previous_state();
1547 yy_bp = yytext_ptr + YY_MORE_ADJ;
1548 goto yy_find_action;
1555 "fatal flex scanner internal error--no action found" );
1556 } /* end of action switch */
1557 } /* end of scanning one token */
1558 } /* end of yylex */
1561 /* yy_get_next_buffer - try to read in a new buffer
1563 * Returns a code representing an action:
1564 * EOB_ACT_LAST_MATCH -
1565 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1566 * EOB_ACT_END_OF_FILE - end of file
1569 static int yy_get_next_buffer()
1571 register char *dest = yy_current_buffer->yy_ch_buf;
1572 register char *source = yytext_ptr;
1573 register int number_to_move, i;
1576 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
1578 "fatal flex scanner internal error--end of buffer missed" );
1580 if ( yy_current_buffer->yy_fill_buffer == 0 )
1581 { /* Don't try to fill the buffer, so this is an EOF. */
1582 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
1584 /* We matched a single character, the EOB, so
1585 * treat this as a final EOF.
1587 return EOB_ACT_END_OF_FILE;
1592 /* We matched some text prior to the EOB, first
1595 return EOB_ACT_LAST_MATCH;
1599 /* Try to read more data. */
1601 /* First move last chars to start of buffer. */
1602 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
1604 for ( i = 0; i < number_to_move; ++i )
1605 *(dest++) = *(source++);
1607 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1608 /* don't do the read, it's not guaranteed to return an EOF,
1611 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
1616 yy_current_buffer->yy_buf_size - number_to_move - 1;
1618 while ( num_to_read <= 0 )
1619 { /* Not enough room in the buffer - grow it. */
1620 #ifdef YY_USES_REJECT
1622 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1625 /* just a shorter name for the current buffer */
1626 YY_BUFFER_STATE b = yy_current_buffer;
1628 int yy_c_buf_p_offset =
1629 (int) (yy_c_buf_p - b->yy_ch_buf);
1631 if ( b->yy_is_our_buffer )
1633 int new_size = b->yy_buf_size * 2;
1635 if ( new_size <= 0 )
1636 b->yy_buf_size += b->yy_buf_size / 8;
1638 b->yy_buf_size *= 2;
1640 b->yy_ch_buf = (char *)
1641 /* Include room in for 2 EOB chars. */
1642 yy_flex_realloc( (void *) b->yy_ch_buf,
1643 b->yy_buf_size + 2 );
1646 /* Can't grow it, we don't own it. */
1649 if ( ! b->yy_ch_buf )
1651 "fatal error - scanner input buffer overflow" );
1653 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1655 num_to_read = yy_current_buffer->yy_buf_size -
1660 if ( num_to_read > YY_READ_BUF_SIZE )
1661 num_to_read = YY_READ_BUF_SIZE;
1663 /* Read in more data. */
1664 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
1665 yy_n_chars, num_to_read );
1667 yy_current_buffer->yy_n_chars = yy_n_chars;
1670 if ( yy_n_chars == 0 )
1672 if ( number_to_move == YY_MORE_ADJ )
1674 ret_val = EOB_ACT_END_OF_FILE;
1680 ret_val = EOB_ACT_LAST_MATCH;
1681 yy_current_buffer->yy_buffer_status =
1682 YY_BUFFER_EOF_PENDING;
1687 ret_val = EOB_ACT_CONTINUE_SCAN;
1689 yy_n_chars += number_to_move;
1690 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1691 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1693 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
1699 /* yy_get_previous_state - get the state just before the EOB char was reached */
1701 static yy_state_type yy_get_previous_state()
1703 register yy_state_type yy_current_state;
1704 register char *yy_cp;
1706 yy_current_state = yy_start;
1707 yy_current_state += YY_AT_BOL();
1708 yy_state_ptr = yy_state_buf;
1709 *yy_state_ptr++ = yy_current_state;
1711 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
1713 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1714 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1716 yy_current_state = (int) yy_def[yy_current_state];
1717 if ( yy_current_state >= 265 )
1718 yy_c = yy_meta[(unsigned int) yy_c];
1720 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1721 *yy_state_ptr++ = yy_current_state;
1724 return yy_current_state;
1728 /* yy_try_NUL_trans - try to make a transition on the NUL character
1731 * next_state = yy_try_NUL_trans( current_state );
1734 #ifdef YY_USE_PROTOS
1735 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
1737 static yy_state_type yy_try_NUL_trans( yy_current_state )
1738 yy_state_type yy_current_state;
1741 register int yy_is_jam;
1743 register YY_CHAR yy_c = 1;
1744 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1746 yy_current_state = (int) yy_def[yy_current_state];
1747 if ( yy_current_state >= 265 )
1748 yy_c = yy_meta[(unsigned int) yy_c];
1750 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1751 yy_is_jam = (yy_current_state == 264);
1753 *yy_state_ptr++ = yy_current_state;
1755 return yy_is_jam ? 0 : yy_current_state;
1760 #ifdef YY_USE_PROTOS
1761 static void yyunput( int c, register char *yy_bp )
1763 static void yyunput( c, yy_bp )
1765 register char *yy_bp;
1768 register char *yy_cp = yy_c_buf_p;
1770 /* undo effects of setting up yytext */
1771 *yy_cp = yy_hold_char;
1773 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1774 { /* need to shift things up to make room */
1775 /* +2 for EOB chars. */
1776 register int number_to_move = yy_n_chars + 2;
1777 register char *dest = &yy_current_buffer->yy_ch_buf[
1778 yy_current_buffer->yy_buf_size + 2];
1779 register char *source =
1780 &yy_current_buffer->yy_ch_buf[number_to_move];
1782 while ( source > yy_current_buffer->yy_ch_buf )
1783 *--dest = *--source;
1785 yy_cp += (int) (dest - source);
1786 yy_bp += (int) (dest - source);
1787 yy_current_buffer->yy_n_chars =
1788 yy_n_chars = yy_current_buffer->yy_buf_size;
1790 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1791 YY_FATAL_ERROR( "flex scanner push-back overflow" );
1794 *--yy_cp = (char) c;
1798 yy_hold_char = *yy_cp;
1801 #endif /* ifndef YY_NO_UNPUT */
1805 static int yyinput()
1812 *yy_c_buf_p = yy_hold_char;
1814 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1816 /* yy_c_buf_p now points to the character we want to return.
1817 * If this occurs *before* the EOB characters, then it's a
1818 * valid NUL; if not, then we've hit the end of the buffer.
1820 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1821 /* This was really a NUL. */
1825 { /* need more input */
1826 int offset = yy_c_buf_p - yytext_ptr;
1829 switch ( yy_get_next_buffer() )
1831 case EOB_ACT_LAST_MATCH:
1832 /* This happens because yy_g_n_b()
1833 * sees that we've accumulated a
1834 * token and flags that we need to
1835 * try matching the token before
1836 * proceeding. But for input(),
1837 * there's no matching to consider.
1838 * So convert the EOB_ACT_LAST_MATCH
1839 * to EOB_ACT_END_OF_FILE.
1842 /* Reset buffer status. */
1847 case EOB_ACT_END_OF_FILE:
1852 if ( ! yy_did_buffer_switch_on_eof )
1861 case EOB_ACT_CONTINUE_SCAN:
1862 yy_c_buf_p = yytext_ptr + offset;
1868 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
1869 *yy_c_buf_p = '\0'; /* preserve yytext */
1870 yy_hold_char = *++yy_c_buf_p;
1872 yy_current_buffer->yy_at_bol = (c == '\n');
1878 #ifdef YY_USE_PROTOS
1879 void yyrestart( FILE *input_file )
1881 void yyrestart( input_file )
1885 if ( ! yy_current_buffer )
1886 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
1888 yy_init_buffer( yy_current_buffer, input_file );
1889 yy_load_buffer_state();
1893 #ifdef YY_USE_PROTOS
1894 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
1896 void yy_switch_to_buffer( new_buffer )
1897 YY_BUFFER_STATE new_buffer;
1900 if ( yy_current_buffer == new_buffer )
1903 if ( yy_current_buffer )
1905 /* Flush out information for old buffer. */
1906 *yy_c_buf_p = yy_hold_char;
1907 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
1908 yy_current_buffer->yy_n_chars = yy_n_chars;
1911 yy_current_buffer = new_buffer;
1912 yy_load_buffer_state();
1914 /* We don't actually know whether we did this switch during
1915 * EOF (yywrap()) processing, but the only time this flag
1916 * is looked at is after yywrap() is called, so it's safe
1917 * to go ahead and always set it.
1919 yy_did_buffer_switch_on_eof = 1;
1923 #ifdef YY_USE_PROTOS
1924 void yy_load_buffer_state( void )
1926 void yy_load_buffer_state()
1929 yy_n_chars = yy_current_buffer->yy_n_chars;
1930 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
1931 yyin = yy_current_buffer->yy_input_file;
1932 yy_hold_char = *yy_c_buf_p;
1936 #ifdef YY_USE_PROTOS
1937 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
1939 YY_BUFFER_STATE yy_create_buffer( file, size )
1946 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
1948 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1950 b->yy_buf_size = size;
1952 /* yy_ch_buf has to be 2 characters longer than the size given because
1953 * we need to put in 2 end-of-buffer characters.
1955 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
1956 if ( ! b->yy_ch_buf )
1957 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1959 b->yy_is_our_buffer = 1;
1961 yy_init_buffer( b, file );
1967 #ifdef YY_USE_PROTOS
1968 void yy_delete_buffer( YY_BUFFER_STATE b )
1970 void yy_delete_buffer( b )
1977 if ( b == yy_current_buffer )
1978 yy_current_buffer = (YY_BUFFER_STATE) 0;
1980 if ( b->yy_is_our_buffer )
1981 yy_flex_free( (void *) b->yy_ch_buf );
1983 yy_flex_free( (void *) b );
1987 #ifndef YY_ALWAYS_INTERACTIVE
1988 #ifndef YY_NEVER_INTERACTIVE
1989 extern int isatty YY_PROTO(( int ));
1993 #ifdef YY_USE_PROTOS
1994 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
1996 void yy_init_buffer( b, file )
2003 yy_flush_buffer( b );
2005 b->yy_input_file = file;
2006 b->yy_fill_buffer = 1;
2008 #if YY_ALWAYS_INTERACTIVE
2009 b->yy_is_interactive = 1;
2011 #if YY_NEVER_INTERACTIVE
2012 b->yy_is_interactive = 0;
2014 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2020 #ifdef YY_USE_PROTOS
2021 void yy_flush_buffer( YY_BUFFER_STATE b )
2023 void yy_flush_buffer( b )
2033 /* We always need two end-of-buffer characters. The first causes
2034 * a transition to the end-of-buffer state. The second causes
2035 * a jam in that state.
2037 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2038 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2040 b->yy_buf_pos = &b->yy_ch_buf[0];
2043 b->yy_buffer_status = YY_BUFFER_NEW;
2045 if ( b == yy_current_buffer )
2046 yy_load_buffer_state();
2050 #ifndef YY_NO_SCAN_BUFFER
2051 #ifdef YY_USE_PROTOS
2052 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2054 YY_BUFFER_STATE yy_scan_buffer( base, size )
2062 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2063 base[size-1] != YY_END_OF_BUFFER_CHAR )
2064 /* They forgot to leave room for the EOB's. */
2067 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2069 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2071 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2072 b->yy_buf_pos = b->yy_ch_buf = base;
2073 b->yy_is_our_buffer = 0;
2074 b->yy_input_file = 0;
2075 b->yy_n_chars = b->yy_buf_size;
2076 b->yy_is_interactive = 0;
2078 b->yy_fill_buffer = 0;
2079 b->yy_buffer_status = YY_BUFFER_NEW;
2081 yy_switch_to_buffer( b );
2088 #ifndef YY_NO_SCAN_STRING
2089 #ifdef YY_USE_PROTOS
2090 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2092 YY_BUFFER_STATE yy_scan_string( yy_str )
2093 yyconst char *yy_str;
2097 for ( len = 0; yy_str[len]; ++len )
2100 return yy_scan_bytes( yy_str, len );
2105 #ifndef YY_NO_SCAN_BYTES
2106 #ifdef YY_USE_PROTOS
2107 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2109 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2110 yyconst char *bytes;
2119 /* Get memory for full buffer, including space for trailing EOB's. */
2121 buf = (char *) yy_flex_alloc( n );
2123 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2125 for ( i = 0; i < len; ++i )
2128 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2130 b = yy_scan_buffer( buf, n );
2132 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2134 /* It's okay to grow etc. this buffer, and we should throw it
2135 * away when we're done.
2137 b->yy_is_our_buffer = 1;
2144 #ifndef YY_NO_PUSH_STATE
2145 #ifdef YY_USE_PROTOS
2146 static void yy_push_state( int new_state )
2148 static void yy_push_state( new_state )
2152 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2156 yy_start_stack_depth += YY_START_STACK_INCR;
2157 new_size = yy_start_stack_depth * sizeof( int );
2159 if ( ! yy_start_stack )
2160 yy_start_stack = (int *) yy_flex_alloc( new_size );
2163 yy_start_stack = (int *) yy_flex_realloc(
2164 (void *) yy_start_stack, new_size );
2166 if ( ! yy_start_stack )
2168 "out of memory expanding start-condition stack" );
2171 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2178 #ifndef YY_NO_POP_STATE
2179 static void yy_pop_state()
2181 if ( --yy_start_stack_ptr < 0 )
2182 YY_FATAL_ERROR( "start-condition stack underflow" );
2184 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2189 #ifndef YY_NO_TOP_STATE
2190 static int yy_top_state()
2192 return yy_start_stack[yy_start_stack_ptr - 1];
2196 #ifndef YY_EXIT_FAILURE
2197 #define YY_EXIT_FAILURE 2
2200 #ifdef YY_USE_PROTOS
2201 static void yy_fatal_error( yyconst char msg[] )
2203 static void yy_fatal_error( msg )
2207 (void) fprintf( stderr, "%s\n", msg );
2208 exit( YY_EXIT_FAILURE );
2213 /* Redefine yyless() so it works in section 3 code. */
2219 /* Undo effects of setting up yytext. */ \
2220 yytext[yyleng] = yy_hold_char; \
2221 yy_c_buf_p = yytext + n; \
2222 yy_hold_char = *yy_c_buf_p; \
2223 *yy_c_buf_p = '\0'; \
2229 /* Internal utility routines. */
2232 #ifdef YY_USE_PROTOS
2233 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2235 static void yy_flex_strncpy( s1, s2, n )
2242 for ( i = 0; i < n; ++i )
2247 #ifdef YY_NEED_STRLEN
2248 #ifdef YY_USE_PROTOS
2249 static int yy_flex_strlen( yyconst char *s )
2251 static int yy_flex_strlen( s )
2256 for ( n = 0; s[n]; ++n )
2264 #ifdef YY_USE_PROTOS
2265 static void *yy_flex_alloc( yy_size_t size )
2267 static void *yy_flex_alloc( size )
2271 return (void *) malloc( size );
2274 #ifdef YY_USE_PROTOS
2275 static void *yy_flex_realloc( void *ptr, yy_size_t size )
2277 static void *yy_flex_realloc( ptr, size )
2282 /* The cast to (char *) in the following accommodates both
2283 * implementations that use char* generic pointers, and those
2284 * that use void* generic pointers. It works with the latter
2285 * because both ANSI C and C++ allow castless assignment from
2286 * any pointer type to void*, and deal with argument conversions
2287 * as though doing an assignment.
2289 return (void *) realloc( (char *) ptr, size );
2292 #ifdef YY_USE_PROTOS
2293 static void yy_flex_free( void *ptr )
2295 static void yy_flex_free( ptr )