#line 2 "query_flex.ll"
#include <stdint.h>



#define  YY_INT_ALIGNED short int

/* A lexical scanner generated by flex */








/* %not-for-header */
/* %if-c-only */
/* %if-not-reentrant */
/* %endif */
/* %endif */
/* %ok-for-header */


#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif













/* %if-c++-only */
/* %endif */

/* %if-c-only */

/* %endif */








/* %if-c-only */

/* %endif */




/* First, we deal with  platform-specific or compiler-specific issues. */

/* begin standard C headers. */
/* %if-c-only */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
/* %endif */

/* %if-tables-serialization */
/* %endif */
/* end standard C headers. */

/* %if-c-or-c++ */
/* flex integer type definitions */

#ifndef FLEXINT_H
#define FLEXINT_H

/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */

#if defined (__STDC_VERSION__) && __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 <inttypes.h>
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;

/* 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

#ifndef SIZE_MAX
#define SIZE_MAX               (~(size_t)0)
#endif

#endif /* ! C99 */

#endif /* ! FLEXINT_H */

/* %endif */

/* begin standard C++ headers. */
/* %if-c++-only */
/* %endif */

/* TODO: this is always defined, so inline it */
#define yyconst const

#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__((__noreturn__))
#else
#define yynoreturn
#endif

/* %not-for-header */
/* Returned upon end-of-file. */
#define YY_NULL 0
/* %ok-for-header */


/* %not-for-header */
/* Promotes a possibly negative, possibly signed char to an
 *   integer in range [0..255] for use as an array index.
 */
#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
/* %ok-for-header */




/* %if-reentrant */

/* 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



/* %endif */



/* %if-not-reentrant */
/* %endif */







/* 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
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k.
 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
 * Ditto for the __ia64__ case accordingly.
 */
#define YY_BUF_SIZE 32768
#else
#define YY_BUF_SIZE 16384
#endif /* __ia64__ */
#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

#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif

/* %if-not-reentrant */
/* %endif */

/* %if-c-only */
/* %if-not-reentrant */
/* %endif */
/* %endif */


#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
    
    #define YY_LESS_LINENO(n)
    #define YY_LINENO_REWIND_TO(ptr)
    
/* 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 )


#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
	{
/* %if-c-only */
	FILE *yy_input_file;
/* %endif */

/* %if-c++-only */
/* %endif */


	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.
	 */
	int 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 */

/* %if-c-only Standard (non-C++) definition */
/* %not-for-header */
/* %if-not-reentrant */
/* %endif */
/* %ok-for-header */

/* %endif */


/* 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]


/* %if-c-only Standard (non-C++) definition */

/* %if-not-reentrant */
/* %not-for-header */
/* %ok-for-header */

/* %endif */

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 ( const char *yy_str , yyscan_t yyscanner );
YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner );

/* %endif */

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)


/* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
/* Begin user sect3 */

#define yywrap(yyscanner) (/*CONSTCOND*/1)
#define YY_SKIP_YYWRAP

#define FLEX_DEBUG
typedef flex_uint8_t YY_CHAR;


typedef int yy_state_type;

#define yytext_ptr yytext_r


/* %% [1.5] DFA */


/* %if-c-only Standard (non-C++) definition */


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 yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner );


/* %endif */


/* 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; \
/* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\
	yyleng = (int) (yy_cp - yy_bp); \
	yyg->yy_hold_char = *yy_cp; \
	*yy_cp = '\0'; \
/* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
	yyg->yy_c_buf_p = yy_cp;
/* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */
#define YY_NUM_RULES 73
#define YY_END_OF_BUFFER 74
/* 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 const flex_int16_t yy_accept[442] =
    {   0,
        0,    0,   74,   72,    1,    2,   14,   72,   71,   72,
       72,    9,    3,    3,    9,   61,   61,    7,    4,    8,
       72,   71,   71,   71,   71,   71,   71,   71,   71,   71,
       71,   71,   71,   71,   71,    9,   71,   71,   71,   71,
       71,   71,   71,   71,   71,   71,   72,   72,   72,   72,
        1,    2,    6,    0,   69,    0,   71,   62,   71,    0,
        0,    0,    0,   12,    0,   70,    0,    0,   64,    0,
        0,   67,    0,   67,   61,    0,    0,   66,   10,    4,
       11,    0,    0,    0,    0,    0,    0,    0,    0,   71,
       71,   71,   71,   71,   71,   71,   71,   71,   71,   71,

       71,   71,   71,   71,    5,   71,   71,   71,   71,   71,
       71,   71,   71,   59,   71,   13,   71,   71,   71,   71,
        0,   71,   71,   71,   71,   71,    0,   71,   71,   71,
       71,   71,   71,   71,   71,   71,   71,   71,   13,   71,
        0,    0,    0,   63,    0,    0,    0,    0,    0,    0,
       67,    0,   67,    0,   66,   65,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,   16,   12,   15,   32,
       71,   71,   71,   30,   71,   71,   71,   71,   71,   71,
       71,   71,   53,    0,   71,   71,   71,   54,   55,   71,
       14,   71,   31,   71,   71,   71,   71,    0,    0,   71,

       71,   71,   50,   71,   71,   71,   71,   71,   71,   71,
       71,   71,    0,    0,    0,    0,   53,   54,    0,   67,
        0,   42,    0,    0,    0,   39,   40,    0,   41,    0,
        0,   71,    0,   71,   71,   71,   71,   33,   71,   71,
       71,   71,   71,   71,   71,   71,   71,   71,   60,   48,
       22,   71,   17,   55,   49,   27,   71,    0,   58,   21,
       51,   71,   71,   71,    0,   71,    0,    0,    0,    0,
        0,   45,    0,   38,   44,    0,   71,   68,    0,   71,
       71,   71,   71,   71,   71,   71,   52,   71,   47,   71,
       71,   71,   71,   71,   29,   71,   71,    0,    0,    0,

        0,    0,    0,   43,    0,   71,   71,   71,   30,   71,
       71,   71,   71,   71,   35,   71,   71,   71,   71,   71,
       71,    0,    0,    0,    0,   46,   71,   71,   23,   71,
       71,   71,   71,   71,   71,   71,   71,   71,   71,   71,
        0,    0,    0,    0,   71,   71,   20,   71,   28,   19,
       71,   71,   71,   71,   53,   34,   71,    0,    0,   53,
        0,   32,   71,   71,   71,   37,   71,   24,   71,    0,
        0,    0,   18,   33,   71,   36,   71,    0,    0,   58,
       71,   71,    0,    0,    0,   71,   71,    0,    0,   58,
       71,   25,    0,    0,   26,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,   57,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,   56,
        0
    } ;

static const YY_CHAR yy_ec[256] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        1,    1,    2,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    4,    5,    6,    1,    7,    1,    8,    9,   10,
       11,   12,   13,   14,   15,   16,   17,   18,   19,   19,
       19,   20,   19,   21,   19,   19,   19,   22,    1,   23,
       24,   25,    1,   26,   27,   28,   29,   30,   31,   32,
       33,   34,   35,   36,   37,   38,   39,   40,   41,   42,
       43,   44,   45,   46,   47,   48,   49,   50,   51,   52,
       53,   54,   55,    1,   56,    1,   57,   58,   59,   60,

       61,   62,   63,   64,   65,   66,   67,   68,   69,   70,
       71,   72,   73,   74,   75,   76,   77,   78,   79,   80,
       81,   82,   14,   83,   14,    1,    1,   84,   84,   84,
       84,   84,   84,   84,   84,   84,   84,   84,   84,   84,
       84,   84,   84,   84,   84,   84,   84,   84,   84,   84,
       84,   84,   84,   84,   84,   84,   84,   84,   84,   84,
       84,   84,   84,   84,   84,   84,   84,   84,   84,   84,
       84,   84,   84,   84,   84,   84,   84,   84,   84,   84,
       84,   84,   84,   84,   84,   84,   84,   84,   84,   84,
       84,    1,    1,   85,   85,   85,   85,   85,   85,   85,

       85,   85,   85,   85,   85,   85,   85,   85,   85,   85,
       85,   85,   85,   85,   85,   85,   85,   85,   85,   85,
       85,   85,   85,   86,   86,   86,   86,   86,   86,   86,
       86,   86,   86,   86,   86,   86,   86,   86,   86,   87,
       87,   87,   87,   87,   87,   87,   87,    1,    1,    1,
        1,    1,    1,    1,    1
    } ;

static const YY_CHAR yy_meta[88] =
    {   0,
        1,    1,    1,    1,    1,    2,    3,    1,    1,    1,
        1,    1,    2,    1,    3,    1,    2,    4,    4,    4,
        4,    1,    1,    2,    1,    1,    4,    4,    4,    4,
        4,    4,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    1,    3,    1,    3,    4,    4,    4,    4,
        4,    4,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    1,    1,    3,    3,    3
    } ;

static const flex_int16_t yy_base[511] =
    {   0,
        0,    0,  733, 2192,   86,  729,  691,   83,   73,  703,
       86, 2192, 2192,   80,   84,   93,  110,   82,   93,  686,
      107,  111,  126,   82,  153,   92,  165,  162,  116,  150,
      206,  218,  236,  261,  336,  650,  244,  308,  279,  192,
      317,  354,  342,  379,  393,  273,  609,  604,  598,  585,
      117,  660, 2192,  188, 2192,  440,  214,  441,  450,  211,
      571,  570,  569, 2192,   88, 2192,  490,  210,  469,   82,
      106,  501,  357,  520,  538,  555,    0, 2192, 2192, 2192,
     2192,  570,  570,  570,  565,  152,  193,  538,  558,  397,
      535,  389,  517,  525,  551,  538,  547,  564,  581,  586,

      575,  598,  590,  616,  627,  632,  677,  620,  654,  650,
      662,  688,  684,  706,  714,  255,  593,  722,  701,  728,
      394,  766,  790,  744,  769,  772,  552,  438,  781,  752,
      789,  794,  807,  811,  818,  841,  835,  848, 2192,  832,
      522,  514,    0,  888,  512,  510,    0,  211,  204,  925,
     2192,  932,  936,  725,  940,    0,  530,  514,  509,  518,
      505,  513,  498,  503,  489,  487,  845,  883,  894,  931,
      918,  928,  922,  937,  965,  971,  983,  986,  989, 1008,
      941, 1038, 1044,  969, 1035, 1047, 1050, 1053, 1057, 1060,
     1064, 1103, 1073, 1121, 1124, 1107, 1111, 1026, 1149, 1127,

     1141, 1168, 2192, 1146, 1150, 1162, 1180, 1176, 1185, 1189,
     1225, 1197,  466,    0,  465,    0,  232, 2192, 1199, 1269,
     1273, 2192,  476,  468,  475, 2192, 2192,  473, 2192,  472,
      452, 1255,  512, 1259, 1247, 1252, 1270, 1267, 1282, 1294,
     1304, 1331, 1317, 1323, 1341, 1334, 1347, 1344, 1284, 1264,
     1353, 1369, 1357, 1381, 1387, 1392, 1403, 1440, 1444, 1397,
     1427, 1433, 1439, 1422,    0, 1442,    0,    0,  246, 1512,
      439, 2192,  438, 2192, 2192,  451, 1456, 2192,  505, 1461,
     1490, 1483, 1500, 1509, 1512, 1518, 1536, 1539, 1417, 1530,
     1558, 1580, 1555, 1565, 1552, 1602, 1605,    0,    0,    0,

        0,  253, 1541, 2192,  434, 1618, 1615, 1628, 1575, 1641,
     1656, 1664, 1653, 1678, 1670, 1707, 1693, 1719, 1700, 1714,
     1728,    0,    0,  261, 1655, 2192, 1737, 1755, 1741, 1758,
     1767, 1762, 1796, 1803, 1808, 1823, 1820, 1785, 1833, 1837,
        0,    0,  302, 1751, 1863, 1857, 1814, 1875, 1850, 1867,
     1886, 1871, 1893, 1911, 1901, 1905, 1928,    0,    0, 2192,
     1948, 1920, 1955, 1962, 1966, 1948, 1984, 1958, 2001,    0,
        0, 2008, 1978, 1992, 2007, 1996, 2041,    0,    0, 2054,
     2053, 2045,    0,    0, 2038, 2057, 2075,    0,    0, 2094,
     2087, 2065,    0,  490, 2068,    0,    0,    0,    0,    0,

        0,    0,    0,    0,  488,    0,    0,    0,    0,    0,
        0,    0,    0,    0,  486,    0,    0,    0,    0,    0,
        0,    0,    0,  486,  478, 2192,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,  480, 2192,
     2192, 2174, 2177, 2182,  482,  477,  473,  469,  468, 2186,
      459,  451,  449,  448,  441,  438,  434,  432,  430,  428,
      426,  413,  405,  402,  401,  395,  394,  388,  387,  384,
      383,  381,  380,  375,  368,  364,  359,  357,  341,  331,
      330,  324,  322,  321,  320,  316,  313,  309,  307,  278,
      272,  265,  262,  259,  257,  230,  217,  206,  204,  202,

      201,  195,  191,  185,  144,  140,  135,  134,  131,  130
    } ;

static const flex_int16_t yy_def[511] =
    {   0,
      441,    1,  441,  441,  441,  441,  441,  442,  443,  441,
      444,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  443,  443,  443,  443,  443,  443,  443,  443,  443,
      443,  443,  443,  443,  443,  441,  443,  443,  443,  443,
      443,  443,  443,  443,  443,  443,  441,  441,  441,  441,
      441,  441,  441,  442,  441,  441,  443,  443,  443,  441,
      441,  441,  441,  441,  444,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  445,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  443,
      443,  443,  443,  443,  443,  443,  443,  443,  443,  443,

      443,  443,  443,  443,  443,  443,  443,  443,  443,  443,
      443,  443,  443,  443,  443,  443,  443,  443,  443,  443,
      441,   35,   35,  443,  443,  443,  441,  443,  443,  443,
      443,  443,  443,  443,  443,  443,  443,  443,  441,  443,
      441,  441,  446,  443,  441,  441,  447,  441,  441,  441,
      441,  441,  441,  441,  441,  445,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  443,  443,  443,  443,
      443,  443,  443,  443,  443,  443,  443,  443,  443,  443,
      443,  443,  443,  441,  443,  443,  443,  443,  443,  443,
      443,  443,  443,  443,  443,  443,  443,  441,  441,  443,

      443,  443,  441,  443,  443,  443,  443,  443,  443,  443,
      443,  443,  441,  448,  441,  449,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  443,  450,  443,  443,  443,  443,  443,  443,  443,
      443,  443,  443,  443,  443,  443,  443,  443,  441,  443,
      443,  443,  443,  443,  443,  443,  443,  441,  441,  443,
      443,  443,  443,  443,  451,  443,  452,  453,  441,  441,
      441,  441,  441,  441,  441,  441,  443,  441,  450,  443,
      443,  443,  443,  443,  443,  443,  443,  443,  443,  443,
      443,  443,  443,  443,  443,  443,  443,  454,  455,  456,

      457,  441,  441,  441,  441,  443,  443,  443,  443,  443,
      443,  443,  443,  443,  443,  443,  443,  443,  443,  443,
      443,  458,  459,  441,  441,  441,  443,  443,  443,  443,
      443,  443,  443,  443,  443,  443,  443,  443,  443,  443,
      460,  461,  441,  441,  443,  443,  443,  443,  443,  443,
      443,  443,  443,  443,  443,  443,  443,  462,  463,  441,
      441,  443,  443,  443,  443,  443,  443,  443,  443,  464,
      465,  441,  443,  443,  443,  443,  443,  466,  467,  441,
      443,  443,  468,  469,  441,  443,  443,  470,  471,  441,
      443,  443,  472,  441,  443,  473,  474,  475,  476,  477,

      478,  479,  480,  481,  441,  482,  483,  484,  485,  486,
      487,  488,  489,  490,  441,  491,  492,  493,  494,  495,
      496,  497,  498,  441,  441,  441,  499,  500,  501,  502,
      503,  504,  505,  506,  507,  508,  509,  510,  441,  441,
        0,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,

      441,  441,  441,  441,  441,  441,  441,  441,  441,  441
    } ;

static const flex_int16_t yy_nxt[2280] =
    {   0,
        4,    5,    6,    5,    7,    8,    9,   10,   11,   12,
       12,   13,   14,   12,   14,   15,   13,   16,   17,   17,
       17,    4,   18,   19,   20,   21,   22,   23,   24,   25,
       26,   27,   28,   29,   30,   29,   29,   31,   29,   32,
       33,   29,   29,   29,   34,   35,   29,   29,   29,   29,
       29,   29,   36,    4,   12,   29,   37,   38,   24,   25,
       26,   39,   28,   29,   40,   29,   29,   41,   29,   42,
       43,   29,   29,   29,   44,   45,   46,   29,   29,   29,
       29,   29,   47,    4,   48,   49,   50,   51,   55,   51,
       58,   58,   58,   58,   66,   68,   66,   69,   69,   69,

       69,   72,   72,   72,   72,   79,   53,   73,   74,   59,
       75,   75,   75,   75,   70,   79,   80,   81,   51,   71,
       51,  148,   97,   76,   73,   74,   60,   75,   75,   75,
       75,  100,  149,  439,  438,   60,   56,  437,  436,   67,
       76,   67,   77,  435,   70,   60,   94,  434,   90,   71,
       91,  148,   97,   76,   78,   92,   95,   61,   62,   63,
       96,  100,  149,   82,   60,   83,   61,   62,   63,   60,
       76,   78,   77,   84,   85,   86,   61,   62,   63,   60,
       93,   87,   88,   98,   89,   92,   95,   99,  433,  105,
       96,  101,  104,   55,  432,   61,   62,   63,  431,  102,

       61,   62,   63,   60,  430,  429,   60,  428,  161,  425,
       61,   62,   63,   98,   57,   60,  162,   99,   60,  106,
      424,  103,  104,  107,  107,  107,  107,   72,   72,   72,
       72,  106,  108,  423,   61,   62,   63,   61,   62,   63,
      109,   56,  217,  218,  110,   60,   61,   62,   63,   61,
       62,   63,  111,  114,  114,  114,  114,  163,  112,   60,
      422,  105,  421,  115,  113,  420,  269,   60,  419,  164,
      109,   60,  217,  218,  110,  418,   61,   62,   63,  116,
       57,  416,  111,   93,   57,  302,   57,  324,   92,   60,
       61,   62,   63,  115,  113,  117,  269,   60,   61,   62,

       63,  118,   61,   62,   63,  103,  343,  119,   60,  116,
      415,  128,  414,  129,   60,  302,  413,  324,   92,  412,
       61,   62,   63,  411,  410,  409,   60,  408,   61,   62,
       63,  120,   60,  406,  405,  130,  343,  119,   95,   61,
       62,   63,   96,  131,  404,   61,   62,   63,  121,  138,
      122,  109,  360,  123,  123,  123,  123,   61,   62,   63,
      403,   60,  402,   61,   62,   63,  124,  401,   95,  115,
       60,  400,   96,  132,  152,  152,  152,  152,  399,  125,
      110,  109,  360,  398,  396,  116,  394,  393,  111,   60,
      389,  388,   61,   62,   63,   60,  124,  384,  383,  115,

      113,   61,   62,   63,  379,  378,  134,   60,  371,  126,
      110,  198,  198,  198,  198,  116,  370,  170,  111,  120,
       61,   62,   63,  124,  133,  119,   61,   62,   63,  359,
      113,  358,   60,  342,  167,  341,  126,   65,   61,   62,
       63,   54,   60,  135,  323,   54,   60,  170,   54,  136,
       60,  322,  301,  124,  300,  119,   54,   54,   58,   58,
       58,   58,  298,   61,   62,   63,  137,  144,  144,  144,
      144,  268,  267,   61,   62,   63,  216,   61,   62,   63,
      214,   61,   62,   63,   74,  156,   69,   69,   69,   69,
      440,   60,  427,   54,   60,   65,  426,   54,   65,   76,

      417,   54,  407,   60,  397,  167,   65,   65,  326,   54,
      278,  305,  304,   54,  274,   54,  143,  278,   72,   72,
       72,   72,   61,   62,   63,   61,   62,   63,  276,   76,
       78,  150,  275,  274,   61,   62,   63,  153,  153,  153,
      153,  273,  272,   65,  171,  271,  168,   65,   57,  140,
      150,   65,   73,   74,  231,   75,   75,   75,   75,   65,
      230,  150,  151,   65,  168,   65,  147,  154,   76,  154,
       60,  229,  155,  155,  155,  155,  168,  174,   60,  228,
      150,  151,  227,  172,  226,  169,  175,  225,   60,  224,
      223,   60,  222,  215,  168,   57,  173,  213,   76,   78,

       60,   61,   62,   63,   60,  140,  203,  174,  176,   61,
       62,   63,  179,  172,  166,  178,  175,   60,  165,   61,
       62,   63,   61,   62,   63,  177,  173,  180,   60,  160,
      159,   61,   62,   63,   60,   61,   62,   63,  176,   60,
      158,  181,  180,   60,  194,  178,   60,  157,   61,   62,
       63,   60,  146,  145,   57,  177,  182,  180,  183,   61,
       62,   63,   52,  183,  185,   61,   62,   63,  142,   60,
       61,   62,   63,   60,   61,   62,   63,   61,   62,   63,
       60,  141,   61,   62,   63,   60,  182,  140,  183,  188,
      186,  139,  187,  183,  107,  107,  107,  107,  184,  189,

       61,   62,   63,   60,   61,   62,   63,   60,  127,   81,
       64,   61,   62,   63,   53,   60,   61,   62,   63,  188,
      186,  192,  187,  114,  114,  114,  114,  190,  197,  189,
       60,   52,  441,  191,   61,   62,   63,   60,   61,   62,
       63,   60,  155,  155,  155,  155,   61,   62,   63,  193,
      441,  192,  441,  441,   60,  441,  441,  441,  197,   60,
      195,   61,   62,   63,  441,  196,  441,   60,   61,   62,
       63,  196,   61,   62,   63,   60,  441,  441,  441,  193,
       57,   60,  441,  441,  441,   61,   62,   63,  441,  180,
       61,   62,   63,  200,  441,  196,   57,   60,   61,   62,

       63,  196,  441,  441,   57,   60,   61,   62,   63,   57,
      168,  199,   61,   62,   63,  201,  441,  441,  202,  204,
       57,  441,   60,  200,  441,   60,   57,  441,   61,   62,
       63,  441,  441,   57,   60,  441,   61,   62,   63,   57,
      168,  441,   60,  441,  441,  202,  441,   60,  202,  441,
       57,  441,  441,   61,   62,   63,   61,   62,   63,  441,
       60,  169,  205,   57,   60,   61,   62,   63,  206,  441,
      208,   60,  441,   61,   62,   63,  207,  441,   61,   62,
       63,  202,  191,  441,  196,   60,  441,  441,   60,  441,
      441,   61,   62,   63,   60,   61,   62,   63,   60,  209,

      441,   60,   61,   62,   63,  144,  144,  144,  144,  210,
      441,  211,  212,  441,  196,  441,   61,   62,   63,   61,
       62,   63,  441,  233,  441,   61,   62,   63,  441,   61,
       62,   63,   61,   62,   63,  441,   60,  219,  441,  219,
      441,   60,  220,  220,  220,  220,  221,   60,  441,  152,
      152,  152,  152,  153,  153,  153,  153,  155,  155,  155,
      155,  232,  234,  236,  441,  441,  150,   61,   62,   63,
      235,   60,   61,   62,   63,   60,  441,  441,   61,   62,
       63,   60,  441,  441,   60,  243,  249,  249,  249,  249,
       60,  232,  234,  236,   60,  441,  150,  151,  441,  238,

      235,   78,   61,   62,   63,  441,   61,   62,   63,  441,
      237,  441,   61,   62,   63,   61,   62,   63,   60,  441,
      441,   61,   62,   63,   60,   61,   62,   63,  239,  238,
      240,  441,  441,  241,  441,  441,   60,  441,  441,   60,
      237,  441,   60,  198,  198,  198,  198,  199,  441,   61,
       62,   63,  242,  441,  441,   61,   62,   63,  239,  441,
      240,   60,  441,  242,  441,  244,  245,   61,   62,   63,
       61,   62,   63,   61,   62,   63,  441,  251,  248,  246,
      250,  441,  242,  441,  252,  441,  247,  441,   60,  441,
      253,   60,   61,   62,   63,  244,  245,   60,  441,  441,

       60,  441,  441,   60,  441,  441,   60,  251,  248,  246,
       60,  441,  441,   60,  252,  441,  247,   60,  441,   61,
       62,   63,   61,   62,   63,  441,   60,  441,   61,   62,
       63,   61,   62,   63,   61,   62,   63,   61,   62,   63,
      254,   61,   62,   63,   61,   62,   63,  441,   61,   62,
       63,  255,  256,  257,  169,  441,   60,   61,   62,   63,
       60,  258,  441,  258,   60,  441,  259,  259,  259,  259,
      254,  261,  260,  441,   60,  441,  441,   60,  441,  441,
       60,  441,  256,  257,  441,  265,  441,   61,   62,   63,
      242,   61,   62,   63,   60,   61,   62,   63,  262,   60,

      441,  262,  260,   60,  441,   61,   62,   63,   61,   62,
       63,   61,   62,   63,  441,   60,  220,  220,  220,  220,
      263,   60,  441,  441,  264,   61,   62,   63,  262,   60,
       61,   62,   63,   60,   61,   62,   63,  250,   60,  441,
      253,  441,   60,  441,  441,  255,   61,   62,   63,  169,
       60,  441,   61,   62,   63,  262,  266,  441,  441,  441,
       61,   62,   63,  441,   61,   62,   63,  441,  441,   61,
       62,   63,  441,   61,   62,   63,  441,  281,   60,  441,
      441,   61,   62,   63,  441,  261,  220,  220,  220,  220,
      270,  270,  270,  270,  277,  282,  283,  284,  280,  441,

       60,  249,  249,  249,  249,   60,  441,  281,   60,   61,
       62,   63,   60,  441,  441,  441,  285,   60,  441,  441,
       60,  441,  441,   60,  277,  282,  283,  284,  280,  441,
      151,   61,   62,   63,  287,   60,   61,   62,   63,   61,
       62,   63,  286,   61,   62,   63,  285,   60,   61,   62,
       63,   61,   62,   63,   61,   62,   63,   60,  441,  441,
      441,  288,  289,  290,  288,  441,   61,   62,   63,  441,
       60,  441,  286,  441,  292,  291,   60,  441,   61,   62,
       63,  293,  441,  294,   60,  441,  441,   60,   61,   62,
       63,  288,  441,  290,   60,  441,  441,   60,  441,  441,

       60,   61,   62,   63,  292,  291,   60,   61,   62,   63,
       60,  293,  441,  294,  295,   61,   62,   63,   61,   62,
       63,  441,   60,  441,  441,   61,   62,   63,   61,   62,
       63,   61,   62,   63,   60,  441,  441,   61,   62,   63,
       60,   61,   62,   63,  295,   60,  441,  441,  441,  296,
       60,  299,  441,   61,   62,   63,   60,  259,  259,  259,
      259,  259,  259,  259,  259,   61,   62,   63,  297,  288,
       60,   61,   62,   63,  297,   60,   61,   62,   63,  296,
       60,   61,   62,   63,  441,  306,   60,   61,   62,   63,
      441,  441,   60,  441,  441,   60,  441,  289,  297,  287,

      441,   61,   62,   63,  297,  307,   61,   62,   63,   60,
      441,   61,   62,   63,   60,  306,  441,   61,   62,   63,
      308,  441,  441,   61,   62,   63,   61,   62,   63,  270,
      270,  270,  270,  309,  310,  307,   60,  303,  441,  441,
       61,   62,   63,   60,  441,   61,   62,   63,  311,  441,
      308,  312,  313,   60,  441,  441,  441,  303,  325,  325,
      325,  325,   60,  309,  310,   60,  441,   61,   62,   63,
      441,   60,  441,  441,   61,   62,   63,  314,  311,  315,
      314,  312,  313,   60,   61,   62,   63,  441,  441,   60,
      441,  441,   60,   61,   62,   63,   61,   62,   63,  319,

      318,  316,   61,   62,   63,   60,  441,  314,   60,  315,
      314,   60,  441,  441,   61,   62,   63,  317,   60,  441,
       61,   62,   63,   61,   62,   63,  441,  441,   60,  319,
      318,  316,  320,   60,  441,  441,   61,   62,   63,   61,
       62,   63,   61,   62,   63,  441,  441,  317,  321,   61,
       62,   63,  327,  441,  441,   60,  441,  441,   60,   61,
       62,   63,  320,  328,   61,   62,   63,  329,   60,  441,
      441,   60,  325,  325,  325,  325,  344,  441,  321,  441,
      330,   60,  327,  441,  441,  331,   61,   62,   63,   61,
       62,   63,  332,  328,   60,  441,  441,  329,  333,   61,

       62,   63,   61,   62,   63,  441,   60,  441,  441,   60,
      330,  441,   61,   62,   63,  331,  441,   60,  441,  441,
      441,  334,  332,   60,  441,   61,   62,   63,  333,  441,
      441,   60,  441,  441,  441,  335,  441,   61,   62,   63,
       61,   62,   63,  336,  441,  338,   60,  441,   61,   62,
       63,  334,  337,   60,   61,   62,   63,  339,  340,  441,
       60,  441,   61,   62,   63,  335,  441,   60,  361,  361,
      361,  361,   60,  336,  441,  338,  345,   61,   62,   63,
      441,   60,  337,  441,   61,   62,   63,  339,  340,  346,
       60,   61,   62,   63,   60,  441,  441,  441,   61,   62,

       63,  348,  347,   61,   62,   63,  345,  349,   60,  441,
      441,   60,   61,   62,   63,   60,  441,  441,  441,  346,
       60,   61,   62,   63,  441,   61,   62,   63,  441,  350,
      441,  348,  347,  351,  441,  355,  441,  349,   60,   61,
       62,   63,   61,   62,   63,  352,   61,   62,   63,   60,
      441,   61,   62,   63,  354,  353,   60,  441,  441,  350,
      441,   60,  441,  351,  441,  355,  357,   60,  441,   61,
       62,   63,  441,   60,  441,  352,   60,  441,  441,  441,
       61,   62,   63,  356,  354,  353,   60,   61,   62,   63,
       60,  441,   61,   62,   63,  362,  357,  441,   61,   62,

       63,  366,  363,   60,   61,   62,   63,   61,   62,   63,
       60,  441,  441,  356,  364,  365,   60,   61,   62,   63,
       60,   61,   62,   63,   60,  362,  441,  441,   60,  441,
      441,  366,  363,  367,   61,   62,   63,  441,  441,   60,
      441,   61,   62,   63,  364,  365,   60,   61,   62,   63,
      368,   61,   62,   63,   60,   61,   62,   63,   60,   61,
       62,   63,  369,  367,   60,  361,  361,  361,  361,  372,
       61,   62,   63,   60,  441,  441,  441,   61,   62,   63,
      368,   60,  441,  441,  441,   61,   62,   63,  373,   61,
       62,   63,  369,  441,  374,   61,   62,   63,  441,  441,

      375,   60,  441,  441,   61,   62,   63,  441,   60,  441,
      441,   60,   61,   62,   63,   60,  441,  441,  373,   60,
      441,  441,  441,  376,  374,  380,  380,  380,  380,  377,
      375,   60,   61,   62,   63,  381,  441,   60,  441,   61,
       62,   63,   61,   62,   63,   60,   61,   62,   63,   60,
       61,   62,   63,  376,   60,  390,  390,  390,  390,  377,
       60,  441,   61,   62,   63,  381,  441,  382,   61,   62,
       63,  380,  380,  380,  380,  385,   61,   62,   63,  386,
       61,   62,   63,  441,  441,   61,   62,   63,  441,  441,
      387,   61,   62,   63,   60,  441,  441,  382,   60,  441,

      441,  441,  391,  441,  441,  392,   60,  441,  441,  386,
       60,  390,  390,  390,  390,  441,  441,  395,   60,  441,
      387,   60,  441,  441,  441,   61,   62,   63,   60,   61,
       62,   63,  391,  441,  441,  392,  441,   61,   62,   63,
       60,   61,   62,   63,  441,  441,  441,  395,  441,   61,
       62,   63,   61,   62,   63,  441,  441,  441,  441,   61,
       62,   63,  441,  441,  441,  441,  441,  441,  441,  441,
      441,   61,   62,   63,   54,   54,   54,   54,   54,   57,
       57,   57,   65,   65,   65,   65,   65,  279,  441,  279,
      279,    3,  441,  441,  441,  441,  441,  441,  441,  441,

      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441
    } ;

static const flex_int16_t yy_chk[2280] =
    {   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,    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,    5,    8,    5,
        9,    9,    9,    9,   11,   14,   65,   14,   14,   14,

       14,   15,   15,   15,   15,   18,   18,   16,   16,    9,
       16,   16,   16,   16,   14,   19,   19,   19,   51,   14,
       51,   70,   24,   16,   17,   17,    9,   17,   17,   17,
       17,   26,   71,  510,  509,   24,    8,  508,  507,   11,
       17,   65,   16,  506,   14,   26,   23,  505,   22,   14,
       22,   70,   24,   16,   16,   22,   23,    9,    9,    9,
       23,   26,   71,   21,   22,   21,   24,   24,   24,   29,
       17,   17,   16,   21,   21,   21,   26,   26,   26,   23,
       22,   21,   21,   25,   21,   22,   23,   25,  504,   30,
       23,   27,   28,   54,  503,   22,   22,   22,  502,   27,

       29,   29,   29,   30,  501,  500,   25,  499,   86,  498,
       23,   23,   23,   25,   60,   28,   86,   25,   27,   30,
      497,   27,   28,   31,   31,   31,   31,   68,   68,   68,
       68,   40,   31,  496,   30,   30,   30,   25,   25,   25,
       31,   54,  148,  149,   32,   40,   28,   28,   28,   27,
       27,   27,   32,   33,   33,   33,   33,   87,   32,   31,
      495,   40,  494,   33,   32,  493,  217,   57,  492,   87,
       31,   32,  148,  149,   32,  491,   40,   40,   40,   33,
       60,  490,   32,   37,   60,  269,   60,  302,   37,   33,
       31,   31,   31,   33,   32,   34,  217,   37,   57,   57,

       57,   34,   32,   32,   32,   39,  324,   34,  116,   33,
      489,   37,  488,   37,   34,  269,  487,  302,   37,  486,
       33,   33,   33,  485,  484,  483,   46,  482,   37,   37,
       37,   34,   39,  481,  480,   39,  324,   34,   38,  116,
      116,  116,   38,   39,  479,   34,   34,   34,   35,   46,
       35,   41,  343,   35,   35,   35,   35,   46,   46,   46,
      478,   38,  477,   39,   39,   39,   35,  476,   38,   43,
       41,  475,   38,   41,   73,   73,   73,   73,  474,   35,
       42,   41,  343,  473,  472,   43,  471,  470,   42,   35,
      469,  468,   38,   38,   38,   43,   35,  467,  466,   43,

       42,   41,   41,   41,  465,  464,   43,   42,  463,   35,
       42,  121,  121,  121,  121,   43,  462,   92,   42,   44,
       35,   35,   35,   45,   42,   44,   43,   43,   43,  461,
       42,  460,   44,  459,   90,  458,   45,  457,   42,   42,
       42,  456,   92,   44,  455,   56,   45,   92,   56,   44,
       90,  454,  453,   45,  452,   44,   56,   56,   58,   58,
       58,   58,  451,   44,   44,   44,   45,   59,   59,   59,
       59,  449,  448,   92,   92,   92,  447,   45,   45,   45,
      446,   90,   90,   90,   69,  445,   69,   69,   69,   69,
      439,  128,  425,   56,   58,   67,  424,   56,   67,   69,

      415,   56,  405,   59,  394,  128,   67,   67,  305,   56,
      279,  276,  273,   56,  271,   56,   56,  233,   72,   72,
       72,   72,  128,  128,  128,   58,   58,   58,  231,   69,
       69,   72,  230,  228,   59,   59,   59,   74,   74,   74,
       74,  225,  224,   67,   94,  223,   93,   67,  215,  213,
       74,   67,   75,   75,  166,   75,   75,   75,   75,   67,
      165,   72,   72,   67,   91,   67,   67,   76,   75,   76,
       93,  164,   76,   76,   76,   76,   93,   96,   94,  163,
       74,   74,  162,   95,  161,   91,   97,  160,   91,  159,
      158,   96,  157,  146,   91,  145,   95,  142,   75,   75,

       97,   93,   93,   93,   95,  141,  127,   96,   98,   94,
       94,   94,  101,   95,   89,  100,   97,   98,   88,   91,
       91,   91,   96,   96,   96,   99,   95,  103,  101,   85,
       84,   97,   97,   97,   99,   95,   95,   95,   98,  100,
       83,  102,  101,  103,  117,  100,  117,   82,   98,   98,
       98,  102,   63,   62,   61,   99,  104,  103,  105,  101,
      101,  101,   52,  106,  108,   99,   99,   99,   50,  104,
      100,  100,  100,  108,  103,  103,  103,  117,  117,  117,
      105,   49,  102,  102,  102,  106,  104,   48,  105,  110,
      109,   47,  109,  106,  107,  107,  107,  107,  107,  111,

      104,  104,  104,  110,  108,  108,  108,  109,   36,   20,
       10,  105,  105,  105,    7,  111,  106,  106,  106,  110,
      109,  113,  109,  114,  114,  114,  114,  112,  119,  111,
      107,    6,    3,  112,  110,  110,  110,  113,  109,  109,
      109,  112,  154,  154,  154,  154,  111,  111,  111,  115,
        0,  113,    0,    0,  119,    0,    0,    0,  119,  114,
      118,  107,  107,  107,    0,  118,    0,  115,  113,  113,
      113,  120,  112,  112,  112,  118,    0,    0,  122,  115,
      122,  120,    0,    0,    0,  119,  119,  119,    0,  130,
      114,  114,  114,  124,    0,  118,  122,  124,  115,  115,

      115,  120,  123,    0,  123,  130,  118,  118,  118,  122,
      129,  123,  120,  120,  120,  125,    0,    0,  126,  130,
      123,    0,  125,  124,    0,  126,  122,    0,  124,  124,
      124,    0,    0,  123,  129,    0,  130,  130,  130,  122,
      129,    0,  131,    0,    0,  125,    0,  132,  126,    0,
      123,    0,    0,  125,  125,  125,  126,  126,  126,    0,
      133,  129,  131,  123,  134,  129,  129,  129,  132,    0,
      134,  135,    0,  131,  131,  131,  133,    0,  132,  132,
      132,  137,  133,    0,  136,  140,    0,    0,  137,    0,
        0,  133,  133,  133,  136,  134,  134,  134,  167,  135,

        0,  138,  135,  135,  135,  144,  144,  144,  144,  136,
        0,  137,  138,    0,  136,    0,  140,  140,  140,  137,
      137,  137,    0,  171,    0,  136,  136,  136,    0,  167,
      167,  167,  138,  138,  138,    0,  168,  150,    0,  150,
        0,  144,  150,  150,  150,  150,  152,  169,    0,  152,
      152,  152,  152,  153,  153,  153,  153,  155,  155,  155,
      155,  170,  172,  174,    0,    0,  153,  168,  168,  168,
      173,  171,  144,  144,  144,  173,    0,    0,  169,  169,
      169,  172,    0,    0,  170,  181,  184,  184,  184,  184,
      174,  170,  172,  174,  181,    0,  153,  153,    0,  176,

      173,  155,  171,  171,  171,    0,  173,  173,  173,    0,
      175,    0,  172,  172,  172,  170,  170,  170,  175,    0,
        0,  174,  174,  174,  176,  181,  181,  181,  177,  176,
      178,    0,    0,  179,    0,    0,  177,    0,    0,  178,
      175,    0,  179,  198,  198,  198,  198,  198,    0,  175,
      175,  175,  180,    0,    0,  176,  176,  176,  177,    0,
      178,  180,    0,  179,    0,  182,  182,  177,  177,  177,
      178,  178,  178,  179,  179,  179,    0,  186,  183,  182,
      185,    0,  180,    0,  187,    0,  182,    0,  185,    0,
      190,  182,  180,  180,  180,  182,  182,  183,    0,    0,

      186,    0,    0,  187,    0,    0,  188,  186,  183,  182,
      189,    0,    0,  190,  187,    0,  182,  191,    0,  185,
      185,  185,  182,  182,  182,    0,  193,    0,  183,  183,
      183,  186,  186,  186,  187,  187,  187,  188,  188,  188,
      192,  189,  189,  189,  190,  190,  190,    0,  191,  191,
      191,  194,  196,  197,  195,    0,  192,  193,  193,  193,
      196,  199,    0,  199,  197,    0,  199,  199,  199,  199,
      192,  201,  200,    0,  194,    0,    0,  195,    0,    0,
      200,    0,  196,  197,    0,  208,    0,  192,  192,  192,
      204,  196,  196,  196,  201,  197,  197,  197,  202,  204,

        0,  201,  200,  205,    0,  194,  194,  194,  195,  195,
      195,  200,  200,  200,    0,  206,  219,  219,  219,  219,
      204,  202,    0,    0,  205,  201,  201,  201,  202,  208,
      204,  204,  204,  207,  205,  205,  205,  206,  209,    0,
      207,    0,  210,    0,    0,  209,  206,  206,  206,  210,
      212,    0,  202,  202,  202,  211,  212,    0,    0,    0,
      208,  208,  208,    0,  207,  207,  207,    0,    0,  209,
      209,  209,    0,  210,  210,  210,    0,  235,  211,    0,
        0,  212,  212,  212,    0,  211,  220,  220,  220,  220,
      221,  221,  221,  221,  232,  236,  237,  238,  234,    0,

      235,  249,  249,  249,  249,  236,    0,  235,  232,  211,
      211,  211,  234,    0,    0,    0,  239,  250,    0,    0,
      238,    0,    0,  237,  232,  236,  237,  238,  234,    0,
      220,  235,  235,  235,  241,  239,  236,  236,  236,  232,
      232,  232,  240,  234,  234,  234,  239,  240,  250,  250,
      250,  238,  238,  238,  237,  237,  237,  241,    0,    0,
        0,  242,  243,  244,  241,    0,  239,  239,  239,    0,
      243,    0,  240,    0,  246,  245,  244,    0,  240,  240,
      240,  247,    0,  248,  242,    0,    0,  246,  241,  241,
      241,  242,    0,  244,  245,    0,    0,  248,    0,    0,

      247,  243,  243,  243,  246,  245,  251,  244,  244,  244,
      253,  247,    0,  248,  252,  242,  242,  242,  246,  246,
      246,    0,  252,    0,    0,  245,  245,  245,  248,  248,
      248,  247,  247,  247,  254,    0,    0,  251,  251,  251,
      255,  253,  253,  253,  252,  256,    0,    0,    0,  257,
      260,  266,    0,  252,  252,  252,  257,  258,  258,  258,
      258,  259,  259,  259,  259,  254,  254,  254,  261,  263,
      289,  255,  255,  255,  262,  264,  256,  256,  256,  257,
      261,  260,  260,  260,    0,  277,  262,  257,  257,  257,
        0,    0,  263,    0,    0,  266,    0,  264,  261,  263,

        0,  289,  289,  289,  262,  280,  264,  264,  264,  277,
        0,  261,  261,  261,  280,  277,    0,  262,  262,  262,
      281,    0,    0,  263,  263,  263,  266,  266,  266,  270,
      270,  270,  270,  282,  283,  280,  282,  270,    0,    0,
      277,  277,  277,  281,    0,  280,  280,  280,  284,    0,
      281,  285,  286,  283,    0,    0,    0,  270,  303,  303,
      303,  303,  284,  282,  283,  285,    0,  282,  282,  282,
        0,  286,    0,    0,  281,  281,  281,  287,  284,  290,
      288,  285,  286,  290,  283,  283,  283,    0,    0,  287,
        0,    0,  288,  284,  284,  284,  285,  285,  285,  294,

      293,  291,  286,  286,  286,  295,    0,  287,  293,  290,
      288,  291,    0,    0,  290,  290,  290,  292,  294,    0,
      287,  287,  287,  288,  288,  288,    0,    0,  309,  294,
      293,  291,  296,  292,    0,    0,  295,  295,  295,  293,
      293,  293,  291,  291,  291,    0,    0,  292,  297,  294,
      294,  294,  306,    0,    0,  296,    0,    0,  297,  309,
      309,  309,  296,  307,  292,  292,  292,  308,  307,    0,
        0,  306,  325,  325,  325,  325,  325,    0,  297,    0,
      310,  308,  306,    0,    0,  311,  296,  296,  296,  297,
      297,  297,  312,  307,  310,    0,    0,  308,  313,  307,

      307,  307,  306,  306,  306,    0,  313,    0,    0,  311,
      310,    0,  308,  308,  308,  311,    0,  312,    0,    0,
        0,  314,  312,  315,    0,  310,  310,  310,  313,    0,
        0,  314,    0,    0,    0,  316,    0,  313,  313,  313,
      311,  311,  311,  317,    0,  319,  317,    0,  312,  312,
      312,  314,  318,  319,  315,  315,  315,  320,  321,    0,
      316,    0,  314,  314,  314,  316,    0,  320,  344,  344,
      344,  344,  318,  317,    0,  319,  327,  317,  317,  317,
        0,  321,  318,    0,  319,  319,  319,  320,  321,  328,
      327,  316,  316,  316,  329,    0,    0,    0,  320,  320,

      320,  331,  330,  318,  318,  318,  327,  332,  328,    0,
        0,  330,  321,  321,  321,  332,    0,    0,    0,  328,
      331,  327,  327,  327,    0,  329,  329,  329,    0,  333,
        0,  331,  330,  334,    0,  338,    0,  332,  338,  328,
      328,  328,  330,  330,  330,  335,  332,  332,  332,  333,
        0,  331,  331,  331,  337,  336,  334,    0,    0,  333,
        0,  335,    0,  334,    0,  338,  340,  347,    0,  338,
      338,  338,    0,  337,    0,  335,  336,    0,    0,    0,
      333,  333,  333,  339,  337,  336,  339,  334,  334,  334,
      340,    0,  335,  335,  335,  345,  340,    0,  347,  347,

      347,  352,  346,  349,  337,  337,  337,  336,  336,  336,
      346,    0,    0,  339,  348,  351,  345,  339,  339,  339,
      350,  340,  340,  340,  352,  345,    0,    0,  348,    0,
        0,  352,  346,  353,  349,  349,  349,    0,    0,  351,
        0,  346,  346,  346,  348,  351,  353,  345,  345,  345,
      354,  350,  350,  350,  355,  352,  352,  352,  356,  348,
      348,  348,  357,  353,  354,  361,  361,  361,  361,  361,
      351,  351,  351,  362,    0,    0,    0,  353,  353,  353,
      354,  357,    0,    0,    0,  355,  355,  355,  363,  356,
      356,  356,  357,    0,  364,  354,  354,  354,    0,    0,

      365,  366,    0,    0,  362,  362,  362,    0,  363,    0,
        0,  368,  357,  357,  357,  364,    0,    0,  363,  365,
        0,    0,    0,  367,  364,  372,  372,  372,  372,  369,
      365,  373,  366,  366,  366,  375,    0,  367,    0,  363,
      363,  363,  368,  368,  368,  374,  364,  364,  364,  376,
      365,  365,  365,  367,  369,  385,  385,  385,  385,  369,
      375,    0,  373,  373,  373,  375,    0,  377,  367,  367,
      367,  380,  380,  380,  380,  380,  374,  374,  374,  381,
      376,  376,  376,    0,    0,  369,  369,  369,    0,    0,
      382,  375,  375,  375,  377,    0,    0,  377,  382,    0,

        0,    0,  386,    0,    0,  387,  381,    0,    0,  381,
      386,  390,  390,  390,  390,    0,    0,  391,  392,    0,
      382,  395,    0,    0,    0,  377,  377,  377,  387,  382,
      382,  382,  386,    0,    0,  387,    0,  381,  381,  381,
      391,  386,  386,  386,    0,    0,    0,  391,    0,  392,
      392,  392,  395,  395,  395,    0,    0,    0,    0,  387,
      387,  387,    0,    0,    0,    0,    0,    0,    0,    0,
        0,  391,  391,  391,  442,  442,  442,  442,  442,  443,
      443,  443,  444,  444,  444,  444,  444,  450,    0,  450,
      450,  441,  441,  441,  441,  441,  441,  441,  441,  441,

      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  441,  441,  441,  441
    } ;

static const flex_int16_t yy_rule_linenum[73] =
    {   0,
       32,   33,   35,   36,   37,   38,   39,   40,   41,   42,
       43,   44,   45,   46,   47,   48,   49,   50,   51,   52,
       53,   54,   55,   56,   57,   58,   59,   60,   61,   62,
       63,   64,   65,   66,   67,   68,   69,   70,   71,   72,
       73,   74,   75,   76,   77,   78,   79,   80,   81,   82,
       83,   84,   85,   86,   87,   88,   89,   90,   91,   92,
       93,   94,   95,   96,   97,   98,   99,  100,  101,  102,
      104,  106
    } ;

/* 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

# include <cerrno>
# include <climits>
# include <cstdlib>
# include <cstring> // strerror
# include <string>
# include "realm/parser/driver.hpp"
#define YY_NO_UNISTD_H 1
#define YY_NO_INPUT 1



#define INITIAL 0




#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.
 */
/* %if-c-only */
#include <unistd.h>
/* %endif */
/* %if-c++-only */
/* %endif */
#endif



#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif



/* %if-c-only Reentrant structure and macros (non-C++). */
/* %if-reentrant */


/* 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 */



/* %if-c-only */

static int yy_init_globals ( yyscan_t yyscanner );

/* %endif */

/* %if-reentrant */


    

    


int yylex_init (yyscan_t* scanner);

int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner);

/* %endif */

/* %endif End reentrant structures and macros. */

/* 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 );




int yyget_column  ( yyscan_t yyscanner );





void yyset_column ( int _column_no , yyscan_t yyscanner );



/* %if-bison-bridge */
/* %endif */

/* 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

/* %not-for-header */
#ifndef YY_NO_UNPUT
    
#endif
/* %ok-for-header */

/* %endif */

#ifndef yytext_ptr
static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner);
#endif

#ifdef YY_NEED_STRLEN
static int yy_flex_strlen ( const char * , yyscan_t yyscanner);
#endif

#ifndef YY_NO_INPUT
/* %if-c-only Standard (non-C++) definition */
/* %not-for-header */
#ifdef __cplusplus
static int yyinput ( yyscan_t yyscanner );
#else
static int input ( yyscan_t yyscanner );
#endif
/* %ok-for-header */

/* %endif */
#endif


/* %if-c-only */





/* %endif */

/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192
#endif /* __ia64__ */
#endif


/* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO
/* %if-c-only Standard (non-C++) definition */
/* This used to be an fputs(), but since the string might contain NUL's,
 * we now use fwrite().
 */
#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
/* %endif */
/* %if-c++-only C++ definition */
/* %endif */
#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) \
/* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\
	if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
		{ \
		int c = '*'; \
		int 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 = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
			{ \
			if( errno != EINTR) \
				{ \
				YY_FATAL_ERROR( "input in flex scanner failed" ); \
				break; \
				} \
			errno=0; \
			clearerr(yyin); \
			} \
		}\
\
/* %if-c++-only C++ definition \ */\
/* %endif */

#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
/* %if-c-only */
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
#endif


/* %if-tables-serialization structures and prototypes */
/* %not-for-header */
/* %ok-for-header */

/* %not-for-header */
/* %tables-yydmap generated elements */
/* %endif */
/* end tables serialization structures and prototypes */

/* %ok-for-header */


/* Default declaration of generated scanner - a define so the user can
 * easily add parameters.
 */
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
/* %if-c-only Standard (non-C++) definition */









extern int yylex (yyscan_t yyscanner);

#define YY_DECL int yylex (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only C++ definition */
/* %endif */
#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 /*LINTED*/break;
#endif



/* %% [6.0] YY_RULE_SETUP definition goes here */
#define YY_RULE_SETUP \
	YY_USER_ACTION


/* %not-for-header */
/** The main scanner function which does all the work.
 */
YY_DECL
{
	yy_state_type yy_current_state;
	char *yy_cp, *yy_bp;
	int yy_act;
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;







	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 )
/* %if-c-only */
			yyin = stdin;
/* %endif */
/* %if-c++-only */
/* %endif */

		if ( ! yyout )
/* %if-c-only */
			yyout = stdout;
/* %endif */
/* %if-c++-only */
/* %endif */

		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 );
		}

	{
/* %% [7.0] user's declarations go here */


	while ( /*CONSTCOND*/1 )		/* loops until end-of-file is reached */
		{
/* %% [8.0] yymore()-related code goes here */
		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;

/* %% [9.0] code to set up and find next match goes here */
		yy_current_state = yyg->yy_start;
yy_match:
		do
			{
			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 >= 442 )
					yy_c = yy_meta[yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
			++yy_cp;
			}
		while ( yy_current_state != 441 );
		yy_cp = yyg->yy_last_accepting_cpos;
		yy_current_state = yyg->yy_last_accepting_state;

yy_find_action:
/* %% [10.0] code to find the action number goes here */
		yy_act = yy_accept[yy_current_state];

		YY_DO_BEFORE_ACTION;

/* %% [11.0] code for yylineno update goes here */


do_action:	/* This label is used only to access EOF actions. */

/* %% [12.0] debug code goes here */
		if ( yy_flex_debug )
			{
			if ( yy_act == 0 )
				fprintf( stderr, "--scanner backing up\n" );
			else if ( yy_act < 73 )
				fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",
				         (long)yy_rule_linenum[yy_act], yytext );
			else if ( yy_act == 73 )
				fprintf( stderr, "--accepting default rule (\"%s\")\n",
				         yytext );
			else if ( yy_act == 74 )
				fprintf( stderr, "--(end of buffer or a NUL)\n" );
			else
				fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
			}

		switch ( yy_act )
	{ /* beginning of action switch */
/* %% [13.0] actions go here */
			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
;
	YY_BREAK
case 2:
/* rule 2 can match eol */
YY_RULE_SETUP
;
	YY_BREAK
case 3:
YY_RULE_SETUP
return yytext[0];
	YY_BREAK
case 4:
YY_RULE_SETUP
return yy::parser::make_EQUAL  ();
	YY_BREAK
case 5:
YY_RULE_SETUP
return yy::parser::make_IN  (yytext);
	YY_BREAK
case 6:
YY_RULE_SETUP
return yy::parser::make_NOT_EQUAL();
	YY_BREAK
case 7:
YY_RULE_SETUP
return yy::parser::make_LESS   ();
	YY_BREAK
case 8:
YY_RULE_SETUP
return yy::parser::make_GREATER();
	YY_BREAK
case 9:
YY_RULE_SETUP
return yytext[0];
	YY_BREAK
case 10:
YY_RULE_SETUP
return yy::parser::make_LESS_EQUAL ();
	YY_BREAK
case 11:
YY_RULE_SETUP
return yy::parser::make_GREATER_EQUAL ();
	YY_BREAK
case 12:
YY_RULE_SETUP
return yy::parser::make_AND    ();
	YY_BREAK
case 13:
YY_RULE_SETUP
return yy::parser::make_OR     ();
	YY_BREAK
case 14:
YY_RULE_SETUP
return yy::parser::make_NOT();
	YY_BREAK
case 15:
YY_RULE_SETUP
return yy::parser::make_ANY();
	YY_BREAK
case 16:
YY_RULE_SETUP
return yy::parser::make_ALL();
	YY_BREAK
case 17:
YY_RULE_SETUP
return yy::parser::make_NONE();
	YY_BREAK
case 18:
YY_RULE_SETUP
return yy::parser::make_BEGINSWITH(yytext);
	YY_BREAK
case 19:
YY_RULE_SETUP
return yy::parser::make_ENDSWITH(yytext);
	YY_BREAK
case 20:
YY_RULE_SETUP
return yy::parser::make_CONTAINS(yytext);
	YY_BREAK
case 21:
YY_RULE_SETUP
return yy::parser::make_TEXT(yytext);
	YY_BREAK
case 22:
YY_RULE_SETUP
return yy::parser::make_LIKE(yytext);
	YY_BREAK
case 23:
YY_RULE_SETUP
return yy::parser::make_BETWEEN(yytext);
	YY_BREAK
case 24:
YY_RULE_SETUP
return yy::parser::make_GEOWITHIN(yytext);
	YY_BREAK
case 25:
YY_RULE_SETUP
return yy::parser::make_TRUEPREDICATE (); 
	YY_BREAK
case 26:
YY_RULE_SETUP
return yy::parser::make_FALSEPREDICATE (); 
	YY_BREAK
case 27:
YY_RULE_SETUP
return yy::parser::make_SORT(yytext);
	YY_BREAK
case 28:
YY_RULE_SETUP
return yy::parser::make_DISTINCT(yytext);
	YY_BREAK
case 29:
YY_RULE_SETUP
return yy::parser::make_LIMIT(yytext);
	YY_BREAK
case 30:
YY_RULE_SETUP
return yy::parser::make_BINARY(yytext);
	YY_BREAK
case 31:
YY_RULE_SETUP
return yy::parser::make_OBJ(yytext);
	YY_BREAK
case 32:
YY_RULE_SETUP
return yy::parser::make_ASCENDING(yytext);
	YY_BREAK
case 33:
YY_RULE_SETUP
return yy::parser::make_DESCENDING(yytext);
	YY_BREAK
case 34:
YY_RULE_SETUP
return yy::parser::make_SUBQUERY();
	YY_BREAK
case 35:
YY_RULE_SETUP
return yy::parser::make_GEOBOX();
	YY_BREAK
case 36:
YY_RULE_SETUP
return yy::parser::make_GEOPOLYGON();
	YY_BREAK
case 37:
YY_RULE_SETUP
return yy::parser::make_GEOCIRCLE();
	YY_BREAK
case 38:
YY_RULE_SETUP
return yy::parser::make_SIZE(yytext);
	YY_BREAK
case 39:
YY_RULE_SETUP
return yy::parser::make_MAX    ();
	YY_BREAK
case 40:
YY_RULE_SETUP
return yy::parser::make_MIN    ();
	YY_BREAK
case 41:
YY_RULE_SETUP
return yy::parser::make_SUM    ();
	YY_BREAK
case 42:
YY_RULE_SETUP
return yy::parser::make_AVG    ();
	YY_BREAK
case 43:
YY_RULE_SETUP
return yy::parser::make_BACKLINK(yytext);
	YY_BREAK
case 44:
YY_RULE_SETUP
return yy::parser::make_TYPE    (yytext);
	YY_BREAK
case 45:
YY_RULE_SETUP
return yy::parser::make_KEY_VAL (yytext);
	YY_BREAK
case 46:
YY_RULE_SETUP
return yy::parser::make_KEY_VAL (yytext);
	YY_BREAK
case 47:
YY_RULE_SETUP
return yy::parser::make_INDEX_FIRST (yytext);
	YY_BREAK
case 48:
YY_RULE_SETUP
return yy::parser::make_INDEX_LAST (yytext);
	YY_BREAK
case 49:
YY_RULE_SETUP
return yy::parser::make_INDEX_SIZE (yytext);
	YY_BREAK
case 50:
YY_RULE_SETUP
return yy::parser::make_CASE    ();
	YY_BREAK
case 51:
YY_RULE_SETUP
return yy::parser::make_TRUE    ();
	YY_BREAK
case 52:
YY_RULE_SETUP
return yy::parser::make_FALSE    ();
	YY_BREAK
case 53:
YY_RULE_SETUP
return yy::parser::make_INFINITY(yytext);
	YY_BREAK
case 54:
YY_RULE_SETUP
return  yy::parser::make_NAN(yytext);
	YY_BREAK
case 55:
YY_RULE_SETUP
return yy::parser::make_NULL_VAL ();
	YY_BREAK
case 56:
YY_RULE_SETUP
return yy::parser::make_UUID(yytext); 
	YY_BREAK
case 57:
YY_RULE_SETUP
return yy::parser::make_OID(yytext);
	YY_BREAK
case 58:
YY_RULE_SETUP
return yy::parser::make_TIMESTAMP(yytext);
	YY_BREAK
case 59:
YY_RULE_SETUP
return yy::parser::make_LINK (yytext);
	YY_BREAK
case 60:
YY_RULE_SETUP
return yy::parser::make_TYPED_LINK (yytext);
	YY_BREAK
case 61:
YY_RULE_SETUP
return yy::parser::make_NATURAL0 (yytext);
	YY_BREAK
case 62:
YY_RULE_SETUP
return yy::parser::make_ARG(yytext); 
	YY_BREAK
case 63:
YY_RULE_SETUP
return yy::parser::make_KP_ARG(yytext); 
	YY_BREAK
case 64:
YY_RULE_SETUP
return yy::parser::make_NUMBER (yytext);
	YY_BREAK
case 65:
YY_RULE_SETUP
return yy::parser::make_NUMBER (yytext);
	YY_BREAK
case 66:
YY_RULE_SETUP
return yy::parser::make_FLOAT (yytext);
	YY_BREAK
case 67:
YY_RULE_SETUP
return yy::parser::make_FLOAT (yytext);
	YY_BREAK
case 68:
YY_RULE_SETUP
return yy::parser::make_BASE64(yytext);
	YY_BREAK
case 69:
/* rule 69 can match eol */
YY_RULE_SETUP
return yy::parser::make_STRING (yytext);
	YY_BREAK
case 70:
/* rule 70 can match eol */
YY_RULE_SETUP
return yy::parser::make_STRING (yytext);
	YY_BREAK
case 71:
YY_RULE_SETUP
return yy::parser::make_ID (check_escapes(yytext));
	YY_BREAK
case 72:
YY_RULE_SETUP
{
             throw yy::parser::syntax_error
               ("invalid character: " + std::string(yytext));
           }
	YY_BREAK
case YY_STATE_EOF(INITIAL):
return yy::parser::make_END ();
	YY_BREAK
case 73:
YY_RULE_SETUP
ECHO;
	YY_BREAK

	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;
/* %if-c-only */
			YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
/* %endif */
/* %if-c++-only */
/* %endif */
			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
				{
/* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */
				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 user's declarations */
} /* end of yylex */
/* %ok-for-header */


/* %if-c++-only */
/* %not-for-header */
/* %ok-for-header */

/* %endif */


/* 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
 */
/* %if-c-only */
static int yy_get_next_buffer (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
	char *source = yyg->yytext_ptr;
	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_LVALUE;

			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,
							 (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
				}
			else
				/* Can't grow it, we don't own it. */
				b->yy_ch_buf = NULL;

			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;

	if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
		/* Extend the array by 50%, plus the number we really need. */
		int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
			(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
			YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
		/* "- 2" to take care of EOB's */
		YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
	}

	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 */

/* %if-c-only */
/* %not-for-header */
    static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
	yy_state_type yy_current_state;
	char *yy_cp;
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

/* %% [15.0] code to get the start state into yy_current_state goes here */
	yy_current_state = yyg->yy_start;

	for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
		{
/* %% [16.0] code to find the next state goes here */
		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 >= 442 )
				yy_c = yy_meta[yy_c];
			}
		yy_current_state = yy_nxt[yy_base[yy_current_state] + 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 );
 */
/* %if-c-only */
    static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
	int yy_is_jam;
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
/* %% [17.0] code to find the next state, and perhaps do backing up, goes here */
	char *yy_cp = yyg->yy_c_buf_p;

	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 >= 442 )
			yy_c = yy_meta[yy_c];
		}
	yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
	yy_is_jam = (yy_current_state == 441);

	(void)yyg;
	return yy_is_jam ? 0 : yy_current_state;
}


#ifndef YY_NO_UNPUT
/* %if-c-only */

/* %endif */
#endif

/* %if-c-only */
#ifndef YY_NO_INPUT
#ifdef __cplusplus
    static int yyinput (yyscan_t yyscanner)
#else
    static int input  (yyscan_t yyscanner)
#endif

/* %endif */
/* %if-c++-only */
/* %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 = (int) (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 0;

					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;

/* %% [19.0] update BOL and yylineno */

	return c;
}
/* %if-c-only */
#endif	/* ifndef YY_NO_INPUT */
/* %endif */

/** 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 .
 */
/* %if-c-only */
    void yyrestart  (FILE * input_file , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
    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 );
}

/* %if-c++-only */
/* %endif */

/** Switch to a different input buffer.
 * @param new_buffer The new input buffer.
 * @param yyscanner The scanner object.
 */
/* %if-c-only */
    void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
    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;
}


/* %if-c-only */
static void yy_load_buffer_state  (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
    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;
/* %if-c-only */
	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
/* %endif */
/* %if-c++-only */
/* %endif */
	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.
 */
/* %if-c-only */
    YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
	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( (yy_size_t) (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;
}

/* %if-c++-only */
/* %endif */

/** Destroy the buffer.
 * @param b a buffer created with yy_create_buffer()
 * @param yyscanner The scanner object.
 */
/* %if-c-only */
    void yy_delete_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
    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.
 */
/* %if-c-only */
    static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */

{
	int oerrno = errno;
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

	yy_flush_buffer( b , yyscanner);

/* %if-c-only */
	b->yy_input_file = file;
/* %endif */
/* %if-c++-only */
/* %endif */
	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;
    }

/* %if-c-only */

    
        b->yy_is_interactive = 0;
    

/* %endif */
/* %if-c++-only */
/* %endif */
	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.
 */
/* %if-c-only */
    void yy_flush_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
    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 );
}

/* %if-c-or-c++ */
/** 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.
 */
/* %if-c-only */
void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
    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;
}
/* %endif */


/* %if-c-or-c++ */
/** Removes and deletes the top of the stack, if present.
 *  The next element becomes the new top.
 *  @param yyscanner The scanner object.
 */
/* %if-c-only */
void yypop_buffer_state (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
    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;
	}
}
/* %endif */


/* %if-c-or-c++ */
/* Allocates the stack if it does not exist.
 *  Guarantees space for at least one push.
 */
/* %if-c-only */
static void yyensure_buffer_stack (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{
	yy_size_t 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; /* After all that talk, this was set to 1 anyways... */
		yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc
								(num_to_alloc * sizeof(struct yy_buffer_state*)
								, yyscanner);
		if ( ! yyg->yy_buffer_stack )
			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );


		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. */
		yy_size_t 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);
		if ( ! yyg->yy_buffer_stack )
			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );

		/* 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;
	}
}
/* %endif */





/* %if-c-only */
/** 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 NULL;

	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 = (int) (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 = NULL;
	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;
}
/* %endif */




/* %if-c-only */
/** Setup the input buffer state to scan a string. The next call to yylex() will
 * scan from a @e copy of @a str.
 * @param yystr 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 (const char * yystr , yyscan_t yyscanner)
{
    
	return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
}
/* %endif */




/* %if-c-only */
/** 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 yybytes the byte buffer to scan
 * @param _yybytes_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  (const 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 = (yy_size_t) (_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;
}
/* %endif */











#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

/* %if-c-only */
static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner)
{
	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	(void)yyg;
	fprintf( stderr, "%s\n", msg );
	exit( YY_EXIT_FAILURE );
}
/* %endif */
/* %if-c++-only */
/* %endif */

/* 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. */

/* %if-c-only */
/* %if-reentrant */

/** 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;
}

/* %endif */


/** 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;
}


/* %if-reentrant */

/** 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 ;
}

/* %endif */


/** Set the current line number.
 * @param _line_number 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" );
    
    yylineno = _line_number;
}




/** Set the current column.
 * @param _column_no column 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" );
    
    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 ;
}

/* %endif */

/* %if-reentrant */
/* Accessor methods for yylval and yylloc */

/* %if-bison-bridge */
/* %endif */


/* 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 );
}


/* yylex_init_extra has the same functionality as yylex_init, but follows the
 * convention of taking the scanner as the last argument. Note however, that
 * this is a *pointer* to a scanner, as it will be allocated by this call (and
 * is the reason, too, why this function also must handle its own declaration).
 * The user defined value in the first argument will be available to yyalloc in
 * the yyextra field.
 */
int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals )
{
    struct yyguts_t dummy_yyguts;

    yyset_extra (yy_user_defined, &dummy_yyguts);

    if (ptr_yy_globals == NULL){
        errno = EINVAL;
        return 1;
    }

    *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );

    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));

    yyset_extra (yy_user_defined, *ptr_yy_globals);

    return yy_init_globals ( *ptr_yy_globals );
}

/* %endif if-c-only */

/* %if-c-only */
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 = NULL;
    yyg->yy_buffer_stack_top = 0;
    yyg->yy_buffer_stack_max = 0;
    yyg->yy_c_buf_p = NULL;
    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 = NULL;
    yyout = NULL;
#endif

    /* For future reference: Set errno on error, since we are called by
     * yylex_init()
     */
    return 0;
}
/* %endif */


/* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
/* 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);

/* %if-reentrant */
    /* Destroy the main struct (reentrant only). */
    yyfree ( yyscanner , yyscanner );
    yyscanner = NULL;
/* %endif */
    return 0;
}
/* %endif */



/*
 * Internal utility routines.
 */



#ifndef yytext_ptr
static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner)
{
	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	(void)yyg;

	int i;
	for ( i = 0; i < n; ++i )
		s1[i] = s2[i];
}
#endif



#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (const char * s , yyscan_t yyscanner)
{
	int n;
	for ( n = 0; s[n]; ++n )
		;

	return n;
}
#endif



void *yyalloc (yy_size_t  size , yyscan_t yyscanner)
{
	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	(void)yyg;
	return malloc(size);
}



void *yyrealloc  (void * ptr, yy_size_t  size , yyscan_t yyscanner)
{
	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	(void)yyg;

	/* 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 realloc(ptr, size);
}



void yyfree (void * ptr , yyscan_t yyscanner)
{
	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	(void)yyg;
	free( (char *) ptr );	/* see yyrealloc() for (char *) cast */
}


/* %if-tables-serialization definitions */
/* %define-yytables   The name for this specific scanner's tables. */
#define YYTABLES_NAME "yytables"
/* %endif */




/* %ok-for-header */




void realm::query_parser::ParserDriver::scan_begin (yyscan_t yyscanner, bool trace_scanning)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    yy_flex_debug = trace_scanning;
    yy_scan_buffer(parse_buffer.data(), int(parse_buffer.size()), yyscanner);
}

