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 66
288 #define YY_END_OF_BUFFER 67
289 static yyconst short int yy_acclist[336] =
291 67, 64, 66, 63, 64, 66, 1, 65, 66, 64,
292 65, 66, 64, 66, 64, 66, 64, 66, 64, 66,
293 12, 64, 66, 1, 13, 65, 66, 12, 64, 65,
294 66, 12, 64, 66, 12, 64, 66, 31, 64, 66,
295 1, 32, 65, 66, 31, 64, 65, 66, 24, 31,
296 64, 66, 31, 64, 66, 31, 64, 66, 31, 64,
297 66, 31, 64, 66, 29, 31, 64, 66, 30, 31,
298 64, 66, 31, 64, 66, 27, 64, 66, 1, 28,
299 65, 66, 27, 64, 65, 66, 26, 27, 64, 66,
300 27, 64, 66, 27, 64, 66, 64, 66, 64, 66,
302 59, 64, 66, 59, 64, 66, 59, 64, 66, 59,
303 64, 66, 59, 64, 66, 60, 64, 66, 64, 66,
304 64, 66, 57, 64, 66, 57, 64, 66, 59, 64,
305 66, 59, 64, 66, 59, 64, 66, 59, 64, 66,
306 59, 64, 66, 59, 64, 66, 59, 64, 66, 59,
307 64, 66, 59, 64, 66, 59, 64, 66, 59, 64,
308 66, 59, 64, 66, 61, 64, 66, 62, 64, 66,
309 7, 15, 11, 8, 23, 16, 25, 9, 59, 58,
310 59, 59, 59, 59, 57, 10, 57, 57, 59, 59,
311 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
313 59, 59, 59, 59, 59, 59, 3, 14, 21, 17,
314 19, 4, 5, 58, 59, 59, 59, 59, 49, 57,
315 6, 57, 57, 59, 59, 59, 59, 59, 59, 44,
316 59, 59, 59, 59, 59, 59, 59, 59, 59, 59,
317 59, 59, 59, 22, 18, 20, 59, 59, 35, 59,
318 34, 59, 59, 47, 59, 59, 59, 39, 59, 59,
319 42, 59, 59, 59, 59, 59, 59, 59, 59, 59,
320 59, 59, 36, 59, 33, 59, 59, 48, 59, 59,
321 45, 59, 59, 59, 59, 59, 43, 59, 59, 59,
322 59, 38, 59, 59, 59, 59, 59, 46, 59, 59,
324 59, 59, 50, 59, 54, 59, 40, 59, 37, 59,
325 59, 59, 59, 59, 56, 59, 59, 51, 59, 59,
326 53, 59, 59, 52, 59, 55, 59, 41, 59, 59,
330 static yyconst short int yy_accept[249] =
332 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
333 1, 1, 1, 2, 4, 7, 10, 13, 15, 17,
334 19, 21, 24, 28, 32, 35, 38, 41, 45, 49,
335 53, 56, 59, 62, 65, 69, 73, 76, 79, 83,
336 87, 91, 94, 97, 99, 101, 104, 107, 110, 113,
337 116, 119, 121, 123, 126, 129, 132, 135, 138, 141,
338 144, 147, 150, 153, 156, 159, 162, 165, 168, 171,
339 172, 172, 172, 172, 172, 173, 174, 174, 174, 174,
340 174, 175, 175, 176, 177, 178, 179, 179, 179, 180,
341 181, 182, 183, 184, 185, 185, 186, 187, 187, 187,
343 188, 188, 188, 189, 190, 191, 192, 193, 194, 195,
344 196, 197, 198, 199, 200, 201, 202, 203, 204, 205,
345 206, 207, 207, 208, 208, 208, 209, 210, 210, 210,
346 210, 211, 212, 212, 213, 213, 214, 214, 215, 216,
347 217, 218, 219, 220, 221, 221, 222, 223, 224, 225,
348 226, 227, 228, 229, 230, 232, 233, 234, 235, 236,
349 237, 238, 239, 240, 241, 242, 243, 244, 244, 244,
350 245, 246, 247, 248, 249, 251, 253, 254, 256, 257,
351 258, 260, 261, 263, 264, 265, 266, 267, 268, 269,
352 270, 271, 272, 273, 275, 275, 276, 277, 278, 280,
354 281, 283, 284, 285, 286, 287, 289, 290, 291, 292,
355 294, 295, 296, 296, 297, 298, 300, 301, 302, 303,
356 305, 307, 309, 311, 312, 313, 313, 314, 315, 317,
357 318, 320, 321, 323, 323, 324, 326, 328, 330, 330,
358 331, 331, 332, 332, 333, 334, 336, 336
361 static yyconst int yy_ec[256] =
363 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
364 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
365 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
366 1, 2, 1, 5, 1, 1, 6, 1, 7, 1,
367 1, 8, 1, 1, 1, 9, 10, 11, 12, 12,
368 12, 12, 12, 12, 12, 13, 13, 14, 1, 1,
369 1, 1, 1, 1, 15, 15, 16, 15, 17, 18,
370 19, 20, 19, 19, 21, 19, 22, 19, 23, 19,
371 19, 24, 19, 25, 26, 19, 19, 19, 19, 19,
372 1, 27, 1, 1, 19, 1, 28, 29, 30, 31,
374 32, 33, 34, 35, 36, 19, 19, 37, 38, 39,
375 40, 41, 19, 42, 43, 44, 45, 46, 19, 47,
376 19, 19, 48, 1, 49, 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,
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,
385 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
386 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
387 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,
393 static yyconst int yy_meta[50] =
395 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
396 3, 3, 3, 4, 5, 5, 5, 5, 6, 6,
397 6, 6, 6, 6, 6, 6, 1, 5, 5, 5,
398 5, 5, 5, 6, 6, 6, 6, 6, 6, 6,
399 6, 6, 6, 6, 6, 6, 6, 1, 1
402 static yyconst short int yy_base[263] =
404 0, 3, 12, 15, 35, 82, 24, 44, 131, 0,
405 172, 0, 530, 531, 531, 531, 531, 4, 506, 491,
406 6, 531, 531, 531, 517, 503, 531, 531, 531, 531,
407 16, 16, 502, 0, 531, 531, 475, 531, 531, 531,
408 531, 500, 0, 42, 0, 508, 21, 18, 17, 39,
409 531, 64, 48, 69, 82, 54, 65, 58, 22, 53,
410 83, 85, 177, 180, 175, 87, 192, 531, 531, 531,
411 518, 495, 491, 470, 531, 531, 510, 58, 509, 508,
412 531, 511, 531, 531, 531, 531, 510, 498, 497, 496,
413 89, 96, 174, 193, 500, 100, 531, 505, 106, 184,
415 222, 0, 227, 94, 101, 185, 212, 213, 216, 223,
416 227, 228, 229, 232, 172, 230, 231, 233, 235, 234,
417 236, 504, 531, 486, 462, 531, 531, 497, 496, 495,
418 531, 531, 498, 531, 497, 531, 485, 484, 107, 237,
419 239, 238, 531, 251, 494, 531, 271, 0, 240, 245,
420 255, 259, 241, 272, 482, 260, 275, 276, 277, 278,
421 279, 281, 282, 285, 283, 287, 291, 478, 451, 531,
422 531, 531, 106, 289, 479, 478, 288, 477, 290, 292,
423 476, 293, 475, 294, 296, 300, 297, 295, 316, 310,
424 302, 321, 298, 474, 463, 531, 46, 328, 472, 331,
426 471, 332, 333, 335, 336, 470, 337, 339, 338, 469,
427 342, 340, 464, 343, 344, 467, 345, 353, 348, 465,
428 421, 415, 388, 357, 351, 375, 350, 359, 386, 361,
429 385, 363, 384, 381, 176, 377, 376, 299, 177, 364,
430 170, 378, 45, 372, 531, 3, 531, 403, 409, 415,
431 421, 427, 433, 435, 439, 445, 451, 457, 461, 465,
435 static yyconst short int yy_def[263] =
437 248, 248, 249, 249, 250, 250, 251, 251, 247, 9,
438 9, 11, 247, 247, 247, 247, 247, 247, 247, 247,
439 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
440 247, 247, 247, 252, 247, 247, 247, 247, 247, 247,
441 247, 247, 253, 247, 254, 255, 255, 255, 255, 255,
442 247, 247, 247, 247, 247, 255, 255, 255, 255, 255,
443 255, 255, 255, 255, 255, 255, 255, 247, 247, 247,
444 256, 247, 247, 247, 247, 247, 247, 247, 247, 247,
445 247, 257, 247, 247, 247, 247, 258, 259, 255, 260,
446 255, 255, 255, 255, 247, 247, 247, 261, 247, 247,
448 247, 262, 247, 255, 255, 255, 255, 255, 255, 255,
449 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
450 255, 256, 247, 247, 247, 247, 247, 247, 247, 247,
451 247, 247, 257, 247, 258, 247, 259, 260, 255, 255,
452 255, 255, 247, 247, 261, 247, 247, 262, 255, 255,
453 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
454 255, 255, 255, 255, 255, 255, 255, 247, 247, 247,
455 247, 247, 255, 255, 255, 255, 255, 255, 255, 255,
456 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
457 255, 255, 255, 255, 247, 247, 255, 255, 255, 255,
459 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
460 255, 255, 247, 255, 255, 255, 255, 255, 255, 255,
461 255, 255, 255, 255, 255, 247, 255, 255, 255, 255,
462 255, 255, 255, 247, 255, 255, 255, 255, 247, 255,
463 247, 255, 247, 255, 247, 255, 0, 247, 247, 247,
464 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
468 static yyconst short int yy_nxt[581] =
470 247, 15, 16, 17, 15, 16, 17, 247, 21, 18,
471 247, 70, 18, 71, 23, 24, 90, 23, 24, 25,
472 77, 19, 25, 81, 19, 82, 39, 40, 41, 20,
473 90, 90, 20, 26, 90, 90, 26, 28, 29, 30,
474 74, 31, 78, 91, 32, 42, 39, 40, 41, 86,
475 43, 87, 90, 75, 92, 97, 33, 98, 93, 90,
476 108, 34, 128, 79, 80, 42, 90, 90, 245, 214,
477 43, 90, 95, 94, 96, 96, 96, 99, 90, 100,
478 100, 101, 35, 36, 28, 29, 30, 37, 31, 109,
479 99, 32, 103, 103, 103, 104, 90, 107, 90, 105,
481 90, 92, 90, 33, 106, 129, 130, 90, 34, 90,
482 144, 144, 144, 139, 90, 102, 147, 147, 147, 90,
483 90, 110, 197, 140, 111, 119, 173, 149, 150, 35,
484 36, 14, 15, 16, 17, 14, 14, 14, 14, 14,
485 44, 14, 14, 14, 45, 46, 46, 46, 46, 46,
486 46, 46, 47, 46, 46, 46, 46, 14, 46, 46,
487 48, 46, 46, 49, 46, 46, 46, 46, 46, 46,
488 46, 46, 46, 46, 50, 46, 46, 46, 51, 14,
489 52, 53, 54, 55, 55, 90, 243, 90, 90, 90,
490 90, 240, 99, 90, 100, 100, 101, 241, 90, 56,
492 160, 57, 58, 59, 60, 90, 90, 61, 62, 116,
493 117, 63, 64, 141, 65, 112, 66, 67, 118, 68,
494 69, 114, 113, 151, 115, 90, 90, 120, 142, 90,
495 99, 121, 101, 101, 101, 99, 90, 103, 103, 103,
496 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
497 90, 90, 90, 90, 90, 154, 152, 153, 90, 157,
498 158, 144, 144, 144, 162, 156, 155, 159, 90, 161,
499 164, 167, 90, 90, 163, 166, 175, 165, 181, 174,
500 176, 147, 147, 147, 177, 90, 178, 180, 90, 90,
501 90, 90, 90, 183, 90, 90, 90, 179, 90, 182,
503 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
504 90, 90, 90, 90, 187, 90, 184, 185, 192, 189,
505 188, 194, 186, 90, 191, 198, 190, 204, 200, 90,
506 193, 176, 205, 199, 90, 202, 201, 203, 206, 209,
507 210, 90, 212, 207, 90, 90, 90, 208, 90, 90,
508 90, 90, 90, 90, 211, 90, 90, 90, 90, 215,
509 227, 90, 216, 90, 90, 220, 90, 225, 218, 222,
510 90, 217, 90, 221, 90, 235, 90, 90, 219, 231,
511 224, 223, 228, 230, 242, 90, 229, 233, 232, 90,
512 90, 90, 237, 238, 244, 246, 239, 90, 90, 90,
514 234, 90, 236, 14, 14, 14, 14, 14, 14, 22,
515 22, 22, 22, 22, 22, 27, 27, 27, 27, 27,
516 27, 38, 38, 38, 38, 38, 38, 83, 90, 83,
517 83, 83, 83, 85, 90, 85, 85, 85, 85, 88,
518 88, 89, 89, 89, 89, 122, 122, 122, 122, 122,
519 122, 133, 133, 133, 133, 133, 133, 135, 135, 135,
520 135, 135, 135, 137, 137, 137, 137, 138, 138, 138,
521 138, 145, 145, 145, 145, 145, 145, 148, 90, 148,
522 90, 226, 90, 90, 90, 90, 213, 90, 90, 90,
523 90, 90, 90, 196, 195, 90, 146, 90, 90, 136,
525 134, 172, 171, 170, 169, 168, 123, 146, 143, 90,
526 90, 90, 136, 134, 132, 131, 127, 126, 125, 124,
527 123, 90, 72, 84, 72, 72, 76, 73, 72, 247,
528 13, 247, 247, 247, 247, 247, 247, 247, 247, 247,
529 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
530 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
531 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
532 247, 247, 247, 247, 247, 247, 247, 247, 247, 247
535 static yyconst short int yy_chk[581] =
537 0, 1, 1, 1, 2, 2, 2, 0, 2, 1,
538 0, 18, 2, 18, 3, 3, 246, 4, 4, 3,
539 31, 1, 4, 32, 2, 32, 7, 7, 7, 1,
540 49, 48, 2, 3, 47, 59, 4, 5, 5, 5,
541 21, 5, 31, 47, 5, 7, 8, 8, 8, 44,
542 7, 44, 50, 21, 48, 53, 5, 53, 49, 197,
543 59, 5, 78, 31, 31, 8, 60, 56, 243, 197,
544 8, 58, 52, 50, 52, 52, 52, 54, 57, 54,
545 54, 54, 5, 5, 6, 6, 6, 6, 6, 60,
546 55, 6, 55, 55, 55, 56, 61, 58, 62, 57,
548 66, 57, 91, 6, 57, 78, 78, 104, 6, 92,
549 96, 96, 96, 91, 105, 54, 99, 99, 99, 173,
550 139, 61, 173, 92, 62, 66, 139, 104, 105, 6,
551 6, 9, 9, 9, 9, 9, 9, 9, 9, 9,
552 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
553 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
554 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
555 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
556 11, 11, 11, 11, 11, 115, 241, 93, 65, 235,
557 63, 235, 100, 64, 100, 100, 100, 239, 106, 11,
559 115, 11, 11, 11, 11, 67, 94, 11, 11, 65,
560 65, 11, 11, 93, 11, 63, 11, 11, 65, 11,
561 11, 64, 63, 106, 64, 107, 108, 67, 94, 109,
562 101, 67, 101, 101, 101, 103, 110, 103, 103, 103,
563 111, 112, 113, 116, 117, 114, 118, 120, 119, 121,
564 140, 142, 141, 149, 153, 109, 107, 108, 150, 112,
565 113, 144, 144, 144, 117, 111, 110, 114, 151, 116,
566 119, 121, 152, 156, 118, 120, 141, 119, 153, 140,
567 142, 147, 147, 147, 149, 154, 150, 152, 157, 158,
568 159, 160, 161, 156, 162, 163, 165, 151, 164, 154,
570 166, 177, 174, 179, 167, 180, 182, 184, 188, 185,
571 187, 193, 238, 186, 160, 191, 157, 158, 165, 162,
572 161, 167, 159, 190, 164, 177, 163, 186, 180, 189,
573 166, 174, 187, 179, 192, 184, 182, 185, 188, 190,
574 191, 198, 193, 189, 200, 202, 203, 189, 204, 205,
575 207, 209, 208, 212, 192, 211, 214, 215, 217, 198,
576 214, 219, 200, 227, 225, 205, 218, 212, 203, 208,
577 224, 202, 228, 207, 230, 227, 232, 240, 204, 219,
578 211, 209, 215, 218, 240, 244, 217, 225, 224, 237,
579 236, 242, 230, 232, 242, 244, 234, 233, 231, 229,
581 226, 223, 228, 248, 248, 248, 248, 248, 248, 249,
582 249, 249, 249, 249, 249, 250, 250, 250, 250, 250,
583 250, 251, 251, 251, 251, 251, 251, 252, 222, 252,
584 252, 252, 252, 253, 221, 253, 253, 253, 253, 254,
585 254, 255, 255, 255, 255, 256, 256, 256, 256, 256,
586 256, 257, 257, 257, 257, 257, 257, 258, 258, 258,
587 258, 258, 258, 259, 259, 259, 259, 260, 260, 260,
588 260, 261, 261, 261, 261, 261, 261, 262, 220, 262,
589 216, 213, 210, 206, 201, 199, 195, 194, 183, 181,
590 178, 176, 175, 169, 168, 155, 145, 138, 137, 135,
592 133, 130, 129, 128, 125, 124, 122, 98, 95, 90,
593 89, 88, 87, 82, 80, 79, 77, 74, 73, 72,
594 71, 46, 42, 37, 33, 26, 25, 20, 19, 13,
595 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
596 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
597 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
598 247, 247, 247, 247, 247, 247, 247, 247, 247, 247,
599 247, 247, 247, 247, 247, 247, 247, 247, 247, 247
602 static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
603 static char *yy_full_match;
607 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
608 yy_cp = yy_full_match; /* restore poss. backed-over text */ \
612 #define yymore() yymore_used_but_not_detected
613 #define YY_MORE_ADJ 0
614 #define YY_RESTORE_YY_MORE_OFFSET
618 /* GOB C Preprocessor
619 * Copyright (C) 1999 the Free Software Foundation.
621 * Author: George Lebl
623 * This program is free software; you can redistribute it and/or modify
624 * it under the terms of the GNU General Public License as published by
625 * the Free Software Foundation; either version 2 of the License, or
626 * (at your option) any later version.
628 * This program is distributed in the hope that it will be useful,
629 * but WITHOUT ANY WARRANTY; without even the implied warranty of
630 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
631 * GNU General Public License for more details.
633 * You should have received a copy of the GNU General Public License
634 * along with this program; if not, write to the Free Software
635 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
646 extern gboolean for_cpp;
648 static int parenth_depth = 0;
649 static int before_comment = INITIAL;
650 static int class_after_c = FALSE;
651 static int header_c = FALSE;
653 static GString *cbuf = NULL;
662 cbuf = g_string_new("");
664 cbuf = g_string_assign(cbuf,"");
672 cbuf = g_string_new(s);
674 cbuf = g_string_append(cbuf,s);
682 #define C_CODE_STRING 3
686 #define CLASS_CODE_I 5
690 /* Macros after this point can all be overridden by user definitions in
694 #ifndef YY_SKIP_YYWRAP
696 extern "C" int yywrap YY_PROTO(( void ));
698 extern int yywrap YY_PROTO(( void ));
703 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
707 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
710 #ifdef YY_NEED_STRLEN
711 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
716 static int yyinput YY_PROTO(( void ));
718 static int input YY_PROTO(( void ));
723 static int yy_start_stack_ptr = 0;
724 static int yy_start_stack_depth = 0;
725 static int *yy_start_stack = 0;
726 #ifndef YY_NO_PUSH_STATE
727 static void yy_push_state YY_PROTO(( int new_state ));
729 #ifndef YY_NO_POP_STATE
730 static void yy_pop_state YY_PROTO(( void ));
732 #ifndef YY_NO_TOP_STATE
733 static int yy_top_state YY_PROTO(( void ));
737 #define YY_NO_PUSH_STATE 1
738 #define YY_NO_POP_STATE 1
739 #define YY_NO_TOP_STATE 1
742 #ifdef YY_MALLOC_DECL
750 /* Just try to get by without declaring the routines. This will fail
751 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
752 * or sizeof(void*) != sizeof(int).
757 /* Amount of stuff to slurp up with each read. */
758 #ifndef YY_READ_BUF_SIZE
759 #define YY_READ_BUF_SIZE 8192
762 /* Copy whatever the last rule matched to the standard output. */
765 /* This used to be an fputs(), but since the string might contain NUL's,
766 * we now use fwrite().
768 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
771 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
772 * is returned in "result".
775 #define YY_INPUT(buf,result,max_size) \
776 if ( yy_current_buffer->yy_is_interactive ) \
779 for ( n = 0; n < max_size && \
780 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
783 buf[n++] = (char) c; \
784 if ( c == EOF && ferror( yyin ) ) \
785 YY_FATAL_ERROR( "input in flex scanner failed" ); \
788 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
789 && ferror( yyin ) ) \
790 YY_FATAL_ERROR( "input in flex scanner failed" );
793 /* No semi-colon after return; correct usage is to write "yyterminate();" -
794 * we don't want an extra ';' after the "return" because that will cause
795 * some compilers to complain about unreachable statements.
798 #define yyterminate() return YY_NULL
801 /* Number of entries by which start-condition stack grows. */
802 #ifndef YY_START_STACK_INCR
803 #define YY_START_STACK_INCR 25
806 /* Report a fatal error. */
807 #ifndef YY_FATAL_ERROR
808 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
811 /* Default declaration of generated scanner - a define so the user can
812 * easily add parameters.
815 #define YY_DECL int yylex YY_PROTO(( void ))
818 /* Code executed at the beginning of each rule, after yytext and yyleng
821 #ifndef YY_USER_ACTION
822 #define YY_USER_ACTION
825 /* Code executed at the end of each rule. */
827 #define YY_BREAK break;
830 #define YY_RULE_SETUP \
832 yy_current_buffer->yy_at_bol = \
833 (yytext[yyleng - 1] == '\n'); \
838 register yy_state_type yy_current_state;
839 register char *yy_cp = NULL, *yy_bp = NULL;
856 yy_start = 1; /* first start state */
864 if ( ! yy_current_buffer )
866 yy_create_buffer( yyin, YY_BUF_SIZE );
868 yy_load_buffer_state();
871 while ( 1 ) /* loops until end-of-file is reached */
875 /* Support of yytext. */
876 *yy_cp = yy_hold_char;
878 /* yy_bp points to the position in yy_ch_buf of the start of
883 yy_current_state = yy_start;
884 yy_current_state += YY_AT_BOL();
885 yy_state_ptr = yy_state_buf;
886 *yy_state_ptr++ = yy_current_state;
890 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
891 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
893 yy_current_state = (int) yy_def[yy_current_state];
894 if ( yy_current_state >= 248 )
895 yy_c = yy_meta[(unsigned int) yy_c];
897 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
898 *yy_state_ptr++ = yy_current_state;
901 while ( yy_base[yy_current_state] != 531 );
904 yy_current_state = *--yy_state_ptr;
905 yy_lp = yy_accept[yy_current_state];
906 find_rule: /* we branch to this label when backing up */
907 for ( ; ; ) /* until we find what rule we matched */
909 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
911 yy_act = yy_acclist[yy_lp];
913 yy_full_match = yy_cp;
918 yy_current_state = *--yy_state_ptr;
919 yy_lp = yy_accept[yy_current_state];
925 do_action: /* This label is used only to access EOF actions. */
929 { /* beginning of action switch */
933 { line_no++; REJECT; }
938 { fprintf(stderr,"You are a bad bad person!\n"); REJECT; }
941 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
942 yy_c_buf_p = yy_cp -= 1;
943 YY_DO_BEFORE_ACTION; /* set up yytext again */
946 { ; /*comment, ignore*/ }
949 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
950 yy_c_buf_p = yy_cp -= 1;
951 YY_DO_BEFORE_ACTION; /* set up yytext again */
954 { add_to_cbuf(yytext); /*comment, ignore*/ }
957 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
958 yy_c_buf_p = yy_cp -= 1;
959 YY_DO_BEFORE_ACTION; /* set up yytext again */
962 { ; /*comment, ignore*/ }
965 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
966 yy_c_buf_p = yy_cp -= 1;
967 YY_DO_BEFORE_ACTION; /* set up yytext again */
970 { ; /*comment, ignore*/ }
975 {BEGIN(COMMENT); before_comment = INITIAL; }
983 before_comment = C_CODE;
989 {BEGIN(COMMENT); before_comment = CLASS_CODE; }
994 {BEGIN(COMMENT); before_comment = CLASS_CODE_I; }
1000 if(before_comment == C_CODE) add_to_cbuf(yytext);
1001 BEGIN(before_comment);
1008 /* comment, ignore */
1009 if(before_comment == C_CODE) add_to_cbuf(yytext);
1016 /* comment, ignore */
1017 if(before_comment == C_CODE) add_to_cbuf(yytext);
1026 class_after_c = FALSE;
1029 ccode_line = line_no;
1038 class_after_c = FALSE;
1041 ccode_line = line_no;
1060 { add_to_cbuf(yytext); }
1065 { add_to_cbuf(yytext); }
1070 { add_to_cbuf(yytext); }
1075 { add_to_cbuf(yytext); }
1080 { add_to_cbuf(yytext); }
1085 { add_to_cbuf(yytext); }
1090 { add_to_cbuf(yytext); }
1096 BEGIN(C_CODE_STRING);
1097 add_to_cbuf(yytext);
1103 { add_to_cbuf(yytext); }
1110 add_to_cbuf(yytext);
1116 { add_to_cbuf(yytext); }
1121 { add_to_cbuf(yytext); }
1128 add_to_cbuf(yytext);
1136 if(parenth_depth<0) {
1138 } else if(parenth_depth==0 && class_after_c) {
1139 BEGIN(CLASS_CODE_I);
1144 add_to_cbuf(yytext);
1150 { add_to_cbuf(yytext); }
1155 { add_to_cbuf(yytext); }
1171 s = g_strdup_printf("'%s' keyword should not "
1172 "be used when generating "
1174 print_error(TRUE,s, line_no);
1258 {yylval.line = line_no; return PUBLIC;}
1263 {yylval.line = line_no; return PRIVATE;}
1268 {yylval.line = line_no; return ARGUMENT;}
1273 {yylval.line = line_no; return VIRTUAL;}
1278 {yylval.line = line_no; return SIGNAL;}
1283 {yylval.line = line_no; return OVERRIDE;}
1294 yylval.id = g_strdup(yytext);
1302 yylval.id = g_strdup(yytext);
1310 yylval.id = g_strdup(yytext);
1318 BEGIN(CLASS_CODE_I);
1328 class_after_c = TRUE;
1329 ccode_line = line_no;
1330 yylval.line = line_no;
1351 yylval.line = line_no;
1365 #line 1366 "lex.yy.c"
1366 case YY_STATE_EOF(INITIAL):
1367 case YY_STATE_EOF(COMMENT):
1368 case YY_STATE_EOF(C_CODE):
1369 case YY_STATE_EOF(C_CODE_STRING):
1370 case YY_STATE_EOF(CLASS_CODE):
1371 case YY_STATE_EOF(CLASS_CODE_I):
1374 case YY_END_OF_BUFFER:
1376 /* Amount of text matched not including the EOB char. */
1377 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
1379 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1380 *yy_cp = yy_hold_char;
1381 YY_RESTORE_YY_MORE_OFFSET
1383 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
1385 /* We're scanning a new file or input source. It's
1386 * possible that this happened because the user
1387 * just pointed yyin at a new source and called
1388 * yylex(). If so, then we have to assure
1389 * consistency between yy_current_buffer and our
1390 * globals. Here is the right place to do so, because
1391 * this is the first action (other than possibly a
1392 * back-up) that will match for the new input source.
1394 yy_n_chars = yy_current_buffer->yy_n_chars;
1395 yy_current_buffer->yy_input_file = yyin;
1396 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
1399 /* Note that here we test for yy_c_buf_p "<=" to the position
1400 * of the first EOB in the buffer, since yy_c_buf_p will
1401 * already have been incremented past the NUL character
1402 * (since all states make transitions on EOB to the
1403 * end-of-buffer state). Contrast this with the test
1406 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1407 { /* This was really a NUL. */
1408 yy_state_type yy_next_state;
1410 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
1412 yy_current_state = yy_get_previous_state();
1414 /* Okay, we're now positioned to make the NUL
1415 * transition. We couldn't have
1416 * yy_get_previous_state() go ahead and do it
1417 * for us because it doesn't know how to deal
1418 * with the possibility of jamming (and we don't
1419 * want to build jamming into it because then it
1420 * will run more slowly).
1423 yy_next_state = yy_try_NUL_trans( yy_current_state );
1425 yy_bp = yytext_ptr + YY_MORE_ADJ;
1427 if ( yy_next_state )
1429 /* Consume the NUL. */
1430 yy_cp = ++yy_c_buf_p;
1431 yy_current_state = yy_next_state;
1438 goto yy_find_action;
1442 else switch ( yy_get_next_buffer() )
1444 case EOB_ACT_END_OF_FILE:
1446 yy_did_buffer_switch_on_eof = 0;
1450 /* Note: because we've taken care in
1451 * yy_get_next_buffer() to have set up
1452 * yytext, we can now set up
1453 * yy_c_buf_p so that if some total
1454 * hoser (like flex itself) wants to
1455 * call the scanner after we return the
1456 * YY_NULL, it'll still work - another
1457 * YY_NULL will get returned.
1459 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
1461 yy_act = YY_STATE_EOF(YY_START);
1467 if ( ! yy_did_buffer_switch_on_eof )
1473 case EOB_ACT_CONTINUE_SCAN:
1475 yytext_ptr + yy_amount_of_matched_text;
1477 yy_current_state = yy_get_previous_state();
1480 yy_bp = yytext_ptr + YY_MORE_ADJ;
1483 case EOB_ACT_LAST_MATCH:
1485 &yy_current_buffer->yy_ch_buf[yy_n_chars];
1487 yy_current_state = yy_get_previous_state();
1490 yy_bp = yytext_ptr + YY_MORE_ADJ;
1491 goto yy_find_action;
1498 "fatal flex scanner internal error--no action found" );
1499 } /* end of action switch */
1500 } /* end of scanning one token */
1501 } /* end of yylex */
1504 /* yy_get_next_buffer - try to read in a new buffer
1506 * Returns a code representing an action:
1507 * EOB_ACT_LAST_MATCH -
1508 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1509 * EOB_ACT_END_OF_FILE - end of file
1512 static int yy_get_next_buffer()
1514 register char *dest = yy_current_buffer->yy_ch_buf;
1515 register char *source = yytext_ptr;
1516 register int number_to_move, i;
1519 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
1521 "fatal flex scanner internal error--end of buffer missed" );
1523 if ( yy_current_buffer->yy_fill_buffer == 0 )
1524 { /* Don't try to fill the buffer, so this is an EOF. */
1525 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
1527 /* We matched a single character, the EOB, so
1528 * treat this as a final EOF.
1530 return EOB_ACT_END_OF_FILE;
1535 /* We matched some text prior to the EOB, first
1538 return EOB_ACT_LAST_MATCH;
1542 /* Try to read more data. */
1544 /* First move last chars to start of buffer. */
1545 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
1547 for ( i = 0; i < number_to_move; ++i )
1548 *(dest++) = *(source++);
1550 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1551 /* don't do the read, it's not guaranteed to return an EOF,
1554 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
1559 yy_current_buffer->yy_buf_size - number_to_move - 1;
1561 while ( num_to_read <= 0 )
1562 { /* Not enough room in the buffer - grow it. */
1563 #ifdef YY_USES_REJECT
1565 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1568 /* just a shorter name for the current buffer */
1569 YY_BUFFER_STATE b = yy_current_buffer;
1571 int yy_c_buf_p_offset =
1572 (int) (yy_c_buf_p - b->yy_ch_buf);
1574 if ( b->yy_is_our_buffer )
1576 int new_size = b->yy_buf_size * 2;
1578 if ( new_size <= 0 )
1579 b->yy_buf_size += b->yy_buf_size / 8;
1581 b->yy_buf_size *= 2;
1583 b->yy_ch_buf = (char *)
1584 /* Include room in for 2 EOB chars. */
1585 yy_flex_realloc( (void *) b->yy_ch_buf,
1586 b->yy_buf_size + 2 );
1589 /* Can't grow it, we don't own it. */
1592 if ( ! b->yy_ch_buf )
1594 "fatal error - scanner input buffer overflow" );
1596 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1598 num_to_read = yy_current_buffer->yy_buf_size -
1603 if ( num_to_read > YY_READ_BUF_SIZE )
1604 num_to_read = YY_READ_BUF_SIZE;
1606 /* Read in more data. */
1607 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
1608 yy_n_chars, num_to_read );
1610 yy_current_buffer->yy_n_chars = yy_n_chars;
1613 if ( yy_n_chars == 0 )
1615 if ( number_to_move == YY_MORE_ADJ )
1617 ret_val = EOB_ACT_END_OF_FILE;
1623 ret_val = EOB_ACT_LAST_MATCH;
1624 yy_current_buffer->yy_buffer_status =
1625 YY_BUFFER_EOF_PENDING;
1630 ret_val = EOB_ACT_CONTINUE_SCAN;
1632 yy_n_chars += number_to_move;
1633 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1634 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1636 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
1642 /* yy_get_previous_state - get the state just before the EOB char was reached */
1644 static yy_state_type yy_get_previous_state()
1646 register yy_state_type yy_current_state;
1647 register char *yy_cp;
1649 yy_current_state = yy_start;
1650 yy_current_state += YY_AT_BOL();
1651 yy_state_ptr = yy_state_buf;
1652 *yy_state_ptr++ = yy_current_state;
1654 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
1656 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1657 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1659 yy_current_state = (int) yy_def[yy_current_state];
1660 if ( yy_current_state >= 248 )
1661 yy_c = yy_meta[(unsigned int) yy_c];
1663 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1664 *yy_state_ptr++ = yy_current_state;
1667 return yy_current_state;
1671 /* yy_try_NUL_trans - try to make a transition on the NUL character
1674 * next_state = yy_try_NUL_trans( current_state );
1677 #ifdef YY_USE_PROTOS
1678 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
1680 static yy_state_type yy_try_NUL_trans( yy_current_state )
1681 yy_state_type yy_current_state;
1684 register int yy_is_jam;
1686 register YY_CHAR yy_c = 1;
1687 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1689 yy_current_state = (int) yy_def[yy_current_state];
1690 if ( yy_current_state >= 248 )
1691 yy_c = yy_meta[(unsigned int) yy_c];
1693 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1694 yy_is_jam = (yy_current_state == 247);
1696 *yy_state_ptr++ = yy_current_state;
1698 return yy_is_jam ? 0 : yy_current_state;
1703 #ifdef YY_USE_PROTOS
1704 static void yyunput( int c, register char *yy_bp )
1706 static void yyunput( c, yy_bp )
1708 register char *yy_bp;
1711 register char *yy_cp = yy_c_buf_p;
1713 /* undo effects of setting up yytext */
1714 *yy_cp = yy_hold_char;
1716 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1717 { /* need to shift things up to make room */
1718 /* +2 for EOB chars. */
1719 register int number_to_move = yy_n_chars + 2;
1720 register char *dest = &yy_current_buffer->yy_ch_buf[
1721 yy_current_buffer->yy_buf_size + 2];
1722 register char *source =
1723 &yy_current_buffer->yy_ch_buf[number_to_move];
1725 while ( source > yy_current_buffer->yy_ch_buf )
1726 *--dest = *--source;
1728 yy_cp += (int) (dest - source);
1729 yy_bp += (int) (dest - source);
1730 yy_current_buffer->yy_n_chars =
1731 yy_n_chars = yy_current_buffer->yy_buf_size;
1733 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1734 YY_FATAL_ERROR( "flex scanner push-back overflow" );
1737 *--yy_cp = (char) c;
1741 yy_hold_char = *yy_cp;
1744 #endif /* ifndef YY_NO_UNPUT */
1748 static int yyinput()
1755 *yy_c_buf_p = yy_hold_char;
1757 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1759 /* yy_c_buf_p now points to the character we want to return.
1760 * If this occurs *before* the EOB characters, then it's a
1761 * valid NUL; if not, then we've hit the end of the buffer.
1763 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1764 /* This was really a NUL. */
1768 { /* need more input */
1769 int offset = yy_c_buf_p - yytext_ptr;
1772 switch ( yy_get_next_buffer() )
1774 case EOB_ACT_LAST_MATCH:
1775 /* This happens because yy_g_n_b()
1776 * sees that we've accumulated a
1777 * token and flags that we need to
1778 * try matching the token before
1779 * proceeding. But for input(),
1780 * there's no matching to consider.
1781 * So convert the EOB_ACT_LAST_MATCH
1782 * to EOB_ACT_END_OF_FILE.
1785 /* Reset buffer status. */
1790 case EOB_ACT_END_OF_FILE:
1795 if ( ! yy_did_buffer_switch_on_eof )
1804 case EOB_ACT_CONTINUE_SCAN:
1805 yy_c_buf_p = yytext_ptr + offset;
1811 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
1812 *yy_c_buf_p = '\0'; /* preserve yytext */
1813 yy_hold_char = *++yy_c_buf_p;
1815 yy_current_buffer->yy_at_bol = (c == '\n');
1821 #ifdef YY_USE_PROTOS
1822 void yyrestart( FILE *input_file )
1824 void yyrestart( input_file )
1828 if ( ! yy_current_buffer )
1829 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
1831 yy_init_buffer( yy_current_buffer, input_file );
1832 yy_load_buffer_state();
1836 #ifdef YY_USE_PROTOS
1837 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
1839 void yy_switch_to_buffer( new_buffer )
1840 YY_BUFFER_STATE new_buffer;
1843 if ( yy_current_buffer == new_buffer )
1846 if ( yy_current_buffer )
1848 /* Flush out information for old buffer. */
1849 *yy_c_buf_p = yy_hold_char;
1850 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
1851 yy_current_buffer->yy_n_chars = yy_n_chars;
1854 yy_current_buffer = new_buffer;
1855 yy_load_buffer_state();
1857 /* We don't actually know whether we did this switch during
1858 * EOF (yywrap()) processing, but the only time this flag
1859 * is looked at is after yywrap() is called, so it's safe
1860 * to go ahead and always set it.
1862 yy_did_buffer_switch_on_eof = 1;
1866 #ifdef YY_USE_PROTOS
1867 void yy_load_buffer_state( void )
1869 void yy_load_buffer_state()
1872 yy_n_chars = yy_current_buffer->yy_n_chars;
1873 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
1874 yyin = yy_current_buffer->yy_input_file;
1875 yy_hold_char = *yy_c_buf_p;
1879 #ifdef YY_USE_PROTOS
1880 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
1882 YY_BUFFER_STATE yy_create_buffer( file, size )
1889 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
1891 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1893 b->yy_buf_size = size;
1895 /* yy_ch_buf has to be 2 characters longer than the size given because
1896 * we need to put in 2 end-of-buffer characters.
1898 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
1899 if ( ! b->yy_ch_buf )
1900 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1902 b->yy_is_our_buffer = 1;
1904 yy_init_buffer( b, file );
1910 #ifdef YY_USE_PROTOS
1911 void yy_delete_buffer( YY_BUFFER_STATE b )
1913 void yy_delete_buffer( b )
1920 if ( b == yy_current_buffer )
1921 yy_current_buffer = (YY_BUFFER_STATE) 0;
1923 if ( b->yy_is_our_buffer )
1924 yy_flex_free( (void *) b->yy_ch_buf );
1926 yy_flex_free( (void *) b );
1930 #ifndef YY_ALWAYS_INTERACTIVE
1931 #ifndef YY_NEVER_INTERACTIVE
1932 extern int isatty YY_PROTO(( int ));
1936 #ifdef YY_USE_PROTOS
1937 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
1939 void yy_init_buffer( b, file )
1946 yy_flush_buffer( b );
1948 b->yy_input_file = file;
1949 b->yy_fill_buffer = 1;
1951 #if YY_ALWAYS_INTERACTIVE
1952 b->yy_is_interactive = 1;
1954 #if YY_NEVER_INTERACTIVE
1955 b->yy_is_interactive = 0;
1957 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1963 #ifdef YY_USE_PROTOS
1964 void yy_flush_buffer( YY_BUFFER_STATE b )
1966 void yy_flush_buffer( b )
1976 /* We always need two end-of-buffer characters. The first causes
1977 * a transition to the end-of-buffer state. The second causes
1978 * a jam in that state.
1980 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1981 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1983 b->yy_buf_pos = &b->yy_ch_buf[0];
1986 b->yy_buffer_status = YY_BUFFER_NEW;
1988 if ( b == yy_current_buffer )
1989 yy_load_buffer_state();
1993 #ifndef YY_NO_SCAN_BUFFER
1994 #ifdef YY_USE_PROTOS
1995 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
1997 YY_BUFFER_STATE yy_scan_buffer( base, size )
2005 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2006 base[size-1] != YY_END_OF_BUFFER_CHAR )
2007 /* They forgot to leave room for the EOB's. */
2010 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2012 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2014 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2015 b->yy_buf_pos = b->yy_ch_buf = base;
2016 b->yy_is_our_buffer = 0;
2017 b->yy_input_file = 0;
2018 b->yy_n_chars = b->yy_buf_size;
2019 b->yy_is_interactive = 0;
2021 b->yy_fill_buffer = 0;
2022 b->yy_buffer_status = YY_BUFFER_NEW;
2024 yy_switch_to_buffer( b );
2031 #ifndef YY_NO_SCAN_STRING
2032 #ifdef YY_USE_PROTOS
2033 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2035 YY_BUFFER_STATE yy_scan_string( yy_str )
2036 yyconst char *yy_str;
2040 for ( len = 0; yy_str[len]; ++len )
2043 return yy_scan_bytes( yy_str, len );
2048 #ifndef YY_NO_SCAN_BYTES
2049 #ifdef YY_USE_PROTOS
2050 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2052 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2053 yyconst char *bytes;
2062 /* Get memory for full buffer, including space for trailing EOB's. */
2064 buf = (char *) yy_flex_alloc( n );
2066 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2068 for ( i = 0; i < len; ++i )
2071 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2073 b = yy_scan_buffer( buf, n );
2075 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2077 /* It's okay to grow etc. this buffer, and we should throw it
2078 * away when we're done.
2080 b->yy_is_our_buffer = 1;
2087 #ifndef YY_NO_PUSH_STATE
2088 #ifdef YY_USE_PROTOS
2089 static void yy_push_state( int new_state )
2091 static void yy_push_state( new_state )
2095 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2099 yy_start_stack_depth += YY_START_STACK_INCR;
2100 new_size = yy_start_stack_depth * sizeof( int );
2102 if ( ! yy_start_stack )
2103 yy_start_stack = (int *) yy_flex_alloc( new_size );
2106 yy_start_stack = (int *) yy_flex_realloc(
2107 (void *) yy_start_stack, new_size );
2109 if ( ! yy_start_stack )
2111 "out of memory expanding start-condition stack" );
2114 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2121 #ifndef YY_NO_POP_STATE
2122 static void yy_pop_state()
2124 if ( --yy_start_stack_ptr < 0 )
2125 YY_FATAL_ERROR( "start-condition stack underflow" );
2127 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2132 #ifndef YY_NO_TOP_STATE
2133 static int yy_top_state()
2135 return yy_start_stack[yy_start_stack_ptr - 1];
2139 #ifndef YY_EXIT_FAILURE
2140 #define YY_EXIT_FAILURE 2
2143 #ifdef YY_USE_PROTOS
2144 static void yy_fatal_error( yyconst char msg[] )
2146 static void yy_fatal_error( msg )
2150 (void) fprintf( stderr, "%s\n", msg );
2151 exit( YY_EXIT_FAILURE );
2156 /* Redefine yyless() so it works in section 3 code. */
2162 /* Undo effects of setting up yytext. */ \
2163 yytext[yyleng] = yy_hold_char; \
2164 yy_c_buf_p = yytext + n; \
2165 yy_hold_char = *yy_c_buf_p; \
2166 *yy_c_buf_p = '\0'; \
2172 /* Internal utility routines. */
2175 #ifdef YY_USE_PROTOS
2176 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2178 static void yy_flex_strncpy( s1, s2, n )
2185 for ( i = 0; i < n; ++i )
2190 #ifdef YY_NEED_STRLEN
2191 #ifdef YY_USE_PROTOS
2192 static int yy_flex_strlen( yyconst char *s )
2194 static int yy_flex_strlen( s )
2199 for ( n = 0; s[n]; ++n )
2207 #ifdef YY_USE_PROTOS
2208 static void *yy_flex_alloc( yy_size_t size )
2210 static void *yy_flex_alloc( size )
2214 return (void *) malloc( size );
2217 #ifdef YY_USE_PROTOS
2218 static void *yy_flex_realloc( void *ptr, yy_size_t size )
2220 static void *yy_flex_realloc( ptr, size )
2225 /* The cast to (char *) in the following accommodates both
2226 * implementations that use char* generic pointers, and those
2227 * that use void* generic pointers. It works with the latter
2228 * because both ANSI C and C++ allow castless assignment from
2229 * any pointer type to void*, and deal with argument conversions
2230 * as though doing an assignment.
2232 return (void *) realloc( (char *) ptr, size );
2235 #ifdef YY_USE_PROTOS
2236 static void yy_flex_free( void *ptr )
2238 static void yy_flex_free( ptr )