1 #line 2 "XdlScanner.cpp"
3 #line 4 "XdlScanner.cpp"
5 #define YY_INT_ALIGNED short int
10 #define YY_FLEX_MAJOR_VERSION 2
11 #define YY_FLEX_MINOR_VERSION 5
12 #define YY_FLEX_SUBMINOR_VERSION 35
13 #if YY_FLEX_SUBMINOR_VERSION > 0
23 #define yyFlexLexer XdlFlexLexer
38 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
43 #ifndef __STDC_LIMIT_MACROS
44 #define __STDC_LIMIT_MACROS 1
65 #define INT8_MIN (-128)
68 #define INT16_MIN (-32767-1)
71 #define INT32_MIN (-2147483647-1)
74 #define INT8_MAX (127)
77 #define INT16_MAX (32767)
80 #define INT32_MAX (2147483647)
83 #define UINT8_MAX (255U)
86 #define UINT16_MAX (65535U)
89 #define UINT32_MAX (4294967295U)
109 #if defined (__STDC__)
117 #define yyconst const
130 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
136 #define BEGIN (yy_start) = 1 + 2 *
142 #define YY_START (((yy_start) - 1) / 2)
143 #define YYSTATE YY_START
146 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
149 #define YY_NEW_FILE yyrestart( yyin )
151 #define YY_END_OF_BUFFER_CHAR 0
155 #define YY_BUF_SIZE 16384
160 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
162 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
163 #define YY_TYPEDEF_YY_BUFFER_STATE
169 #define EOB_ACT_CONTINUE_SCAN 0
170 #define EOB_ACT_END_OF_FILE 1
171 #define EOB_ACT_LAST_MATCH 2
173 #define YY_LESS_LINENO(n)
180 int yyless_macro_arg = (n); \
181 YY_LESS_LINENO(yyless_macro_arg);\
182 *yy_cp = (yy_hold_char); \
183 YY_RESTORE_YY_MORE_OFFSET \
184 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
185 YY_DO_BEFORE_ACTION; \
189 #define unput(c) yyunput( c, (yytext_ptr) )
191 #ifndef YY_TYPEDEF_YY_SIZE_T
192 #define YY_TYPEDEF_YY_SIZE_T
196 #ifndef YY_STRUCT_YY_BUFFER_STATE
197 #define YY_STRUCT_YY_BUFFER_STATE
245 #define YY_BUFFER_NEW 0
246 #define YY_BUFFER_NORMAL 1
257 #define YY_BUFFER_EOF_PENDING 2
268 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
269 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
275 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
281 #define yy_new_buffer yy_create_buffer
283 #define yy_set_interactive(is_interactive) \
285 if ( ! YY_CURRENT_BUFFER ){ \
286 yyensure_buffer_stack (); \
287 YY_CURRENT_BUFFER_LVALUE = \
288 yy_create_buffer( yyin, YY_BUF_SIZE ); \
290 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
293 #define yy_set_bol(at_bol) \
295 if ( ! YY_CURRENT_BUFFER ){\
296 yyensure_buffer_stack (); \
297 YY_CURRENT_BUFFER_LVALUE = \
298 yy_create_buffer( yyin, YY_BUF_SIZE ); \
300 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
303 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
309 #define yytext_ptr yytext
316 #define YY_DO_BEFORE_ACTION \
317 (yytext_ptr) = yy_bp; \
318 yyleng = (size_t) (yy_cp - yy_bp); \
319 (yy_hold_char) = *yy_cp; \
321 (yy_c_buf_p) = yy_cp;
323 #define YY_NUM_RULES 45
324 #define YY_END_OF_BUFFER 46
334 40, 40, 46, 44, 45, 43, 44, 45, 42, 45,
335 44, 45, 37, 44, 45, 36, 44, 45, 44, 45,
336 44, 45, 32, 44, 45, 32, 44, 45, 32, 44,
337 45, 32, 44, 45, 32, 44, 45, 32, 44, 45,
338 32, 44, 45, 32, 44, 45, 32, 44, 45, 32,
339 44, 45, 32, 44, 45, 32, 44, 45, 32, 44,
340 45, 33, 44, 45, 34, 44, 45, 16, 45, 13,
341 45, 14, 45, 45, 12, 45, 15, 45, 17, 45,
342 19, 45, 20, 45, 45, 18, 45, 17, 45, 40,
343 45, 39, 45, 45, 41, 45, 45, 43, 42, 36,
345 36, 30, 4, 3, 1, 2, 32, 32, 32, 32,
346 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
347 32, 32, 32, 32, 16, 13, 14, 17, 17, 19,
348 18, 20, 17, 17, 40, 39, 38, 36, 32, 32,
349 32, 32, 26, 32, 32, 32, 32, 32, 10, 32,
350 32, 29, 32, 32, 32, 32, 32, 32, 32, 25,
351 32, 36, 32, 32, 32, 32, 32, 9, 32, 32,
352 32, 32, 8, 32, 32, 32, 32, 31, 32, 36,
353 32, 11, 32, 32, 32, 27, 32, 32, 32, 32,
354 32, 32, 32, 36, 23, 32, 5, 32, 32, 32,
356 6, 32, 28, 32, 21, 32, 32, 32, 36, 32,
357 32, 32, 32, 36, 32, 9, 32, 24, 32, 22,
358 32, 36, 7, 32, 36, 36, 36, 36, 36, 35,
364 1, 1, 1, 1, 1, 1, 1, 2, 3, 4,
365 6, 9, 11, 13, 16, 19, 21, 23, 26, 29,
366 32, 35, 38, 41, 44, 47, 50, 53, 56, 59,
367 62, 65, 68, 70, 72, 74, 75, 77, 79, 81,
368 83, 85, 86, 88, 90, 92, 94, 95, 97, 98,
369 99, 100, 101, 102, 103, 104, 105, 106, 107, 108,
370 109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
371 119, 120, 121, 122, 123, 124, 125, 126, 127, 128,
372 129, 130, 131, 131, 132, 133, 134, 135, 136, 137,
373 138, 139, 140, 141, 142, 143, 145, 146, 147, 148,
375 149, 151, 152, 154, 155, 156, 157, 158, 159, 160,
376 162, 163, 164, 164, 165, 166, 167, 168, 170, 171,
377 172, 173, 175, 176, 177, 178, 180, 181, 182, 183,
378 184, 185, 186, 188, 189, 190, 191, 192, 193, 194,
379 195, 197, 199, 200, 201, 203, 205, 207, 208, 209,
380 210, 211, 212, 213, 214, 215, 216, 218, 220, 222,
381 223, 225, 226, 227, 228, 229, 230, 232, 232
386 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
387 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
388 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
389 1, 2, 1, 5, 6, 1, 1, 1, 1, 1,
390 1, 1, 1, 1, 7, 8, 1, 9, 9, 9,
391 9, 9, 9, 9, 9, 9, 9, 10, 1, 1,
392 11, 12, 1, 1, 13, 13, 13, 13, 14, 13,
393 15, 16, 13, 13, 13, 13, 13, 13, 17, 13,
394 13, 18, 13, 19, 20, 13, 13, 13, 13, 13,
395 1, 21, 1, 1, 22, 1, 23, 24, 25, 26,
397 27, 28, 29, 13, 30, 13, 13, 31, 32, 33,
398 34, 35, 13, 36, 37, 38, 39, 40, 41, 13,
399 13, 13, 42, 1, 43, 1, 1, 1, 1, 1,
400 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
401 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
402 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
403 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
404 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
405 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
406 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
408 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
409 1, 1, 1, 1, 1, 1, 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,
418 1, 2, 3, 4, 4, 1, 1, 5, 5, 6,
419 1, 1, 5, 5, 5, 5, 5, 5, 5, 5,
420 7, 5, 5, 5, 5, 5, 5, 5, 5, 5,
421 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
427 0, 0, 42, 46, 55, 59, 50, 62, 277, 278,
428 274, 278, 272, 278, 272, 60, 63, 0, 239, 244,
429 244, 237, 45, 236, 234, 240, 227, 54, 232, 64,
430 278, 278, 0, 262, 278, 260, 278, 278, 241, 89,
431 93, 97, 278, 101, 0, 278, 258, 278, 0, 258,
432 278, 0, 85, 250, 278, 278, 278, 278, 0, 225,
433 228, 219, 229, 228, 219, 42, 226, 213, 212, 214,
434 225, 68, 84, 102, 222, 220, 0, 243, 278, 223,
435 110, 121, 125, 278, 130, 222, 116, 0, 278, 278,
436 224, 215, 238, 209, 206, 0, 198, 206, 197, 195,
438 0, 198, 0, 207, 193, 203, 195, 197, 218, 0,
439 209, 198, 111, 195, 189, 189, 188, 197, 188, 188,
440 190, 0, 180, 182, 191, 204, 192, 185, 278, 177,
441 183, 182, 0, 174, 179, 172, 178, 177, 177, 182,
442 0, 0, 161, 170, 0, 0, 0, 163, 162, 168,
443 145, 148, 148, 145, 150, 141, 0, 0, 0, 151,
444 0, 143, 119, 97, 71, 66, 0, 278, 137, 144,
445 151, 158, 63, 165, 172, 179, 186, 192
450 168, 1, 169, 169, 170, 170, 171, 171, 168, 168,
451 168, 168, 168, 168, 172, 168, 168, 173, 173, 173,
452 173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
453 168, 168, 174, 168, 168, 168, 168, 168, 175, 168,
454 168, 168, 168, 176, 177, 168, 168, 168, 178, 168,
455 168, 172, 172, 168, 168, 168, 168, 168, 173, 173,
456 173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
457 173, 173, 173, 173, 173, 173, 174, 168, 168, 175,
458 176, 168, 168, 168, 168, 175, 176, 177, 168, 168,
459 172, 173, 173, 173, 173, 173, 173, 173, 173, 173,
461 173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
462 172, 173, 168, 173, 173, 173, 173, 173, 173, 173,
463 173, 173, 173, 173, 173, 173, 172, 173, 168, 173,
464 173, 173, 173, 173, 173, 173, 173, 173, 173, 172,
465 173, 173, 173, 173, 173, 173, 173, 173, 173, 172,
466 173, 173, 173, 173, 172, 173, 173, 173, 173, 172,
467 173, 172, 172, 172, 172, 172, 172, 0, 168, 168,
468 168, 168, 168, 168, 168, 168, 168, 168
473 10, 11, 12, 13, 14, 15, 16, 10, 10, 10,
474 17, 10, 18, 18, 18, 18, 18, 18, 18, 18,
475 10, 10, 18, 19, 20, 21, 22, 18, 23, 24,
476 18, 25, 26, 27, 28, 18, 18, 18, 29, 30,
477 18, 31, 32, 34, 35, 36, 37, 34, 35, 36,
478 37, 38, 46, 47, 48, 38, 40, 41, 42, 43,
479 40, 41, 42, 43, 46, 47, 48, 59, 54, 56,
480 49, 55, 74, 57, 58, 44, 98, 64, 99, 44,
481 65, 167, 49, 70, 71, 166, 53, 72, 75, 76,
482 82, 83, 83, 84, 83, 83, 83, 84, 83, 85,
484 83, 84, 80, 105, 80, 80, 91, 107, 106, 109,
485 74, 80, 113, 80, 80, 129, 165, 80, 108, 80,
486 80, 87, 82, 83, 83, 84, 83, 83, 83, 84,
487 87, 83, 83, 83, 84, 164, 87, 33, 33, 33,
488 33, 33, 33, 33, 39, 39, 39, 39, 39, 39,
489 39, 45, 45, 45, 45, 45, 45, 45, 52, 52,
490 163, 52, 52, 52, 52, 77, 162, 161, 160, 77,
491 159, 77, 80, 158, 157, 156, 80, 80, 80, 86,
492 86, 155, 86, 86, 86, 86, 88, 88, 154, 153,
493 88, 88, 90, 90, 152, 90, 90, 90, 90, 151,
495 150, 149, 148, 147, 146, 145, 144, 96, 143, 142,
496 141, 140, 126, 139, 138, 110, 137, 136, 135, 134,
497 133, 132, 131, 130, 128, 127, 126, 125, 124, 123,
498 122, 121, 120, 119, 118, 117, 116, 115, 114, 113,
499 112, 111, 81, 81, 78, 110, 110, 104, 103, 102,
500 101, 100, 97, 96, 95, 94, 93, 92, 54, 50,
501 89, 81, 79, 78, 73, 69, 68, 67, 66, 63,
502 62, 61, 60, 53, 51, 50, 168, 9, 168, 168,
503 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
504 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
506 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
507 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
513 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
514 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
515 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
516 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
517 1, 1, 1, 3, 3, 3, 3, 4, 4, 4,
518 4, 3, 7, 7, 7, 4, 5, 5, 5, 5,
519 6, 6, 6, 6, 8, 8, 8, 173, 16, 17,
520 7, 16, 30, 17, 17, 5, 66, 23, 66, 6,
521 23, 166, 8, 28, 28, 165, 53, 28, 30, 30,
522 40, 40, 40, 40, 41, 41, 41, 41, 42, 42,
524 42, 42, 44, 72, 44, 44, 53, 73, 72, 74,
525 74, 81, 113, 81, 81, 113, 164, 87, 73, 87,
526 87, 44, 82, 82, 82, 82, 83, 83, 83, 83,
527 81, 85, 85, 85, 85, 163, 87, 169, 169, 169,
528 169, 169, 169, 169, 170, 170, 170, 170, 170, 170,
529 170, 171, 171, 171, 171, 171, 171, 171, 172, 172,
530 162, 172, 172, 172, 172, 174, 160, 156, 155, 174,
531 154, 174, 175, 153, 152, 151, 175, 175, 175, 176,
532 176, 150, 176, 176, 176, 176, 177, 177, 149, 148,
533 177, 177, 178, 178, 144, 178, 178, 178, 178, 143,
535 140, 139, 138, 137, 136, 135, 134, 132, 131, 130,
536 128, 127, 126, 125, 124, 123, 121, 120, 119, 118,
537 117, 116, 115, 114, 112, 111, 109, 108, 107, 106,
538 105, 104, 102, 100, 99, 98, 97, 95, 94, 93,
539 92, 91, 86, 80, 78, 76, 75, 71, 70, 69,
540 68, 67, 65, 64, 63, 62, 61, 60, 54, 50,
541 47, 39, 36, 34, 29, 27, 26, 25, 24, 22,
542 21, 20, 19, 15, 13, 11, 9, 168, 168, 168,
543 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
544 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
546 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
547 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
553 *yy_cp = (yy_hold_char); \
554 yy_cp = (yy_full_match); \
559 #define yymore() yymore_used_but_not_detected
560 #define YY_MORE_ADJ 0
561 #define YY_RESTORE_YY_MORE_OFFSET
579 #line 20 "scanner.ll"
595 namespace torc {
namespace physical {} }
596 using namespace torc::physical;
604 #define yyterminate() return token::END
608 #define YY_NO_UNISTD_H
612 #define DEBUG1(a) printf a
626 #line 83 "scanner.ll"
627 #define YY_USER_ACTION yylloc->columns(yyleng);
634 #line 635 "XdlScanner.cpp"
637 #define CONFIGSTRING 1
638 #define CONFIGSTRING2 2
639 #define DOUBLEQUOTE 3
641 #ifndef YY_NO_UNISTD_H
649 #ifndef YY_EXTRA_TYPE
650 #define YY_EXTRA_TYPE void *
654 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
657 #ifdef YY_NEED_STRLEN
658 static int yy_flex_strlen (
yyconst char * );
666 #ifndef YY_READ_BUF_SIZE
667 #define YY_READ_BUF_SIZE 8192
672 #define ECHO LexerOutput( yytext, yyleng )
679 #define YY_INPUT(buf,result,max_size) \
681 if ( (result = LexerInput( (char *) buf, max_size )) < 0 ) \
682 YY_FATAL_ERROR( "input in flex scanner failed" );
691 #define yyterminate() return YY_NULL
695 #ifndef YY_START_STACK_INCR
696 #define YY_START_STACK_INCR 25
700 #ifndef YY_FATAL_ERROR
701 #define YY_FATAL_ERROR(msg) LexerError( msg )
710 #define YY_DECL_IS_OURS 1
711 #define YY_DECL int yyFlexLexer::yylex()
717 #ifndef YY_USER_ACTION
718 #define YY_USER_ACTION
723 #define YY_BREAK break;
726 #define YY_RULE_SETUP \
737 #line 94 "scanner.ll"
763 #line 764 "XdlScanner.cpp"
774 if ( ! (yy_state_buf) )
776 if ( ! (yy_state_buf) )
789 yyensure_buffer_stack ();
794 yy_load_buffer_state( );
799 yy_cp = (yy_c_buf_p);
802 *yy_cp = (yy_hold_char);
809 yy_current_state = (yy_start);
811 (yy_state_ptr) = (yy_state_buf);
812 *(yy_state_ptr)++ = yy_current_state;
818 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
820 yy_current_state = (int)
yy_def[yy_current_state];
821 if ( yy_current_state >= 169 )
822 yy_c =
yy_meta[(
unsigned int) yy_c];
825 *(yy_state_ptr)++ = yy_current_state;
828 while ( yy_current_state != 168 );
831 yy_current_state = *--(yy_state_ptr);
836 if ( (yy_lp) && (yy_lp) <
yy_accept[yy_current_state + 1] )
840 (yy_full_match) = yy_cp;
845 yy_current_state = *--(yy_state_ptr);
857 #line 119 "scanner.ll"
858 {
return token::BIDIRUNBUF; }
862 #line 120 "scanner.ll"
863 {
return token::BIDIRUNIBUF; }
867 #line 121 "scanner.ll"
868 {
return token::BIDIRBIBUF; }
872 #line 122 "scanner.ll"
873 {
return token::UNIDIRBUF; }
877 #line 124 "scanner.ll"
878 {
return token::DESIGN; }
882 #line 125 "scanner.ll"
883 {
return token::MODULE; }
887 #line 126 "scanner.ll"
888 {
return token::ENDMODULE; }
892 #line 127 "scanner.ll"
893 {
return token::PORT; }
897 #line 128 "scanner.ll"
898 {
return token::INST; }
902 #line 129 "scanner.ll"
903 {
return token::NET; }
907 #line 131 "scanner.ll"
915 #line 135 "scanner.ll"
923 #line 139 "scanner.ll"
929 #line 140 "scanner.ll"
934 #line 141 "scanner.ll"
942 #line 145 "scanner.ll"
944 ; *yylval = yytext;
return colon == 0 ? token::CFGSETTING : token::CFGNAME;
949 #line 148 "scanner.ll"
950 { *yylval = yytext;
return token::CFGVALUE; }
955 #line 149 "scanner.ll"
958 ;
for(
char* ptr = yytext; *ptr != 0; ptr++) {
959 ;
if(*ptr == 0)
break;
960 ;
if(
false && *ptr ==
'\n') yylloc->lines();
967 #line 157 "scanner.ll"
973 #line 158 "scanner.ll"
978 #line 160 "scanner.ll"
979 {
return token::PLACED; }
983 #line 161 "scanner.ll"
984 {
return token::UNPLACED; }
988 #line 162 "scanner.ll"
989 {
return token::BONDED; }
993 #line 163 "scanner.ll"
994 {
return token::UNBONDED; }
998 #line 164 "scanner.ll"
999 {
return token::POWER; }
1003 #line 165 "scanner.ll"
1004 {
return token::GROUND; }
1008 #line 166 "scanner.ll"
1009 {
return token::INPIN; }
1013 #line 167 "scanner.ll"
1014 {
return token::OUTPIN; }
1018 #line 168 "scanner.ll"
1019 {
return token::PIP; }
1023 #line 169 "scanner.ll"
1024 { *yylval = yytext;
return token::SPEEDGRADE; }
1028 #line 170 "scanner.ll"
1029 { *yylval = yytext;
return token::XDLVERSION;
1034 #line 172 "scanner.ll"
1035 { *yylval = yytext;
return token::IDENTIFIER; }
1039 #line 173 "scanner.ll"
1040 {
return token::OBRACE; }
1044 #line 174 "scanner.ll"
1045 {
return token::EBRACE; }
1049 #line 176 "scanner.ll"
1051 ;
DEBUG((
"ROUTETHROUGH "));
1053 ;
char* ptr = yytext + 1;
1054 ;
char* end = ptr +
yyleng;
1055 ;
while(*ptr ==
' ' && ptr < end) ptr++;
1057 ;
return token::ROUTETHROUGH;
1062 #line 185 "scanner.ll"
1064 ;
char* ptr = yytext + 1;
1065 ;
char* end = ptr +
yyleng;
1066 ;
while((*ptr ==
' ' || *ptr ==
'\t') && ptr < end) ptr++;
1067 ;
if((end - ptr > 13) && strncmp(ptr,
"_ROUTETHROUGH", 13) == 0)
REJECT;
1069 ;
DEBUG((
"COMMENT "));
1074 #line 194 "scanner.ll"
1083 #line 199 "scanner.ll"
1085 ; last_string += yytext;
1086 ;
return token::STRING;
1092 #line 203 "scanner.ll"
1093 { yylloc->lines(); }
1097 #line 204 "scanner.ll"
1099 ; last_string += yytext;
1100 ;
return token::STRING;
1105 #line 208 "scanner.ll"
1106 {
if(!in_double_quote) {
1111 ; in_double_quote =
false;
1112 ; yylloc->end.columns(-1);
1115 ;
return token::STRING;
1121 #line 220 "scanner.ll"
1122 { yylloc->lines(); }
1126 #line 221 "scanner.ll"
1131 #line 222 "scanner.ll"
1139 #line 231 "scanner.ll"
1142 #line 1143 "XdlScanner.cpp"
1152 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
1155 *yy_cp = (yy_hold_char);
1185 (yy_c_buf_p) = (
yytext_ptr) + yy_amount_of_matched_text;
1187 yy_current_state = yy_get_previous_state( );
1198 yy_next_state = yy_try_NUL_trans( yy_current_state );
1202 if ( yy_next_state )
1205 yy_cp = ++(yy_c_buf_p);
1206 yy_current_state = yy_next_state;
1212 yy_cp = (yy_c_buf_p);
1213 goto yy_find_action;
1217 else switch ( yy_get_next_buffer( ) )
1221 (yy_did_buffer_switch_on_eof) = 0;
1242 if ( ! (yy_did_buffer_switch_on_eof) )
1252 yy_current_state = yy_get_previous_state( );
1254 yy_cp = (yy_c_buf_p);
1262 yy_current_state = yy_get_previous_state( );
1264 yy_cp = (yy_c_buf_p);
1266 goto yy_find_action;
1273 "fatal flex scanner internal error--no action found" );
1290 yy_did_buffer_switch_on_eof = 0;
1292 yy_looking_for_trail_begin = 0;
1295 yy_more_offset = yy_prev_more_offset = 0;
1297 yy_start_stack_ptr = yy_start_stack_depth = 0;
1298 yy_start_stack = NULL;
1300 yy_buffer_stack = 0;
1301 yy_buffer_stack_top = 0;
1302 yy_buffer_stack_max = 0;
1312 delete [] yy_state_buf;
1325 yy_switch_to_buffer( yy_create_buffer( new_in,
YY_BUF_SIZE ) );
1332 #ifdef YY_INTERACTIVE
1338 if ( yyin->eof() || yyin->fail() )
1341 #ifdef YY_INTERACTIVE
1342 yyin->get( buf[0] );
1353 (void) yyin->read( buf, max_size );
1358 return yyin->gcount();
1364 (void) yyout->write( buf, size );
1378 register int number_to_move, i;
1383 "fatal flex scanner internal error--end of buffer missed" );
1407 number_to_move = (int) ((yy_c_buf_p) - (
yytext_ptr)) - 1;
1409 for ( i = 0; i < number_to_move; ++i )
1410 *(dest++) = *(source++);
1423 while ( num_to_read <= 0 )
1427 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1436 (yy_n_chars), (
size_t) num_to_read );
1441 if ( (yy_n_chars) == 0 )
1462 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1465 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1468 (yy_n_chars) += number_to_move;
1482 register char *
yy_cp;
1484 yy_current_state = (yy_start);
1486 (yy_state_ptr) = (yy_state_buf);
1487 *(yy_state_ptr)++ = yy_current_state;
1492 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1494 yy_current_state = (int)
yy_def[yy_current_state];
1495 if ( yy_current_state >= 169 )
1496 yy_c =
yy_meta[(
unsigned int) yy_c];
1499 *(yy_state_ptr)++ = yy_current_state;
1512 register int yy_is_jam;
1515 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1517 yy_current_state = (int)
yy_def[yy_current_state];
1518 if ( yy_current_state >= 169 )
1519 yy_c =
yy_meta[(
unsigned int) yy_c];
1522 yy_is_jam = (yy_current_state == 168);
1524 *(yy_state_ptr)++ = yy_current_state;
1531 register char *
yy_cp;
1533 yy_cp = (yy_c_buf_p);
1536 *yy_cp = (yy_hold_char);
1538 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1541 register int number_to_move = (yy_n_chars) + 2;
1544 register char *source =
1548 *--dest = *--source;
1550 yy_cp += (int) (dest - source);
1551 yy_bp += (int) (dest - source);
1555 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1559 *--yy_cp = (char) c;
1562 (yy_hold_char) = *yy_cp;
1563 (yy_c_buf_p) = yy_cp;
1570 *(yy_c_buf_p) = (yy_hold_char);
1580 *(yy_c_buf_p) =
'\0';
1587 switch ( yy_get_next_buffer( ) )
1610 if ( ! (yy_did_buffer_switch_on_eof) )
1626 c = *(
unsigned char *) (yy_c_buf_p);
1627 *(yy_c_buf_p) =
'\0';
1628 (yy_hold_char) = *++(yy_c_buf_p);
1642 yyensure_buffer_stack ();
1648 yy_load_buffer_state( );
1663 yyensure_buffer_stack ();
1670 *(yy_c_buf_p) = (yy_hold_char);
1676 yy_load_buffer_state( );
1683 (yy_did_buffer_switch_on_eof) = 1;
1691 (yy_hold_char) = *(yy_c_buf_p);
1719 yy_init_buffer( b, file );
1743 extern "C" int isatty (
int );
1754 yy_flush_buffer( b );
1796 yy_load_buffer_state( );
1807 if (new_buffer == NULL)
1810 yyensure_buffer_stack();
1816 *(yy_c_buf_p) = (yy_hold_char);
1823 (yy_buffer_stack_top)++;
1827 yy_load_buffer_state( );
1828 (yy_did_buffer_switch_on_eof) = 1;
1842 if ((yy_buffer_stack_top) > 0)
1843 --(yy_buffer_stack_top);
1846 yy_load_buffer_state( );
1847 (yy_did_buffer_switch_on_eof) = 1;
1858 if (!(yy_buffer_stack)) {
1868 if ( ! (yy_buffer_stack) )
1869 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
1871 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
1873 (yy_buffer_stack_max) = num_to_alloc;
1874 (yy_buffer_stack_top) = 0;
1878 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1883 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1888 if ( ! (yy_buffer_stack) )
1889 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
1892 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
1893 (yy_buffer_stack_max) = num_to_alloc;
1899 if ( (yy_start_stack_ptr) >= (yy_start_stack_depth) )
1904 new_size = (yy_start_stack_depth) *
sizeof(
int );
1906 if ( ! (yy_start_stack) )
1907 (yy_start_stack) = (
int *)
Xdlalloc(new_size );
1910 (yy_start_stack) = (
int *)
Xdlrealloc((
void *) (yy_start_stack),new_size );
1912 if ( ! (yy_start_stack) )
1913 YY_FATAL_ERROR(
"out of memory expanding start-condition stack" );
1916 (yy_start_stack)[(yy_start_stack_ptr)++] =
YY_START;
1923 if ( --(yy_start_stack_ptr) < 0 )
1926 BEGIN((yy_start_stack)[(yy_start_stack_ptr)]);
1931 return (yy_start_stack)[(yy_start_stack_ptr) - 1];
1934 #ifndef YY_EXIT_FAILURE
1935 #define YY_EXIT_FAILURE 2
1940 std::cerr << msg << std::endl;
1951 int yyless_macro_arg = (n); \
1952 YY_LESS_LINENO(yyless_macro_arg);\
1953 yytext[yyleng] = (yy_hold_char); \
1954 (yy_c_buf_p) = yytext + yyless_macro_arg; \
1955 (yy_hold_char) = *(yy_c_buf_p); \
1956 *(yy_c_buf_p) = '\0'; \
1957 yyleng = yyless_macro_arg; \
1968 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
1971 for ( i = 0; i < n; ++i )
1976 #ifdef YY_NEED_STRLEN
1977 static int yy_flex_strlen (
yyconst char * s )
1980 for ( n = 0; s[n]; ++n )
1989 return (
void *) malloc( size );
2001 return (
void *) realloc( (
char *) ptr, size );
2006 free( (
char *) ptr );
2009 #define YYTABLES_NAME "yytables"
2011 #line 231 "scanner.ll"
2042 std::cerr <<
"in XdlFlexLexer::yylex() !" << std::endl;
2050 int XdlFlexLexer::yywrap() {
void yy_switch_to_buffer(struct yy_buffer_state *new_buffer)
void * Xdlalloc(yy_size_t)
Bison lexer internals.
void yypush_buffer_state(struct yy_buffer_state *new_buffer)
#define EOB_ACT_END_OF_FILE
char * yy_buf_pos
Bison lexer internals.
#define YY_INPUT(buf, result, max_size)
int yy_n_chars
Bison lexer internals.
#define YY_STATE_EOF(state)
#define YY_FATAL_ERROR(msg)
void yy_push_state(int new_state)
yy_state_type yy_try_NUL_trans(yy_state_type current_state)
int yy_fill_buffer
Bison lexer internals.
unsigned short int flex_uint16_t
#define DOUBLEQUOTE
Bison lexer internals.
void Xdlfree(void *)
Bison lexer internals.
unsigned int flex_uint32_t
size_t yy_size_t
Bison lexer internals.
void * Xdlrealloc(void *, yy_size_t)
Bison lexer internals.
void yy_flush_buffer(struct yy_buffer_state *b)
static yyconst flex_int16_t yy_def[179]
int yy_bs_lineno
Bison lexer internals.
#define YY_START_STACK_INCR
YY_DECL register yy_state_type yy_current_state
struct yy_buffer_state * yy_create_buffer(FLEX_STD istream *s, int size)
virtual ~XdlScanner()
Virtual destructor.
yy_size_t yy_buf_size
Bison lexer internals.
#define YY_CURRENT_BUFFER
#define YY_STATE_BUF_SIZE
void yyunput(int c, char *buf_ptr)
void yypop_buffer_state()
virtual void LexerError(const char *msg)
int yy_at_bol
Bison lexer internals.
static yyconst flex_int16_t yy_chk[322]
void yy_load_buffer_state()
yyFlexLexer(FLEX_STD istream *arg_yyin=0, FLEX_STD ostream *arg_yyout=0)
int yy_bs_column
Bison lexer internals.
short int flex_int16_t
Bison lexer internals.
#define CONFIGSTRING2
Bison lexer internals.
virtual int LexerInput(char *buf, int max_size)
void set_debug(bool b)
Enables or disables debugging output.
std::istream * yy_input_file
Bison lexer internals.
char * yy_ch_buf
Bison lexer internals.
virtual void LexerOutput(const char *buf, int size)
#define EOB_ACT_LAST_MATCH
int yy_is_our_buffer
Bison lexer internals.
XdlScanner(std::istream *arg_yyin=0, std::ostream *arg_yyout=0)
Public constructor.
void yyensure_buffer_stack(void)
#define INITIAL
Special lexing state for config strings.
static yyconst flex_int16_t yy_base[179]
#define CONFIGSTRING
Bison lexer internals.
#define YY_RESTORE_YY_MORE_OFFSET
static yyconst flex_int32_t yy_ec[256]
torc::XdlParser::token token
Import the parser's token types into a local typedef.
void yyrestart(FLEX_STD istream *s)
flex_int32_t yy_verify
Bison lexer internals.
static yyconst flex_int16_t yy_acclist[232]
static yyconst flex_int16_t yy_accept[170]
void yy_delete_buffer(struct yy_buffer_state *b)
virtual void switch_streams(FLEX_STD istream *new_in, FLEX_STD ostream *new_out)
Header for the XdlScanner class.
torc::XdlParser::token_type token_type
static yyconst flex_int16_t yy_nxt[322]
#define YY_CURRENT_BUFFER_LVALUE
flex_int32_t yy_nxt
Bison lexer internals.
void yy_init_buffer(struct yy_buffer_state *b, FLEX_STD istream *s)
int yy_is_interactive
Bison lexer internals.
yy_state_type yy_get_previous_state()
int flex_int32_t
Bison lexer internals.
unsigned char YY_CHAR
Bison lexer internals.
unsigned char flex_uint8_t
int yy_buffer_status
Bison lexer internals.
#define YY_END_OF_BUFFER_CHAR
#define YY_BUFFER_EOF_PENDING
#define YY_DO_BEFORE_ACTION
struct yy_buffer_state * YY_BUFFER_STATE
#define EOB_ACT_CONTINUE_SCAN
static yyconst flex_int32_t yy_meta[44]