1 #define yy_create_buffer FtaParser_create_buffer
2 #define yy_delete_buffer FtaParser_delete_buffer
3 #define yy_scan_buffer FtaParser_scan_buffer
4 #define yy_scan_string FtaParser_scan_string
5 #define yy_scan_bytes FtaParser_scan_bytes
6 #define yy_flex_debug FtaParser_flex_debug
7 #define yy_init_buffer FtaParser_init_buffer
8 #define yy_flush_buffer FtaParser_flush_buffer
9 #define yy_load_buffer_state FtaParser_load_buffer_state
10 #define yy_switch_to_buffer FtaParser_switch_to_buffer
11 #define yyin FtaParserin
12 #define yyleng FtaParserleng
13 #define yylex FtaParserlex
14 #define yyout FtaParserout
15 #define yyrestart FtaParserrestart
16 #define yytext FtaParsertext
18 #line 19 "ftalexer.cc"
19 /* A lexical scanner generated by flex*/
21 /* Scanner skeleton version:
22 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
26 #define YY_FLEX_MAJOR_VERSION 2
27 #define YY_FLEX_MINOR_VERSION 5
33 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
45 /* Use prototypes in function declarations. */
48 /* The "const" storage-class-modifier is valid. */
51 #else /* ! __cplusplus */
59 #endif /* ! __cplusplus */
78 #define YY_PROTO(proto) proto
80 #define YY_PROTO(proto) ()
83 /* Returned upon end-of-file. */
86 /* Promotes a possibly negative, possibly signed char to an unsigned
87 * integer for use as an array index. If the signed char is negative,
88 * we want to instead treat it as an 8-bit unsigned char, hence the
91 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
93 /* Enter a start condition. This macro really ought to take a parameter,
94 * but we do it the disgusting crufty way forced on us by the ()-less
95 * definition of BEGIN.
97 #define BEGIN yy_start = 1 + 2 *
99 /* Translate the current start state into a value that can be later handed
100 * to BEGIN to return to the state. The YYSTATE alias is for lex
103 #define YY_START ((yy_start - 1) / 2)
104 #define YYSTATE YY_START
106 /* Action number for EOF rule of a given start state. */
107 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
109 /* Special action meaning "start processing a new file". */
110 #define YY_NEW_FILE yyrestart( yyin )
112 #define YY_END_OF_BUFFER_CHAR 0
114 /* Size of default input buffer. */
115 #define YY_BUF_SIZE 16384
117 typedef struct yy_buffer_state *YY_BUFFER_STATE;
120 extern FILE *yyin, *yyout;
122 #define EOB_ACT_CONTINUE_SCAN 0
123 #define EOB_ACT_END_OF_FILE 1
124 #define EOB_ACT_LAST_MATCH 2
126 /* The funky do-while in the following #define is used to turn the definition
127 * int a single C statement (which needs a semi-colon terminator). This
128 * avoids problems with code like:
130 * if ( condition_holds )
133 * do_something_else();
135 * Prior to using the do-while the compiler would get upset at the
136 * "else" because it interpreted the "if" statement as being all
137 * done when it reached the ';' after the yyless() call.
140 /* Return all but the first 'n' matched characters back to the input stream. */
145 /* Undo effects of setting up yytext. */ \
146 *yy_cp = yy_hold_char; \
147 YY_RESTORE_YY_MORE_OFFSET \
148 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
149 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
153 #define unput(c) yyunput( c, yytext_ptr )
155 /* Some routines like yy_flex_realloc() are emitted as static but are
156 not called by all lexers. This generates warnings in some compilers,
157 notably GCC. Arrange to suppress these. */
159 #define YY_MAY_BE_UNUSED __attribute__((unused))
161 #define YY_MAY_BE_UNUSED
164 /* The following is because we cannot portably get our hands on size_t
165 * (without autoconf's help, which isn't available because we want
166 * flex-generated scanners to compile on their own).
168 typedef unsigned int yy_size_t;
171 struct yy_buffer_state
175 char *yy_ch_buf; /* input buffer */
176 char *yy_buf_pos; /* current position in input buffer */
178 /* Size of input buffer in bytes, not including room for EOB
181 yy_size_t yy_buf_size;
183 /* Number of characters read into yy_ch_buf, not including EOB
188 /* Whether we "own" the buffer - i.e., we know we created it,
189 * and can realloc() it to grow it, and should free() it to
192 int yy_is_our_buffer;
194 /* Whether this is an "interactive" input source; if so, and
195 * if we're using stdio for input, then we want to use getc()
196 * instead of fread(), to make sure we stop fetching input after
199 int yy_is_interactive;
201 /* Whether we're considered to be at the beginning of a line.
202 * If so, '^' rules will be active on the next match, otherwise
207 /* Whether to try to fill the input buffer when we reach the
212 int yy_buffer_status;
213 #define YY_BUFFER_NEW 0
214 #define YY_BUFFER_NORMAL 1
215 /* When an EOF's been seen but there's still some text to process
216 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
217 * shouldn't try reading from the input source any more. We might
218 * still have a bunch of tokens to match, though, because of
219 * possible backing-up.
221 * When we actually see the EOF, we change the status to "new"
222 * (via yyrestart()), so that the user can continue scanning by
223 * just pointing yyin at a new input file.
225 #define YY_BUFFER_EOF_PENDING 2
228 static YY_BUFFER_STATE yy_current_buffer = 0;
230 /* We provide macros for accessing buffer states in case in the
231 * future we want to put the buffer states in a more general
234 #define YY_CURRENT_BUFFER yy_current_buffer
237 /* yy_hold_char holds the character lost when yytext is formed. */
238 static char yy_hold_char;
240 static int yy_n_chars; /* number of characters read into yy_ch_buf */
245 /* Points to current character in buffer. */
246 static char *yy_c_buf_p = (char *) 0;
247 static int yy_init = 1; /* whether we need to initialize */
248 static int yy_start = 0; /* start state number */
250 /* Flag which is used to allow yywrap()'s to do buffer switches
251 * instead of setting up a fresh yyin. A bit of a hack ...
253 static int yy_did_buffer_switch_on_eof;
255 void yyrestart YY_PROTO(( FILE *input_file ));
257 void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
258 void yy_load_buffer_state YY_PROTO(( void ));
259 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
260 void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
261 void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
262 void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
263 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
265 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
266 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
267 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
269 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
270 static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED;
271 static void yy_flex_free YY_PROTO(( void * ));
273 #define yy_new_buffer yy_create_buffer
275 #define yy_set_interactive(is_interactive) \
277 if ( ! yy_current_buffer ) \
278 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
279 yy_current_buffer->yy_is_interactive = is_interactive; \
282 #define yy_set_bol(at_bol) \
284 if ( ! yy_current_buffer ) \
285 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
286 yy_current_buffer->yy_at_bol = at_bol; \
289 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
293 #define YY_SKIP_YYWRAP
294 typedef unsigned char YY_CHAR;
295 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
296 typedef int yy_state_type;
298 #define yytext_ptr yytext
300 static yy_state_type yy_get_previous_state YY_PROTO(( void ));
301 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
302 static int yy_get_next_buffer YY_PROTO(( void ));
303 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
305 /* Done after the current pattern has been matched and before the
306 * corresponding action - sets up yytext.
308 #define YY_DO_BEFORE_ACTION \
309 yytext_ptr = yy_bp; \
310 yytext_ptr -= yy_more_len; \
311 yyleng = (int) (yy_cp - yytext_ptr); \
312 yy_hold_char = *yy_cp; \
316 #define YY_NUM_RULES 85
317 #define YY_END_OF_BUFFER 86
318 static yyconst short int yy_accept[655] =
320 0, 0, 86, 84, 81, 80, 66, 84, 67, 66,
321 66, 70, 57, 62, 60, 63, 69, 69, 69, 69,
322 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
323 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
324 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
325 69, 69, 45, 46, 68, 81, 80, 0, 79, 78,
326 0, 74, 0, 0, 73, 70, 0, 0, 58, 64,
327 61, 65, 59, 69, 69, 26, 69, 69, 69, 10,
328 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
329 69, 69, 69, 69, 69, 69, 69, 69, 27, 69,
331 27, 69, 69, 69, 69, 69, 69, 69, 69, 69,
332 69, 69, 69, 29, 69, 29, 69, 69, 69, 69,
333 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
334 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
335 69, 69, 69, 69, 69, 69, 69, 69, 27, 69,
336 69, 69, 69, 69, 29, 69, 69, 69, 69, 69,
337 69, 69, 69, 0, 82, 0, 77, 0, 83, 73,
338 0, 0, 75, 71, 1, 5, 1, 69, 69, 69,
339 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
340 50, 69, 69, 69, 69, 69, 39, 69, 69, 69,
342 69, 69, 69, 69, 69, 69, 7, 69, 6, 69,
343 28, 69, 69, 69, 69, 69, 69, 69, 69, 69,
344 69, 69, 69, 69, 69, 69, 69, 8, 69, 69,
345 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
346 69, 69, 1, 69, 69, 69, 69, 69, 69, 69,
347 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
348 69, 69, 69, 69, 0, 76, 72, 69, 69, 69,
349 69, 69, 19, 69, 69, 69, 69, 69, 69, 69,
350 11, 69, 69, 69, 69, 69, 69, 69, 69, 69,
351 69, 69, 40, 69, 69, 69, 69, 69, 69, 69,
353 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
354 69, 32, 69, 69, 69, 69, 33, 69, 36, 69,
355 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
356 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
357 69, 69, 69, 69, 69, 69, 9, 69, 69, 69,
358 37, 69, 69, 69, 17, 17, 69, 69, 69, 69,
359 69, 69, 69, 69, 69, 34, 69, 69, 69, 69,
360 69, 44, 69, 69, 69, 69, 69, 69, 35, 69,
361 69, 69, 69, 69, 47, 69, 69, 31, 69, 69,
362 69, 69, 69, 69, 17, 69, 69, 69, 69, 69,
364 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
365 69, 43, 54, 69, 69, 69, 69, 25, 69, 69,
366 41, 69, 69, 69, 69, 69, 69, 69, 69, 69,
367 69, 69, 18, 69, 30, 49, 69, 69, 30, 69,
368 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
369 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
370 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
371 69, 69, 69, 3, 69, 69, 69, 69, 69, 69,
372 69, 69, 69, 38, 69, 69, 69, 69, 69, 69,
373 69, 69, 69, 69, 69, 69, 69, 69, 2, 69,
375 69, 69, 69, 69, 69, 69, 69, 69, 42, 69,
376 69, 69, 52, 69, 69, 48, 69, 69, 69, 69,
377 69, 69, 69, 4, 69, 69, 69, 69, 69, 69,
378 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
379 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
380 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
381 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
382 69, 69, 69, 69, 12, 69, 69, 69, 13, 69,
383 69, 69, 55, 21, 69, 69, 69, 69, 69, 69,
384 69, 69, 23, 69, 69, 69, 69, 16, 69, 69,
386 69, 69, 69, 69, 69, 69, 51, 69, 69, 69,
387 69, 69, 69, 24, 69, 69, 69, 69, 69, 69,
388 69, 69, 69, 69, 69, 69, 69, 22, 20, 69,
389 69, 53, 69, 69, 69, 69, 69, 69, 69, 69,
390 69, 69, 69, 69, 15, 69, 69, 69, 69, 14,
394 static yyconst int yy_ec[256] =
396 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
397 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
398 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
399 1, 2, 4, 1, 4, 4, 4, 4, 5, 4,
400 4, 4, 6, 4, 7, 8, 9, 10, 10, 10,
401 10, 10, 10, 11, 10, 10, 10, 4, 12, 13,
402 14, 15, 1, 4, 16, 17, 18, 19, 20, 21,
403 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
404 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
405 4, 1, 4, 1, 42, 1, 43, 44, 45, 46,
407 47, 48, 49, 50, 51, 52, 41, 53, 54, 55,
408 56, 57, 41, 58, 59, 60, 61, 62, 63, 64,
409 65, 41, 66, 4, 67, 68, 1, 1, 1, 1,
410 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
411 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
412 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
413 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
414 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
415 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
416 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
418 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
419 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
420 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
421 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
422 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
426 static yyconst int yy_meta[69] =
428 1, 1, 2, 1, 1, 1, 1, 1, 1, 3,
429 3, 1, 1, 1, 1, 3, 3, 3, 3, 3,
430 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
431 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
432 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
433 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
434 3, 3, 3, 3, 3, 1, 1, 1
437 static yyconst short int yy_base[660] =
439 0, 0, 777, 778, 774, 0, 778, 66, 768, 62,
440 765, 66, 778, 65, 778, 69, 56, 30, 61, 753,
441 0, 65, 54, 76, 70, 83, 104, 75, 96, 88,
442 109, 114, 119, 743, 87, 106, 104, 706, 92, 113,
443 712, 726, 713, 720, 125, 710, 109, 122, 47, 715,
444 714, 707, 778, 778, 778, 760, 0, 135, 778, 778,
445 758, 169, 175, 757, 173, 186, 181, 732, 778, 778,
446 778, 778, 778, 0, 739, 0, 735, 710, 706, 0,
447 126, 718, 736, 143, 691, 707, 729, 722, 175, 718,
448 731, 693, 689, 714, 687, 705, 702, 678, 710, 161,
450 683, 716, 716, 687, 695, 700, 703, 667, 672, 674,
451 693, 667, 706, 683, 689, 681, 662, 688, 690, 697,
452 691, 668, 663, 688, 698, 680, 183, 659, 164, 694,
453 694, 681, 672, 664, 675, 685, 657, 670, 644, 655,
454 651, 157, 638, 654, 644, 640, 639, 632, 638, 644,
455 627, 632, 634, 628, 645, 626, 636, 631, 630, 170,
456 639, 634, 622, 676, 778, 197, 215, 675, 778, 218,
457 224, 226, 229, 650, 634, 0, 633, 658, 639, 643,
458 651, 627, 610, 613, 620, 642, 631, 637, 628, 634,
459 0, 601, 606, 623, 597, 633, 0, 605, 635, 643,
461 616, 641, 604, 615, 610, 588, 0, 625, 0, 597,
462 0, 612, 628, 623, 626, 594, 624, 604, 615, 610,
463 586, 582, 614, 615, 612, 599, 607, 0, 609, 581,
464 577, 579, 598, 589, 603, 602, 561, 604, 586, 560,
465 575, 574, 573, 571, 554, 557, 564, 550, 555, 547,
466 556, 559, 545, 555, 560, 555, 551, 547, 552, 548,
467 550, 536, 537, 552, 231, 233, 778, 577, 576, 562,
468 566, 554, 0, 533, 536, 526, 556, 564, 564, 562,
469 0, 534, 549, 522, 549, 522, 543, 533, 558, 531,
470 514, 529, 0, 528, 549, 521, 551, 544, 532, 515,
472 505, 534, 531, 525, 523, 498, 496, 538, 529, 538,
473 517, 0, 519, 506, 492, 529, 0, 511, 0, 529,
474 526, 498, 528, 527, 499, 486, 489, 479, 491, 480,
475 481, 477, 492, 486, 483, 473, 470, 468, 483, 469,
476 479, 482, 502, 474, 498, 492, 0, 469, 464, 498,
477 0, 483, 483, 457, 490, 462, 490, 462, 468, 472,
478 481, 470, 464, 475, 474, 0, 468, 480, 459, 451,
479 457, 0, 480, 455, 465, 453, 437, 458, 0, 464,
480 471, 468, 429, 439, 0, 471, 460, 0, 463, 435,
481 434, 431, 426, 422, 428, 429, 435, 420, 426, 432,
483 431, 415, 411, 421, 420, 446, 418, 437, 443, 409,
484 414, 0, 0, 420, 419, 431, 404, 0, 433, 441,
485 0, 440, 430, 418, 392, 422, 418, 425, 391, 423,
486 417, 416, 0, 415, 420, 0, 410, 409, 0, 383,
487 413, 397, 416, 388, 387, 380, 385, 391, 377, 379,
488 369, 371, 376, 371, 368, 376, 391, 365, 400, 379,
489 371, 377, 393, 392, 394, 366, 384, 386, 385, 355,
490 375, 349, 375, 0, 377, 350, 378, 368, 342, 372,
491 377, 370, 343, 0, 377, 364, 338, 337, 345, 351,
492 340, 342, 334, 329, 332, 326, 330, 327, 0, 342,
494 345, 340, 343, 350, 323, 336, 335, 352, 0, 324,
495 354, 326, 330, 347, 319, 0, 334, 308, 338, 346,
496 329, 303, 345, 0, 320, 298, 304, 317, 307, 310,
497 305, 295, 293, 215, 330, 228, 302, 327, 299, 315,
498 314, 318, 291, 312, 286, 306, 313, 286, 320, 292,
499 296, 303, 305, 278, 305, 63, 283, 281, 272, 275,
500 271, 273, 280, 269, 285, 301, 303, 257, 271, 273,
501 290, 263, 297, 269, 0, 273, 272, 289, 0, 279,
502 253, 279, 0, 0, 275, 243, 257, 259, 250, 257,
503 261, 244, 0, 281, 271, 252, 243, 0, 262, 236,
505 270, 269, 273, 250, 249, 254, 0, 242, 233, 227,
506 234, 243, 255, 0, 228, 248, 222, 250, 223, 37,
507 119, 133, 140, 122, 146, 154, 160, 0, 0, 193,
508 168, 0, 216, 191, 225, 198, 194, 222, 197, 230,
509 204, 237, 202, 207, 0, 230, 205, 231, 207, 0,
510 225, 235, 0, 778, 266, 269, 265, 272, 275
513 static yyconst short int yy_def[660] =
515 654, 1, 654, 654, 654, 655, 654, 656, 654, 654,
516 654, 654, 654, 654, 654, 654, 657, 657, 657, 657,
517 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
518 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
519 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
520 657, 657, 654, 654, 654, 654, 655, 656, 654, 654,
521 658, 654, 654, 659, 654, 654, 654, 654, 654, 654,
522 654, 654, 654, 657, 657, 657, 657, 657, 657, 657,
523 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
524 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
526 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
527 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
528 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
529 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
530 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
531 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
532 657, 657, 657, 658, 654, 654, 654, 659, 654, 654,
533 654, 654, 654, 654, 657, 657, 657, 657, 657, 657,
534 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
535 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
537 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
538 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
539 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
540 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
541 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
542 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
543 657, 657, 657, 657, 654, 654, 654, 657, 657, 657,
544 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
545 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
546 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
548 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
549 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
550 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
551 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
552 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
553 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
554 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
555 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
556 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
557 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
559 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
560 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
561 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
562 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
563 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
564 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
565 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
566 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
567 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
568 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
570 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
571 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
572 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
573 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
574 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
575 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
576 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
577 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
578 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
579 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
581 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
582 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
583 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
584 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
585 657, 657, 657, 657, 657, 657, 657, 657, 657, 657,
586 657, 657, 657, 0, 654, 654, 654, 654, 654
589 static yyconst short int yy_nxt[847] =
591 4, 5, 6, 7, 8, 7, 9, 10, 11, 12,
592 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
593 22, 23, 24, 25, 21, 21, 26, 27, 28, 29,
594 30, 21, 31, 32, 33, 34, 21, 35, 36, 21,
595 21, 21, 37, 38, 39, 21, 21, 40, 41, 42,
596 43, 21, 44, 45, 46, 47, 21, 48, 49, 50,
597 21, 21, 51, 52, 21, 53, 54, 55, 59, 80,
598 60, 62, 62, 65, 632, 66, 66, 69, 70, 71,
599 88, 63, 72, 73, 75, 67, 94, 81, 89, 76,
600 82, 96, 77, 159, 80, 97, 83, 90, 99, 91,
602 100, 68, 102, 118, 111, 103, 586, 160, 63, 136,
603 78, 95, 67, 84, 76, 92, 85, 79, 98, 105,
604 119, 86, 93, 106, 101, 587, 113, 107, 114, 104,
605 112, 115, 120, 124, 130, 138, 137, 59, 121, 60,
606 125, 131, 132, 633, 142, 178, 108, 143, 126, 127,
607 109, 133, 144, 116, 110, 179, 117, 634, 140, 122,
608 128, 139, 76, 145, 123, 141, 155, 151, 134, 156,
609 146, 152, 157, 635, 129, 153, 628, 158, 62, 62,
610 166, 166, 170, 170, 167, 167, 172, 172, 63, 182,
611 173, 173, 171, 65, 188, 66, 66, 200, 183, 226,
613 227, 189, 201, 244, 629, 67, 167, 167, 231, 636,
614 228, 637, 245, 229, 260, 63, 638, 228, 639, 171,
615 232, 68, 202, 228, 167, 167, 261, 170, 170, 265,
616 265, 565, 67, 266, 266, 173, 173, 171, 173, 173,
617 266, 266, 266, 266, 568, 640, 641, 642, 643, 644,
618 645, 645, 566, 646, 647, 648, 645, 649, 650, 650,
619 651, 650, 652, 653, 171, 569, 57, 74, 57, 58,
620 58, 58, 164, 164, 164, 168, 168, 168, 631, 630,
621 629, 629, 628, 628, 627, 626, 625, 614, 624, 623,
622 622, 621, 620, 619, 618, 617, 616, 614, 615, 614,
624 613, 612, 611, 610, 598, 609, 608, 593, 607, 606,
625 605, 604, 603, 602, 601, 600, 599, 598, 598, 597,
626 596, 593, 595, 594, 593, 584, 592, 579, 591, 575,
627 590, 589, 588, 585, 584, 584, 583, 582, 581, 580,
628 579, 579, 578, 577, 576, 575, 575, 574, 573, 572,
629 571, 570, 567, 564, 563, 562, 561, 560, 559, 558,
630 557, 556, 555, 554, 553, 552, 551, 550, 549, 548,
631 547, 546, 545, 544, 543, 542, 541, 540, 539, 538,
632 537, 536, 535, 534, 524, 533, 532, 531, 530, 529,
633 528, 527, 526, 525, 499, 524, 524, 523, 522, 521,
635 520, 519, 518, 517, 516, 515, 514, 513, 512, 511,
636 510, 509, 509, 508, 507, 506, 505, 504, 503, 502,
637 501, 500, 499, 499, 498, 497, 496, 495, 474, 494,
638 493, 492, 491, 490, 489, 488, 487, 486, 485, 484,
639 483, 482, 481, 480, 479, 478, 477, 476, 474, 475,
640 474, 473, 472, 471, 470, 469, 468, 467, 466, 465,
641 464, 463, 462, 461, 460, 459, 458, 457, 456, 455,
642 439, 433, 454, 453, 452, 451, 450, 418, 449, 448,
643 447, 446, 445, 444, 443, 442, 441, 440, 439, 438,
644 437, 436, 435, 433, 434, 433, 432, 431, 430, 429,
646 428, 427, 426, 425, 424, 423, 422, 421, 420, 419,
647 418, 418, 417, 416, 415, 414, 413, 412, 411, 410,
648 409, 408, 407, 406, 405, 388, 404, 403, 402, 401,
649 400, 399, 366, 398, 397, 396, 395, 394, 347, 393,
650 392, 391, 390, 389, 388, 388, 387, 386, 385, 384,
651 383, 382, 381, 380, 379, 378, 377, 376, 375, 374,
652 373, 372, 371, 370, 369, 368, 367, 366, 366, 365,
653 364, 363, 362, 361, 360, 359, 358, 357, 356, 355,
654 354, 353, 352, 351, 350, 347, 349, 348, 347, 346,
655 345, 344, 343, 342, 341, 317, 340, 312, 339, 338,
657 337, 336, 335, 334, 333, 332, 331, 330, 281, 329,
658 273, 328, 327, 326, 325, 324, 323, 322, 321, 320,
659 317, 319, 318, 317, 316, 315, 312, 314, 313, 312,
660 311, 310, 309, 308, 307, 306, 305, 304, 303, 302,
661 301, 300, 299, 298, 297, 296, 295, 294, 293, 292,
662 291, 290, 289, 288, 287, 286, 285, 284, 283, 281,
663 282, 281, 280, 279, 278, 277, 273, 276, 275, 274,
664 273, 272, 271, 270, 269, 268, 267, 169, 165, 264,
665 263, 262, 259, 258, 257, 256, 255, 211, 209, 254,
666 207, 253, 252, 251, 250, 249, 248, 247, 246, 176,
668 243, 242, 241, 240, 239, 238, 237, 236, 235, 234,
669 233, 230, 225, 224, 223, 222, 221, 220, 219, 218,
670 217, 216, 215, 214, 213, 212, 211, 211, 209, 210,
671 207, 209, 208, 207, 206, 205, 204, 203, 199, 198,
672 197, 196, 195, 194, 193, 192, 191, 190, 187, 186,
673 185, 184, 181, 180, 176, 177, 176, 175, 174, 169,
674 165, 56, 163, 162, 161, 154, 150, 149, 148, 147,
675 80, 135, 87, 64, 61, 56, 654, 3, 654, 654,
676 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
677 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
679 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
680 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
681 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
682 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
683 654, 654, 654, 654, 654, 654
686 static yyconst short int yy_chk[847] =
688 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
689 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
690 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
691 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
692 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
693 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
694 1, 1, 1, 1, 1, 1, 1, 1, 8, 18,
695 8, 10, 10, 12, 620, 12, 12, 14, 14, 14,
696 22, 10, 16, 16, 17, 12, 23, 19, 22, 17,
697 19, 24, 17, 49, 18, 24, 19, 22, 25, 22,
699 25, 12, 26, 30, 28, 26, 556, 49, 10, 35,
700 17, 23, 12, 19, 17, 22, 19, 17, 24, 27,
701 30, 19, 22, 27, 25, 556, 29, 27, 29, 26,
702 28, 29, 31, 32, 33, 36, 35, 58, 31, 58,
703 32, 33, 33, 621, 39, 81, 27, 39, 32, 32,
704 27, 33, 39, 29, 27, 81, 29, 622, 37, 31,
705 32, 36, 37, 40, 31, 37, 47, 45, 33, 47,
706 40, 45, 48, 623, 32, 45, 624, 48, 62, 62,
707 63, 63, 65, 65, 63, 63, 67, 67, 62, 84,
708 67, 67, 65, 66, 89, 66, 66, 100, 84, 127,
710 127, 89, 100, 142, 625, 66, 166, 166, 129, 626,
711 127, 627, 142, 127, 160, 62, 630, 129, 631, 65,
712 129, 66, 100, 160, 167, 167, 160, 170, 170, 171,
713 171, 534, 66, 171, 171, 172, 172, 170, 173, 173,
714 265, 265, 266, 266, 536, 633, 634, 635, 636, 637,
715 638, 639, 534, 640, 641, 642, 643, 644, 646, 647,
716 648, 649, 651, 652, 170, 536, 655, 657, 655, 656,
717 656, 656, 658, 658, 658, 659, 659, 659, 619, 618,
718 617, 616, 615, 613, 612, 611, 610, 609, 608, 606,
719 605, 604, 603, 602, 601, 600, 599, 597, 596, 595,
721 594, 592, 591, 590, 589, 588, 587, 586, 585, 582,
722 581, 580, 578, 577, 576, 574, 573, 572, 571, 570,
723 569, 568, 567, 566, 565, 564, 563, 562, 561, 560,
724 559, 558, 557, 555, 554, 553, 552, 551, 550, 549,
725 548, 547, 546, 545, 544, 543, 542, 541, 540, 539,
726 538, 537, 535, 533, 532, 531, 530, 529, 528, 527,
727 526, 525, 523, 522, 521, 520, 519, 518, 517, 515,
728 514, 513, 512, 511, 510, 508, 507, 506, 505, 504,
729 503, 502, 501, 500, 498, 497, 496, 495, 494, 493,
730 492, 491, 490, 489, 488, 487, 486, 485, 483, 482,
732 481, 480, 479, 478, 477, 476, 475, 473, 472, 471,
733 470, 469, 468, 467, 466, 465, 464, 463, 462, 461,
734 460, 459, 458, 457, 456, 455, 454, 453, 452, 451,
735 450, 449, 448, 447, 446, 445, 444, 443, 442, 441,
736 440, 438, 437, 435, 434, 432, 431, 430, 429, 428,
737 427, 426, 425, 424, 423, 422, 420, 419, 417, 416,
738 415, 414, 411, 410, 409, 408, 407, 406, 405, 404,
739 403, 402, 401, 400, 399, 398, 397, 396, 395, 394,
740 393, 392, 391, 390, 389, 387, 386, 384, 383, 382,
741 381, 380, 378, 377, 376, 375, 374, 373, 371, 370,
743 369, 368, 367, 365, 364, 363, 362, 361, 360, 359,
744 358, 357, 356, 355, 354, 353, 352, 350, 349, 348,
745 346, 345, 344, 343, 342, 341, 340, 339, 338, 337,
746 336, 335, 334, 333, 332, 331, 330, 329, 328, 327,
747 326, 325, 324, 323, 322, 321, 320, 318, 316, 315,
748 314, 313, 311, 310, 309, 308, 307, 306, 305, 304,
749 303, 302, 301, 300, 299, 298, 297, 296, 295, 294,
750 292, 291, 290, 289, 288, 287, 286, 285, 284, 283,
751 282, 280, 279, 278, 277, 276, 275, 274, 272, 271,
752 270, 269, 268, 264, 263, 262, 261, 260, 259, 258,
754 257, 256, 255, 254, 253, 252, 251, 250, 249, 248,
755 247, 246, 245, 244, 243, 242, 241, 240, 239, 238,
756 237, 236, 235, 234, 233, 232, 231, 230, 229, 227,
757 226, 225, 224, 223, 222, 221, 220, 219, 218, 217,
758 216, 215, 214, 213, 212, 210, 208, 206, 205, 204,
759 203, 202, 201, 200, 199, 198, 196, 195, 194, 193,
760 192, 190, 189, 188, 187, 186, 185, 184, 183, 182,
761 181, 180, 179, 178, 177, 175, 174, 168, 164, 163,
762 162, 161, 159, 158, 157, 156, 155, 154, 153, 152,
763 151, 150, 149, 148, 147, 146, 145, 144, 143, 141,
765 140, 139, 138, 137, 136, 135, 134, 133, 132, 131,
766 130, 128, 126, 125, 124, 123, 122, 121, 120, 119,
767 118, 117, 116, 115, 114, 113, 112, 111, 110, 109,
768 108, 107, 106, 105, 104, 103, 102, 101, 99, 98,
769 97, 96, 95, 94, 93, 92, 91, 90, 88, 87,
770 86, 85, 83, 82, 79, 78, 77, 75, 68, 64,
771 61, 56, 52, 51, 50, 46, 44, 43, 42, 41,
772 38, 34, 20, 11, 9, 5, 3, 654, 654, 654,
773 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
774 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
776 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
777 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
778 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
779 654, 654, 654, 654, 654, 654, 654, 654, 654, 654,
780 654, 654, 654, 654, 654, 654
783 static yy_state_type yy_last_accepting_state;
784 static char *yy_last_accepting_cpos;
786 /* The intent behind this definition is that it'll catch
787 * any uses of REJECT which flex missed.
789 #define REJECT reject_used_but_not_detected
790 static int yy_more_flag = 0;
791 static int yy_more_len = 0;
792 #define yymore() (yy_more_flag = 1)
793 #define YY_MORE_ADJ yy_more_len
794 #define YY_RESTORE_YY_MORE_OFFSET
800 flex -PFtaParser -oftalexer.cc fta.l
805 * AT&T lex can't handle this lexer due to lex bugs. It works with flex
806 * 2.3.7, pclex 2.0.5, and MKS lex 3.1a.
809 #include "parse_fta.h"
810 #include "parse_schema.h"
815 #include "fta.tab.cc.h"
818 Some includes that flex doesn't include as standard,
819 but which are needed.
826 // Prevent flex from defining yywrap as extern "C"
828 #define YY_SKIP_YYWRAP
830 /* No lex lib, supply the yywrap fcn. that normally resides there
833 int FtaParserwrap(){return(1);}
835 extern int FtaParserdebug;
839 These variables are used for error reporting:
840 flex_fta_lineno : the line currently being parsed when the error occurs.
841 flex_fta_ch : the character on the line where the error occurs
842 flex_fta_linebuf : store the line for reporting.
844 NOTE : 1) the fixed size flex_fta_linebuf buffer is dangerous.
845 2) You might get pointed to a place shortly after
846 where the syntax error occurs. It is close enough
850 int flex_fta_lineno = 1;
852 char flex_fta_linebuf[200000];
854 char *flex_fta_stringinput = NULL;
855 int flex_fta_stringinput_ptr = 0;
856 FILE *flex_fta_fileinput = NULL;
857 int my_FtaParser_yyinput(char *buf, int max_size);
861 void FtaParsererror(char *s){
863 fprintf(stderr,"On line %d, char %d: %s (token %s):\n%s\n",
864 flex_fta_lineno, flex_fta_ch, s, FtaParsertext, flex_fta_linebuf );
865 for(i=0;i<flex_fta_ch;i++){
866 if(flex_fta_linebuf[i] == '\t'){
867 fprintf(stderr,"\t");
872 fprintf(stderr,"^\n");
873 // fprintf(stderr,"%*s\n",1+flex_fta_ch,"^");
877 #define YY_INPUT(b, r, ms) (r = my_FtaParser_yyinput(b,ms))
879 /* MKS needs the next line to increase the NFA table */
880 #line 881 "ftalexer.cc"
882 /* Macros after this point can all be overridden by user definitions in
886 #ifndef YY_SKIP_YYWRAP
888 extern "C" int yywrap YY_PROTO(( void ));
890 extern int yywrap YY_PROTO(( void ));
895 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
899 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
902 #ifdef YY_NEED_STRLEN
903 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
908 static int yyinput YY_PROTO(( void ));
910 static int input YY_PROTO(( void ));
915 static int yy_start_stack_ptr = 0;
916 static int yy_start_stack_depth = 0;
917 static int *yy_start_stack = 0;
918 #ifndef YY_NO_PUSH_STATE
919 static void yy_push_state YY_PROTO(( int new_state ));
921 #ifndef YY_NO_POP_STATE
922 static void yy_pop_state YY_PROTO(( void ));
924 #ifndef YY_NO_TOP_STATE
925 static int yy_top_state YY_PROTO(( void ));
929 #define YY_NO_PUSH_STATE 1
930 #define YY_NO_POP_STATE 1
931 #define YY_NO_TOP_STATE 1
934 #ifdef YY_MALLOC_DECL
942 /* Just try to get by without declaring the routines. This will fail
943 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
944 * or sizeof(void*) != sizeof(int).
949 /* Amount of stuff to slurp up with each read. */
950 #ifndef YY_READ_BUF_SIZE
951 #define YY_READ_BUF_SIZE 8192
954 /* Copy whatever the last rule matched to the standard output. */
957 /* This used to be an fputs(), but since the string might contain NUL's,
958 * we now use fwrite().
960 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
963 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
964 * is returned in "result".
967 #define YY_INPUT(buf,result,max_size) \
968 if ( yy_current_buffer->yy_is_interactive ) \
971 for ( n = 0; n < max_size && \
972 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
975 buf[n++] = (char) c; \
976 if ( c == EOF && ferror( yyin ) ) \
977 YY_FATAL_ERROR( "input in flex scanner failed" ); \
980 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
981 && ferror( yyin ) ) \
982 YY_FATAL_ERROR( "input in flex scanner failed" );
985 /* No semi-colon after return; correct usage is to write "yyterminate();" -
986 * we don't want an extra ';' after the "return" because that will cause
987 * some compilers to complain about unreachable statements.
990 #define yyterminate() return YY_NULL
993 /* Number of entries by which start-condition stack grows. */
994 #ifndef YY_START_STACK_INCR
995 #define YY_START_STACK_INCR 25
998 /* Report a fatal error. */
999 #ifndef YY_FATAL_ERROR
1000 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1003 /* Default declaration of generated scanner - a define so the user can
1004 * easily add parameters.
1007 #define YY_DECL int yylex YY_PROTO(( void ))
1010 /* Code executed at the beginning of each rule, after yytext and yyleng
1013 #ifndef YY_USER_ACTION
1014 #define YY_USER_ACTION
1017 /* Code executed at the end of each rule. */
1019 #define YY_BREAK break;
1022 #define YY_RULE_SETUP \
1027 register yy_state_type yy_current_state;
1028 register char *yy_cp = NULL, *yy_bp = NULL;
1029 register int yy_act;
1034 /* literal keyword tokens */
1037 The actions associated with each text token are to
1038 keep track of the current location (for syntax error reporting)
1039 and to report any necessary info to the emf.y parse tree builder
1041 Its likely that there are a number of omissions, inconsistencies
1042 (some keywords do not need to be in caps), and relics
1043 (keywords such as BETWEEN, INDICATOR, etc., are not used
1045 This parser is somewhat of a work in progress.
1048 /* Query keywords */
1050 #line 1051 "ftalexer.cc"
1061 yy_start = 1; /* first start state */
1069 if ( ! yy_current_buffer )
1071 yy_create_buffer( yyin, YY_BUF_SIZE );
1073 yy_load_buffer_state();
1076 while ( 1 ) /* loops until end-of-file is reached */
1081 yy_more_len = yy_c_buf_p - yytext_ptr;
1086 /* Support of yytext. */
1087 *yy_cp = yy_hold_char;
1089 /* yy_bp points to the position in yy_ch_buf of the start of
1094 yy_current_state = yy_start;
1098 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1099 if ( yy_accept[yy_current_state] )
1101 yy_last_accepting_state = yy_current_state;
1102 yy_last_accepting_cpos = yy_cp;
1104 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1106 yy_current_state = (int) yy_def[yy_current_state];
1107 if ( yy_current_state >= 655 )
1108 yy_c = yy_meta[(unsigned int) yy_c];
1110 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1113 while ( yy_base[yy_current_state] != 778 );
1116 yy_act = yy_accept[yy_current_state];
1118 { /* have to back up */
1119 yy_cp = yy_last_accepting_cpos;
1120 yy_current_state = yy_last_accepting_state;
1121 yy_act = yy_accept[yy_current_state];
1124 YY_DO_BEFORE_ACTION;
1127 do_action: /* This label is used only to access EOF actions. */
1131 { /* beginning of action switch */
1132 case 0: /* must back up */
1133 /* undo the effects of YY_DO_BEFORE_ACTION */
1134 *yy_cp = yy_hold_char;
1135 yy_cp = yy_last_accepting_cpos;
1136 yy_current_state = yy_last_accepting_state;
1137 goto yy_find_action;
1142 { flex_fta_ch+=FtaParserleng; return AND; }
1147 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup("AND_AGGR"); return AGGR; }
1152 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup("OR_AGGR"); return AGGR; }
1157 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup("XOR_AGGR"); return AGGR; }
1162 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup("AVG"); return AGGR; }
1167 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup("MIN"); return AGGR; }
1172 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup("MAX"); return AGGR; }
1177 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup("SUM"); return AGGR; }
1182 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup("COUNT"); return AGGR; }
1187 { flex_fta_ch+=FtaParserleng; return BY; }
1192 { flex_fta_ch+=FtaParserleng; return FROM; }
1197 { flex_fta_ch+=FtaParserleng; return INNER_JOIN; }
1202 { flex_fta_ch+=FtaParserleng; return OUTER_JOIN; }
1207 { flex_fta_ch+=FtaParserleng; return RIGHT_OUTER_JOIN; }
1212 { flex_fta_ch+=FtaParserleng; return LEFT_OUTER_JOIN; }
1217 { flex_fta_ch+=FtaParserleng; return FILTER_JOIN; }
1222 { flex_fta_ch+=FtaParserleng; return GROUP; }
1227 { flex_fta_ch+=FtaParserleng; return ROLLUP; }
1232 { flex_fta_ch+=FtaParserleng; return CUBE; }
1237 { flex_fta_ch+=FtaParserleng; return GROUPING_SETS; }
1242 { flex_fta_ch+=FtaParserleng; return SUPERGROUP; }
1247 { flex_fta_ch+=FtaParserleng; return CLEANING_WHEN; }
1252 { flex_fta_ch+=FtaParserleng; return CLEANING_BY; }
1257 { flex_fta_ch+=FtaParserleng; return CLOSING_WHEN; }
1262 { flex_fta_ch+=FtaParserleng; return HAVING; }
1267 { flex_fta_ch+=FtaParserleng; return AS; }
1272 { flex_fta_ch+=FtaParserleng; return IN; }
1277 { flex_fta_ch+=FtaParserleng; return NOT; }
1282 { flex_fta_ch+=FtaParserleng; return OR; }
1287 { flex_fta_ch+=FtaParserleng; return SELECT; }
1292 { flex_fta_ch+=FtaParserleng; return WHERE; }
1297 { flex_fta_ch+=FtaParserleng; return SUCH;}
1302 { flex_fta_ch+=FtaParserleng; return THAT;}
1307 {flex_fta_ch+=FtaParserleng; return MERGE;}
1312 {flex_fta_ch+=FtaParserleng; return SLACK;}
1317 { flex_fta_ch+=FtaParserleng; return TRUE_V;}
1322 { flex_fta_ch+=FtaParserleng; return FALSE_V;}
1327 { flex_fta_ch+=FtaParserleng; return TIMEVAL_L;}
1332 { flex_fta_ch+=FtaParserleng; return HEX_L;}
1337 { flex_fta_ch+=FtaParserleng; return LHEX_L;}
1342 { flex_fta_ch+=FtaParserleng; return IP_L;}
1347 { flex_fta_ch+=FtaParserleng; return IPV6_L;}
1352 { flex_fta_ch+=FtaParserleng; return DEFINE_SEC;}
1357 { flex_fta_ch+=FtaParserleng; return PARAM_SEC;}
1362 {flex_fta_ch+=FtaParserleng; return LEFTBRACE;}
1367 {flex_fta_ch+=FtaParserleng; return RIGHTBRACE;}
1370 Table definition keywords
1375 { flex_fta_ch+=FtaParserleng; return TABLE; }
1380 { flex_fta_ch+=FtaParserleng; return PROTOCOL; }
1385 { flex_fta_ch+=FtaParserleng; return STREAM; }
1390 { flex_fta_ch+=FtaParserleng; return FTA; }
1395 { flex_fta_ch+=FtaParserleng; return UNPACK_FCNS; }
1400 { flex_fta_ch+=FtaParserleng; return OPERATOR; }
1405 { flex_fta_ch+=FtaParserleng; return OPERATOR_VIEW; }
1410 { flex_fta_ch+=FtaParserleng; return FIELDS; }
1415 { flex_fta_ch+=FtaParserleng; return SUBQUERIES; }
1420 { flex_fta_ch+=FtaParserleng; return SELECTION_PUSHDOWN; }
1425 {flex_fta_ch+=FtaParserleng; return SEMICOLON;}
1433 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup(yytext); return SHIFT_OP; }
1448 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup(yytext); return COMPARISON; }
1453 { flex_fta_ch+=FtaParserleng; return yytext[0]; }
1458 { flex_fta_ch+=FtaParserleng; return yytext[0]; }
1463 { flex_fta_ch+=FtaParserleng; return yytext[0]; }
1469 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup(yytext); return NAME; }
1477 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup(yytext); return INTNUM; }
1482 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup(yytext); return LONGINTNUM; }
1495 { flex_fta_ch+=FtaParserleng; FtaParserlval.strval = strdup(yytext); return APPROXNUM; }
1505 FtaParserlval.strval = strdup(FtaParsertext+1);
1509 unput(c); /* just peeking */
1511 flex_fta_ch+=FtaParserleng;
1512 FtaParserlval.strval[FtaParserleng-2] = '\0';
1513 return STRING_TOKEN;
1519 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1520 yy_c_buf_p = yy_cp -= 1;
1521 YY_DO_BEFORE_ACTION; /* set up yytext again */
1524 { flex_fta_ch+=FtaParserleng; FtaParsererror("Unterminated string"); }
1527 /* Newline : advance the error reporting line number */
1528 /* and grab the next line into flex_fta_linebuf */
1533 {flex_fta_ch=0; flex_fta_lineno++;
1534 strcpy(flex_fta_linebuf,FtaParsertext+1);
1541 {flex_fta_ch+=FtaParserleng; } /* white space */
1544 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1545 yy_c_buf_p = yy_cp -= 1;
1546 YY_DO_BEFORE_ACTION; /* set up yytext again */
1549 {flex_fta_ch+=FtaParserleng; }; /* comment */
1552 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1553 yy_c_buf_p = yy_cp -= 1;
1554 YY_DO_BEFORE_ACTION; /* set up yytext again */
1557 {flex_fta_ch+=FtaParserleng; }; /* comment */
1562 {flex_fta_ch+=FtaParserleng; fprintf(stderr,"Warning: unknown token (ignored)\n"); FtaParsererror(yytext);}
1569 #line 1570 "ftalexer.cc"
1570 case YY_STATE_EOF(INITIAL):
1573 case YY_END_OF_BUFFER:
1575 /* Amount of text matched not including the EOB char. */
1576 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
1578 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1579 *yy_cp = yy_hold_char;
1580 YY_RESTORE_YY_MORE_OFFSET
1582 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
1584 /* We're scanning a new file or input source. It's
1585 * possible that this happened because the user
1586 * just pointed yyin at a new source and called
1587 * yylex(). If so, then we have to assure
1588 * consistency between yy_current_buffer and our
1589 * globals. Here is the right place to do so, because
1590 * this is the first action (other than possibly a
1591 * back-up) that will match for the new input source.
1593 yy_n_chars = yy_current_buffer->yy_n_chars;
1594 yy_current_buffer->yy_input_file = yyin;
1595 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
1598 /* Note that here we test for yy_c_buf_p "<=" to the position
1599 * of the first EOB in the buffer, since yy_c_buf_p will
1600 * already have been incremented past the NUL character
1601 * (since all states make transitions on EOB to the
1602 * end-of-buffer state). Contrast this with the test
1605 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1606 { /* This was really a NUL. */
1607 yy_state_type yy_next_state;
1609 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
1611 yy_current_state = yy_get_previous_state();
1613 /* Okay, we're now positioned to make the NUL
1614 * transition. We couldn't have
1615 * yy_get_previous_state() go ahead and do it
1616 * for us because it doesn't know how to deal
1617 * with the possibility of jamming (and we don't
1618 * want to build jamming into it because then it
1619 * will run more slowly).
1622 yy_next_state = yy_try_NUL_trans( yy_current_state );
1624 yy_bp = yytext_ptr + YY_MORE_ADJ;
1626 if ( yy_next_state )
1628 /* Consume the NUL. */
1629 yy_cp = ++yy_c_buf_p;
1630 yy_current_state = yy_next_state;
1637 goto yy_find_action;
1641 else switch ( yy_get_next_buffer() )
1643 case EOB_ACT_END_OF_FILE:
1645 yy_did_buffer_switch_on_eof = 0;
1649 /* Note: because we've taken care in
1650 * yy_get_next_buffer() to have set up
1651 * yytext, we can now set up
1652 * yy_c_buf_p so that if some total
1653 * hoser (like flex itself) wants to
1654 * call the scanner after we return the
1655 * YY_NULL, it'll still work - another
1656 * YY_NULL will get returned.
1658 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
1660 yy_act = YY_STATE_EOF(YY_START);
1666 if ( ! yy_did_buffer_switch_on_eof )
1672 case EOB_ACT_CONTINUE_SCAN:
1674 yytext_ptr + yy_amount_of_matched_text;
1676 yy_current_state = yy_get_previous_state();
1679 yy_bp = yytext_ptr + YY_MORE_ADJ;
1682 case EOB_ACT_LAST_MATCH:
1684 &yy_current_buffer->yy_ch_buf[yy_n_chars];
1686 yy_current_state = yy_get_previous_state();
1689 yy_bp = yytext_ptr + YY_MORE_ADJ;
1690 goto yy_find_action;
1697 "fatal flex scanner internal error--no action found" );
1698 } /* end of action switch */
1699 } /* end of scanning one token */
1700 } /* end of yylex */
1703 /* yy_get_next_buffer - try to read in a new buffer
1705 * Returns a code representing an action:
1706 * EOB_ACT_LAST_MATCH -
1707 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1708 * EOB_ACT_END_OF_FILE - end of file
1711 static int yy_get_next_buffer()
1713 register char *dest = yy_current_buffer->yy_ch_buf;
1714 register char *source = yytext_ptr;
1715 register int number_to_move, i;
1718 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
1720 "fatal flex scanner internal error--end of buffer missed" );
1722 if ( yy_current_buffer->yy_fill_buffer == 0 )
1723 { /* Don't try to fill the buffer, so this is an EOF. */
1724 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
1726 /* We matched a single character, the EOB, so
1727 * treat this as a final EOF.
1729 return EOB_ACT_END_OF_FILE;
1734 /* We matched some text prior to the EOB, first
1737 return EOB_ACT_LAST_MATCH;
1741 /* Try to read more data. */
1743 /* First move last chars to start of buffer. */
1744 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
1746 for ( i = 0; i < number_to_move; ++i )
1747 *(dest++) = *(source++);
1749 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1750 /* don't do the read, it's not guaranteed to return an EOF,
1753 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
1758 yy_current_buffer->yy_buf_size - number_to_move - 1;
1760 while ( num_to_read <= 0 )
1761 { /* Not enough room in the buffer - grow it. */
1762 #ifdef YY_USES_REJECT
1764 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1767 /* just a shorter name for the current buffer */
1768 YY_BUFFER_STATE b = yy_current_buffer;
1770 int yy_c_buf_p_offset =
1771 (int) (yy_c_buf_p - b->yy_ch_buf);
1773 if ( b->yy_is_our_buffer )
1775 int new_size = b->yy_buf_size * 2;
1777 if ( new_size <= 0 )
1778 b->yy_buf_size += b->yy_buf_size / 8;
1780 b->yy_buf_size *= 2;
1782 b->yy_ch_buf = (char *)
1783 /* Include room in for 2 EOB chars. */
1784 yy_flex_realloc( (void *) b->yy_ch_buf,
1785 b->yy_buf_size + 2 );
1788 /* Can't grow it, we don't own it. */
1791 if ( ! b->yy_ch_buf )
1793 "fatal error - scanner input buffer overflow" );
1795 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1797 num_to_read = yy_current_buffer->yy_buf_size -
1802 if ( num_to_read > YY_READ_BUF_SIZE )
1803 num_to_read = YY_READ_BUF_SIZE;
1805 /* Read in more data. */
1806 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
1807 yy_n_chars, num_to_read );
1809 yy_current_buffer->yy_n_chars = yy_n_chars;
1812 if ( yy_n_chars == 0 )
1814 if ( number_to_move == YY_MORE_ADJ )
1816 ret_val = EOB_ACT_END_OF_FILE;
1822 ret_val = EOB_ACT_LAST_MATCH;
1823 yy_current_buffer->yy_buffer_status =
1824 YY_BUFFER_EOF_PENDING;
1829 ret_val = EOB_ACT_CONTINUE_SCAN;
1831 yy_n_chars += number_to_move;
1832 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1833 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1835 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
1841 /* yy_get_previous_state - get the state just before the EOB char was reached */
1843 static yy_state_type yy_get_previous_state()
1845 register yy_state_type yy_current_state;
1846 register char *yy_cp;
1848 yy_current_state = yy_start;
1850 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
1852 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1853 if ( yy_accept[yy_current_state] )
1855 yy_last_accepting_state = yy_current_state;
1856 yy_last_accepting_cpos = yy_cp;
1858 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1860 yy_current_state = (int) yy_def[yy_current_state];
1861 if ( yy_current_state >= 655 )
1862 yy_c = yy_meta[(unsigned int) yy_c];
1864 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1867 return yy_current_state;
1871 /* yy_try_NUL_trans - try to make a transition on the NUL character
1874 * next_state = yy_try_NUL_trans( current_state );
1877 #ifdef YY_USE_PROTOS
1878 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
1880 static yy_state_type yy_try_NUL_trans( yy_current_state )
1881 yy_state_type yy_current_state;
1884 register int yy_is_jam;
1885 register char *yy_cp = yy_c_buf_p;
1887 register YY_CHAR yy_c = 1;
1888 if ( yy_accept[yy_current_state] )
1890 yy_last_accepting_state = yy_current_state;
1891 yy_last_accepting_cpos = yy_cp;
1893 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1895 yy_current_state = (int) yy_def[yy_current_state];
1896 if ( yy_current_state >= 655 )
1897 yy_c = yy_meta[(unsigned int) yy_c];
1899 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1900 yy_is_jam = (yy_current_state == 654);
1902 return yy_is_jam ? 0 : yy_current_state;
1907 #ifdef YY_USE_PROTOS
1908 static void yyunput( int c, register char *yy_bp )
1910 static void yyunput( c, yy_bp )
1912 register char *yy_bp;
1915 register char *yy_cp = yy_c_buf_p;
1917 /* undo effects of setting up yytext */
1918 *yy_cp = yy_hold_char;
1920 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1921 { /* need to shift things up to make room */
1922 /* +2 for EOB chars. */
1923 register int number_to_move = yy_n_chars + 2;
1924 register char *dest = &yy_current_buffer->yy_ch_buf[
1925 yy_current_buffer->yy_buf_size + 2];
1926 register char *source =
1927 &yy_current_buffer->yy_ch_buf[number_to_move];
1929 while ( source > yy_current_buffer->yy_ch_buf )
1930 *--dest = *--source;
1932 yy_cp += (int) (dest - source);
1933 yy_bp += (int) (dest - source);
1934 yy_current_buffer->yy_n_chars =
1935 yy_n_chars = yy_current_buffer->yy_buf_size;
1937 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1938 YY_FATAL_ERROR( "flex scanner push-back overflow" );
1941 *--yy_cp = (char) c;
1945 yy_hold_char = *yy_cp;
1948 #endif /* ifndef YY_NO_UNPUT */
1953 static int yyinput()
1960 *yy_c_buf_p = yy_hold_char;
1962 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1964 /* yy_c_buf_p now points to the character we want to return.
1965 * If this occurs *before* the EOB characters, then it's a
1966 * valid NUL; if not, then we've hit the end of the buffer.
1968 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1969 /* This was really a NUL. */
1973 { /* need more input */
1974 int offset = yy_c_buf_p - yytext_ptr;
1977 switch ( yy_get_next_buffer() )
1979 case EOB_ACT_LAST_MATCH:
1980 /* This happens because yy_g_n_b()
1981 * sees that we've accumulated a
1982 * token and flags that we need to
1983 * try matching the token before
1984 * proceeding. But for input(),
1985 * there's no matching to consider.
1986 * So convert the EOB_ACT_LAST_MATCH
1987 * to EOB_ACT_END_OF_FILE.
1990 /* Reset buffer status. */
1995 case EOB_ACT_END_OF_FILE:
2000 if ( ! yy_did_buffer_switch_on_eof )
2009 case EOB_ACT_CONTINUE_SCAN:
2010 yy_c_buf_p = yytext_ptr + offset;
2016 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2017 *yy_c_buf_p = '\0'; /* preserve yytext */
2018 yy_hold_char = *++yy_c_buf_p;
2023 #endif /* YY_NO_INPUT */
2025 #ifdef YY_USE_PROTOS
2026 void yyrestart( FILE *input_file )
2028 void yyrestart( input_file )
2032 if ( ! yy_current_buffer )
2033 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2035 yy_init_buffer( yy_current_buffer, input_file );
2036 yy_load_buffer_state();
2040 #ifdef YY_USE_PROTOS
2041 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2043 void yy_switch_to_buffer( new_buffer )
2044 YY_BUFFER_STATE new_buffer;
2047 if ( yy_current_buffer == new_buffer )
2050 if ( yy_current_buffer )
2052 /* Flush out information for old buffer. */
2053 *yy_c_buf_p = yy_hold_char;
2054 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2055 yy_current_buffer->yy_n_chars = yy_n_chars;
2058 yy_current_buffer = new_buffer;
2059 yy_load_buffer_state();
2061 /* We don't actually know whether we did this switch during
2062 * EOF (yywrap()) processing, but the only time this flag
2063 * is looked at is after yywrap() is called, so it's safe
2064 * to go ahead and always set it.
2066 yy_did_buffer_switch_on_eof = 1;
2070 #ifdef YY_USE_PROTOS
2071 void yy_load_buffer_state( void )
2073 void yy_load_buffer_state()
2076 yy_n_chars = yy_current_buffer->yy_n_chars;
2077 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2078 yyin = yy_current_buffer->yy_input_file;
2079 yy_hold_char = *yy_c_buf_p;
2083 #ifdef YY_USE_PROTOS
2084 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2086 YY_BUFFER_STATE yy_create_buffer( file, size )
2093 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2095 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2097 b->yy_buf_size = size;
2099 /* yy_ch_buf has to be 2 characters longer than the size given because
2100 * we need to put in 2 end-of-buffer characters.
2102 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2103 if ( ! b->yy_ch_buf )
2104 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2106 b->yy_is_our_buffer = 1;
2108 yy_init_buffer( b, file );
2114 #ifdef YY_USE_PROTOS
2115 void yy_delete_buffer( YY_BUFFER_STATE b )
2117 void yy_delete_buffer( b )
2124 if ( b == yy_current_buffer )
2125 yy_current_buffer = (YY_BUFFER_STATE) 0;
2127 if ( b->yy_is_our_buffer )
2128 yy_flex_free( (void *) b->yy_ch_buf );
2130 yy_flex_free( (void *) b );
2135 #ifdef YY_USE_PROTOS
2136 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2138 void yy_init_buffer( b, file )
2145 yy_flush_buffer( b );
2147 b->yy_input_file = file;
2148 b->yy_fill_buffer = 1;
2150 #if YY_ALWAYS_INTERACTIVE
2151 b->yy_is_interactive = 1;
2153 #if YY_NEVER_INTERACTIVE
2154 b->yy_is_interactive = 0;
2156 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2162 #ifdef YY_USE_PROTOS
2163 void yy_flush_buffer( YY_BUFFER_STATE b )
2165 void yy_flush_buffer( b )
2175 /* We always need two end-of-buffer characters. The first causes
2176 * a transition to the end-of-buffer state. The second causes
2177 * a jam in that state.
2179 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2180 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2182 b->yy_buf_pos = &b->yy_ch_buf[0];
2185 b->yy_buffer_status = YY_BUFFER_NEW;
2187 if ( b == yy_current_buffer )
2188 yy_load_buffer_state();
2192 #ifndef YY_NO_SCAN_BUFFER
2193 #ifdef YY_USE_PROTOS
2194 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2196 YY_BUFFER_STATE yy_scan_buffer( base, size )
2204 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2205 base[size-1] != YY_END_OF_BUFFER_CHAR )
2206 /* They forgot to leave room for the EOB's. */
2209 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2211 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2213 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2214 b->yy_buf_pos = b->yy_ch_buf = base;
2215 b->yy_is_our_buffer = 0;
2216 b->yy_input_file = 0;
2217 b->yy_n_chars = b->yy_buf_size;
2218 b->yy_is_interactive = 0;
2220 b->yy_fill_buffer = 0;
2221 b->yy_buffer_status = YY_BUFFER_NEW;
2223 yy_switch_to_buffer( b );
2230 #ifndef YY_NO_SCAN_STRING
2231 #ifdef YY_USE_PROTOS
2232 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2234 YY_BUFFER_STATE yy_scan_string( yy_str )
2235 yyconst char *yy_str;
2239 for ( len = 0; yy_str[len]; ++len )
2242 return yy_scan_bytes( yy_str, len );
2247 #ifndef YY_NO_SCAN_BYTES
2248 #ifdef YY_USE_PROTOS
2249 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2251 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2252 yyconst char *bytes;
2261 /* Get memory for full buffer, including space for trailing EOB's. */
2263 buf = (char *) yy_flex_alloc( n );
2265 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2267 for ( i = 0; i < len; ++i )
2270 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2272 b = yy_scan_buffer( buf, n );
2274 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2276 /* It's okay to grow etc. this buffer, and we should throw it
2277 * away when we're done.
2279 b->yy_is_our_buffer = 1;
2286 #ifndef YY_NO_PUSH_STATE
2287 #ifdef YY_USE_PROTOS
2288 static void yy_push_state( int new_state )
2290 static void yy_push_state( new_state )
2294 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2298 yy_start_stack_depth += YY_START_STACK_INCR;
2299 new_size = yy_start_stack_depth * sizeof( int );
2301 if ( ! yy_start_stack )
2302 yy_start_stack = (int *) yy_flex_alloc( new_size );
2305 yy_start_stack = (int *) yy_flex_realloc(
2306 (void *) yy_start_stack, new_size );
2308 if ( ! yy_start_stack )
2310 "out of memory expanding start-condition stack" );
2313 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2320 #ifndef YY_NO_POP_STATE
2321 static void yy_pop_state()
2323 if ( --yy_start_stack_ptr < 0 )
2324 YY_FATAL_ERROR( "start-condition stack underflow" );
2326 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2331 #ifndef YY_NO_TOP_STATE
2332 static int yy_top_state()
2334 return yy_start_stack[yy_start_stack_ptr - 1];
2338 #ifndef YY_EXIT_FAILURE
2339 #define YY_EXIT_FAILURE 2
2342 #ifdef YY_USE_PROTOS
2343 static void yy_fatal_error( yyconst char msg[] )
2345 static void yy_fatal_error( msg )
2349 (void) fprintf( stderr, "%s\n", msg );
2350 exit( YY_EXIT_FAILURE );
2355 /* Redefine yyless() so it works in section 3 code. */
2361 /* Undo effects of setting up yytext. */ \
2362 yytext[yyleng] = yy_hold_char; \
2363 yy_c_buf_p = yytext + n; \
2364 yy_hold_char = *yy_c_buf_p; \
2365 *yy_c_buf_p = '\0'; \
2371 /* Internal utility routines. */
2374 #ifdef YY_USE_PROTOS
2375 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2377 static void yy_flex_strncpy( s1, s2, n )
2384 for ( i = 0; i < n; ++i )
2389 #ifdef YY_NEED_STRLEN
2390 #ifdef YY_USE_PROTOS
2391 static int yy_flex_strlen( yyconst char *s )
2393 static int yy_flex_strlen( s )
2398 for ( n = 0; s[n]; ++n )
2406 #ifdef YY_USE_PROTOS
2407 static void *yy_flex_alloc( yy_size_t size )
2409 static void *yy_flex_alloc( size )
2413 return (void *) malloc( size );
2416 #ifdef YY_USE_PROTOS
2417 static void *yy_flex_realloc( void *ptr, yy_size_t size )
2419 static void *yy_flex_realloc( ptr, size )
2424 /* The cast to (char *) in the following accommodates both
2425 * implementations that use char* generic pointers, and those
2426 * that use void* generic pointers. It works with the latter
2427 * because both ANSI C and C++ allow castless assignment from
2428 * any pointer type to void*, and deal with argument conversions
2429 * as though doing an assignment.
2431 return (void *) realloc( (char *) ptr, size );
2434 #ifdef YY_USE_PROTOS
2435 static void yy_flex_free( void *ptr )
2437 static void yy_flex_free( ptr )
2454 int my_FtaParser_yyinput(char *buf, int max_size){
2458 if(flex_fta_stringinput != NULL){
2460 if(flex_fta_stringinput[flex_fta_stringinput_ptr] != '\0'){
2461 buf[c++] = flex_fta_stringinput[flex_fta_stringinput_ptr++];
2469 if(flex_fta_fileinput != NULL){
2470 while(c < max_size){
2471 inchar = getc(flex_fta_fileinput);
2484 void FtaParser_setfileinput(FILE *f){
2485 FtaParserrestart(NULL);
2487 flex_fta_fileinput = f;
2488 flex_fta_stringinput = NULL;
2489 flex_fta_lineno = 1;
2493 void FtaParser_setstringinput(char *s){
2494 FtaParserrestart(NULL);
2496 flex_fta_fileinput = NULL;
2497 flex_fta_stringinput = s;
2498 flex_fta_stringinput_ptr = 0;
2499 flex_fta_lineno = 1;