2 #define yy_create_buffer newick_create_buffer
3 #define yy_delete_buffer newick_delete_buffer
4 #define yy_scan_buffer newick_scan_buffer
5 #define yy_scan_string newick_scan_string
6 #define yy_scan_bytes newick_scan_bytes
7 #define yy_flex_debug newick_flex_debug
8 #define yy_init_buffer newick_init_buffer
9 #define yy_flush_buffer newick_flush_buffer
10 #define yy_load_buffer_state newick_load_buffer_state
11 #define yy_switch_to_buffer newick_switch_to_buffer
13 #define yyleng newickleng
14 #define yylex newicklex
15 #define yyout newickout
16 #define yyrestart newickrestart
17 #define yytext newicktext
19 #line 19 "lex.newick.cpp"
27 #define YY_FLEX_MAJOR_VERSION 2
28 #define YY_FLEX_MINOR_VERSION 5
78 #define YY_PROTO(proto) proto
80 #define YY_PROTO(proto) ()
91 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
97 #define BEGIN yy_start = 1 + 2 *
103 #define YY_START ((yy_start - 1) / 2)
104 #define YYSTATE YY_START
107 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
110 #define YY_NEW_FILE yyrestart( yyin )
112 #define YY_END_OF_BUFFER_CHAR 0
115 #define YY_BUF_SIZE 16384
122 #define EOB_ACT_CONTINUE_SCAN 0
123 #define EOB_ACT_END_OF_FILE 1
124 #define EOB_ACT_LAST_MATCH 2
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; \
153 #define unput(c) yyunput( c, yytext_ptr )
204 #define YY_BUFFER_NEW 0
205 #define YY_BUFFER_NORMAL 1
216 #define YY_BUFFER_EOF_PENDING 2
225 #define YY_CURRENT_BUFFER yy_current_buffer
254 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
264 #define yy_new_buffer yy_create_buffer
266 #define yy_set_interactive(is_interactive) \
268 if ( ! yy_current_buffer ) \
269 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
270 yy_current_buffer->yy_is_interactive = is_interactive; \
273 #define yy_set_bol(at_bol) \
275 if ( ! yy_current_buffer ) \
276 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
277 yy_current_buffer->yy_at_bol = at_bol; \
280 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
284 #define YY_SKIP_YYWRAP
289 #define yytext_ptr yytext
299 #define YY_DO_BEFORE_ACTION \
300 yytext_ptr = yy_bp; \
301 yyleng = (int) (yy_cp - yy_bp); \
302 yy_hold_char = *yy_cp; \
306 #define YY_NUM_RULES 7
307 #define YY_END_OF_BUFFER 8
310 4, 4, 4, 4, 8, 3, 2, 2, 6, 6,
311 5, 3, 3, 1, 3, 0, 4, 3, 1, 1,
317 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
318 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
319 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
320 1, 2, 1, 1, 1, 1, 1, 1, 4, 5,
321 5, 1, 6, 5, 6, 7, 1, 8, 8, 8,
322 8, 8, 8, 8, 8, 8, 8, 9, 5, 1,
323 1, 1, 1, 1, 1, 1, 1, 1, 10, 1,
324 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
325 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
326 5, 1, 5, 1, 1, 1, 1, 1, 1, 1,
328 10, 1, 1, 1, 1, 1, 1, 1, 1, 1,
329 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
330 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
331 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
332 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
333 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
334 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
335 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
336 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
337 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
339 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
340 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
341 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
342 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
343 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
349 1, 2, 2, 2, 2, 1, 1, 1, 2, 1
354 0, 0, 5, 0, 29, 0, 30, 30, 24, 30,
355 30, 7, 19, 16, 0, 21, 20, 0, 0, 13,
356 10, 18, 13, 0, 30, 16, 18
361 25, 1, 1, 3, 25, 26, 25, 25, 27, 25,
362 25, 26, 26, 12, 26, 27, 25, 13, 14, 13,
363 13, 27, 13, 23, 0, 25, 25
368 6, 7, 8, 9, 10, 6, 6, 6, 11, 6,
369 12, 13, 14, 18, 19, 23, 15, 24, 16, 16,
370 24, 17, 21, 22, 17, 21, 20, 17, 25, 5,
371 25, 25, 25, 25, 25, 25, 25, 25, 25, 25
376 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
377 3, 3, 3, 12, 12, 21, 26, 21, 27, 27,
378 23, 22, 20, 17, 16, 14, 13, 9, 5, 25,
379 25, 25, 25, 25, 25, 25, 25, 25, 25, 25
388 #define REJECT reject_used_but_not_detected
389 #define yymore() yymore_used_but_not_detected
390 #define YY_MORE_ADJ 0
391 #define YY_RESTORE_YY_MORE_OFFSET
433 #line 44 "newick.lpp"
439 #define YY_NO_UNPUT 1
449 #define YY_INPUT(buf, result, max_size) \
451 result = CStreamUtils::Readsome(*g_NewickIstr, buf, max_size); \
452 if (result == 0 && !*g_NewickIstr) { \
457 #define YY_NEVER_INTERACTIVE 1
460 #line 461 "lex.newick.cpp"
466 #ifndef YY_SKIP_YYWRAP
475 static void yyunput
YY_PROTO((
int c,
char *buf_ptr ));
482 #ifdef YY_NEED_STRLEN
488 static int yyinput
YY_PROTO((
void ));
495 static int yy_start_stack_ptr = 0;
496 static int yy_start_stack_depth = 0;
497 static int *yy_start_stack = 0;
498 #ifndef YY_NO_PUSH_STATE
499 static void yy_push_state
YY_PROTO((
int new_state ));
501 #ifndef YY_NO_POP_STATE
502 static void yy_pop_state
YY_PROTO((
void ));
504 #ifndef YY_NO_TOP_STATE
505 static int yy_top_state
YY_PROTO((
void ));
509 #define YY_NO_PUSH_STATE 1
510 #define YY_NO_POP_STATE 1
511 #define YY_NO_TOP_STATE 1
514 #ifdef YY_MALLOC_DECL
530 #ifndef YY_READ_BUF_SIZE
531 #define YY_READ_BUF_SIZE 8192
540 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
547 #define YY_INPUT(buf,result,max_size) \
548 if ( yy_current_buffer->yy_is_interactive ) \
551 for ( n = 0; n < max_size && \
552 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
555 buf[n++] = (char) c; \
556 if ( c == EOF && ferror( yyin ) ) \
557 YY_FATAL_ERROR( "input in flex scanner failed" ); \
560 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
561 && ferror( yyin ) ) \
562 YY_FATAL_ERROR( "input in flex scanner failed" );
570 #define yyterminate() return YY_NULL
574 #ifndef YY_START_STACK_INCR
575 #define YY_START_STACK_INCR 25
579 #ifndef YY_FATAL_ERROR
580 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
587 #define YY_DECL int yylex YY_PROTO(( void ))
593 #ifndef YY_USER_ACTION
594 #define YY_USER_ACTION
599 #define YY_BREAK break;
602 #define YY_RULE_SETUP \
611 #line 75 "newick.lpp"
614 #line 615 "lex.newick.cpp"
699 #line 77 "newick.lpp"
708 #line 83 "newick.lpp"
713 #line 85 "newick.lpp"
716 for (
unsigned int i = 0;
i <
g_Buffer.size(); ++
i) {
728 #line 97 "newick.lpp"
732 for (
unsigned int i = 1;
i < strlen(
yytext) - 1; ++
i) {
745 #line 111 "newick.lpp"
753 #line 116 "newick.lpp"
758 #line 118 "newick.lpp"
761 #line 762 "lex.newick.cpp"
890 "fatal flex scanner internal error--no action found" );
908 int number_to_move,
i;
913 "fatal flex scanner internal error--end of buffer missed" );
939 for (
i = 0;
i < number_to_move; ++
i )
953 while ( num_to_read <= 0 )
955 #ifdef YY_USES_REJECT
957 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
963 int yy_c_buf_p_offset =
966 if (
b->yy_is_our_buffer )
968 int new_size =
b->yy_buf_size * 2;
971 b->yy_buf_size +=
b->yy_buf_size / 8;
975 b->yy_ch_buf = (
char *)
978 b->yy_buf_size + 2 );
984 if ( !
b->yy_ch_buf )
986 "fatal error - scanner input buffer overflow" );
1070 #ifdef YY_USE_PROTOS
1100 #ifdef YY_USE_PROTOS
1101 static void yyunput(
int c,
char *yy_bp )
1103 static void yyunput( c, yy_bp )
1113 if ( yy_cp < yy_current_buffer->
yy_ch_buf + 2 )
1130 if ( yy_cp < yy_current_buffer->
yy_ch_buf + 2 )
1134 *--
yy_cp = (char) c;
1145 static int yyinput()
1217 #ifdef YY_USE_PROTOS
1232 #ifdef YY_USE_PROTOS
1262 #ifdef YY_USE_PROTOS
1275 #ifdef YY_USE_PROTOS
1295 if ( !
b->yy_ch_buf )
1298 b->yy_is_our_buffer = 1;
1306 #ifdef YY_USE_PROTOS
1319 if (
b->yy_is_our_buffer )
1326 #ifndef YY_ALWAYS_INTERACTIVE
1327 #ifndef YY_NEVER_INTERACTIVE
1328 extern int isatty
YY_PROTO((
int ));
1332 #ifdef YY_USE_PROTOS
1345 b->yy_fill_buffer = 1;
1347 #if YY_ALWAYS_INTERACTIVE
1348 b->yy_is_interactive = 1;
1350 #if YY_NEVER_INTERACTIVE
1351 b->yy_is_interactive = 0;
1353 b->yy_is_interactive =
file ? (isatty( fileno(
file) ) > 0) : 0;
1359 #ifdef YY_USE_PROTOS
1379 b->yy_buf_pos = &
b->yy_ch_buf[0];
1389 #ifndef YY_NO_SCAN_BUFFER
1390 #ifdef YY_USE_PROTOS
1410 b->yy_buf_size =
size - 2;
1411 b->yy_buf_pos =
b->yy_ch_buf = base;
1412 b->yy_is_our_buffer = 0;
1413 b->yy_input_file = 0;
1414 b->yy_n_chars =
b->yy_buf_size;
1415 b->yy_is_interactive = 0;
1417 b->yy_fill_buffer = 0;
1427 #ifndef YY_NO_SCAN_STRING
1428 #ifdef YY_USE_PROTOS
1444 #ifndef YY_NO_SCAN_BYTES
1445 #ifdef YY_USE_PROTOS
1476 b->yy_is_our_buffer = 1;
1483 #ifndef YY_NO_PUSH_STATE
1484 #ifdef YY_USE_PROTOS
1485 static void yy_push_state(
int new_state )
1487 static void yy_push_state( new_state )
1491 if ( yy_start_stack_ptr >= yy_start_stack_depth )
1496 new_size = yy_start_stack_depth *
sizeof(
int );
1498 if ( ! yy_start_stack )
1503 (
void *) yy_start_stack, new_size );
1505 if ( ! yy_start_stack )
1507 "out of memory expanding start-condition stack" );
1510 yy_start_stack[yy_start_stack_ptr++] =
YY_START;
1517 #ifndef YY_NO_POP_STATE
1518 static void yy_pop_state()
1520 if ( --yy_start_stack_ptr < 0 )
1523 BEGIN(yy_start_stack[yy_start_stack_ptr]);
1528 #ifndef YY_NO_TOP_STATE
1529 static int yy_top_state()
1531 return yy_start_stack[yy_start_stack_ptr - 1];
1535 #ifndef YY_EXIT_FAILURE
1536 #define YY_EXIT_FAILURE 2
1539 #ifdef YY_USE_PROTOS
1546 (void) fprintf( stderr,
"%s\n",
msg );
1559 yytext[yyleng] = yy_hold_char; \
1560 yy_c_buf_p = yytext + n; \
1561 yy_hold_char = *yy_c_buf_p; \
1562 *yy_c_buf_p = '\0'; \
1571 #ifdef YY_USE_PROTOS
1572 static void yy_flex_strncpy(
char *s1,
yyconst char *s2,
int n )
1574 static void yy_flex_strncpy( s1, s2,
n )
1581 for (
i = 0;
i <
n; ++
i )
1586 #ifdef YY_NEED_STRLEN
1587 #ifdef YY_USE_PROTOS
1588 static int yy_flex_strlen(
yyconst char *s )
1590 static int yy_flex_strlen( s )
1595 for (
n = 0; s[
n]; ++
n )
1603 #ifdef YY_USE_PROTOS
1613 #ifdef YY_USE_PROTOS
1628 return (
void *) realloc( (
char *) ptr,
size );
1631 #ifdef YY_USE_PROTOS
1648 #line 118 "newick.lpp"
int main(int argc, const char *argv[])
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
unsigned int
A callback function used to compare two keys in a database.
#define yy_load_buffer_state
void newick_flex_reset(void)
static yy_state_type yy_last_accepting_state
#define YY_START_STACK_INCR
static int yy_did_buffer_switch_on_eof
static short int yy_accept[26]
static yy_state_type yy_try_NUL_trans()
struct yy_buffer_state * YY_BUFFER_STATE
static void yy_fatal_error()
#define YY_RESTORE_YY_MORE_OFFSET
#define EOB_ACT_END_OF_FILE
static short int yy_nxt[41]
static int yy_get_next_buffer()
#define yy_switch_to_buffer
static void * yy_flex_alloc()
static void yy_flex_free()
static short int yy_def[28]
#define YY_INPUT(buf, result, max_size)
#define YY_STATE_EOF(state)
#define YY_END_OF_BUFFER_CHAR
#define YY_FATAL_ERROR(msg)
static yy_state_type yy_get_previous_state()
static short int yy_chk[41]
#define YY_DO_BEFORE_ACTION
static short int yy_base[28]
#define EOB_ACT_LAST_MATCH
CNcbiIstream * g_NewickIstr
#define YY_BUFFER_EOF_PENDING
#define EOB_ACT_CONTINUE_SCAN
static YY_BUFFER_STATE yy_current_buffer
static void * yy_flex_realloc()
static char * yy_last_accepting_cpos
Magic spell ;-) needed for some weird compilers... very empiric.
const CharType(& source)[N]
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)