From 636e360eea3a0faadd669a409b76fae372c6c38b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 17 Nov 2007 22:21:42 +0000 Subject: Remove broken c based parser code git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3192 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- bitbake/lib/bb/parse/parse_c/bitbakescanner.cc | 3209 ------------------------ 1 file changed, 3209 deletions(-) delete mode 100644 bitbake/lib/bb/parse/parse_c/bitbakescanner.cc (limited to 'bitbake/lib/bb/parse/parse_c/bitbakescanner.cc') diff --git a/bitbake/lib/bb/parse/parse_c/bitbakescanner.cc b/bitbake/lib/bb/parse/parse_c/bitbakescanner.cc deleted file mode 100644 index acc13f7c3..000000000 --- a/bitbake/lib/bb/parse/parse_c/bitbakescanner.cc +++ /dev/null @@ -1,3209 +0,0 @@ - -#line 3 "" - -#define YY_INT_ALIGNED short int - -/* A lexical scanner generated by flex */ - -#define FLEX_SCANNER -#define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 33 -#if YY_FLEX_SUBMINOR_VERSION > 0 -#define FLEX_BETA -#endif - -/* First, we deal with platform-specific or compiler-specific issues. */ - -/* begin standard C headers. */ -#include -#include -#include -#include - -/* end standard C headers. */ - -/* flex integer type definitions */ - -#ifndef FLEXINT_H -#define FLEXINT_H - -/* C99 systems have . Non-C99 systems may or may not. */ - -#if __STDC_VERSION__ >= 199901L - -/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. - */ -#ifndef __STDC_LIMIT_MACROS -#define __STDC_LIMIT_MACROS 1 -#endif - -#include -typedef int8_t flex_int8_t; -typedef uint8_t flex_uint8_t; -typedef int16_t flex_int16_t; -typedef uint16_t flex_uint16_t; -typedef int32_t flex_int32_t; -typedef uint32_t flex_uint32_t; -#else -typedef signed char flex_int8_t; -typedef short int flex_int16_t; -typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; -typedef unsigned short int flex_uint16_t; -typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ - -/* Limits of integral types. */ -#ifndef INT8_MIN -#define INT8_MIN (-128) -#endif -#ifndef INT16_MIN -#define INT16_MIN (-32767-1) -#endif -#ifndef INT32_MIN -#define INT32_MIN (-2147483647-1) -#endif -#ifndef INT8_MAX -#define INT8_MAX (127) -#endif -#ifndef INT16_MAX -#define INT16_MAX (32767) -#endif -#ifndef INT32_MAX -#define INT32_MAX (2147483647) -#endif -#ifndef UINT8_MAX -#define UINT8_MAX (255U) -#endif -#ifndef UINT16_MAX -#define UINT16_MAX (65535U) -#endif -#ifndef UINT32_MAX -#define UINT32_MAX (4294967295U) -#endif - -#endif /* ! FLEXINT_H */ - -#ifdef __cplusplus - -/* The "const" storage-class-modifier is valid. */ -#define YY_USE_CONST - -#else /* ! __cplusplus */ - -#if __STDC__ - -#define YY_USE_CONST - -#endif /* __STDC__ */ -#endif /* ! __cplusplus */ - -#ifdef YY_USE_CONST -#define yyconst const -#else -#define yyconst -#endif - -/* Returned upon end-of-file. */ -#define YY_NULL 0 - -/* Promotes a possibly negative, possibly signed char to an unsigned - * integer for use as an array index. If the signed char is negative, - * we want to instead treat it as an 8-bit unsigned char, hence the - * double cast. - */ -#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) - -/* An opaque pointer. */ -#ifndef YY_TYPEDEF_YY_SCANNER_T -#define YY_TYPEDEF_YY_SCANNER_T -typedef void* yyscan_t; -#endif - -/* For convenience, these vars (plus the bison vars far below) - are macros in the reentrant scanner. */ -#define yyin yyg->yyin_r -#define yyout yyg->yyout_r -#define yyextra yyg->yyextra_r -#define yyleng yyg->yyleng_r -#define yytext yyg->yytext_r -#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) -#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) -#define yy_flex_debug yyg->yy_flex_debug_r - -int yylex_init (yyscan_t* scanner); - -/* Enter a start condition. This macro really ought to take a parameter, - * but we do it the disgusting crufty way forced on us by the ()-less - * definition of BEGIN. - */ -#define BEGIN yyg->yy_start = 1 + 2 * - -/* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. The YYSTATE alias is for lex - * compatibility. - */ -#define YY_START ((yyg->yy_start - 1) / 2) -#define YYSTATE YY_START - -/* Action number for EOF rule of a given start state. */ -#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) - -/* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart(yyin ,yyscanner ) - -#define YY_END_OF_BUFFER_CHAR 0 - -/* Size of default input buffer. */ -#ifndef YY_BUF_SIZE -#define YY_BUF_SIZE 16384 -#endif - -/* The state buf must be large enough to hold one state per character in the main buffer. - */ -#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) - -#ifndef YY_TYPEDEF_YY_BUFFER_STATE -#define YY_TYPEDEF_YY_BUFFER_STATE -typedef struct yy_buffer_state *YY_BUFFER_STATE; -#endif - -#define EOB_ACT_CONTINUE_SCAN 0 -#define EOB_ACT_END_OF_FILE 1 -#define EOB_ACT_LAST_MATCH 2 - - /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires - * access to the local variable yy_act. Since yyless() is a macro, it would break - * existing scanners that call yyless() from OUTSIDE yylex. - * One obvious solution it to make yy_act a global. I tried that, and saw - * a 5% performance hit in a non-yylineno scanner, because yy_act is - * normally declared as a register variable-- so it is not worth it. - */ - #define YY_LESS_LINENO(n) \ - do { \ - int yyl;\ - for ( yyl = n; yyl < yyleng; ++yyl )\ - if ( yytext[yyl] == '\n' )\ - --yylineno;\ - }while(0) - -/* Return all but the first "n" matched characters back to the input stream. */ -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = yyg->yy_hold_char; \ - YY_RESTORE_YY_MORE_OFFSET \ - yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) - -#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) - -/* The following is because we cannot portably get our hands on size_t - * (without autoconf's help, which isn't available because we want - * flex-generated scanners to compile on their own). - */ - -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef unsigned int yy_size_t; -#endif - -#ifndef YY_STRUCT_YY_BUFFER_STATE -#define YY_STRUCT_YY_BUFFER_STATE -struct yy_buffer_state - { - FILE *yy_input_file; - - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - yy_size_t yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; - - int yy_bs_lineno; /**< The line count. */ - int yy_bs_column; /**< The column count. */ - - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; - - int yy_buffer_status; - -#define YY_BUFFER_NEW 0 -#define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via yyrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -#define YY_BUFFER_EOF_PENDING 2 - - }; -#endif /* !YY_STRUCT_YY_BUFFER_STATE */ - -/* We provide macros for accessing buffer states in case in the - * future we want to put the buffer states in a more general - * "scanner state". - * - * Returns the top of the stack, or NULL. - */ -#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ - ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ - : NULL) - -/* Same as previous macro, but useful when we know that the buffer stack is not - * NULL or when we need an lvalue. For internal use only. - */ -#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] - -void yyrestart (FILE *input_file ,yyscan_t yyscanner ); -void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner ); -void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); -void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); -void yypop_buffer_state (yyscan_t yyscanner ); - -static void yyensure_buffer_stack (yyscan_t yyscanner ); -static void yy_load_buffer_state (yyscan_t yyscanner ); -static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner ); - -#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner) - -YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); - -void *yyalloc (yy_size_t ,yyscan_t yyscanner ); -void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner ); -void yyfree (void * ,yyscan_t yyscanner ); - -#define yy_new_buffer yy_create_buffer - -#define yy_set_interactive(is_interactive) \ - { \ - if ( ! YY_CURRENT_BUFFER ){ \ - yyensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } - -#define yy_set_bol(at_bol) \ - { \ - if ( ! YY_CURRENT_BUFFER ){\ - yyensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } - -#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) - -/* Begin user sect3 */ - -#define yywrap(n) 1 -#define YY_SKIP_YYWRAP - -typedef unsigned char YY_CHAR; - -typedef int yy_state_type; - -#define yytext_ptr yytext_r - -static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); -static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner); -static int yy_get_next_buffer (yyscan_t yyscanner ); -static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner ); - -/* Done after the current pattern has been matched and before the - * corresponding action - sets up yytext. - */ -#define YY_DO_BEFORE_ACTION \ - yyg->yytext_ptr = yy_bp; \ - yyleng = (size_t) (yy_cp - yy_bp); \ - yyg->yy_hold_char = *yy_cp; \ - *yy_cp = '\0'; \ - yyg->yy_c_buf_p = yy_cp; - -#define YY_NUM_RULES 47 -#define YY_END_OF_BUFFER 48 -/* This struct is not used in this scanner, - but its presence is necessary. */ -struct yy_trans_info - { - flex_int32_t yy_verify; - flex_int32_t yy_nxt; - }; -static yyconst flex_int16_t yy_accept[813] = - { 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 26, 26, 0, 0, - 0, 0, 48, 46, 45, 45, 46, 46, 46, 46, - 46, 46, 4, 46, 35, 35, 35, 35, 35, 35, - 35, 35, 35, 28, 28, 28, 28, 28, 28, 46, - 45, 30, 45, 46, 46, 46, 46, 29, 4, 46, - 46, 46, 46, 46, 46, 33, 33, 32, 33, 33, - 33, 33, 33, 33, 4, 33, 33, 33, 33, 33, - 33, 43, 38, 38, 38, 38, 38, 38, 46, 40, - 40, 40, 40, 40, 40, 40, 44, 39, 39, 39, - - 39, 39, 39, 46, 41, 41, 41, 41, 41, 41, - 41, 26, 26, 26, 26, 26, 26, 26, 26, 4, - 26, 26, 26, 26, 26, 26, 25, 11, 45, 12, - 11, 46, 11, 46, 11, 11, 11, 11, 4, 11, - 11, 11, 11, 11, 11, 11, 42, 37, 37, 37, - 37, 37, 37, 37, 0, 34, 36, 0, 0, 1, - 5, 3, 2, 6, 7, 0, 35, 0, 35, 35, - 35, 35, 35, 35, 35, 35, 28, 28, 28, 28, - 28, 28, 0, 29, 0, 30, 0, 29, 0, 0, - 1, 5, 2, 6, 7, 0, 0, 0, 0, 0, - - 0, 0, 31, 0, 0, 0, 0, 0, 38, 38, - 38, 38, 38, 38, 0, 0, 40, 40, 40, 40, - 40, 40, 39, 39, 39, 39, 39, 39, 0, 0, - 41, 41, 41, 41, 41, 41, 26, 26, 26, 26, - 26, 26, 1, 5, 3, 2, 6, 7, 26, 26, - 26, 26, 26, 25, 25, 11, 0, 11, 0, 12, - 0, 9, 0, 11, 0, 11, 0, 10, 0, 0, - 11, 1, 5, 3, 2, 6, 7, 11, 8, 11, - 11, 11, 11, 37, 37, 37, 37, 37, 37, 37, - 37, 36, 0, 24, 0, 0, 36, 35, 35, 27, - - 35, 35, 35, 35, 35, 35, 28, 28, 27, 28, - 28, 28, 0, 24, 0, 0, 27, 0, 0, 0, - 0, 0, 27, 0, 0, 0, 38, 38, 27, 38, - 38, 38, 0, 0, 40, 40, 27, 40, 40, 40, - 39, 39, 27, 39, 39, 39, 0, 0, 41, 41, - 27, 41, 41, 41, 26, 24, 26, 26, 26, 26, - 26, 26, 34, 0, 11, 11, 8, 11, 11, 11, - 11, 11, 37, 37, 37, 37, 27, 37, 37, 37, - 24, 24, 0, 35, 35, 35, 35, 35, 35, 35, - 35, 35, 28, 28, 28, 28, 28, 28, 24, 0, - - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 38, 38, 38, 38, 38, 38, 0, 40, 0, - 40, 40, 40, 40, 40, 40, 39, 39, 39, 39, - 39, 39, 0, 41, 0, 41, 41, 41, 41, 41, - 41, 24, 24, 26, 26, 26, 26, 26, 26, 24, - 11, 11, 11, 11, 11, 11, 37, 37, 37, 37, - 37, 37, 37, 37, 0, 36, 35, 35, 35, 35, - 35, 35, 35, 35, 35, 28, 28, 28, 28, 28, - 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 38, 38, 38, 38, 38, 38, 0, - - 40, 40, 40, 40, 40, 40, 40, 39, 39, 39, - 39, 39, 39, 0, 41, 41, 41, 41, 41, 41, - 41, 26, 26, 26, 26, 26, 26, 11, 11, 11, - 11, 11, 11, 37, 37, 37, 20, 37, 37, 37, - 37, 35, 35, 35, 21, 35, 35, 35, 23, 35, - 28, 28, 28, 28, 28, 28, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 38, 38, - 38, 38, 38, 38, 40, 40, 40, 40, 40, 40, - 39, 39, 39, 39, 39, 39, 41, 41, 41, 41, - 41, 41, 26, 26, 26, 26, 26, 26, 11, 11, - - 11, 11, 11, 11, 37, 37, 37, 19, 37, 37, - 37, 35, 35, 16, 35, 13, 15, 14, 28, 28, - 16, 13, 15, 14, 0, 0, 16, 13, 15, 14, - 0, 0, 16, 13, 15, 14, 38, 38, 16, 13, - 15, 14, 40, 40, 16, 13, 15, 14, 39, 39, - 16, 13, 15, 14, 41, 41, 16, 13, 15, 14, - 26, 26, 16, 13, 15, 14, 11, 11, 11, 11, - 11, 11, 37, 37, 16, 13, 15, 14, 35, 35, - 22, 28, 28, 0, 0, 0, 0, 38, 38, 40, - 40, 39, 39, 41, 41, 26, 26, 11, 11, 37, - - 37, 35, 35, 28, 28, 0, 0, 0, 0, 38, - 38, 40, 40, 39, 39, 41, 41, 26, 26, 11, - 11, 37, 37, 35, 17, 28, 17, 0, 17, 0, - 17, 38, 17, 40, 17, 39, 17, 41, 17, 26, - 17, 11, 11, 37, 17, 35, 28, 0, 0, 38, - 40, 39, 41, 26, 11, 37, 35, 28, 0, 0, - 38, 40, 39, 41, 26, 11, 37, 35, 28, 0, - 0, 38, 40, 39, 41, 26, 11, 37, 35, 28, - 0, 0, 38, 40, 39, 41, 26, 11, 37, 35, - 28, 0, 0, 38, 40, 39, 41, 26, 11, 37, - - 18, 18, 18, 18, 18, 18, 18, 18, 18, 11, - 18, 0 - } ; - -static yyconst flex_int32_t yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 1, 5, 6, 7, 1, 1, 8, 9, - 10, 1, 11, 12, 13, 14, 15, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 17, 1, 1, - 18, 1, 19, 1, 20, 20, 21, 20, 22, 23, - 20, 20, 24, 20, 20, 20, 20, 25, 26, 27, - 20, 28, 29, 30, 31, 20, 20, 32, 20, 20, - 33, 34, 35, 1, 36, 1, 37, 38, 39, 40, - - 41, 42, 20, 43, 44, 20, 45, 46, 20, 47, - 48, 49, 50, 51, 52, 53, 54, 20, 20, 55, - 56, 20, 57, 1, 58, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; - -static yyconst flex_int32_t yy_meta[59] = - { 0, - 1, 1, 2, 3, 1, 1, 4, 1, 1, 1, - 5, 6, 5, 5, 5, 7, 1, 8, 1, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 10, 1, 11, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 1, 12 - } ; - -static yyconst flex_int16_t yy_base[847] = - { 0, - 0, 0, 58, 0, 115, 165, 215, 265, 316, 0, - 374, 0, 432, 0, 490, 0, 547, 604, 661, 711, - 762, 0, 2308, 2309, 2309, 2309, 2304, 0, 118, 2288, - 2287, 2286, 111, 2285, 116, 124, 120, 129, 131, 128, - 144, 139, 140, 0, 2270, 2261, 2259, 2252, 2257, 2280, - 137, 2309, 2279, 127, 183, 124, 171, 2277, 187, 179, - 126, 163, 158, 131, 173, 2309, 204, 2309, 2309, 2291, - 210, 2275, 2274, 2273, 197, 2272, 2257, 2248, 2246, 2239, - 2244, 2309, 0, 2252, 2243, 2241, 2234, 2239, 2222, 218, - 220, 221, 223, 224, 228, 236, 2309, 0, 2246, 2237, - - 2235, 2228, 2233, 2216, 233, 238, 240, 255, 263, 242, - 273, 2269, 2268, 2267, 2266, 283, 285, 289, 293, 287, - 294, 160, 210, 207, 147, 220, 297, 552, 560, 2265, - 565, 210, 569, 544, 580, 622, 627, 634, 623, 669, - 689, 819, 684, 702, 821, 823, 2309, 0, 2235, 266, - 2225, 2224, 2217, 2222, 2259, 2309, 548, 566, 581, 2309, - 2309, 2309, 2309, 2309, 2309, 2204, 568, 2225, 626, 610, - 640, 651, 699, 823, 678, 702, 0, 2232, 2218, 2215, - 550, 2206, 2238, 2309, 577, 2309, 261, 2251, 594, 830, - 2236, 2235, 2234, 2233, 2232, 575, 580, 634, 710, 599, - - 2245, 735, 2309, 2220, 2206, 2203, 703, 2194, 0, 2216, - 2202, 2199, 711, 2190, 0, 2182, 681, 827, 830, 831, - 826, 828, 0, 2211, 2197, 2194, 717, 2185, 0, 2177, - 740, 832, 834, 833, 853, 854, 2230, 2229, 2228, 2227, - 874, 840, 2226, 2225, 2224, 2223, 2222, 2221, 592, 254, - 651, 855, 833, 737, 2220, 877, 897, 898, 878, 2219, - 881, 883, 886, 905, 916, 920, 700, 859, 906, 925, - 936, 940, 941, 950, 955, 960, 964, 974, 2219, 975, - 983, 994, 995, 0, 2193, 2179, 2165, 2175, 2174, 718, - 2165, 883, 910, 934, 0, 2179, 2309, 979, 971, 940, - - 974, 954, 985, 999, 983, 1003, 2187, 968, 0, 2166, - 2170, 2156, 1017, 1036, 583, 1003, 2192, 996, 685, 917, - 2182, 998, 2309, 2161, 2165, 2151, 2178, 1001, 0, 2157, - 2161, 2147, 2142, 0, 1040, 1041, 946, 1042, 1045, 1043, - 2173, 1012, 0, 2152, 2156, 2142, 2137, 0, 1055, 1057, - 1060, 1061, 1062, 1064, 1074, 1087, 1067, 1069, 2191, 1080, - 1082, 687, 1090, 1094, 1103, 1112, 2191, 1111, 1125, 1127, - 1134, 1142, 2166, 1048, 2150, 2142, 0, 2143, 2147, 2133, - 1138, 2183, 2127, 1127, 1141, 1146, 1136, 1149, 1151, 1155, - 1156, 1158, 2156, 2146, 2145, 2127, 2129, 2135, 1164, 1087, - - 1006, 1135, 1132, 595, 912, 2150, 2140, 2139, 2121, 2123, - 2129, 2144, 2134, 2133, 2115, 2117, 2123, 2108, 1183, 2107, - 1185, 1190, 1191, 1192, 1200, 1204, 2136, 2126, 2125, 2107, - 2109, 2115, 2100, 1205, 2099, 1207, 1208, 1212, 1213, 1214, - 1222, 1168, 2153, 923, 1084, 1213, 1182, 1106, 1190, 1236, - 1250, 1251, 1252, 1266, 1267, 1271, 2127, 2117, 2116, 2101, - 2100, 2096, 2098, 2104, 2089, 1210, 1257, 1230, 1273, 1274, - 1275, 1276, 1284, 1286, 1288, 2116, 2098, 2092, 2103, 2098, - 2090, 1280, 1177, 1244, 1282, 1285, 1275, 2110, 2092, 2086, - 2097, 2092, 2084, 2104, 2086, 2080, 2091, 2086, 2078, 2070, - - 1296, 1306, 1323, 1324, 1325, 1327, 1328, 2097, 2079, 2073, - 2084, 2079, 2071, 2063, 1330, 1331, 1333, 1337, 1345, 1340, - 1346, 1347, 1309, 1259, 1351, 1354, 1356, 1370, 1385, 1394, - 1401, 1403, 1408, 2090, 2072, 2066, 0, 2076, 2076, 2071, - 2063, 1359, 1361, 1379, 1355, 1407, 1410, 1411, 1415, 1416, - 2077, 2072, 2066, 2069, 2056, 2067, 1398, 1343, 1408, 1404, - 643, 1409, 2071, 2066, 2060, 2063, 2050, 2061, 2065, 2060, - 2054, 2057, 2044, 2055, 1420, 1445, 1413, 1447, 1453, 1454, - 2059, 2053, 2047, 2049, 2032, 2043, 1455, 1459, 1460, 1461, - 1462, 1463, 1471, 1436, 1430, 1192, 1433, 1479, 1482, 1492, - - 1506, 1519, 1520, 1528, 2046, 2037, 2031, 0, 2033, 2016, - 2027, 1486, 1496, 1505, 1506, 1510, 1516, 1524, 2043, 2015, - 0, 0, 0, 0, 1281, 1517, 2043, 2041, 2036, 2034, - 2024, 1995, 2309, 2309, 2309, 2309, 2005, 1981, 0, 0, - 0, 0, 1538, 1528, 1530, 1534, 1537, 1540, 1981, 1957, - 0, 0, 0, 0, 1557, 1558, 1559, 1560, 1561, 1563, - 1568, 1547, 1988, 1959, 1955, 1948, 1580, 1581, 1582, 1590, - 1592, 1594, 1924, 1863, 0, 0, 0, 0, 1598, 1599, - 1600, 1875, 1859, 1350, 1584, 1803, 1792, 1801, 1790, 1603, - 1601, 1799, 1788, 1604, 1602, 1610, 1609, 1643, 1644, 1797, - - 1786, 1611, 1630, 1800, 1773, 1010, 1606, 1798, 1771, 1795, - 1768, 1640, 1646, 1793, 1766, 1648, 1649, 1614, 1379, 1667, - 1674, 1791, 1764, 1647, 1653, 1793, 0, 1352, 1796, 1791, - 2309, 1790, 0, 1677, 1652, 1789, 0, 1681, 1676, 1480, - 1805, 1685, 1702, 1786, 0, 1682, 1775, 1679, 1774, 1769, - 1696, 1768, 1698, 1688, 1715, 1765, 1706, 1765, 1472, 1763, - 1757, 1714, 1753, 1717, 1719, 1729, 1703, 1722, 1685, 1645, - 1604, 1546, 1726, 1466, 1733, 1635, 1752, 1403, 1739, 1349, - 1725, 1269, 1222, 1740, 1217, 1749, 1758, 1768, 1155, 1755, - 1148, 1481, 1096, 1001, 1761, 866, 1762, 1763, 1792, 834, - - 1768, 0, 742, 2309, 0, 1764, 0, 1778, 678, 1801, - 0, 2309, 1835, 1847, 1859, 1871, 1883, 550, 1892, 1898, - 1907, 1919, 1931, 1939, 1945, 1950, 1956, 1965, 1977, 1989, - 2001, 2013, 2025, 2033, 2039, 2043, 306, 304, 301, 2050, - 213, 2058, 136, 2066, 2074, 2082 - } ; - -static yyconst flex_int16_t yy_def[847] = - { 0, - 812, 1, 812, 3, 813, 813, 814, 814, 812, 9, - 812, 11, 812, 13, 812, 15, 815, 815, 816, 816, - 812, 21, 812, 812, 812, 812, 817, 818, 812, 812, - 812, 812, 812, 812, 819, 819, 819, 819, 819, 819, - 819, 819, 819, 820, 820, 820, 820, 820, 820, 821, - 821, 812, 821, 822, 821, 821, 821, 812, 821, 821, - 821, 821, 821, 821, 821, 812, 823, 812, 812, 817, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 824, 824, 824, 824, 824, 824, 812, 825, - 825, 825, 825, 825, 825, 825, 812, 826, 826, 826, - - 826, 826, 826, 812, 827, 827, 827, 827, 827, 827, - 827, 828, 828, 828, 829, 828, 828, 828, 828, 828, - 828, 828, 828, 828, 828, 828, 812, 830, 812, 812, - 830, 831, 832, 833, 830, 830, 830, 830, 830, 830, - 830, 830, 830, 830, 830, 830, 812, 834, 834, 834, - 834, 834, 834, 834, 817, 812, 835, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 819, 836, 819, 819, - 819, 819, 819, 819, 819, 819, 820, 820, 820, 820, - 820, 820, 821, 812, 821, 812, 822, 817, 821, 821, - 821, 821, 821, 821, 821, 821, 821, 821, 821, 821, - - 823, 823, 812, 812, 812, 812, 812, 812, 824, 824, - 824, 824, 824, 824, 837, 812, 825, 825, 825, 825, - 825, 825, 826, 826, 826, 826, 826, 826, 838, 812, - 827, 827, 827, 827, 827, 827, 828, 812, 829, 812, - 828, 828, 828, 828, 828, 828, 828, 828, 828, 828, - 828, 828, 828, 812, 812, 830, 830, 830, 812, 812, - 831, 831, 831, 832, 832, 832, 833, 833, 833, 830, - 830, 830, 830, 830, 830, 830, 830, 830, 812, 830, - 830, 830, 830, 834, 834, 834, 834, 834, 834, 834, - 834, 835, 812, 812, 839, 836, 812, 819, 819, 819, - - 819, 819, 819, 819, 819, 819, 820, 820, 820, 820, - 820, 820, 821, 821, 821, 821, 821, 821, 821, 821, - 812, 812, 812, 812, 812, 812, 824, 824, 824, 824, - 824, 824, 840, 841, 825, 825, 825, 825, 825, 825, - 826, 826, 826, 826, 826, 826, 842, 843, 827, 827, - 827, 827, 827, 827, 828, 828, 828, 828, 828, 828, - 828, 828, 830, 830, 830, 830, 812, 830, 830, 830, - 830, 830, 834, 834, 834, 834, 834, 834, 834, 834, - 812, 812, 844, 819, 819, 819, 819, 819, 819, 819, - 819, 819, 820, 820, 820, 820, 820, 820, 821, 821, - - 821, 821, 821, 821, 821, 812, 812, 812, 812, 812, - 812, 824, 824, 824, 824, 824, 824, 840, 825, 845, - 825, 825, 825, 825, 825, 825, 826, 826, 826, 826, - 826, 826, 842, 827, 846, 827, 827, 827, 827, 827, - 827, 828, 812, 828, 828, 828, 828, 828, 828, 830, - 830, 830, 830, 830, 830, 830, 834, 834, 834, 834, - 834, 834, 834, 834, 844, 835, 819, 819, 819, 819, - 819, 819, 819, 819, 819, 820, 820, 820, 820, 820, - 820, 821, 821, 821, 821, 821, 821, 812, 812, 812, - 812, 812, 812, 824, 824, 824, 824, 824, 824, 845, - - 825, 825, 825, 825, 825, 825, 825, 826, 826, 826, - 826, 826, 826, 846, 827, 827, 827, 827, 827, 827, - 827, 828, 828, 828, 828, 828, 828, 830, 830, 830, - 830, 830, 830, 834, 834, 834, 834, 834, 834, 834, - 834, 819, 819, 819, 819, 819, 819, 819, 819, 819, - 820, 820, 820, 820, 820, 820, 821, 821, 821, 821, - 821, 821, 812, 812, 812, 812, 812, 812, 824, 824, - 824, 824, 824, 824, 825, 825, 825, 825, 825, 825, - 826, 826, 826, 826, 826, 826, 827, 827, 827, 827, - 827, 827, 828, 828, 828, 828, 828, 828, 830, 830, - - 830, 830, 830, 830, 834, 834, 834, 834, 834, 834, - 834, 819, 819, 819, 819, 819, 819, 819, 820, 820, - 820, 820, 820, 820, 821, 821, 821, 821, 821, 821, - 812, 812, 812, 812, 812, 812, 824, 824, 824, 824, - 824, 824, 825, 825, 825, 825, 825, 825, 826, 826, - 826, 826, 826, 826, 827, 827, 827, 827, 827, 827, - 828, 828, 828, 828, 828, 828, 830, 830, 830, 830, - 830, 830, 834, 834, 834, 834, 834, 834, 819, 819, - 819, 820, 820, 821, 821, 812, 812, 824, 824, 825, - 825, 826, 826, 827, 827, 828, 828, 830, 830, 834, - - 834, 819, 819, 820, 820, 821, 821, 812, 812, 824, - 824, 825, 825, 826, 826, 827, 827, 828, 828, 830, - 830, 834, 834, 819, 819, 820, 820, 821, 821, 812, - 812, 824, 824, 825, 825, 826, 826, 827, 827, 828, - 828, 830, 830, 834, 834, 819, 820, 821, 812, 824, - 825, 826, 827, 828, 830, 834, 819, 820, 821, 812, - 824, 825, 826, 827, 828, 830, 834, 819, 820, 821, - 812, 824, 825, 826, 827, 828, 830, 834, 819, 820, - 821, 812, 824, 825, 826, 827, 828, 830, 834, 819, - 820, 821, 812, 824, 825, 826, 827, 828, 830, 834, - - 819, 820, 821, 812, 824, 825, 826, 827, 828, 830, - 834, 0, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812 - } ; - -static yyconst flex_int16_t yy_nxt[2368] = - { 0, - 24, 25, 26, 25, 24, 27, 28, 24, 29, 24, - 30, 24, 24, 31, 24, 24, 32, 33, 34, 35, - 35, 36, 35, 35, 35, 35, 35, 35, 35, 35, - 35, 35, 24, 24, 24, 35, 37, 35, 35, 38, - 39, 40, 35, 41, 35, 35, 35, 35, 42, 35, - 43, 35, 35, 35, 35, 35, 24, 24, 24, 25, - 26, 25, 24, 27, 24, 24, 29, 24, 30, 24, - 24, 31, 24, 24, 32, 33, 34, 44, 44, 45, - 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, - 24, 24, 24, 44, 46, 44, 44, 47, 44, 44, - - 44, 48, 44, 44, 44, 44, 44, 44, 49, 44, - 44, 44, 44, 44, 24, 24, 51, 52, 53, 158, - 54, 163, 166, 55, 164, 56, 166, 159, 57, 156, - 166, 58, 59, 60, 166, 166, 61, 166, 185, 186, - 184, 191, 184, 188, 435, 166, 166, 184, 168, 238, - 166, 62, 168, 184, 63, 169, 168, 196, 64, 170, - 168, 168, 238, 168, 173, 65, 51, 52, 53, 171, - 54, 168, 168, 55, 184, 56, 168, 199, 57, 184, - 176, 58, 59, 60, 189, 172, 61, 184, 192, 184, - 174, 249, 190, 252, 175, 184, 195, 193, 198, 184, - - 194, 62, 197, 184, 63, 202, 203, 163, 64, 238, - 164, 158, 238, 200, 262, 65, 67, 68, 69, 159, - 70, 420, 238, 71, 216, 72, 216, 216, 73, 216, - 216, 74, 75, 76, 216, 161, 77, 812, 812, 230, - 812, 812, 216, 263, 230, 812, 230, 251, 230, 250, - 161, 78, 218, 812, 79, 812, 238, 812, 80, 812, - 253, 230, 219, 156, 220, 81, 67, 68, 69, 230, - 70, 232, 812, 71, 221, 72, 222, 188, 73, 230, - 812, 74, 75, 76, 241, 238, 77, 238, 235, 238, - 812, 238, 242, 358, 233, 238, 238, 246, 254, 255, - - 247, 78, 243, 234, 79, 286, 244, 287, 80, 383, - 245, 248, 347, 236, 333, 81, 24, 25, 82, 25, - 24, 27, 24, 24, 29, 24, 30, 24, 24, 31, - 24, 24, 32, 33, 34, 83, 83, 84, 83, 83, - 83, 83, 83, 83, 83, 83, 83, 83, 24, 24, - 24, 83, 85, 83, 83, 86, 83, 83, 83, 87, - 83, 83, 83, 83, 83, 83, 88, 83, 83, 83, - 83, 83, 24, 24, 24, 25, 26, 25, 24, 27, - 89, 24, 29, 24, 30, 24, 24, 90, 91, 24, - 32, 33, 34, 91, 91, 92, 91, 91, 91, 91, - - 91, 91, 91, 91, 91, 91, 24, 24, 24, 91, - 93, 91, 91, 94, 91, 91, 91, 95, 91, 91, - 91, 91, 91, 91, 96, 91, 91, 91, 91, 91, - 24, 24, 24, 25, 97, 25, 24, 27, 24, 24, - 29, 24, 30, 24, 24, 31, 24, 24, 32, 33, - 34, 98, 98, 99, 98, 98, 98, 98, 98, 98, - 98, 98, 98, 98, 24, 24, 24, 98, 100, 98, - 98, 101, 98, 98, 98, 102, 98, 98, 98, 98, - 98, 98, 103, 98, 98, 98, 98, 98, 24, 24, - 24, 25, 26, 25, 24, 27, 104, 24, 29, 24, - - 30, 24, 24, 105, 106, 24, 32, 33, 34, 106, - 106, 107, 106, 106, 106, 106, 106, 106, 106, 106, - 106, 106, 24, 24, 24, 106, 108, 106, 106, 109, - 106, 106, 106, 110, 106, 106, 106, 106, 106, 106, - 111, 106, 106, 106, 106, 106, 24, 24, 113, 114, - 113, 268, 115, 257, 166, 116, 257, 117, 157, 257, - 118, 259, 260, 119, 120, 121, 257, 158, 122, 257, - 265, 156, 257, 265, 166, 159, 265, 269, 185, 186, - 168, 270, 293, 123, 257, 258, 124, 257, 310, 271, - 125, 184, 311, 184, 238, 189, 184, 126, 258, 184, - - 168, 315, 266, 190, 127, 113, 114, 113, 400, 115, - 184, 184, 116, 258, 117, 184, 166, 118, 357, 316, - 119, 120, 121, 257, 257, 122, 257, 257, 257, 257, - 257, 257, 166, 275, 257, 257, 276, 294, 257, 272, - 123, 257, 168, 124, 273, 486, 166, 125, 320, 299, - 184, 274, 298, 238, 126, 258, 258, 166, 168, 184, - 258, 127, 129, 130, 131, 132, 133, 258, 134, 135, - 257, 136, 168, 257, 137, 317, 257, 138, 139, 140, - 238, 300, 141, 168, 166, 257, 277, 216, 257, 238, - 257, 257, 359, 257, 142, 629, 257, 143, 812, 301, - - 144, 184, 258, 257, 145, 166, 257, 268, 166, 257, - 168, 146, 129, 130, 131, 132, 133, 258, 134, 135, - 278, 136, 258, 280, 137, 404, 184, 138, 139, 140, - 305, 168, 141, 269, 168, 258, 202, 203, 254, 255, - 449, 324, 281, 302, 142, 325, 230, 143, 318, 330, - 144, 306, 319, 331, 145, 344, 378, 812, 184, 345, - 379, 146, 24, 25, 147, 25, 24, 27, 24, 24, - 29, 24, 30, 24, 24, 31, 24, 24, 32, 33, - 34, 148, 148, 149, 148, 148, 148, 148, 148, 148, - 148, 148, 148, 148, 24, 24, 24, 148, 150, 151, - - 148, 152, 148, 148, 148, 153, 148, 148, 148, 148, - 148, 148, 154, 148, 148, 148, 148, 148, 24, 24, - 257, 279, 257, 257, 257, 257, 257, 257, 257, 166, - 257, 313, 216, 216, 216, 238, 216, 216, 230, 230, - 230, 355, 238, 812, 812, 812, 184, 812, 812, 812, - 812, 812, 258, 335, 258, 168, 258, 238, 349, 230, - 230, 303, 811, 283, 338, 304, 268, 282, 339, 336, - 812, 812, 337, 350, 351, 241, 238, 340, 257, 259, - 260, 257, 362, 242, 257, 262, 314, 262, 261, 166, - 262, 352, 269, 360, 807, 353, 356, 361, 257, 257, - - 257, 257, 257, 354, 257, 257, 265, 156, 267, 265, - 258, 293, 265, 268, 263, 168, 263, 265, 156, 263, - 265, 265, 363, 265, 265, 238, 270, 265, 184, 257, - 258, 258, 257, 184, 271, 381, 382, 364, 266, 269, - 257, 257, 257, 257, 257, 257, 166, 257, 257, 266, - 522, 257, 216, 266, 257, 487, 257, 257, 258, 257, - 166, 257, 257, 812, 257, 257, 294, 257, 257, 258, - 405, 257, 168, 258, 258, 257, 257, 166, 257, 257, - 166, 257, 257, 258, 257, 166, 168, 257, 258, 166, - 257, 166, 365, 258, 388, 257, 257, 258, 257, 257, - - 366, 257, 257, 168, 384, 166, 168, 258, 258, 166, - 394, 168, 184, 385, 368, 168, 258, 168, 313, 184, - 395, 387, 184, 386, 369, 391, 184, 258, 258, 805, - 389, 168, 370, 184, 728, 168, 371, 399, 382, 390, - 407, 403, 483, 413, 372, 401, 216, 216, 216, 216, - 408, 216, 184, 414, 428, 402, 392, 812, 812, 812, - 812, 230, 812, 230, 429, 421, 230, 230, 230, 238, - 230, 238, 812, 314, 812, 355, 238, 812, 812, 812, - 436, 812, 238, 422, 238, 425, 238, 424, 442, 443, - 458, 257, 444, 423, 257, 364, 426, 257, 257, 437, - - 459, 257, 440, 184, 450, 382, 439, 257, 238, 438, - 257, 445, 257, 257, 482, 257, 257, 441, 257, 257, - 523, 446, 448, 258, 804, 447, 257, 258, 257, 257, - 356, 257, 257, 166, 257, 257, 258, 451, 257, 381, - 382, 257, 166, 257, 258, 258, 257, 166, 184, 257, - 365, 184, 166, 452, 467, 166, 526, 166, 258, 168, - 258, 166, 166, 453, 166, 399, 382, 258, 168, 442, - 443, 484, 454, 168, 455, 258, 802, 468, 168, 800, - 184, 168, 469, 168, 238, 485, 470, 168, 168, 216, - 168, 216, 238, 184, 238, 456, 216, 216, 216, 471, - - 812, 475, 812, 474, 472, 473, 216, 812, 812, 812, - 216, 230, 502, 230, 230, 238, 166, 812, 230, 230, - 230, 812, 812, 558, 812, 812, 503, 504, 230, 812, - 812, 812, 664, 527, 516, 525, 166, 450, 382, 812, - 257, 796, 168, 257, 517, 505, 794, 507, 518, 524, - 506, 257, 257, 257, 257, 257, 257, 257, 257, 257, - 184, 238, 168, 166, 520, 521, 519, 257, 257, 258, - 257, 257, 257, 257, 257, 257, 543, 528, 257, 166, - 166, 166, 166, 258, 258, 258, 542, 529, 530, 168, - 166, 184, 166, 793, 166, 559, 184, 184, 184, 258, - - 258, 184, 216, 684, 258, 168, 168, 168, 168, 557, - 595, 238, 216, 812, 533, 547, 168, 532, 168, 531, - 168, 560, 546, 812, 544, 562, 545, 548, 561, 216, - 216, 216, 549, 216, 216, 575, 230, 230, 550, 230, - 812, 812, 812, 230, 812, 812, 230, 812, 812, 238, - 812, 230, 230, 238, 812, 594, 238, 812, 238, 184, - 587, 166, 812, 812, 578, 166, 184, 166, 184, 576, - 579, 257, 748, 791, 257, 577, 593, 257, 580, 588, - 706, 238, 626, 591, 590, 166, 257, 168, 589, 257, - 596, 168, 257, 168, 612, 257, 592, 597, 257, 599, - - 613, 257, 257, 258, 257, 257, 598, 257, 257, 257, - 257, 168, 257, 166, 184, 257, 166, 166, 258, 216, - 184, 166, 166, 614, 184, 184, 216, 258, 789, 741, - 812, 600, 238, 625, 258, 238, 258, 812, 238, 168, - 602, 258, 168, 168, 628, 601, 603, 168, 168, 630, - 616, 216, 627, 216, 615, 643, 618, 645, 604, 216, - 216, 230, 812, 617, 812, 230, 230, 230, 230, 230, - 812, 812, 812, 238, 663, 662, 812, 812, 812, 812, - 812, 238, 238, 257, 644, 665, 257, 646, 184, 257, - 655, 785, 166, 257, 648, 770, 257, 184, 656, 257, - - 754, 658, 166, 660, 657, 647, 661, 257, 679, 803, - 257, 166, 166, 257, 659, 258, 166, 667, 168, 666, - 257, 257, 166, 257, 257, 258, 257, 257, 168, 257, - 166, 668, 257, 184, 216, 257, 216, 168, 168, 258, - 216, 680, 168, 216, 216, 812, 216, 812, 168, 238, - 669, 812, 258, 258, 812, 812, 168, 812, 681, 670, - 690, 258, 685, 230, 230, 230, 230, 230, 672, 230, - 238, 783, 671, 691, 812, 812, 812, 812, 812, 694, - 812, 257, 257, 257, 257, 257, 257, 257, 257, 257, - 696, 257, 697, 257, 257, 257, 257, 257, 257, 257, - - 184, 257, 698, 695, 166, 166, 166, 216, 230, 216, - 230, 238, 238, 258, 258, 258, 238, 166, 812, 812, - 812, 812, 184, 258, 707, 258, 699, 258, 702, 782, - 168, 168, 168, 712, 716, 724, 166, 238, 740, 703, - 718, 713, 717, 168, 257, 257, 216, 257, 257, 719, - 257, 257, 216, 166, 230, 230, 729, 812, 216, 166, - 787, 184, 168, 812, 734, 812, 812, 746, 257, 812, - 781, 257, 738, 720, 257, 257, 258, 258, 257, 168, - 725, 257, 230, 216, 721, 168, 257, 230, 166, 257, - 238, 742, 257, 812, 812, 184, 735, 751, 812, 739, - - 258, 753, 216, 257, 230, 755, 257, 258, 759, 257, - 780, 757, 166, 812, 168, 812, 257, 765, 258, 257, - 216, 238, 257, 230, 743, 762, 778, 764, 166, 768, - 257, 812, 216, 257, 812, 258, 257, 773, 168, 230, - 775, 184, 776, 812, 766, 166, 216, 779, 258, 792, - 812, 784, 777, 257, 168, 230, 257, 812, 786, 257, - 238, 166, 258, 790, 795, 238, 812, 216, 230, 257, - 216, 168, 257, 797, 166, 257, 774, 788, 812, 812, - 772, 812, 798, 801, 230, 258, 771, 168, 769, 806, - 808, 809, 799, 257, 767, 812, 257, 763, 761, 257, - - 168, 258, 257, 760, 758, 257, 756, 238, 257, 752, - 750, 749, 184, 747, 745, 744, 737, 736, 733, 732, - 810, 731, 730, 727, 726, 258, 723, 722, 715, 714, - 711, 710, 709, 708, 258, 50, 50, 50, 50, 50, - 50, 50, 50, 50, 50, 50, 50, 66, 66, 66, - 66, 66, 66, 66, 66, 66, 66, 66, 66, 112, - 112, 112, 112, 112, 112, 112, 112, 112, 112, 112, - 112, 128, 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 155, 155, 155, 155, 155, 155, 155, - 155, 155, 155, 155, 155, 167, 167, 167, 167, 705, - - 167, 167, 177, 177, 177, 704, 177, 183, 701, 183, - 183, 183, 183, 183, 183, 183, 183, 183, 183, 187, - 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, - 187, 201, 201, 201, 201, 201, 201, 201, 201, 201, - 201, 201, 201, 209, 209, 209, 700, 209, 217, 217, - 238, 217, 217, 217, 223, 223, 223, 238, 223, 231, - 231, 238, 231, 231, 231, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 237, 237, 237, 239, 239, 239, - 239, 239, 239, 239, 239, 239, 239, 239, 239, 256, - 238, 256, 256, 256, 256, 256, 256, 256, 256, 256, - - 256, 261, 693, 692, 261, 261, 261, 261, 261, 261, - 261, 261, 261, 264, 264, 264, 264, 264, 264, 264, - 264, 264, 264, 264, 264, 267, 689, 688, 267, 267, - 267, 267, 267, 267, 267, 267, 267, 284, 284, 284, - 687, 284, 292, 292, 292, 292, 686, 292, 292, 296, - 184, 296, 184, 296, 418, 418, 418, 184, 418, 184, - 683, 418, 433, 433, 433, 682, 433, 678, 677, 433, - 465, 465, 465, 676, 465, 675, 674, 465, 500, 500, - 500, 673, 500, 654, 653, 500, 514, 514, 514, 652, - 514, 651, 650, 514, 649, 642, 641, 640, 639, 638, - - 637, 636, 635, 634, 633, 632, 631, 624, 623, 622, - 621, 620, 619, 611, 610, 609, 608, 607, 606, 605, - 515, 586, 585, 584, 583, 582, 581, 501, 574, 573, - 572, 571, 570, 569, 568, 567, 566, 565, 564, 563, - 556, 555, 554, 553, 552, 551, 466, 541, 540, 539, - 538, 537, 536, 535, 534, 443, 515, 434, 513, 512, - 511, 510, 509, 508, 501, 419, 499, 498, 497, 496, - 495, 494, 493, 492, 491, 490, 489, 488, 481, 480, - 479, 478, 477, 476, 466, 382, 464, 463, 462, 461, - 460, 457, 367, 238, 434, 432, 431, 430, 427, 419, - - 417, 416, 415, 412, 411, 410, 409, 406, 184, 398, - 397, 396, 393, 297, 380, 377, 376, 375, 374, 373, - 367, 260, 255, 238, 238, 238, 238, 238, 238, 238, - 240, 238, 238, 348, 346, 343, 342, 341, 334, 332, - 329, 328, 327, 326, 323, 322, 321, 203, 184, 184, - 184, 184, 184, 156, 184, 312, 309, 308, 307, 297, - 295, 156, 291, 290, 289, 288, 285, 260, 240, 238, - 238, 238, 229, 228, 227, 226, 225, 224, 215, 214, - 213, 212, 211, 210, 208, 207, 206, 205, 204, 165, - 162, 161, 160, 156, 162, 184, 184, 182, 181, 180, - - 179, 178, 165, 162, 161, 160, 156, 812, 23, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812 - } ; - -static yyconst flex_int16_t yy_chk[2368] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 5, 5, 5, 29, - 5, 33, 35, 5, 33, 5, 37, 29, 5, 54, - 36, 5, 5, 5, 40, 38, 5, 39, 51, 51, - 56, 56, 61, 54, 843, 42, 43, 64, 35, 125, - 41, 5, 37, 51, 5, 36, 36, 61, 5, 37, - 40, 38, 122, 39, 40, 5, 6, 6, 6, 38, - 6, 42, 43, 6, 63, 6, 41, 64, 6, 62, - 43, 6, 6, 6, 55, 39, 6, 57, 57, 65, - 41, 122, 55, 125, 42, 60, 60, 59, 63, 55, - - 59, 6, 62, 59, 6, 67, 67, 75, 6, 124, - 75, 71, 123, 65, 132, 6, 7, 7, 7, 71, - 7, 841, 126, 7, 90, 7, 91, 92, 7, 93, - 94, 7, 7, 7, 95, 90, 7, 91, 92, 105, - 93, 94, 96, 132, 106, 95, 107, 124, 110, 123, - 105, 7, 92, 96, 7, 106, 250, 107, 7, 110, - 126, 108, 93, 187, 94, 7, 8, 8, 8, 109, - 8, 107, 108, 8, 95, 8, 96, 187, 8, 111, - 109, 8, 8, 8, 116, 116, 8, 117, 110, 120, - 111, 118, 116, 250, 108, 119, 121, 120, 127, 127, - - 120, 8, 117, 109, 8, 150, 118, 150, 8, 839, - 119, 121, 838, 111, 837, 8, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 11, 11, 11, 11, 11, 11, - 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, - 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, - - 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, - 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, - 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, - 11, 11, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, - - 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, - 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, - 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, - 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, - 15, 15, 15, 15, 15, 15, 15, 15, 17, 17, - 17, 134, 17, 128, 157, 17, 128, 17, 818, 128, - 17, 129, 129, 17, 17, 17, 131, 158, 17, 131, - 133, 133, 131, 133, 167, 158, 133, 134, 185, 185, - 157, 135, 159, 17, 135, 128, 17, 135, 181, 135, - 17, 196, 181, 185, 249, 189, 197, 17, 131, 315, - - 167, 196, 133, 189, 17, 18, 18, 18, 315, 18, - 189, 404, 18, 135, 18, 200, 170, 18, 249, 197, - 18, 18, 18, 136, 139, 18, 136, 139, 137, 136, - 139, 137, 169, 139, 137, 138, 139, 159, 138, 136, - 18, 138, 170, 18, 137, 404, 171, 18, 200, 170, - 198, 138, 169, 251, 18, 136, 139, 172, 169, 561, - 137, 18, 19, 19, 19, 19, 19, 138, 19, 19, - 140, 19, 171, 140, 19, 198, 140, 19, 19, 19, - 809, 171, 19, 172, 175, 143, 140, 217, 143, 362, - 141, 143, 251, 141, 19, 561, 141, 19, 217, 172, - - 19, 319, 140, 144, 19, 173, 144, 267, 176, 144, - 175, 19, 20, 20, 20, 20, 20, 143, 20, 20, - 141, 20, 141, 143, 20, 319, 199, 20, 20, 20, - 175, 173, 20, 267, 176, 144, 202, 202, 254, 254, - 362, 207, 144, 173, 20, 207, 231, 20, 199, 213, - 20, 176, 199, 213, 20, 227, 290, 231, 803, 227, - 290, 20, 21, 21, 21, 21, 21, 21, 21, 21, - 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, - 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, - 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, - - 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, - 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, - 142, 142, 145, 142, 146, 145, 142, 146, 145, 174, - 146, 190, 221, 218, 222, 253, 219, 220, 232, 234, - 233, 242, 242, 221, 218, 222, 190, 219, 220, 232, - 234, 233, 142, 218, 145, 174, 146, 252, 232, 235, - 236, 174, 800, 146, 221, 174, 268, 145, 221, 219, - 235, 236, 220, 233, 234, 241, 241, 222, 256, 259, - 259, 256, 253, 241, 256, 261, 190, 262, 263, 292, - 263, 235, 268, 252, 796, 235, 242, 252, 257, 258, - - 258, 257, 258, 236, 257, 258, 264, 264, 269, 264, - 256, 293, 264, 269, 261, 292, 262, 265, 265, 263, - 265, 266, 266, 265, 266, 444, 270, 266, 405, 270, - 257, 258, 270, 320, 270, 294, 294, 271, 264, 269, - 271, 272, 273, 271, 272, 273, 300, 272, 273, 265, - 444, 274, 337, 266, 274, 405, 275, 274, 270, 275, - 302, 276, 275, 337, 276, 277, 293, 276, 277, 271, - 320, 277, 300, 272, 273, 278, 280, 299, 278, 280, - 301, 278, 280, 274, 281, 298, 302, 281, 275, 305, - 281, 303, 271, 276, 302, 282, 283, 277, 282, 283, - - 278, 282, 283, 299, 298, 304, 301, 278, 280, 306, - 308, 298, 318, 299, 280, 305, 281, 303, 313, 316, - 308, 301, 401, 299, 281, 305, 706, 282, 283, 794, - 303, 304, 282, 313, 706, 306, 282, 314, 314, 304, - 322, 318, 401, 328, 283, 316, 335, 336, 338, 340, - 322, 339, 314, 328, 342, 316, 306, 335, 336, 338, - 340, 349, 339, 350, 342, 335, 351, 352, 353, 357, - 354, 358, 349, 313, 350, 355, 355, 351, 352, 353, - 349, 354, 360, 336, 361, 339, 445, 338, 356, 356, - 374, 363, 357, 336, 363, 364, 340, 363, 364, 350, - - 374, 364, 353, 400, 365, 365, 352, 365, 448, 350, - 365, 358, 368, 366, 400, 368, 366, 354, 368, 366, - 445, 358, 361, 363, 793, 360, 369, 364, 370, 369, - 355, 370, 369, 384, 370, 371, 365, 366, 371, 381, - 381, 371, 387, 372, 368, 366, 372, 385, 403, 372, - 364, 402, 386, 368, 384, 388, 448, 389, 369, 384, - 370, 390, 391, 368, 392, 399, 399, 371, 387, 442, - 442, 402, 370, 385, 371, 372, 791, 385, 386, 789, - 399, 388, 386, 389, 447, 403, 387, 390, 391, 419, - 392, 421, 449, 483, 596, 372, 422, 423, 424, 388, - - 419, 392, 421, 391, 389, 390, 425, 422, 423, 424, - 426, 434, 421, 436, 437, 446, 466, 425, 438, 439, - 440, 426, 434, 483, 436, 437, 422, 423, 441, 438, - 439, 440, 596, 449, 436, 447, 468, 450, 450, 441, - 450, 785, 466, 450, 437, 424, 783, 426, 438, 446, - 425, 451, 452, 453, 451, 452, 453, 451, 452, 453, - 484, 524, 468, 467, 440, 441, 439, 454, 455, 450, - 454, 455, 456, 454, 455, 456, 468, 451, 456, 469, - 470, 471, 472, 451, 452, 453, 467, 452, 453, 467, - 473, 487, 474, 782, 475, 484, 482, 625, 485, 454, - - 455, 486, 501, 625, 456, 469, 470, 471, 472, 482, - 524, 523, 502, 501, 456, 472, 473, 455, 474, 454, - 475, 485, 471, 502, 469, 487, 470, 473, 486, 503, - 504, 505, 474, 506, 507, 502, 515, 516, 475, 517, - 503, 504, 505, 518, 506, 507, 520, 515, 516, 522, - 517, 519, 521, 525, 518, 523, 526, 520, 527, 558, - 516, 545, 519, 521, 505, 542, 684, 543, 728, 503, - 506, 528, 728, 780, 528, 504, 522, 528, 507, 517, - 684, 719, 558, 520, 519, 544, 529, 545, 518, 529, - 525, 542, 529, 543, 542, 530, 521, 526, 530, 528, - - 543, 530, 531, 528, 532, 531, 527, 532, 531, 533, - 532, 544, 533, 546, 557, 533, 547, 548, 529, 577, - 560, 549, 550, 544, 559, 562, 575, 530, 778, 719, - 577, 529, 595, 557, 531, 597, 532, 575, 594, 546, - 531, 533, 547, 548, 560, 530, 532, 549, 550, 562, - 547, 576, 559, 578, 546, 575, 550, 577, 533, 579, - 580, 587, 576, 548, 578, 588, 589, 590, 591, 592, - 579, 580, 587, 593, 595, 594, 588, 589, 590, 591, - 592, 598, 740, 599, 576, 597, 599, 578, 759, 599, - 587, 774, 612, 600, 580, 759, 600, 792, 588, 600, - - 740, 590, 613, 592, 589, 579, 593, 601, 612, 792, - 601, 614, 615, 601, 591, 599, 616, 599, 612, 598, - 602, 603, 617, 602, 603, 600, 602, 603, 613, 604, - 618, 600, 604, 626, 644, 604, 645, 614, 615, 601, - 646, 613, 616, 647, 643, 644, 648, 645, 617, 662, - 601, 646, 602, 603, 647, 643, 618, 648, 615, 602, - 643, 604, 626, 655, 656, 657, 658, 659, 604, 660, - 661, 772, 603, 644, 655, 656, 657, 658, 659, 655, - 660, 667, 668, 669, 667, 668, 669, 667, 668, 669, - 661, 670, 662, 671, 670, 672, 671, 670, 672, 671, - - 685, 672, 667, 656, 679, 680, 681, 691, 695, 690, - 694, 697, 696, 667, 668, 669, 718, 702, 691, 695, - 690, 694, 707, 670, 685, 671, 668, 672, 679, 771, - 679, 680, 681, 690, 694, 702, 703, 776, 718, 680, - 696, 691, 695, 702, 698, 699, 712, 698, 699, 697, - 698, 699, 713, 724, 716, 717, 707, 712, 735, 725, - 776, 770, 703, 713, 712, 716, 717, 724, 720, 735, - 770, 720, 716, 698, 720, 721, 698, 699, 721, 724, - 703, 721, 739, 734, 699, 725, 742, 738, 746, 742, - 754, 720, 742, 739, 734, 748, 713, 734, 738, 717, - - 720, 738, 751, 743, 753, 742, 743, 721, 748, 743, - 769, 746, 757, 751, 746, 753, 755, 754, 742, 755, - 762, 765, 755, 764, 721, 751, 767, 753, 768, 757, - 766, 762, 773, 766, 764, 743, 766, 762, 757, 775, - 764, 781, 765, 773, 755, 779, 784, 768, 755, 781, - 775, 773, 766, 777, 768, 786, 777, 784, 775, 777, - 787, 790, 766, 779, 784, 798, 786, 795, 797, 788, - 806, 779, 788, 786, 801, 788, 763, 777, 795, 797, - 761, 806, 787, 790, 808, 777, 760, 790, 758, 795, - 797, 798, 788, 799, 756, 808, 799, 752, 750, 799, - - 801, 788, 810, 749, 747, 810, 744, 741, 810, 736, - 732, 730, 729, 726, 723, 722, 715, 714, 711, 710, - 799, 709, 708, 705, 704, 799, 701, 700, 693, 692, - 689, 688, 687, 686, 810, 813, 813, 813, 813, 813, - 813, 813, 813, 813, 813, 813, 813, 814, 814, 814, - 814, 814, 814, 814, 814, 814, 814, 814, 814, 815, - 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, - 815, 816, 816, 816, 816, 816, 816, 816, 816, 816, - 816, 816, 816, 817, 817, 817, 817, 817, 817, 817, - 817, 817, 817, 817, 817, 819, 819, 819, 819, 683, - - 819, 819, 820, 820, 820, 682, 820, 821, 674, 821, - 821, 821, 821, 821, 821, 821, 821, 821, 821, 822, - 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, - 822, 823, 823, 823, 823, 823, 823, 823, 823, 823, - 823, 823, 823, 824, 824, 824, 673, 824, 825, 825, - 666, 825, 825, 825, 826, 826, 826, 665, 826, 827, - 827, 664, 827, 827, 827, 828, 828, 828, 828, 828, - 828, 828, 828, 828, 828, 828, 828, 829, 829, 829, - 829, 829, 829, 829, 829, 829, 829, 829, 829, 830, - 663, 830, 830, 830, 830, 830, 830, 830, 830, 830, - - 830, 831, 650, 649, 831, 831, 831, 831, 831, 831, - 831, 831, 831, 832, 832, 832, 832, 832, 832, 832, - 832, 832, 832, 832, 832, 833, 638, 637, 833, 833, - 833, 833, 833, 833, 833, 833, 833, 834, 834, 834, - 632, 834, 835, 835, 835, 835, 631, 835, 835, 836, - 630, 836, 629, 836, 840, 840, 840, 628, 840, 627, - 620, 840, 842, 842, 842, 619, 842, 611, 610, 842, - 844, 844, 844, 609, 844, 607, 606, 844, 845, 845, - 845, 605, 845, 586, 585, 845, 846, 846, 846, 584, - 846, 583, 582, 846, 581, 574, 573, 572, 571, 570, - - 569, 568, 567, 566, 565, 564, 563, 556, 555, 554, - 553, 552, 551, 541, 540, 539, 538, 536, 535, 534, - 514, 513, 512, 511, 510, 509, 508, 500, 499, 498, - 497, 496, 495, 494, 493, 492, 491, 490, 489, 488, - 481, 480, 479, 478, 477, 476, 465, 464, 463, 462, - 461, 460, 459, 458, 457, 443, 435, 433, 432, 431, - 430, 429, 428, 427, 420, 418, 417, 416, 415, 414, - 413, 412, 411, 410, 409, 408, 407, 406, 398, 397, - 396, 395, 394, 393, 383, 382, 380, 379, 378, 376, - 375, 373, 367, 359, 347, 346, 345, 344, 341, 333, - - 332, 331, 330, 327, 326, 325, 324, 321, 317, 312, - 311, 310, 307, 296, 291, 289, 288, 287, 286, 285, - 279, 260, 255, 248, 247, 246, 245, 244, 243, 240, - 239, 238, 237, 230, 228, 226, 225, 224, 216, 214, - 212, 211, 210, 208, 206, 205, 204, 201, 195, 194, - 193, 192, 191, 188, 183, 182, 180, 179, 178, 168, - 166, 155, 154, 153, 152, 151, 149, 130, 115, 114, - 113, 112, 104, 103, 102, 101, 100, 99, 89, 88, - 87, 86, 85, 84, 81, 80, 79, 78, 77, 76, - 74, 73, 72, 70, 58, 53, 50, 49, 48, 47, - - 46, 45, 34, 32, 31, 30, 27, 23, 812, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, - 812, 812, 812, 812, 812, 812, 812 - } ; - -/* Table of booleans, true if rule could match eol. */ -static yyconst flex_int32_t yy_rule_can_match_eol[48] = - { 0, -0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, - 0, 0, 1, 1, 1, 1, 0, 0, }; - -/* The intent behind this definition is that it'll catch - * any uses of REJECT which flex missed. - */ -#define REJECT reject_used_but_not_detected -#define yymore() yymore_used_but_not_detected -#define YY_MORE_ADJ 0 -#define YY_RESTORE_YY_MORE_OFFSET -#line 1 "bitbakescanner.l" -/* bbf.flex - - written by Marc Singer - 6 January 2005 - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 - USA. - - DESCRIPTION - ----------- - - flex lexer specification for a BitBake input file parser. - - Unfortunately, flex doesn't welcome comments within the rule sets. - I say unfortunately because this lexer is unreasonably complex and - comments would make the code much easier to comprehend. - - The BitBake grammar is not regular. In order to interpret all - of the available input files, the lexer maintains much state as it - parses. There are places where this lexer will emit tokens that - are invalid. The parser will tend to catch these. - - The lexer requires C++ at the moment. The only reason for this has - to do with a very small amount of managed state. Producing a C - lexer should be a reasonably easy task as long as the %reentrant - option is used. - - - NOTES - ----- - - o RVALUES. There are three kinds of RVALUES. There are unquoted - values, double quote enclosed strings, and single quote - strings. Quoted strings may contain unescaped quotes (of either - type), *and* any type may span more than one line by using a - continuation '\' at the end of the line. This requires us to - recognize all types of values with a single expression. - Moreover, the only reason to quote a value is to include - trailing or leading whitespace. Whitespace within a value is - preserved, ugh. - - o CLASSES. C_ patterns define classes. Classes ought not include - a repitition operator, instead letting the reference to the class - define the repitition count. - - C_SS - symbol start - C_SB - symbol body - C_SP - whitespace - -*/ -#line 71 "bitbakescanner.l" - -#include "token.h" -#include "lexer.h" -#include "bitbakeparser.h" -#include - -extern void *bbparseAlloc(void *(*mallocProc)(size_t)); -extern void bbparseFree(void *p, void (*freeProc)(void*)); -extern void *bbparseAlloc(void *(*mallocProc)(size_t)); -extern void *bbparse(void*, int, token_t, lex_t*); -extern void bbparseTrace(FILE *TraceFILE, char *zTracePrompt); - -//static const char* rgbInput; -//static size_t cbInput; - -extern "C" { - -int lineError; -int errorParse; - -enum { - errorNone = 0, - errorUnexpectedInput, - errorUnsupportedFeature, -}; - -} - -#define YY_EXTRA_TYPE lex_t* - - /* Read from buffer */ -#define YY_INPUT(buf,result,max_size) \ - { yyextra->input(buf, &result, max_size); } - -//#define YY_DECL static size_t yylex () - -#define ERROR(e) \ - do { lineError = yylineno; errorParse = e; yyterminate (); } while (0) - -static const char* fixup_escapes (const char* sz); - - - - - - - - - - - -#line 1367 "" - -#define INITIAL 0 -#define S_DEF 1 -#define S_DEF_ARGS 2 -#define S_DEF_BODY 3 -#define S_FUNC 4 -#define S_INCLUDE 5 -#define S_INHERIT 6 -#define S_REQUIRE 7 -#define S_PROC 8 -#define S_RVALUE 9 -#define S_TASK 10 - -#ifndef YY_NO_UNISTD_H -/* Special case for "unistd.h", since it is non-ANSI. We include it way - * down here because we want the user's section 1 to have been scanned first. - * The user has a chance to override it with an option. - */ -#include -#endif - -#ifndef YY_EXTRA_TYPE -#define YY_EXTRA_TYPE void * -#endif - -/* Holds the entire state of the reentrant scanner. */ -struct yyguts_t - { - - /* User-defined. Not touched by flex. */ - YY_EXTRA_TYPE yyextra_r; - - /* The rest are the same as the globals declared in the non-reentrant scanner. */ - FILE *yyin_r, *yyout_r; - size_t yy_buffer_stack_top; /**< index of top of stack. */ - size_t yy_buffer_stack_max; /**< capacity of stack. */ - YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ - char yy_hold_char; - int yy_n_chars; - int yyleng_r; - char *yy_c_buf_p; - int yy_init; - int yy_start; - int yy_did_buffer_switch_on_eof; - int yy_start_stack_ptr; - int yy_start_stack_depth; - int *yy_start_stack; - yy_state_type yy_last_accepting_state; - char* yy_last_accepting_cpos; - - int yylineno_r; - int yy_flex_debug_r; - - char *yytext_r; - int yy_more_flag; - int yy_more_len; - - }; /* end struct yyguts_t */ - -static int yy_init_globals (yyscan_t yyscanner ); - -/* Accessor methods to globals. - These are made visible to non-reentrant scanners for convenience. */ - -int yylex_destroy (yyscan_t yyscanner ); - -int yyget_debug (yyscan_t yyscanner ); - -void yyset_debug (int debug_flag ,yyscan_t yyscanner ); - -YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner ); - -void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); - -FILE *yyget_in (yyscan_t yyscanner ); - -void yyset_in (FILE * in_str ,yyscan_t yyscanner ); - -FILE *yyget_out (yyscan_t yyscanner ); - -void yyset_out (FILE * out_str ,yyscan_t yyscanner ); - -int yyget_leng (yyscan_t yyscanner ); - -char *yyget_text (yyscan_t yyscanner ); - -int yyget_lineno (yyscan_t yyscanner ); - -void yyset_lineno (int line_number ,yyscan_t yyscanner ); - -/* Macros after this point can all be overridden by user definitions in - * section 1. - */ - -#ifndef YY_SKIP_YYWRAP -#ifdef __cplusplus -extern "C" int yywrap (yyscan_t yyscanner ); -#else -extern int yywrap (yyscan_t yyscanner ); -#endif -#endif - - static void yyunput (int c,char *buf_ptr ,yyscan_t yyscanner); - -#ifndef yytext_ptr -static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); -#endif - -#ifndef YY_NO_INPUT - -#ifdef __cplusplus -static int yyinput (yyscan_t yyscanner ); -#else -static int input (yyscan_t yyscanner ); -#endif - -#endif - - static void yy_push_state (int new_state ,yyscan_t yyscanner); - - static void yy_pop_state (yyscan_t yyscanner ); - - static int yy_top_state (yyscan_t yyscanner ); - -/* Amount of stuff to slurp up with each read. */ -#ifndef YY_READ_BUF_SIZE -#define YY_READ_BUF_SIZE 8192 -#endif - -/* Copy whatever the last rule matched to the standard output. */ -#ifndef ECHO -/* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ -#define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) -#endif - -/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, - * is returned in "result". - */ -#ifndef YY_INPUT -#define YY_INPUT(buf,result,max_size) \ - if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ - { \ - int c = '*'; \ - size_t n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else \ - { \ - errno=0; \ - while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ - { \ - if( errno != EINTR) \ - { \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - break; \ - } \ - errno=0; \ - clearerr(yyin); \ - } \ - }\ -\ - -#endif - -/* No semi-colon after return; correct usage is to write "yyterminate();" - - * we don't want an extra ';' after the "return" because that will cause - * some compilers to complain about unreachable statements. - */ -#ifndef yyterminate -#define yyterminate() return YY_NULL -#endif - -/* Number of entries by which start-condition stack grows. */ -#ifndef YY_START_STACK_INCR -#define YY_START_STACK_INCR 25 -#endif - -/* Report a fatal error. */ -#ifndef YY_FATAL_ERROR -#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) -#endif - -/* end tables serialization structures and prototypes */ - -/* Default declaration of generated scanner - a define so the user can - * easily add parameters. - */ -#ifndef YY_DECL -#define YY_DECL_IS_OURS 1 - -extern int yylex (yyscan_t yyscanner); - -#define YY_DECL int yylex (yyscan_t yyscanner) -#endif /* !YY_DECL */ - -/* Code executed at the beginning of each rule, after yytext and yyleng - * have been set up. - */ -#ifndef YY_USER_ACTION -#define YY_USER_ACTION -#endif - -/* Code executed at the end of each rule. */ -#ifndef YY_BREAK -#define YY_BREAK break; -#endif - -#define YY_RULE_SETUP \ - YY_USER_ACTION - -/** The main scanner function which does all the work. - */ -YY_DECL -{ - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - -#line 164 "bitbakescanner.l" - - -#line 1603 "" - - if ( !yyg->yy_init ) - { - yyg->yy_init = 1; - -#ifdef YY_USER_INIT - YY_USER_INIT; -#endif - - if ( ! yyg->yy_start ) - yyg->yy_start = 1; /* first start state */ - - if ( ! yyin ) - yyin = stdin; - - if ( ! yyout ) - yyout = stdout; - - if ( ! YY_CURRENT_BUFFER ) { - yyensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); - } - - yy_load_buffer_state(yyscanner ); - } - - while ( 1 ) /* loops until end-of-file is reached */ - { - yy_cp = yyg->yy_c_buf_p; - - /* Support of yytext. */ - *yy_cp = yyg->yy_hold_char; - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = yyg->yy_start; -yy_match: - do - { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 813 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - ++yy_cp; - } - while ( yy_current_state != 812 ); - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - -yy_find_action: - yy_act = yy_accept[yy_current_state]; - - YY_DO_BEFORE_ACTION; - - if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) - { - int yyl; - for ( yyl = 0; yyl < yyleng; ++yyl ) - if ( yytext[yyl] == '\n' ) - - do{ yylineno++; - yycolumn=0; - }while(0) -; - } - -do_action: /* This label is used only to access EOF actions. */ - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = yyg->yy_hold_char; - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - -case 1: -YY_RULE_SETUP -#line 166 "bitbakescanner.l" -{ BEGIN S_RVALUE; - yyextra->accept (T_OP_APPEND); } - YY_BREAK -case 2: -YY_RULE_SETUP -#line 168 "bitbakescanner.l" -{ BEGIN S_RVALUE; - yyextra->accept (T_OP_PREPEND); } - YY_BREAK -case 3: -YY_RULE_SETUP -#line 170 "bitbakescanner.l" -{ BEGIN S_RVALUE; - yyextra->accept (T_OP_IMMEDIATE); } - YY_BREAK -case 4: -YY_RULE_SETUP -#line 172 "bitbakescanner.l" -{ BEGIN S_RVALUE; - yyextra->accept (T_OP_ASSIGN); } - YY_BREAK -case 5: -YY_RULE_SETUP -#line 174 "bitbakescanner.l" -{ BEGIN S_RVALUE; - yyextra->accept (T_OP_PREDOT); } - YY_BREAK -case 6: -YY_RULE_SETUP -#line 176 "bitbakescanner.l" -{ BEGIN S_RVALUE; - yyextra->accept (T_OP_POSTDOT); } - YY_BREAK -case 7: -YY_RULE_SETUP -#line 178 "bitbakescanner.l" -{ BEGIN S_RVALUE; - yyextra->accept (T_OP_COND); } - YY_BREAK -case 8: -/* rule 8 can match eol */ -YY_RULE_SETUP -#line 181 "bitbakescanner.l" -{ } - YY_BREAK -case 9: -/* rule 9 can match eol */ -YY_RULE_SETUP -#line 182 "bitbakescanner.l" -{ BEGIN INITIAL; - size_t cb = yyleng; - while (cb && isspace (yytext[cb - 1])) - --cb; - yytext[cb - 1] = 0; - yyextra->accept (T_STRING, yytext + 1); } - YY_BREAK -case 10: -/* rule 10 can match eol */ -YY_RULE_SETUP -#line 188 "bitbakescanner.l" -{ BEGIN INITIAL; - size_t cb = yyleng; - while (cb && isspace (yytext[cb - 1])) - --cb; - yytext[cb - 1] = 0; - yyextra->accept (T_STRING, yytext + 1); } - YY_BREAK -case 11: -/* rule 11 can match eol */ -YY_RULE_SETUP -#line 195 "bitbakescanner.l" -{ ERROR (errorUnexpectedInput); } - YY_BREAK -case 12: -/* rule 12 can match eol */ -YY_RULE_SETUP -#line 196 "bitbakescanner.l" -{ BEGIN INITIAL; - yyextra->accept (T_STRING, NULL); } - YY_BREAK -case 13: -YY_RULE_SETUP -#line 199 "bitbakescanner.l" -{ BEGIN S_INCLUDE; - yyextra->accept (T_INCLUDE); } - YY_BREAK -case 14: -YY_RULE_SETUP -#line 201 "bitbakescanner.l" -{ BEGIN S_REQUIRE; - yyextra->accept (T_REQUIRE); } - YY_BREAK -case 15: -YY_RULE_SETUP -#line 203 "bitbakescanner.l" -{ BEGIN S_INHERIT; - yyextra->accept (T_INHERIT); } - YY_BREAK -case 16: -YY_RULE_SETUP -#line 205 "bitbakescanner.l" -{ BEGIN S_TASK; - yyextra->accept (T_ADDTASK); } - YY_BREAK -case 17: -YY_RULE_SETUP -#line 207 "bitbakescanner.l" -{ yyextra->accept (T_ADDHANDLER); } - YY_BREAK -case 18: -YY_RULE_SETUP -#line 208 "bitbakescanner.l" -{ BEGIN S_FUNC; - yyextra->accept (T_EXPORT_FUNC); } - YY_BREAK -case 19: -YY_RULE_SETUP -#line 210 "bitbakescanner.l" -{ yyextra->accept (T_BEFORE); } - YY_BREAK -case 20: -YY_RULE_SETUP -#line 211 "bitbakescanner.l" -{ yyextra->accept (T_AFTER); } - YY_BREAK -case 21: -YY_RULE_SETUP -#line 212 "bitbakescanner.l" -{ yyextra->accept (T_EXPORT); } - YY_BREAK -case 22: -YY_RULE_SETUP -#line 214 "bitbakescanner.l" -{ yyextra->accept (T_FAKEROOT); } - YY_BREAK -case 23: -YY_RULE_SETUP -#line 215 "bitbakescanner.l" -{ yyextra->accept (T_PYTHON); } - YY_BREAK -case 24: -/* rule 24 can match eol */ -YY_RULE_SETUP -#line 216 "bitbakescanner.l" -{ BEGIN S_PROC; - yyextra->accept (T_PROC_OPEN); } - YY_BREAK -case 25: -/* rule 25 can match eol */ -YY_RULE_SETUP -#line 218 "bitbakescanner.l" -{ BEGIN INITIAL; - yyextra->accept (T_PROC_CLOSE); } - YY_BREAK -case 26: -/* rule 26 can match eol */ -YY_RULE_SETUP -#line 220 "bitbakescanner.l" -{ yyextra->accept (T_PROC_BODY, yytext); } - YY_BREAK -case 27: -YY_RULE_SETUP -#line 222 "bitbakescanner.l" -{ BEGIN S_DEF; } - YY_BREAK -case 28: -YY_RULE_SETUP -#line 223 "bitbakescanner.l" -{ BEGIN S_DEF_ARGS; - yyextra->accept (T_SYMBOL, yytext); } - YY_BREAK -case 29: -YY_RULE_SETUP -#line 225 "bitbakescanner.l" -{ yyextra->accept (T_DEF_ARGS, yytext); } - YY_BREAK -case 30: -/* rule 30 can match eol */ -YY_RULE_SETUP -#line 226 "bitbakescanner.l" -{ BEGIN S_DEF_BODY; } - YY_BREAK -case 31: -/* rule 31 can match eol */ -YY_RULE_SETUP -#line 227 "bitbakescanner.l" -{ yyextra->accept (T_DEF_BODY, yytext); } - YY_BREAK -case 32: -/* rule 32 can match eol */ -YY_RULE_SETUP -#line 228 "bitbakescanner.l" -{ yyextra->accept (T_DEF_BODY, yytext); } - YY_BREAK -case 33: -YY_RULE_SETUP -#line 229 "bitbakescanner.l" -{ BEGIN INITIAL; unput (yytext[0]); } - YY_BREAK -case 34: -/* rule 34 can match eol */ -YY_RULE_SETUP -#line 231 "bitbakescanner.l" -{ } - YY_BREAK -case 35: -YY_RULE_SETUP -#line 233 "bitbakescanner.l" -{ yyextra->accept (T_SYMBOL, yytext); } - YY_BREAK -case 36: -YY_RULE_SETUP -#line 234 "bitbakescanner.l" -{ yyextra->accept (T_VARIABLE, yytext); } - YY_BREAK -case 37: -YY_RULE_SETUP -#line 236 "bitbakescanner.l" -{ yyextra->accept (T_TSYMBOL, yytext); } - YY_BREAK -case 38: -YY_RULE_SETUP -#line 237 "bitbakescanner.l" -{ yyextra->accept (T_FSYMBOL, yytext); } - YY_BREAK -case 39: -YY_RULE_SETUP -#line 238 "bitbakescanner.l" -{ yyextra->accept (T_ISYMBOL, yytext); } - YY_BREAK -case 40: -YY_RULE_SETUP -#line 239 "bitbakescanner.l" -{ BEGIN INITIAL; - yyextra->accept (T_ISYMBOL, yytext); } - YY_BREAK -case 41: -YY_RULE_SETUP -#line 241 "bitbakescanner.l" -{ BEGIN INITIAL; - yyextra->accept (T_ISYMBOL, yytext); } - YY_BREAK -case 42: -/* rule 42 can match eol */ -YY_RULE_SETUP -#line 243 "bitbakescanner.l" -{ BEGIN INITIAL; } - YY_BREAK -case 43: -/* rule 43 can match eol */ -YY_RULE_SETUP -#line 244 "bitbakescanner.l" -{ BEGIN INITIAL; } - YY_BREAK -case 44: -/* rule 44 can match eol */ -YY_RULE_SETUP -#line 245 "bitbakescanner.l" -{ BEGIN INITIAL; } - YY_BREAK -case 45: -/* rule 45 can match eol */ -YY_RULE_SETUP -#line 247 "bitbakescanner.l" -/* Insignificant whitespace */ - YY_BREAK -case 46: -YY_RULE_SETUP -#line 249 "bitbakescanner.l" -{ ERROR (errorUnexpectedInput); } - YY_BREAK -/* Check for premature termination */ -case YY_STATE_EOF(INITIAL): -case YY_STATE_EOF(S_DEF): -case YY_STATE_EOF(S_DEF_ARGS): -case YY_STATE_EOF(S_DEF_BODY): -case YY_STATE_EOF(S_FUNC): -case YY_STATE_EOF(S_INCLUDE): -case YY_STATE_EOF(S_INHERIT): -case YY_STATE_EOF(S_REQUIRE): -case YY_STATE_EOF(S_PROC): -case YY_STATE_EOF(S_RVALUE): -case YY_STATE_EOF(S_TASK): -#line 252 "bitbakescanner.l" -{ return T_EOF; } - YY_BREAK -case 47: -YY_RULE_SETUP -#line 254 "bitbakescanner.l" -ECHO; - YY_BREAK -#line 1988 "" - - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = yyg->yy_hold_char; - YY_RESTORE_YY_MORE_OFFSET - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * yylex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( yyscanner ); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner); - - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++yyg->yy_c_buf_p; - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - } - } - - else switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_END_OF_FILE: - { - yyg->yy_did_buffer_switch_on_eof = 0; - - if ( yywrap(yyscanner ) ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = - yyg->yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( yyscanner ); - - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - yyg->yy_c_buf_p = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; - - yy_current_state = yy_get_previous_state( yyscanner ); - - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } - - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ -} /* end of yylex */ - -/* yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ -static int yy_get_next_buffer (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = yyg->yytext_ptr; - register int number_to_move, i; - int ret_val; - - if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1; - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0; - - else - { - int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; - - int yy_c_buf_p_offset = - (int) (yyg->yy_c_buf_p - b->yy_ch_buf); - - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; - - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; - - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - - number_to_move - 1; - - } - - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - yyg->yy_n_chars, num_to_read ); - - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - if ( yyg->yy_n_chars == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - yyrestart(yyin ,yyscanner); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - yyg->yy_n_chars += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; - - yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; - - return ret_val; -} - -/* yy_get_previous_state - get the state just before the EOB char was reached */ - - static yy_state_type yy_get_previous_state (yyscan_t yyscanner) -{ - register yy_state_type yy_current_state; - register char *yy_cp; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - yy_current_state = yyg->yy_start; - - for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) - { - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 813 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - } - - return yy_current_state; -} - -/* yy_try_NUL_trans - try to make a transition on the NUL character - * - * synopsis - * next_state = yy_try_NUL_trans( current_state ); - */ - static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) -{ - register int yy_is_jam; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ - register char *yy_cp = yyg->yy_c_buf_p; - - register YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 813 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 812); - - return yy_is_jam ? 0 : yy_current_state; -} - - static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner) -{ - register char *yy_cp; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - yy_cp = yyg->yy_c_buf_p; - - /* undo effects of setting up yytext */ - *yy_cp = yyg->yy_hold_char; - - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - register int number_to_move = yyg->yy_n_chars + 2; - register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ - YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; - register char *source = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; - - while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - *--dest = *--source; - - yy_cp += (int) (dest - source); - yy_bp += (int) (dest - source); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; - - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - YY_FATAL_ERROR( "flex scanner push-back overflow" ); - } - - *--yy_cp = (char) c; - - if ( c == '\n' ){ - --yylineno; - } - - yyg->yytext_ptr = yy_bp; - yyg->yy_hold_char = *yy_cp; - yyg->yy_c_buf_p = yy_cp; -} - -#ifndef YY_NO_INPUT -#ifdef __cplusplus - static int yyinput (yyscan_t yyscanner) -#else - static int input (yyscan_t yyscanner) -#endif - -{ - int c; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - *yyg->yy_c_buf_p = yyg->yy_hold_char; - - if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - /* This was really a NUL. */ - *yyg->yy_c_buf_p = '\0'; - - else - { /* need more input */ - int offset = yyg->yy_c_buf_p - yyg->yytext_ptr; - ++yyg->yy_c_buf_p; - - switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - yyrestart(yyin ,yyscanner); - - /*FALLTHROUGH*/ - - case EOB_ACT_END_OF_FILE: - { - if ( yywrap(yyscanner ) ) - return EOF; - - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; -#ifdef __cplusplus - return yyinput(yyscanner); -#else - return input(yyscanner); -#endif - } - - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = yyg->yytext_ptr + offset; - break; - } - } - } - - c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */ - *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ - yyg->yy_hold_char = *++yyg->yy_c_buf_p; - - if ( c == '\n' ) - - do{ yylineno++; - yycolumn=0; - }while(0) -; - - return c; -} -#endif /* ifndef YY_NO_INPUT */ - -/** Immediately switch to a different input stream. - * @param input_file A readable stream. - * @param yyscanner The scanner object. - * @note This function does not reset the start condition to @c INITIAL . - */ - void yyrestart (FILE * input_file , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if ( ! YY_CURRENT_BUFFER ){ - yyensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); - } - - yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); - yy_load_buffer_state(yyscanner ); -} - -/** Switch to a different input buffer. - * @param new_buffer The new input buffer. - * @param yyscanner The scanner object. - */ - void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* TODO. We should be able to replace this entire function body - * with - * yypop_buffer_state(); - * yypush_buffer_state(new_buffer); - */ - yyensure_buffer_stack (yyscanner); - if ( YY_CURRENT_BUFFER == new_buffer ) - return; - - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - YY_CURRENT_BUFFER_LVALUE = new_buffer; - yy_load_buffer_state(yyscanner ); - - /* We don't actually know whether we did this switch during - * EOF (yywrap()) processing, but the only time this flag - * is looked at is after yywrap() is called, so it's safe - * to go ahead and always set it. - */ - yyg->yy_did_buffer_switch_on_eof = 1; -} - -static void yy_load_buffer_state (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - yyg->yy_hold_char = *yyg->yy_c_buf_p; -} - -/** Allocate and initialize an input buffer state. - * @param file A readable stream. - * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * @param yyscanner The scanner object. - * @return the allocated buffer state. - */ - YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_buf_size = size; - - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ,yyscanner ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_is_our_buffer = 1; - - yy_init_buffer(b,file ,yyscanner); - - return b; -} - -/** Destroy the buffer. - * @param b a buffer created with yy_create_buffer() - * @param yyscanner The scanner object. - */ - void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if ( ! b ) - return; - - if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; - - if ( b->yy_is_our_buffer ) - yyfree((void *) b->yy_ch_buf ,yyscanner ); - - yyfree((void *) b ,yyscanner ); -} - -/* Initializes or reinitializes a buffer. - * This function is sometimes called more than once on the same buffer, - * such as during a yyrestart() or at EOF. - */ - static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) - -{ - int oerrno = errno; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - yy_flush_buffer(b ,yyscanner); - - b->yy_input_file = file; - b->yy_fill_buffer = 1; - - /* If b is the current buffer, then yy_init_buffer was _probably_ - * called from yyrestart() or through yy_get_next_buffer. - * In that case, we don't want to reset the lineno or column. - */ - if (b != YY_CURRENT_BUFFER){ - b->yy_bs_lineno = 1; - b->yy_bs_column = 0; - } - - b->yy_is_interactive = 0; - - errno = oerrno; -} - -/** Discard all buffered characters. On the next scan, YY_INPUT will be called. - * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * @param yyscanner The scanner object. - */ - void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if ( ! b ) - return; - - b->yy_n_chars = 0; - - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - - b->yy_buf_pos = &b->yy_ch_buf[0]; - - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; - - if ( b == YY_CURRENT_BUFFER ) - yy_load_buffer_state(yyscanner ); -} - -/** Pushes the new state onto the stack. The new state becomes - * the current state. This function will allocate the stack - * if necessary. - * @param new_buffer The new state. - * @param yyscanner The scanner object. - */ -void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (new_buffer == NULL) - return; - - yyensure_buffer_stack(yyscanner); - - /* This block is copied from yy_switch_to_buffer. */ - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } - - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - yyg->yy_buffer_stack_top++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; - - /* copied from yy_switch_to_buffer. */ - yy_load_buffer_state(yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; -} - -/** Removes and deletes the top of the stack, if present. - * The next element becomes the new top. - * @param yyscanner The scanner object. - */ -void yypop_buffer_state (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (!YY_CURRENT_BUFFER) - return; - - yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner); - YY_CURRENT_BUFFER_LVALUE = NULL; - if (yyg->yy_buffer_stack_top > 0) - --yyg->yy_buffer_stack_top; - - if (YY_CURRENT_BUFFER) { - yy_load_buffer_state(yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; - } -} - -/* Allocates the stack if it does not exist. - * Guarantees space for at least one push. - */ -static void yyensure_buffer_stack (yyscan_t yyscanner) -{ - int num_to_alloc; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (!yyg->yy_buffer_stack) { - - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. - */ - num_to_alloc = 1; - yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc - (num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - - memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - - yyg->yy_buffer_stack_max = num_to_alloc; - yyg->yy_buffer_stack_top = 0; - return; - } - - if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){ - - /* Increase the buffer to prepare for a possible push. */ - int grow_size = 8 /* arbitrary grow size */; - - num_to_alloc = yyg->yy_buffer_stack_max + grow_size; - yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc - (yyg->yy_buffer_stack, - num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - - /* zero only the new slots.*/ - memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*)); - yyg->yy_buffer_stack_max = num_to_alloc; - } -} - -/** Setup the input buffer state to scan directly from a user-specified character buffer. - * @param base the character buffer - * @param size the size in bytes of the character buffer - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return 0; - - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); - - b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = 0; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; - - yy_switch_to_buffer(b ,yyscanner ); - - return b; -} - -/** Setup the input buffer state to scan a string. The next call to yylex() will - * scan from a @e copy of @a str. - * @param str a NUL-terminated string to scan - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - * @note If you want to scan bytes that may contain NUL values, then use - * yy_scan_bytes() instead. - */ -YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner) -{ - - return yy_scan_bytes(yystr,strlen(yystr) ,yyscanner); -} - -/** Setup the input buffer state to scan the given bytes. The next call to yylex() will - * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. - * @param yyscanner The scanner object. - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner) -{ - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = _yybytes_len + 2; - buf = (char *) yyalloc(n ,yyscanner ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); - - for ( i = 0; i < _yybytes_len; ++i ) - buf[i] = yybytes[i]; - - buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - - b = yy_scan_buffer(buf,n ,yyscanner); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); - - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; - - return b; -} - - static void yy_push_state (int new_state , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if ( yyg->yy_start_stack_ptr >= yyg->yy_start_stack_depth ) - { - yy_size_t new_size; - - yyg->yy_start_stack_depth += YY_START_STACK_INCR; - new_size = yyg->yy_start_stack_depth * sizeof( int ); - - if ( ! yyg->yy_start_stack ) - yyg->yy_start_stack = (int *) yyalloc(new_size ,yyscanner ); - - else - yyg->yy_start_stack = (int *) yyrealloc((void *) yyg->yy_start_stack,new_size ,yyscanner ); - - if ( ! yyg->yy_start_stack ) - YY_FATAL_ERROR( - "out of memory expanding start-condition stack" ); - } - - yyg->yy_start_stack[yyg->yy_start_stack_ptr++] = YY_START; - - BEGIN(new_state); -} - - static void yy_pop_state (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if ( --yyg->yy_start_stack_ptr < 0 ) - YY_FATAL_ERROR( "start-condition stack underflow" ); - - BEGIN(yyg->yy_start_stack[yyg->yy_start_stack_ptr]); -} - - static int yy_top_state (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyg->yy_start_stack[yyg->yy_start_stack_ptr - 1]; -} - -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif - -static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner) -{ - (void) fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); -} - -/* Redefine yyless() so it works in section 3 code. */ - -#undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = yyg->yy_hold_char; \ - yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ - yyg->yy_hold_char = *yyg->yy_c_buf_p; \ - *yyg->yy_c_buf_p = '\0'; \ - yyleng = yyless_macro_arg; \ - } \ - while ( 0 ) - -/* Accessor methods (get/set functions) to struct members. */ - -/** Get the user-defined data for this scanner. - * @param yyscanner The scanner object. - */ -YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyextra; -} - -/** Get the current line number. - * @param yyscanner The scanner object. - */ -int yyget_lineno (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (! YY_CURRENT_BUFFER) - return 0; - - return yylineno; -} - -/** Get the current column number. - * @param yyscanner The scanner object. - */ -int yyget_column (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - if (! YY_CURRENT_BUFFER) - return 0; - - return yycolumn; -} - -/** Get the input stream. - * @param yyscanner The scanner object. - */ -FILE *yyget_in (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyin; -} - -/** Get the output stream. - * @param yyscanner The scanner object. - */ -FILE *yyget_out (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyout; -} - -/** Get the length of the current token. - * @param yyscanner The scanner object. - */ -int yyget_leng (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yyleng; -} - -/** Get the current token. - * @param yyscanner The scanner object. - */ - -char *yyget_text (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yytext; -} - -/** Set the user-defined data. This data is never touched by the scanner. - * @param user_defined The data to be associated with this scanner. - * @param yyscanner The scanner object. - */ -void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyextra = user_defined ; -} - -/** Set the current line number. - * @param line_number - * @param yyscanner The scanner object. - */ -void yyset_lineno (int line_number , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* lineno is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - yy_fatal_error( "yyset_lineno called with no buffer" , yyscanner); - - yylineno = line_number; -} - -/** Set the current column. - * @param line_number - * @param yyscanner The scanner object. - */ -void yyset_column (int column_no , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* column is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - yy_fatal_error( "yyset_column called with no buffer" , yyscanner); - - yycolumn = column_no; -} - -/** Set the input stream. This does not discard the current - * input buffer. - * @param in_str A readable stream. - * @param yyscanner The scanner object. - * @see yy_switch_to_buffer - */ -void yyset_in (FILE * in_str , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyin = in_str ; -} - -void yyset_out (FILE * out_str , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyout = out_str ; -} - -int yyget_debug (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - return yy_flex_debug; -} - -void yyset_debug (int bdebug , yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yy_flex_debug = bdebug ; -} - -/* Accessor methods for yylval and yylloc */ - -/* User-visible API */ - -/* yylex_init is special because it creates the scanner itself, so it is - * the ONLY reentrant function that doesn't take the scanner as the last argument. - * That's why we explicitly handle the declaration, instead of using our macros. - */ - -int yylex_init(yyscan_t* ptr_yy_globals) - -{ - if (ptr_yy_globals == NULL){ - errno = EINVAL; - return 1; - } - - *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL ); - - if (*ptr_yy_globals == NULL){ - errno = ENOMEM; - return 1; - } - - /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ - memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); - - return yy_init_globals ( *ptr_yy_globals ); -} - -static int yy_init_globals (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - /* Initialization is the same as for the non-reentrant scanner. - * This function is called from yylex_destroy(), so don't allocate here. - */ - - yyg->yy_buffer_stack = 0; - yyg->yy_buffer_stack_top = 0; - yyg->yy_buffer_stack_max = 0; - yyg->yy_c_buf_p = (char *) 0; - yyg->yy_init = 0; - yyg->yy_start = 0; - - yyg->yy_start_stack_ptr = 0; - yyg->yy_start_stack_depth = 0; - yyg->yy_start_stack = NULL; - -/* Defined in main.c */ -#ifdef YY_STDINIT - yyin = stdin; - yyout = stdout; -#else - yyin = (FILE *) 0; - yyout = (FILE *) 0; -#endif - - /* For future reference: Set errno on error, since we are called by - * yylex_init() - */ - return 0; -} - -/* yylex_destroy is for both reentrant and non-reentrant scanners. */ -int yylex_destroy (yyscan_t yyscanner) -{ - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - /* Pop the buffer stack, destroying each element. */ - while(YY_CURRENT_BUFFER){ - yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); - YY_CURRENT_BUFFER_LVALUE = NULL; - yypop_buffer_state(yyscanner); - } - - /* Destroy the stack itself. */ - yyfree(yyg->yy_buffer_stack ,yyscanner); - yyg->yy_buffer_stack = NULL; - - /* Destroy the start condition stack. */ - yyfree(yyg->yy_start_stack ,yyscanner ); - yyg->yy_start_stack = NULL; - - /* Reset the globals. This is important in a non-reentrant scanner so the next time - * yylex() is called, initialization will occur. */ - yy_init_globals( yyscanner); - - /* Destroy the main struct (reentrant only). */ - yyfree ( yyscanner , yyscanner ); - yyscanner = NULL; - return 0; -} - -/* - * Internal utility routines. - */ - -#ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) -{ - register int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; -} -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner) -{ - register int n; - for ( n = 0; s[n]; ++n ) - ; - - return n; -} -#endif - -void *yyalloc (yy_size_t size , yyscan_t yyscanner) -{ - return (void *) malloc( size ); -} - -void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner) -{ - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return (void *) realloc( (char *) ptr, size ); -} - -void yyfree (void * ptr , yyscan_t yyscanner) -{ - free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ -} - -#define YYTABLES_NAME "yytables" - -#line 254 "bitbakescanner.l" - - - -void lex_t::accept (int token, const char* sz) -{ - token_t t; - memset (&t, 0, sizeof (t)); - t.copyString(sz); - - /* tell lemon to parse the token */ - parse (parser, token, t, this); -} - -void lex_t::input (char *buf, int *result, int max_size) -{ - /* printf("lex_t::input %p %d\n", buf, max_size); */ - *result = fread(buf, 1, max_size, file); - /* printf("lex_t::input result %d\n", *result); */ -} - -int lex_t::line ()const -{ - /* printf("lex_t::line\n"); */ - return yyget_lineno (scanner); -} - - -extern "C" { - - void parse (FILE* file, char* name, PyObject* data, int config) - { - /* printf("parse bbparseAlloc\n"); */ - void* parser = bbparseAlloc (malloc); - yyscan_t scanner; - lex_t lex; - - /* printf("parse yylex_init\n"); */ - yylex_init (&scanner); - - lex.parser = parser; - lex.scanner = scanner; - lex.file = file; - lex.name = name; - lex.data = data; - lex.config = config; - lex.parse = bbparse; - /*printf("parse yyset_extra\n"); */ - yyset_extra (&lex, scanner); - - /* printf("parse yylex\n"); */ - int result = yylex (scanner); - - /* printf("parse result %d\n", result); */ - - lex.accept (0); - /* printf("parse lex.accept\n"); */ - bbparseTrace (NULL, NULL); - /* printf("parse bbparseTrace\n"); */ - - if (result != T_EOF) - printf ("premature end of file\n"); - - yylex_destroy (scanner); - bbparseFree (parser, free); - } - -} - -- cgit v1.2.3