Logo Search packages:      
Sourcecode: postgresql-8.4 version File versions

pgc.c

#line 2 "pgc.c"
/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
 */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#include <stdio.h>


/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif


#ifdef __cplusplus

#include <stdlib.h>
#include <unistd.h>

/* Use prototypes in function declarations. */
#define YY_USE_PROTOS

/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST

#else /* ! __cplusplus */

#if __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

#endif      /* __STDC__ */
#endif      /* ! __cplusplus */

#ifdef __TURBOC__
 #pragma warn -rch
 #pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif

#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif


#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif

/* Returned upon end-of-file. */
#define YY_NULL 0

/* Promotes a possibly negative, possibly signed char to an unsigned
 * integer for use as an array index.  If the signed char is negative,
 * we want to instead treat it as an 8-bit unsigned char, hence the
 * double cast.
 */
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)

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

#define YY_END_OF_BUFFER_CHAR 0

/* Size of default input buffer. */
#define YY_BUF_SIZE 16384

typedef struct yy_buffer_state *YY_BUFFER_STATE;

extern int yyleng;
extern FILE *yyin, *yyout;

#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2

/* The funky do-while in the following #define is used to turn the definition
 * int a single C statement (which needs a semi-colon terminator).  This
 * avoids problems with code like:
 *
 *    if ( condition_holds )
 *          yyless( 5 );
 *    else
 *          do_something_else();
 *
 * Prior to using the do-while the compiler would get upset at the
 * "else" because it interpreted the "if" statement as being all
 * done when it reached the ';' after the yyless() call.
 */

/* Return all but the first 'n' matched characters back to the input stream. */

#define yyless(n) \
      do \
            { \
            /* Undo effects of setting up yytext. */ \
            *yy_cp = yy_hold_char; \
            YY_RESTORE_YY_MORE_OFFSET \
            yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
            YY_DO_BEFORE_ACTION; /* set up yytext again */ \
            } \
      while ( 0 )

#define unput(c) yyunput( c, yytext_ptr )

/* The following is because we cannot portably get our hands on size_t
 * (without autoconf's help, which isn't available because we want
 * flex-generated scanners to compile on their own).
 */
typedef unsigned int yy_size_t;


struct yy_buffer_state
      {
      FILE *yy_input_file;

      char *yy_ch_buf;        /* input buffer */
      char *yy_buf_pos;       /* current position in input buffer */

      /* Size of input buffer in bytes, not including room for EOB
       * characters.
       */
      yy_size_t yy_buf_size;

      /* Number of characters read into yy_ch_buf, not including EOB
       * characters.
       */
      int yy_n_chars;

      /* Whether we "own" the buffer - i.e., we know we created it,
       * and can realloc() it to grow it, and should free() it to
       * delete it.
       */
      int yy_is_our_buffer;

      /* Whether this is an "interactive" input source; if so, and
       * if we're using stdio for input, then we want to use getc()
       * instead of fread(), to make sure we stop fetching input after
       * each newline.
       */
      int yy_is_interactive;

      /* Whether we're considered to be at the beginning of a line.
       * If so, '^' rules will be active on the next match, otherwise
       * not.
       */
      int yy_at_bol;

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

static YY_BUFFER_STATE yy_current_buffer = 0;

/* 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".
 */
#define YY_CURRENT_BUFFER yy_current_buffer


/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;

static int yy_n_chars;        /* number of characters read into yy_ch_buf */


int yyleng;

/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 1;       /* whether we need to initialize */
static int yy_start = 0;      /* start state number */

/* Flag which is used to allow yywrap()'s to do buffer switches
 * instead of setting up a fresh yyin.  A bit of a hack ...
 */
static int yy_did_buffer_switch_on_eof;

void yyrestart YY_PROTO(( FILE *input_file ));

void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )

YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));

static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void yy_flex_free YY_PROTO(( void * ));

#define yy_new_buffer yy_create_buffer

#define yy_set_interactive(is_interactive) \
      { \
      if ( ! yy_current_buffer ) \
            yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
      yy_current_buffer->yy_is_interactive = is_interactive; \
      }

#define yy_set_bol(at_bol) \
      { \
      if ( ! yy_current_buffer ) \
            yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
      yy_current_buffer->yy_at_bol = at_bol; \
      }

#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)


#define YY_USES_REJECT

#define yywrap() 1
#define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern int yylineno;
int yylineno = 1;
extern char *yytext;
#define yytext_ptr yytext

static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));

/* Done after the current pattern has been matched and before the
 * corresponding action - sets up yytext.
 */
#define YY_DO_BEFORE_ACTION \
      yytext_ptr = yy_bp; \
      yyleng = (int) (yy_cp - yy_bp); \
      yy_hold_char = *yy_cp; \
      *yy_cp = '\0'; \
      yy_c_buf_p = yy_cp;

#define YY_NUM_RULES 138
#define YY_END_OF_BUFFER 139
static yyconst short int yy_acclist[590] =
    {   0,
       12,   12,   11,   11,  139,  137,  138,  107,  138,   85,
      107,  138,   85,  138,  107,  138,   52,  107,  138,  107,
      138,   69,  107,  138,   79,  107,  138,  107,  138,   19,
      107,  138,   83,  107,  138,   84,  107,  138,   78,  107,
      138,   81,  107,  138,   77,  107,  138,   82,  107,  138,
      107,  138,   80,  107,  138,   59,  107,  138,   59,  107,
      138,   75,  107,  138,   76,  107,  138,  107,  138,   90,
      107,  138,  107,  138,   74,  107,  138,   74,  107,  138,
       88,  107,  138,   89,  107,  138,   86,  107,  138,  107,
      138,   87,  107,  138,   67,  138,    1,   67,  138,    1,

      138,   57,   67,  138,   45,   52,   67,  138,   57,   67,
      138,   55,   67,  138,   56,   57,   67,  138,   20,   67,
      138,   56,   67,  138,   56,   57,   67,  138,   56,   67,
      138,   56,   57,   67,  138,   59,   67,  138,   56,   67,
      138,   66,   67,  138,   66,   67,  138,   66,   67,  138,
       66,   67,  138,   66,   67,  138,   66,   67,  138,  136,
      138,  136,  138,  136,  138,  136,  138,  132,  138,  132,
      138,  131,  138,  130,  138,  129,  130,  138,  113,  138,
      113,  138,   12,  138,    9,  138,    5,  138,    5,    6,
      138,    6,    7,  138,    6,  138,   51,  138,   47,  138,

       53,  138,   48,  138,   53,  138,   11,  138,   16,  138,
       33,   38,  138,   33,  138,   25,   38,  138,   38,  138,
       32,  138,   27,  138,   23,  138,   23,  138,   32,  138,
       42,   44,  138,   42,  138,   44,  138,  128,  138,  128,
      138,  126,  138,   85,  126,  138,   85,  138,  126,  138,
      126,  138,   49,  138,   29,  138,   99,   73,   73,  104,
       95,  102,   96,  100,   97,  101,   91,  106,   61,    2,
      103,   61,   59,   71,   93,   98,   92,   74,   74,   94,
        1,   57,   57,   40,   58,   39,    1,   57,   61,    2,
       57,   61,   59,   63,   54,   65,   66,    8,   21,   18,

       15,  135,  131,  129,  112,   12,    9,    9,   10,    5,
        7,    4,    3,   51,   50,   53,   11,   16,   16,   17,
       33,   25,   25,   30,   26,   34,   35,   34,   32,   27,
       27,   28,   23,   23,   24,   31,   42,   41,   43,  127,
       73,   73,  105,    2,   70,   61,   62,   71,   74,   39,
        1,    1,   57,    2,   57,   61,   59,   64,   65,   46,
       22,  134,  133,    9,   14,   10,    9,    3,   16,   13,
       17,   16,   25,   37,   26,   25,   35,   36,   27,   28,
       27,   23,   24,   23,   43,   74,   61,   59,   65,   65,
      134,  134,  133,  133,    9,    9,    9,    9,   10,   16,

       16,   16,   16,   17,   25,   25,   25,   25,   26,   35,
       36,   27,   27,   27,   27,   28,   23,   23,   23,   23,
       24,  121,  123,   74,   61,   61,   65,    9,    9,    9,
       14,    9,   10,    9,   10,   16,   16,   13,   16,   16,
       17,   16,   17,   25,   25,   25,   37,   25,   26,   25,
       26,   27,   27,   27,   37,   27,   28,   27,   28,   23,
       23,   23,   37,   23,   24,   23,   24,   37,  121,  123,
      117,  111,   74,   61,   65,   65,    9,   10,   16,   17,
       25,   26,   27,   28,   23,   24,  109,  125,  117,  119,
      111,   68,   74,   60,   65,   72,  109,  119,  115,   68,

       68,   74,   74,   74,   74,   60,   65,   72,   72,   73,
       72,   73,  115,   74,   74,   74,   74,   74,   74,   60,
       65,   72,   74,   74,   74,   74,   74,   74,   74,   74,
       74,   74,  120,   74,   74,   74,   74,   74,   74,  120,
       49,   29,   74,  120,  122,   74,   74,  116,   74,   74,
       74,  110,  116,   37,   37,  110,   74,  108,  124,  116,
       74,  118,   74,  110,  118,   49,   49,   49,   29,   29,
       37,   29,   29,  108,  108,  118,   74,  114,   29,   37,
       37,  114,  114,   49,   29,   29,   37,   29,   37
    } ;

static yyconst short int yy_accept[730] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    2,    3,    3,    3,    3,
        3,    3,    3,    4,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    6,    8,   10,   13,   15,   17,   20,
       22,   25,   28,   30,   33,   36,   39,   42,   45,   48,
       51,   53,   56,   59,   62,   65,   68,   70,   73,   75,
       78,   81,   84,   87,   90,   92,   95,   97,  100,  102,
      105,  109,  112,  115,  119,  122,  125,  129,  132,  136,
      139,  142,  145,  148,  151,  154,  157,  160,  162,  164,

      166,  168,  170,  172,  174,  176,  179,  181,  183,  185,
      187,  189,  192,  195,  197,  199,  201,  203,  205,  207,
      209,  211,  214,  216,  219,  221,  223,  225,  227,  229,
      231,  234,  236,  238,  240,  242,  244,  247,  249,  251,
      253,  255,  257,  257,  257,  258,  258,  259,  260,  260,
      260,  260,  260,  260,  260,  261,  262,  263,  264,  265,
      266,  267,  268,  269,  270,  271,  271,  272,  273,  274,
      274,  275,  276,  277,  278,  279,  280,  281,  282,  282,
      283,  284,  285,  286,  287,  289,  290,  292,  293,  294,
      295,  296,  297,  298,  299,  300,  301,  301,  302,  302,

      303,  303,  303,  303,  304,  305,  305,  305,  306,  307,
      308,  309,  310,  311,  312,  313,  314,  315,  316,  317,
      318,  319,  320,  321,  322,  323,  324,  325,  326,  327,
      328,  329,  330,  331,  332,  333,  334,  335,  336,  337,
      338,  339,  340,  340,  340,  341,  341,  341,  341,  341,
      341,  341,  341,  341,  341,  341,  341,  342,  343,  343,
      343,  343,  343,  343,  343,  344,  345,  345,  346,  347,
      347,  348,  349,  350,  351,  352,  354,  356,  357,  358,
      359,  360,  360,  360,  360,  361,  362,  363,  364,  365,
      366,  367,  368,  369,  370,  371,  372,  373,  374,  375,

      376,  377,  378,  379,  380,  381,  382,  383,  384,  385,
      386,  386,  386,  386,  386,  386,  386,  386,  386,  386,
      386,  386,  386,  386,  386,  386,  386,  387,  387,  388,
      389,  390,  390,  390,  390,  391,  392,  393,  394,  395,
      396,  397,  398,  400,  401,  402,  403,  405,  406,  407,
      408,  410,  411,  412,  413,  414,  415,  417,  418,  419,
      420,  422,  422,  422,  422,  422,  422,  422,  422,  422,
      422,  422,  422,  422,  422,  422,  423,  424,  424,  424,
      424,  424,  424,  424,  425,  425,  426,  427,  428,  428,
      428,  428,  428,  429,  430,  432,  434,  436,  437,  438,

      440,  442,  444,  445,  446,  448,  450,  452,  453,  454,
      456,  458,  460,  461,  462,  464,  466,  468,  468,  468,
      468,  468,  468,  468,  468,  469,  469,  469,  469,  469,
      469,  469,  469,  470,  471,  471,  472,  472,  472,  473,
      473,  474,  474,  474,  475,  475,  475,  475,  475,  476,
      477,  479,  481,  483,  485,  487,  487,  487,  487,  487,
      487,  487,  487,  487,  488,  488,  489,  490,  491,  491,
      492,  492,  494,  495,  495,  495,  495,  495,  495,  496,
      496,  496,  496,  496,  496,  496,  497,  498,  499,  500,
      501,  502,  503,  504,  505,  506,  507,  508,  508,  508,

      508,  508,  508,  508,  508,  508,  509,  511,  513,  514,
      514,  514,  514,  515,  516,  517,  518,  519,  520,  521,
      522,  522,  522,  522,  522,  522,  522,  522,  522,  522,
      522,  522,  522,  523,  523,  523,  523,  524,  525,  526,
      527,  528,  529,  530,  531,  531,  531,  531,  531,  531,
      531,  531,  531,  531,  531,  531,  531,  531,  531,  531,
      532,  534,  535,  536,  537,  538,  539,  540,  541,  541,
      541,  541,  541,  541,  541,  541,  541,  542,  542,  542,
      542,  542,  542,  542,  542,  542,  542,  543,  543,  543,
      543,  543,  543,  543,  543,  544,  545,  545,  546,  547,

      549,  550,  551,  553,  553,  554,  554,  554,  554,  554,
      554,  554,  554,  554,  554,  554,  554,  554,  554,  554,
      554,  555,  555,  556,  556,  556,  556,  556,  556,  556,
      556,  556,  556,  556,  556,  556,  556,  556,  557,  559,
      559,  560,  561,  563,  564,  565,  566,  566,  567,  567,
      567,  567,  567,  567,  568,  569,  569,  569,  569,  569,
      569,  569,  569,  570,  572,  572,  572,  572,  572,  572,
      573,  574,  575,  575,  576,  577,  579,  579,  579,  579,
      579,  579,  579,  579,  579,  581,  581,  581,  582,  582,
      582,  582,  582,  582,  582,  582,  582,  582,  582,  582,

      583,  584,  585,  585,  585,  585,  585,  585,  585,  585,
      585,  586,  588,  588,  588,  590,  590,  590,  590,  590,
      590,  590,  590,  590,  590,  590,  590,  590,  590
    } ;

static yyconst int yy_ec[256] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        1,    2,    4,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    2,    5,    6,    7,    8,    9,   10,   11,   12,
       13,   14,   15,   16,   17,   18,   19,   20,   21,   21,
       21,   21,   21,   21,   21,   22,   22,   23,   24,   25,
       26,   27,   28,   28,   29,   30,   31,   32,   33,   34,
       35,   35,   36,   35,   35,   37,   35,   38,   35,   39,
       40,   35,   41,   35,   42,   35,   35,   43,   35,   35,
       44,   45,   46,   47,   35,   28,   29,   30,   31,   32,

       33,   34,   35,   35,   36,   35,   35,   37,   35,   38,
       35,   39,   40,   35,   41,   35,   42,   35,   35,   48,
       35,   35,   49,   50,   51,   28,    1,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,

       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35
    } ;

static yyconst int yy_meta[52] =
    {   0,
        1,    2,    3,    3,    4,    5,    4,    6,    7,    4,
        8,    9,    9,   10,    7,    1,   11,   12,   10,   13,
       13,   13,   14,   15,   16,    4,   17,    4,   18,   18,
       18,   18,   18,   18,   19,   19,   19,   19,   19,   19,
       19,   19,   19,   12,   20,    9,    4,   19,    1,    4,
        1
    } ;

static yyconst short int yy_base[807] =
    {   0,
        0,    0,    0,    0,   51,    0,   97,  101,  106,  109,
      105,  125,  145,  165, 1342, 1330,  209,  255, 1334, 1332,
      125,  126, 1326, 1324,  206,  209, 1323, 1321, 1319, 1311,
      104,  105,  111,  115,  277,  297,  238,  245, 1315, 1312,
     1305, 1304, 1313, 4256, 4256,  282,  288, 1286, 4256,  186,
      197, 1274, 1289, 4256, 4256, 4256, 1271,   91, 4256,  240,
      279,  224,  255,  326, 4256, 4256, 1271, 1268, 1266,    0,
      167, 4256, 4256, 4256, 1241, 4256, 4256,  347,  353,    0,
     4256,  358,  358,    0, 4256, 4256, 1264,  301, 1266,  369,
     1255,    0, 1266, 1264, 1263, 1262, 1260, 1235,    0, 4256,

        0, 4256,  390, 4256, 4256,    0, 4256,  393,    0,  396,
        0,    0,  213, 1244,    0, 1250, 4256, 4256,  146,    0,
      407,    0,    0,  416,  276,    0,  419,  435,  438, 1244,
        0,    0, 1245, 4256,  441, 4256, 4256, 4256,  136,  215,
      445,  455,  367,  425, 4256,  422, 4256,  428,  431,  475,
     1219,   67,  187, 1212, 4256, 4256, 4256, 4256, 4256, 4256,
     4256, 1234, 4256,  460,    0, 1237, 4256,  463,  468,  483,
        0, 4256, 4256, 4256,    0, 1206, 4256,  504,  450,    0,
        0, 4256,  321, 1229,  516,  494,    0,  516,  532,  540,
     4256,  474,    0, 4256, 4256, 4256,  347, 4256, 1210, 4256,

     1227, 1204,  543, 4256,    0,  566,  569, 4256,    0,  572,
      575, 1213,    0,  362, 4256,    0,    0, 4256, 4256,    0,
      578,  594, 1201,    0,  597,  604, 4256, 1200, 4256,  224,
        0,    0,  600,  616, 1198,  620,  627, 1195, 4256,    0,
     4256, 1203,  632,  637, 4256, 1175, 1166,  643, 1180, 1147,
      646,  651, 1161, 1135,  581,  506,  606,  639, 1129,  365,
     1130,  223, 1060, 1050, 4256,    0, 1074, 4256,  637,  644,
      651,    0, 1045, 1049,    0,  689,    0,  656,  689,  659,
      495, 1028,    0,  688, 4256, 4256,  716,  721,  724, 4256,
     1037,  727,    0,  744, 4256, 1024,  747,  754, 4256, 1022,

      750,  395,    0,  766, 1021,  770,  777, 1019,  782, 1027,
     1002,  787,  991,  794, 1007,  798,  981,  772,  978,  979,
      971,  967,  965,  965,  939,  942,  804,  680,  792,  798,
      669,  820,  824,  830,  840,  847, 4256,  850, 4256,  858,
      861,  877,  885,  888,  893,  904,  909,  912,  915,  931,
      934, 4256, 4256,  938,  941,  950,  957,  960,  966,  976,
      982,  985,  988,  992,  998, 1004,  941, 1008, 1014, 1025,
     1041, 1045,  935,  978,  927, 1049, 1057,  923,  916,  906,
      889,  896, 1061,  888, 1048, 1053, 1059,  715, 1102,  929,
     1152,  838, 1199, 1202, 1218, 1221, 1224, 1240, 1243, 1259,

     1262, 1265, 1281, 1284, 1300, 1303, 1306, 1322, 1325, 1341,
     1344, 1347, 1363, 1366, 1382, 1385, 1388, 1173,  885, 1404,
     1407,  895, 1411, 1414, 1430, 1433, 1456, 1459, 1462,  893,
     1204,  887, 1086, 1091, 1466, 1094,  875,  872, 1097,  863,
      861, 1137, 1460, 1418,  876,  868,  866,    0,  883, 1503,
     1482, 1550, 1553, 1569, 1572,  840, 1575,  834, 1591, 1594,
     1597,  833, 1286, 1369, 1524, 4256, 1492, 1506,  835, 1556,
      830, 1616, 1601,  841,    0,  821, 1642,  829,    0, 1627,
     1684,  806, 1623, 1689,  805, 1653, 1639, 1642, 1664, 1692,
     1700,  802,  426,  422,  792, 1687, 1735, 1708,  437,  787,

     1712, 1778, 1782, 1788, 1798, 1717, 1735, 1743, 1746,  770,
      490,  757,  759,  371,  760,  350,  751,  746, 4256,    0,
      458,  734,  502, 1804, 1814,    0,  746, 1830, 1840, 1847,
        0,  745, 1756,  726,  712,  706,  685,  678,  664,  659,
      642,  637,  630,  619,  598,  595,  589,  583,  581, 1850,
      583, 1872, 1876, 1893,  580, 1896,  522,  519,  515,  494,
     1794, 1836,  495,  485,  469,  429,  434, 1810, 1882,  416,
      370,  331, 1912, 1917, 1922, 1928, 4256, 1938, 1949, 1954,
     1965, 1970, 1975, 1986, 1991, 1981, 4256, 2002, 2007, 2018,
     2023,  314,  262,  260,  254, 1899, 2012, 4256, 2028, 1934,

      245,  236, 1944, 2035, 1959,  218,  194, 2039, 2043, 2059,
     2062, 2080, 2085, 2103, 2106, 2122, 2126, 2138, 2142, 2154,
     2158, 2170,    0,  175, 2174, 2186, 2190, 2202, 2206, 2218,
     2223, 2234, 2239, 2250, 2255,  118,   97, 1997, 2065, 2091,
     4256, 2096, 2132,   94, 2148, 2164, 2260, 2266, 2271, 2276,
     2287, 2292, 2303, 2308,    0, 2313, 2324, 2329, 2340, 2345,
     2350, 2366, 2356, 4256, 2377, 2382, 2393, 2398, 2403, 2414,
        0, 2282,   87, 2297, 2319, 2335, 2426, 2430, 2446, 2449,
     2467, 2472, 2483, 2493, 2504, 2509, 2520, 2525, 2536, 2541,
     2546, 2562, 2573, 2578, 2583, 2594, 2599, 2610, 2620, 2361,

     2372, 2631, 2636, 2647, 2652, 2668, 2673, 2684, 2689, 2694,
     2705,    0, 2710, 2721, 2726, 2742, 2753, 2758, 2763, 2774,
     2785, 2804, 2808, 2820, 2831, 2836, 2852, 4256, 2894, 2914,
     2934, 2954, 2974, 2994, 3014, 3034, 3054, 3074, 3094, 3114,
     3134, 3154, 3174, 3194, 3209, 3225, 3237,  569, 3251, 3270,
     3290, 3310, 3325, 3343, 3362, 3382, 3402, 3422, 3442, 3461,
     3481, 3501, 1066, 3520, 3536, 3553,  504, 3568, 3587, 3604,
     3616, 3632,  546, 3644,  664, 3662, 3681, 3701, 3721,  724,
     3741, 3761, 3781, 3801, 3816, 3835, 3855, 3875, 3895, 3915,
     3935, 3955, 3975, 3995, 4015, 4035, 4055, 4075, 4095, 4115,

     4135, 4155, 4175, 4195, 4215, 4235
    } ;

static yyconst short int yy_def[807] =
    {   0,
      729,  729,  728,    3,  728,    5,  730,  730,  731,  731,
      732,  732,  733,  733,  734,  734,  735,  735,  736,  736,
      737,  737,  738,  738,  739,  739,  740,  740,  740,  740,
      740,  740,  741,  741,  742,  742,  743,  743,  736,  736,
      740,  740,  728,  728,  728,  728,  728,  728,  728,  744,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  745,
      745,  728,  728,  728,  728,  728,  728,  728,  728,  746,
      728,  744,  747,  746,  728,  728,  746,  728,  746,  728,
      748,  749,  749,  749,  749,  749,  749,  750,  751,  728,

      752,  728,  728,  728,  728,  753,  728,  754,  755,  728,
      756,  756,  728,  728,  757,  728,  728,  728,  728,  758,
      728,  759,  759,  728,  760,  761,  728,  728,  728,  761,
      762,  762,  763,  728,  764,  728,  728,  728,  728,  728,
      728,  728,  728,  744,  728,  744,  728,  744,  744,  744,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  765,  766,  728,  728,  728,  728,
      767,  728,  728,  728,  745,  745,  728,  728,  744,  746,
       82,  728,  728,  768,  769,  728,  770,  728,  728,  728,
      728,  771,  749,  728,  728,  728,  728,  728,  750,  728,

      751,  752,  728,  728,  753,  728,  754,  728,  755,  728,
      728,  728,  756,  728,  728,  772,  757,  728,  728,  758,
      728,  728,  728,  759,  728,  728,  728,  728,  728,  728,
      773,  761,  728,  728,  728,  728,  728,  728,  728,  762,
      728,  774,  728,  764,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  744,  744,  744,  744,  728,  728,
      728,  728,  728,  728,  728,  765,  766,  728,  728,  728,
      728,  767,  745,  768,  769,  769,  770,  728,  728,  728,
      771,  728,  775,  776,  728,  728,  728,  728,  728,  728,
      728,  777,  772,  728,  728,  728,  778,  728,  728,  728,

      779,  728,  780,  728,  728,  781,  728,  728,  782,  774,
      728,  783,  728,  728,  728,  784,  728,  744,  728,  728,
      728,  728,  728,  728,  728,  728,  745,  728,  728,  728,
      785,  776,  776,  776,  776,  728,  728,  728,  728,  786,
      777,  777,  777,  787,  778,  778,  778,  788,  779,  779,
      779,  728,  728,  789,  781,  781,  781,  790,  782,  782,
      782,  728,  783,  783,  783,  783,  728,  791,  784,  784,
      784,  784,  728,  744,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  745,  728,  728,  728,  785,  728,  335,
      728,  335,  786,  786,  786,  786,  777,  787,  787,  787,

      787,  778,  788,  788,  788,  788,  779,  789,  789,  789,
      789,  781,  790,  790,  790,  790,  782,  728,  728,  783,
      783,  728,  791,  791,  791,  791,  791,  784,  784,  728,
      744,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      745,  728,  728,  728,  389,  389,  389,  389,  389,  728,
      786,  787,  788,  789,  790,  728,  783,  728,  791,  791,
      784,  728,  744,  728,  728,  728,  728,  728,  728,  728,
      728,  745,  728,  728,  389,  389,  389,  389,  450,  728,
      783,  728,  791,  784,  728,  744,  728,  728,  728,  728,
      728,  745,  745,  745,  745,  728,  389,  728,  728,  728,

      783,  728,  791,  784,  728,  744,  728,  744,  728,  728,
      728,  728,  745,  745,  745,  745,  745,  745,  728,  497,
      728,  728,  728,  783,  728,  792,  728,  791,  784,  728,
      793,  728,  728,  728,  728,  728,  745,  745,  745,  745,
      745,  745,  745,  745,  728,  728,  728,  728,  728,  783,
      728,  794,  791,  784,  728,  795,  728,  728,  728,  745,
      745,  745,  745,  745,  745,  745,  745,  728,  728,  728,
      728,  728,  783,  728,  796,  783,  728,  794,  794,  797,
      794,  791,  784,  728,  798,  784,  728,  795,  795,  799,
      795,  728,  728,  728,  745,  728,  728,  728,  745,  745,

      745,  745,  745,  728,  728,  728,  728,  783,  783,  728,
      783,  783,  800,  794,  794,  728,  794,  794,  791,  728,
      801,  791,  793,  728,  784,  784,  728,  784,  784,  802,
      795,  795,  728,  795,  795,  728,  728,  728,  745,  728,
      728,  728,  745,  745,  728,  728,  800,  783,  800,  800,
      803,  800,  800,  797,  792,  791,  791,  728,  791,  791,
      804,  804,  784,  728,  802,  802,  805,  802,  802,  799,
      793,  728,  728,  728,  728,  745,  800,  800,  800,  728,
      800,  800,  800,  800,  791,  804,  804,  806,  804,  804,
      804,  802,  802,  802,  728,  802,  802,  802,  802,  728,

      728,  803,  800,  804,  804,  728,  804,  804,  804,  804,
      805,  793,  802,  800,  806,  804,  802,  800,  804,  802,
      800,  804,  802,  800,  804,  802,  804,    0,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,

      728,  728,  728,  728,  728,  728
    } ;

static yyconst short int yy_nxt[4308] =
    {   0,
       45,   46,   47,   46,   48,   49,   50,   51,   52,   53,
       54,   55,   56,   57,   58,   59,   60,   61,   62,   63,
       64,   64,   65,   66,   67,   68,   69,   45,   70,   70,
       70,   70,   71,   70,   70,   70,   70,   70,   70,   70,
       70,   70,   70,   72,   45,   73,   45,   70,   74,   75,
       76,   77,   78,   79,   78,   80,   81,   82,   83,   84,
       80,   85,   86,   86,   84,   84,   86,   87,   88,   89,
       90,   90,   90,   91,   86,   84,   84,   84,   80,   92,
       93,   92,   92,   94,   92,   92,   92,   92,   95,   92,
       92,   92,   96,   97,   86,   77,   86,   84,   97,   77,

       80,   77,   99,  260,  261,  158,   99,  103,  103,  103,
      103,  103,  103,  132,  129,  129,  159,  132,  133,  700,
      100,  101,  133,  100,  100,  101,  676,  100,  673,  104,
      118,  118,  104,  106,  106,  106,  106,  106,  106,  106,
      106,  106,  106,  106,  106,  106,  106,  106,  130,  130,
      672,  219,  106,  106,  106,  106,  106,  106,  106,  106,
      106,  106,  106,  106,  106,  106,  106,  106,  152,  119,
      119,  246,  106,  108,  108,  108,  108,  108,  108,  108,
      108,  108,  108,  108,  108,  108,  108,  108,  147,  148,
      219,  662,  108,  108,  108,  108,  108,  108,  108,  108,

      108,  108,  108,  108,  108,  108,  108,  108,  123,  176,
      647,  123,  108,  112,  176,  112,  124,  112,  112,  124,
      262,  149,  113,  112,  263,  112,  214,  114,  151,  152,
      150,  215,  153,  112,  112,  112,  112,  165,  154,  137,
      138,  137,  166,  302,  302,  139,  137,  138,  137,  167,
      125,  646,  139,  125,  323,  112,  160,  247,  112,  112,
      324,  112,  247,  112,  112,  161,  162,  644,  113,  112,
      140,  112,  168,  114,  169,  169,  169,  140,  643,  112,
      112,  112,  112,  143,  143,  143,  639,  170,  144,  143,
      143,  143,  163,  638,  144,  230,  230,  171,  164,  164,

      164,  112,  171,  637,  112,  135,  135,  135,  135,  135,
      135,  135,  135,  135,  135,  135,  135,  135,  135,  135,
      186,  186,  186,  231,  135,  135,  135,  135,  135,  135,
      135,  135,  135,  135,  135,  135,  135,  135,  135,  135,
      183,  183,  183,  168,  135,  169,  169,  169,  178,  178,
      178,  636,  285,  179,  178,  178,  178,  286,  170,  179,
      147,  148,  181,  606,  181,  182,  181,  181,  143,  143,
      143,  181,  181,  144,  181,  214,  181,  183,  183,  183,
      215,  541,  181,  181,  181,  181,  188,  542,  189,  189,
      189,  203,  203,  203,  206,  206,  206,  210,  211,  211,

      320,  190,  150,  605,  181,  321,  538,  181,  221,  222,
      222,  539,  212,  204,  352,  352,  208,  225,  226,  226,
      233,  234,  234,  223,  147,  148,  227,  147,  148,  227,
      147,  148,  228,  147,  148,  235,  236,  237,  237,  236,
      237,  237,  243,  243,  243,  227,  248,  248,  248,  604,
      218,  238,  147,  148,  238,  516,  251,  252,  252,  517,
      149,  249,  514,  515,  245,  227,  150,  603,  255,  150,
      602,  253,  150,  521,  522,  150,  256,  257,  258,  164,
      164,  164,  269,  269,  269,  168,  250,  169,  169,  169,
      282,  283,  170,  545,  150,  170,  254,  270,  546,  270,

      170,  601,  271,  271,  271,  178,  178,  178,  147,  148,
      179,  282,  283,  186,  186,  186,  272,  284,  600,  150,
      276,  272,  276,  523,  276,  276,  190,  535,  599,  276,
      276,  595,  276,  548,  276,  278,  278,  278,  284,  549,
      276,  276,  276,  276,  203,  203,  203,  594,  190,  188,
      150,  279,  279,  279,  280,  593,  280,  592,  303,  271,
      271,  271,  276,  303,  190,  276,  204,  206,  206,  206,
      206,  206,  206,  210,  211,  211,  289,  289,  289,  221,
      222,  222,  192,  147,  148,  290,  192,  192,  212,  208,
      587,  291,  208,  577,  223,  294,  294,  294,  225,  226,

      226,  233,  234,  234,  295,  298,  298,  298,  147,  148,
      296,  318,  572,  228,  299,  571,  235,  304,  304,  304,
      300,  236,  237,  237,  570,  150,  299,  569,  307,  307,
      307,  568,  305,  243,  243,  243,  238,  299,  243,  243,
      243,  147,  148,  308,  248,  248,  248,  251,  252,  252,
      150,  567,  314,  314,  314,  245,  269,  269,  269,  249,
      245,  299,  253,  271,  271,  271,  566,  315,  565,  170,
      271,  271,  271,  328,  564,  329,  329,  329,  271,  271,
      271,  331,  331,  150,  250,  282,  283,  254,  190,  332,
      332,  332,  254,  276,  563,  276,  562,  276,  276,  385,

      385,  385,  276,  276,  334,  276,  188,  276,  330,  330,
      330,  561,  284,  276,  276,  276,  276,  336,  336,  336,
      560,  190,  338,  338,  338,  289,  289,  289,  342,  211,
      211,  282,  283,  335,  290,  276,  353,  559,  276,  337,
      291,  353,  558,  343,  339,  294,  294,  294,  346,  222,
      222,  350,  226,  226,  295,  298,  298,  298,  284,  557,
      296,  556,  552,  347,  299,  547,  351,  304,  304,  304,
      300,  356,  234,  234,  147,  148,  299,  544,  307,  307,
      307,  543,  305,  360,  237,  237,  357,  299,  364,  248,
      248,  540,  537,  308,  536,  314,  314,  314,  361,  370,

      252,  252,  534,  365,  299,  383,  383,  383,  374,  328,
      315,  386,  386,  386,  371,  387,  150,  330,  330,  330,
      523,  332,  332,  332,  190,  332,  332,  332,  366,  518,
      190,  332,  332,  332,  513,  254,  334,  505,  502,  372,
      334,  332,  332,  332,  384,  475,  389,  477,  336,  336,
      336,  338,  338,  338,  334,  333,  390,  391,  442,  394,
      289,  289,  342,  211,  211,  335,  490,  489,  395,  335,
      337,  485,  482,  339,  396,  335,  480,  343,  342,  211,
      211,  333,  475,  392,  475,  335,  342,  211,  211,  399,
      294,  294,  475,  343,  346,  222,  222,  472,  400,  476,

      477,  397,  471,  469,  401,  346,  222,  222,  468,  347,
      346,  222,  222,  404,  298,  298,  350,  226,  226,  464,
      347,  462,  405,  458,  456,  402,  478,  441,  406,  439,
      438,  351,  350,  226,  226,  350,  226,  226,  437,  409,
      304,  304,  356,  234,  234,  389,  333,  351,  410,  436,
      407,  356,  234,  234,  411,  391,  435,  357,  356,  234,
      234,  414,  307,  307,  432,  430,  357,  360,  237,  237,
      415,  422,  333,  412,  382,  381,  416,  360,  237,  237,
      147,  148,  361,  360,  237,  237,  418,  418,  418,  364,
      248,  248,  361,  364,  248,  248,  380,  379,  417,  364,

      248,  248,  378,  377,  365,  364,  248,  248,  365,  424,
      314,  314,  376,  375,  420,  370,  252,  252,  425,  431,
      365,  373,  150,  368,  426,  419,  370,  252,  252,  366,
      371,  367,  362,  366,  241,  358,  421,  354,  348,  366,
      344,  371,  370,  252,  252,  366,  370,  252,  252,  427,
      433,  433,  433,  340,  283,  372,  182,  428,  434,  434,
      434,  371,  383,  383,  383,  442,  372,  443,  443,  443,
      328,  242,  444,  444,  444,  327,  268,  429,  444,  444,
      444,  326,  372,  242,  242,  190,  372,  433,  433,  433,
      325,  190,  434,  434,  434,  467,  467,  467,  470,  470,

      470,  440,  445,  446,  332,  332,  445,  445,  445,  447,
      447,  445,  445,  447,  447,  447,  447,  445,  448,  447,
      447,  447,  447,  447,  445,  445,  445,  445,  447,  445,
      447,  447,  447,  447,  447,  447,  447,  447,  447,  447,
      447,  447,  447,  447,  447,  447,  445,  449,  445,  447,
      445,  445,  445,  332,  332,  332,  473,  473,  473,  333,
      333,  322,  319,  333,  333,  333,  333,  317,  334,  333,
      333,  333,  333,  333,  418,  418,  418,  316,  333,  313,
      450,  450,  450,  450,  450,  450,  450,  450,  450,  450,
      450,  450,  450,  450,  450,  333,  312,  335,  311,  450,

      394,  289,  289,  394,  289,  289,  147,  148,  262,  395,
      241,  309,  395,  419,  306,  396,  301,  297,  396,  394,
      289,  289,  394,  289,  289,  342,  211,  211,  395,  292,
      288,  395,  287,  200,  396,  463,  182,  451,  273,  268,
      397,  399,  294,  294,  399,  294,  294,  265,  150,  264,
      400,  259,  241,  400,  239,  218,  401,  216,  200,  401,
      399,  294,  294,  399,  294,  294,  346,  222,  222,  400,
      198,  197,  400,  196,  195,  401,  194,  191,  452,  187,
      185,  402,  404,  298,  298,  404,  298,  298,  147,  148,
      177,  405,  174,  173,  405,  172,  157,  406,  156,  155,

      406,  404,  298,  298,  404,  298,  298,  350,  226,  226,
      405,  145,  728,  405,  142,  142,  406,  141,  486,  453,
      141,  128,  407,  409,  304,  304,  409,  304,  304,  128,
      150,  127,  410,  127,  121,  410,  121,  116,  411,  116,
      110,  411,  409,  304,  304,  409,  304,  304,  356,  234,
      234,  410,  110,  728,  410,  728,  728,  411,  728,  728,
      454,  728,  728,  412,  414,  307,  307,  414,  307,  307,
      487,  487,  487,  415,  728,  728,  415,  728,  728,  416,
      728,  728,  416,  414,  307,  307,  414,  307,  307,  360,
      237,  237,  415,  728,  728,  415,  728,  728,  416,  728,

      728,  455,  728,  728,  417,  364,  248,  248,  364,  248,
      248,  728,  424,  314,  314,  424,  314,  314,  728,  728,
      420,  425,  728,  365,  425,  728,  728,  426,  728,  728,
      426,  424,  314,  314,  424,  314,  314,  444,  444,  444,
      425,  728,  728,  425,  728,  366,  426,  457,  366,  459,
      190,  728,  427,  728,  728,  427,  728,  424,  314,  314,
      370,  252,  252,  370,  252,  252,  425,  465,  465,  465,
      728,  427,  426,  728,  427,  428,  728,  442,  371,  474,
      474,  474,  728,  394,  289,  289,  728,  728,  460,  466,
      728,  728,  395,  467,  467,  467,  728,  427,  451,  728,

      372,  728,  461,  372,  332,  332,  332,  488,  488,  488,
      479,  333,  728,  728,  333,  333,  333,  333,  728,  390,
      391,  333,  479,  479,  479,  465,  465,  465,  728,  333,
      728,  479,  479,  479,  479,  479,  479,  479,  479,  479,
      479,  479,  479,  479,  479,  479,  392,  466,  335,  728,
      479,  399,  294,  294,  404,  298,  298,  470,  470,  470,
      400,  728,  728,  405,  728,  728,  452,  728,  728,  453,
      409,  304,  304,  414,  307,  307,  364,  248,  248,  410,
      728,  728,  415,  728,  728,  454,  728,  728,  455,  728,
      728,  365,  424,  314,  314,  424,  314,  314,  370,  252,

      252,  425,  728,  728,  425,  481,  728,  459,  728,  728,
      426,  728,  728,  371,  728,  728,  366,  491,  491,  491,
      496,  496,  496,  728,  424,  314,  314,  484,  498,  498,
      498,  728,  427,  425,  483,  427,  728,  728,  372,  426,
      487,  487,  487,  488,  488,  488,  728,  492,  493,  728,
      728,  494,  728,  503,  506,  507,  508,  495,  475,  499,
      728,  728,  500,  728,  427,  509,  509,  509,  728,  728,
      497,  497,  497,  497,  497,  497,  497,  497,  497,  497,
      497,  497,  497,  497,  497,  364,  248,  248,  728,  497,
      370,  252,  252,  491,  491,  491,  728,  150,  728,  728,

      365,  491,  491,  491,  728,  371,  519,  519,  519,  498,
      498,  498,  501,  364,  248,  248,  728,  504,  506,  507,
      508,  728,  728,  510,  499,  366,  728,  511,  365,  728,
      372,  510,  499,  512,  728,  511,  533,  533,  533,  728,
      499,  512,  520,  500,  506,  507,  508,  509,  509,  509,
      524,  476,  477,  366,  520,  520,  520,  533,  533,  533,
      728,  150,  728,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  478,  525,
      525,  525,  520,  424,  314,  314,  728,  150,  526,  370,
      252,  252,  425,  728,  527,  596,  596,  596,  426,  530,

      530,  530,  728,  728,  371,  364,  248,  248,  531,  728,
      528,  596,  596,  596,  532,  525,  525,  525,  728,  728,
      365,  728,  728,  427,  526,  728,  529,  728,  728,  372,
      527,  424,  314,  314,  728,  728,  550,  597,  597,  597,
      425,  370,  252,  252,  728,  366,  426,  728,  530,  530,
      530,  573,  574,  574,  728,  728,  371,  531,  728,  598,
      575,  728,  728,  532,  728,  728,  576,  728,  553,  728,
      728,  427,  554,  579,  525,  525,  728,  424,  314,  314,
      728,  372,  580,  597,  597,  597,  425,  728,  581,  728,
      728,  366,  426,  728,  583,  584,  584,  589,  530,  530,

      596,  596,  596,  585,  728,  598,  590,  728,  582,  586,
      728,  728,  591,  573,  574,  574,  728,  427,  574,  574,
      574,  728,  575,  609,  610,  610,  728,  526,  576,  364,
      248,  248,  363,  607,  372,  642,  642,  642,  611,  579,
      525,  525,  728,  728,  613,  645,  645,  645,  580,  728,
      579,  525,  525,  366,  581,  615,  616,  616,  250,  580,
      642,  642,  642,  612,  580,  581,  579,  525,  525,  366,
      617,  619,  620,  620,  728,  580,  583,  584,  584,  728,
      621,  618,  370,  252,  252,  585,  622,  620,  620,  620,
      728,  586,  626,  627,  627,  728,  623,  630,  645,  645,

      645,  369,  624,  589,  530,  530,  728,  628,  589,  530,
      530,  427,  590,  597,  597,  597,  372,  590,  591,  632,
      633,  633,  372,  591,  589,  530,  530,  254,  590,  640,
      640,  640,  629,  590,  634,  598,  640,  640,  640,  635,
      364,  248,  248,  728,  364,  248,  248,  728,  728,  648,
      728,  641,  728,  648,  728,  365,  728,  728,  641,  365,
      248,  248,  248,  364,  248,  248,  674,  674,  674,  577,
      728,  728,  648,  728,  728,  249,  728,  728,  420,  728,
      366,  364,  248,  248,  366,  728,  650,  574,  574,  728,
      648,  728,  640,  640,  640,  651,  365,  642,  642,  642,

      250,  652,  728,  366,  579,  525,  525,  579,  525,  525,
      728,  728,  421,  654,  641,  728,  654,  728,  728,  581,
      728,  366,  581,  525,  525,  525,  653,  579,  525,  525,
      728,  728,  655,  675,  675,  675,  654,  728,  527,  579,
      525,  525,  618,  619,  620,  620,  728,  728,  580,  645,
      645,  645,  621,  728,  618,  620,  620,  620,  622,  657,
      658,  658,  728,  728,  623,  675,  675,  675,  425,  728,
      624,  424,  314,  314,  659,  370,  252,  252,  728,  728,
      425,  728,  728,  427,  663,  728,  661,  370,  252,  252,
      371,  314,  314,  314,  728,  254,  663,  728,  728,  660,

      664,  728,  371,  370,  252,  252,  315,  370,  252,  252,
      728,  427,  663,  728,  728,  372,  663,  728,  428,  666,
      584,  584,  371,  728,  589,  530,  530,  372,  667,  728,
      728,  254,  728,  670,  668,  589,  530,  530,  429,  591,
      530,  530,  530,  372,  670,  728,  728,  372,  728,  671,
      591,  589,  530,  530,  728,  532,  589,  530,  530,  669,
      670,  650,  574,  574,  728,  590,  635,  364,  248,  248,
      651,  635,  650,  574,  574,  728,  677,  650,  574,  574,
      728,  651,  365,  674,  674,  674,  651,  677,  679,  680,
      680,  728,  677,  650,  574,  574,  728,  651,  674,  674,

      674,  653,  651,  681,  650,  574,  574,  366,  683,  615,
      616,  616,  653,  651,  424,  314,  314,  653,  580,  677,
      675,  675,  675,  685,  617,  424,  314,  314,  682,  426,
      314,  314,  314,  653,  685,  684,  701,  701,  701,  664,
      426,  424,  314,  314,  653,  315,  424,  314,  314,  728,
      685,  687,  620,  620,  427,  685,  459,  370,  252,  252,
      688,  426,  701,  701,  701,  427,  689,  687,  620,  620,
      254,  728,  371,  701,  701,  701,  688,  460,  666,  584,
      584,  427,  691,  666,  584,  584,  427,  667,  728,  728,
      728,  690,  667,  692,  694,  695,  695,  372,  692,  666,

      584,  584,  728,  667,  666,  584,  584,  690,  667,  696,
      728,  728,  728,  667,  698,  632,  633,  633,  669,  692,
      728,  728,  728,  669,  590,  728,  728,  650,  574,  574,
      634,  650,  574,  574,  697,  699,  651,  728,  728,  669,
      702,  728,  683,  728,  669,  728,  677,  650,  574,  574,
      574,  574,  574,  728,  728,  728,  702,  728,  728,  655,
      728,  728,  677,  728,  728,  607,  728,  653,  650,  574,
      574,  653,  728,  650,  574,  574,  728,  702,  728,  728,
      728,  728,  702,  683,  650,  574,  574,  653,  677,  728,
      250,  728,  728,  651,  650,  574,  574,  728,  728,  683,

      728,  728,  728,  651,  684,  424,  314,  314,  653,  677,
      687,  620,  620,  653,  425,  728,  728,  728,  728,  688,
      426,  687,  620,  620,  653,  691,  705,  706,  706,  728,
      688,  728,  728,  703,  653,  688,  691,  687,  620,  620,
      728,  707,  687,  620,  620,  427,  688,  687,  620,  620,
      690,  688,  709,  728,  728,  728,  688,  691,  728,  728,
      728,  690,  709,  666,  584,  584,  708,  728,  728,  728,
      728,  728,  667,  710,  666,  584,  584,  690,  698,  666,
      584,  584,  690,  711,  620,  620,  620,  690,  711,  692,
      728,  728,  728,  712,  692,  666,  584,  584,  728,  624,

      666,  584,  584,  669,  711,  728,  728,  728,  728,  711,
      698,  666,  584,  584,  669,  692,  728,  728,  728,  669,
      667,  666,  584,  584,  254,  728,  698,  728,  728,  728,
      667,  699,  679,  680,  680,  669,  692,  650,  574,  574,
      669,  651,  728,  728,  728,  728,  651,  681,  687,  620,
      620,  669,  677,  687,  620,  620,  728,  715,  728,  728,
      713,  669,  715,  691,  728,  728,  714,  728,  691,  620,
      620,  620,  682,  728,  687,  620,  620,  653,  712,  728,
      728,  728,  728,  715,  624,  687,  620,  620,  690,  709,
      687,  620,  620,  690,  715,  687,  620,  620,  728,  688,

      691,  728,  728,  728,  688,  709,  694,  695,  695,  254,
      691,  666,  584,  584,  690,  667,  710,  728,  728,  728,
      667,  696,  650,  574,  574,  690,  692,  705,  706,  706,
      690,  651,  728,  728,  716,  690,  688,  677,  728,  728,
      717,  728,  707,  687,  620,  620,  697,  728,  728,  718,
      728,  669,  688,  728,  666,  584,  584,  728,  691,  650,
      574,  574,  653,  667,  687,  620,  620,  708,  651,  692,
      728,  728,  719,  688,  677,  666,  584,  584,  728,  691,
      728,  720,  728,  690,  667,  728,  650,  574,  574,  728,
      692,  722,  728,  728,  669,  651,  721,  728,  728,  653,

      728,  677,  728,  728,  690,  687,  620,  620,  728,  666,
      584,  584,  723,  728,  688,  669,  728,  724,  667,  728,
      691,  650,  574,  574,  692,  728,  653,  728,  728,  728,
      651,  728,  687,  620,  620,  728,  677,  666,  584,  584,
      726,  688,  725,  728,  728,  690,  667,  691,  728,  669,
      728,  728,  692,  687,  620,  620,  728,  728,  728,  728,
      728,  653,  688,  727,  728,  728,  728,  728,  691,  728,
      728,  728,  690,  728,  728,  728,  728,  669,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  690,   44,   44,   44,   44,   44,   44,

       44,   44,   44,   44,   44,   44,   44,   44,   44,   44,
       44,   44,   44,   44,   98,   98,   98,   98,   98,   98,
       98,   98,   98,   98,   98,   98,   98,   98,   98,   98,
       98,   98,   98,   98,  102,  102,  102,  102,  102,  102,
      102,  102,  102,  102,  102,  102,  102,  102,  102,  102,
      102,  102,  102,  102,  105,  105,  105,  105,  105,  105,
      105,  105,  105,  105,  105,  105,  105,  105,  105,  105,
      105,  105,  105,  105,  107,  107,  107,  107,  107,  107,
      107,  107,  107,  107,  107,  107,  107,  107,  107,  107,
      107,  107,  107,  107,  109,  109,  109,  109,  109,  109,

      109,  109,  109,  109,  109,  109,  109,  109,  109,  109,
      109,  109,  109,  109,  111,  111,  111,  111,  111,  111,
      111,  111,  111,  111,  111,  111,  111,  111,  111,  111,
      111,  111,  111,  111,  115,  115,  115,  115,  115,  115,
      115,  115,  115,  115,  115,  115,  115,  115,  115,  115,
      115,  115,  115,  115,  117,  117,  117,  117,  117,  117,
      117,  117,  117,  117,  117,  117,  117,  117,  117,  117,
      117,  117,  117,  117,  120,  120,  120,  120,  120,  120,
      120,  120,  120,  120,  120,  120,  120,  120,  120,  120,
      120,  120,  120,  120,  122,  122,  122,  122,  122,  122,

      122,  122,  122,  122,  122,  122,  122,  122,  122,  122,
      122,  122,  122,  122,  126,  126,  126,  126,  126,  126,
      126,  126,  126,  126,  126,  126,  126,  126,  126,  126,
      126,  126,  126,  126,  131,  131,  131,  131,  131,  131,
      131,  131,  131,  131,  131,  131,  131,  131,  131,  131,
      131,  131,  131,  131,  134,  134,  134,  134,  134,  134,
      134,  134,  134,  134,  134,  134,  134,  134,  134,  134,
      134,  134,  134,  134,  136,  136,  136,  136,  136,  136,
      136,  136,  136,  136,  136,  136,  136,  136,  136,  136,
      136,  136,  136,  136,  146,  146,  146,  146,  146,  146,

      146,  146,  146,  146,  146,  146,  146,  146,  146,  146,
      146,  146,  146,  146,  175,  728,  728,  728,  728,  728,
      728,  175,  728,  728,  728,  728,  175,  175,  180,  728,
      728,  180,  728,  728,  180,  180,  728,  728,  728,  728,
      180,  180,  184,  728,  728,  728,  728,  728,  728,  184,
      728,  728,  728,  728,  184,  184,  193,  728,  728,  728,
      728,  728,  728,  193,  728,  728,  728,  728,  193,  193,
      199,  199,  199,  199,  728,  199,  199,  199,  199,  199,
      199,  199,  199,  199,  199,  728,  728,  199,  199,  199,
      201,  201,  201,  201,  728,  201,  201,  201,  201,  201,

      201,  201,  201,  201,  201,  201,  201,  201,  201,  201,
      202,  202,  202,  202,  202,  202,  202,  202,  202,  202,
      202,  202,  202,  202,  202,  202,  728,  202,  202,  202,
      205,  728,  728,  728,  728,  728,  728,  205,  728,  728,
      728,  728,  205,  205,  207,  207,  728,  728,  207,  728,
      728,  728,  728,  728,  728,  207,  728,  207,  728,  728,
      207,  207,  209,  209,  209,  209,  209,  209,  209,  728,
      209,  209,  209,  209,  209,  209,  209,  209,  209,  209,
      209,  209,  213,  213,  213,  213,  213,  213,  213,  213,
      213,  728,  213,  213,  213,  213,  213,  213,  213,  213,

      213,  213,  217,  217,  217,  217,  728,  217,  217,  217,
      217,  217,  217,  217,  217,  217,  217,  217,  217,  217,
      217,  217,  220,  220,  220,  220,  220,  220,  220,  728,
      220,  220,  220,  220,  220,  220,  220,  220,  220,  220,
      220,  220,  224,  224,  224,  224,  224,  224,  224,  728,
      224,  224,  224,  224,  224,  224,  224,  224,  224,  224,
      224,  229,  229,  229,  229,  229,  229,  229,  229,  229,
      229,  229,  229,  229,  229,  229,  229,  229,  229,  229,
      229,  232,  232,  232,  232,  232,  232,  232,  728,  232,
      232,  232,  232,  232,  232,  232,  232,  232,  232,  232,

      232,  240,  240,  240,  240,  240,  728,  240,  240,  240,
      240,  240,  240,  240,  240,  240,  240,  240,  240,  240,
      240,  244,  244,  728,  728,  244,  728,  728,  728,  728,
      728,  728,  244,  728,  244,  728,  728,  244,  244,  266,
      728,  728,  266,  728,  728,  266,  266,  728,  728,  728,
      728,  266,  266,  267,  267,  267,  267,  267,  267,  267,
      267,  267,  267,  267,  267,  267,  267,  267,  267,  267,
      267,  267,  267,  274,  728,  728,  728,  728,  728,  728,
      274,  728,  728,  728,  728,  274,  274,  275,  275,  728,
      275,  275,  275,  275,  275,  275,  275,  275,  275,  275,

      275,  275,  275,  275,  275,  275,  275,  277,  728,  728,
      277,  728,  728,  277,  277,  728,  728,  728,  728,  277,
      277,  281,  728,  728,  728,  728,  281,  281,  281,  728,
      728,  728,  728,  281,  281,  293,  728,  728,  293,  728,
      728,  293,  293,  728,  728,  728,  728,  293,  293,  310,
      728,  728,  728,  728,  728,  728,  310,  728,  728,  728,
      728,  310,  310,  333,  333,  728,  728,  333,  333,  728,
      333,  333,  333,  333,  333,  728,  728,  728,  333,  333,
      333,  341,  341,  341,  341,  341,  341,  341,  341,  341,
      341,  341,  341,  341,  341,  341,  341,  341,  341,  341,

      341,  345,  345,  345,  345,  345,  345,  345,  345,  345,
      345,  345,  345,  345,  345,  345,  345,  345,  345,  345,
      345,  349,  349,  349,  349,  349,  349,  349,  349,  349,
      349,  349,  349,  349,  349,  349,  349,  349,  349,  349,
      349,  355,  355,  355,  355,  355,  355,  355,  355,  355,
      355,  355,  355,  355,  355,  355,  355,  355,  355,  355,
      355,  359,  359,  359,  359,  359,  359,  359,  359,  359,
      359,  359,  359,  359,  359,  359,  359,  359,  359,  359,
      359,  363,  363,  363,  363,  363,  363,  363,  363,  363,
      363,  363,  363,  363,  363,  363,  363,  363,  363,  363,

      363,  369,  369,  369,  369,  369,  369,  369,  369,  369,
      369,  369,  369,  369,  369,  369,  369,  369,  369,  369,
      369,  388,  728,  728,  728,  728,  388,  388,  388,  728,
      728,  728,  728,  388,  388,  393,  393,  393,  393,  393,
      393,  393,  393,  393,  393,  393,  393,  393,  393,  393,
      393,  393,  393,  393,  393,  398,  398,  398,  398,  398,
      398,  398,  398,  398,  398,  398,  398,  398,  398,  398,
      398,  398,  398,  398,  398,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  403,  403,  408,  408,  408,  408,  408,

      408,  408,  408,  408,  408,  408,  408,  408,  408,  408,
      408,  408,  408,  408,  408,  413,  413,  413,  413,  413,
      413,  413,  413,  413,  413,  413,  413,  413,  413,  413,
      413,  413,  413,  413,  413,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  551,  551,  551,  551,  551,
      551,  551,  728,  551,  551,  551,  551,  551,  551,  551,
      551,  551,  551,  551,  551,  555,  555,  555,  555,  555,
      555,  555,  728,  555,  555,  555,  555,  555,  555,  555,
      555,  555,  555,  555,  555,  578,  578,  578,  578,  578,

      578,  578,  578,  578,  578,  578,  578,  578,  578,  578,
      578,  578,  578,  578,  578,  588,  588,  588,  588,  588,
      588,  588,  588,  588,  588,  588,  588,  588,  588,  588,
      588,  588,  588,  588,  588,  608,  608,  608,  608,  608,
      608,  608,  608,  608,  608,  608,  608,  608,  608,  608,
      608,  608,  608,  608,  608,  614,  614,  614,  614,  614,
      614,  614,  614,  614,  614,  614,  614,  614,  614,  614,
      614,  614,  614,  614,  614,  625,  625,  625,  625,  625,
      625,  625,  625,  625,  625,  625,  625,  625,  625,  625,
      625,  625,  625,  625,  625,  631,  631,  631,  631,  631,

      631,  631,  631,  631,  631,  631,  631,  631,  631,  631,
      631,  631,  631,  631,  631,  649,  649,  649,  649,  649,
      649,  649,  649,  649,  649,  649,  649,  649,  649,  649,
      649,  649,  649,  649,  649,  656,  656,  656,  656,  656,
      656,  656,  656,  656,  656,  656,  656,  656,  656,  656,
      656,  656,  656,  656,  656,  665,  665,  665,  665,  665,
      665,  665,  665,  665,  665,  665,  665,  665,  665,  665,
      665,  665,  665,  665,  665,  678,  678,  678,  678,  678,
      678,  678,  678,  678,  678,  678,  678,  678,  678,  678,
      678,  678,  678,  678,  678,  686,  686,  686,  686,  686,

      686,  686,  686,  686,  686,  686,  686,  686,  686,  686,
      686,  686,  686,  686,  686,  693,  693,  693,  693,  693,
      693,  693,  693,  693,  693,  693,  693,  693,  693,  693,
      693,  693,  693,  693,  693,  704,  704,  704,  704,  704,
      704,  704,  704,  704,  704,  704,  704,  704,  704,  704,
      704,  704,  704,  704,  704,   43,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,

      728,  728,  728,  728,  728,  728,  728
    } ;

static yyconst short int yy_chk[4308] =
    {   0,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,

        5,    5,    7,  152,  152,   58,    8,    9,    9,    9,
       10,   10,   10,   33,   31,   32,   58,   34,   33,  673,
        7,    7,   34,    7,    8,    8,  644,    8,  637,    9,
       21,   22,   10,   11,   11,   11,   11,   11,   11,   11,
       11,   11,   11,   11,   11,   11,   11,   11,   31,   32,
      636,  119,   11,   12,   12,   12,   12,   12,   12,   12,
       12,   12,   12,   12,   12,   12,   12,   12,  139,   21,
       22,  139,   12,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   50,   50,
      119,  624,   13,   14,   14,   14,   14,   14,   14,   14,

       14,   14,   14,   14,   14,   14,   14,   14,   25,   71,
      607,   26,   14,   17,   71,   17,   25,   17,   17,   26,
      153,   50,   17,   17,  153,   17,  113,   17,   51,   51,
       50,  113,   51,   17,   17,   17,   17,   62,   51,   37,
       37,   37,   62,  230,  230,   37,   38,   38,   38,   62,
       25,  606,   38,   26,  262,   17,   60,  140,   17,   18,
      262,   18,  140,   18,   18,   60,   60,  602,   18,   18,
       37,   18,   63,   18,   63,   63,   63,   38,  601,   18,
       18,   18,   18,   46,   46,   46,  595,   63,   46,   47,
       47,   47,   61,  594,   47,  125,  125,   63,   61,   61,

       61,   18,   63,  593,   18,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       88,   88,   88,  125,   35,   36,   36,   36,   36,   36,
       36,   36,   36,   36,   36,   36,   36,   36,   36,   36,
      183,  183,  183,   64,   36,   64,   64,   64,   78,   78,
       78,  592,  197,   78,   79,   79,   79,  197,   64,   79,
       82,   82,   82,  572,   82,   83,   82,   82,  143,  143,
      143,   82,   82,  143,   82,  214,   82,   83,   83,   83,
      214,  516,   82,   82,   82,   82,   90,  516,   90,   90,
       90,  103,  103,  103,  108,  108,  108,  110,  110,  110,

      260,   90,   82,  571,   82,  260,  514,   82,  121,  121,
      121,  514,  110,  103,  302,  302,  108,  124,  124,  124,
      127,  127,  127,  121,  146,  146,  124,  144,  144,  127,
      148,  148,  124,  149,  149,  127,  128,  128,  128,  129,
      129,  129,  135,  135,  135,  128,  141,  141,  141,  570,
      141,  128,  179,  179,  129,  494,  142,  142,  142,  494,
      144,  141,  493,  493,  135,  142,  146,  567,  149,  144,
      566,  142,  148,  499,  499,  149,  150,  150,  150,  164,
      164,  164,  168,  168,  168,  169,  141,  169,  169,  169,
      192,  192,  164,  521,  179,  168,  142,  170,  521,  170,

      169,  565,  170,  170,  170,  178,  178,  178,  256,  256,
      178,  281,  281,  186,  186,  186,  767,  192,  564,  150,
      185,  767,  185,  511,  185,  185,  186,  511,  563,  185,
      185,  560,  185,  523,  185,  188,  188,  188,  281,  523,
      185,  185,  185,  185,  203,  203,  203,  559,  188,  189,
      256,  189,  189,  189,  190,  558,  190,  557,  773,  190,
      190,  190,  185,  773,  189,  185,  203,  206,  206,  206,
      207,  207,  207,  210,  210,  210,  211,  211,  211,  221,
      221,  221,  748,  255,  255,  211,  748,  748,  210,  206,
      555,  211,  207,  551,  221,  222,  222,  222,  225,  225,

      225,  233,  233,  233,  222,  226,  226,  226,  257,  257,
      222,  255,  549,  225,  226,  548,  233,  234,  234,  234,
      226,  236,  236,  236,  547,  255,  234,  546,  237,  237,
      237,  545,  234,  243,  243,  243,  236,  237,  244,  244,
      244,  258,  258,  237,  248,  248,  248,  251,  251,  251,
      257,  544,  252,  252,  252,  243,  269,  269,  269,  248,
      244,  252,  251,  270,  270,  270,  543,  252,  542,  269,
      271,  271,  271,  278,  541,  278,  278,  278,  280,  280,
      280,  775,  775,  258,  248,  331,  331,  251,  278,  284,
      284,  284,  252,  276,  540,  276,  539,  276,  276,  328,

      328,  328,  276,  276,  284,  276,  279,  276,  279,  279,
      279,  538,  331,  276,  276,  276,  276,  287,  287,  287,
      537,  279,  288,  288,  288,  289,  289,  289,  292,  292,
      292,  388,  388,  284,  289,  276,  780,  536,  276,  287,
      289,  780,  535,  292,  288,  294,  294,  294,  297,  297,
      297,  301,  301,  301,  294,  298,  298,  298,  388,  534,
      294,  532,  527,  297,  298,  522,  301,  304,  304,  304,
      298,  306,  306,  306,  318,  318,  304,  518,  307,  307,
      307,  517,  304,  309,  309,  309,  306,  307,  312,  312,
      312,  515,  513,  307,  512,  314,  314,  314,  309,  316,

      316,  316,  510,  312,  314,  327,  327,  327,  318,  329,
      314,  329,  329,  329,  316,  330,  318,  330,  330,  330,
      500,  332,  332,  332,  329,  333,  333,  333,  312,  495,
      330,  334,  334,  334,  492,  314,  332,  485,  482,  316,
      333,  335,  335,  335,  327,  478,  334,  476,  336,  336,
      336,  338,  338,  338,  392,  392,  335,  335,  474,  340,
      340,  340,  341,  341,  341,  332,  471,  469,  340,  333,
      336,  462,  458,  338,  340,  334,  456,  341,  342,  342,
      342,  392,  447,  335,  446,  335,  343,  343,  343,  344,
      344,  344,  445,  342,  345,  345,  345,  441,  344,  449,

      449,  343,  440,  438,  344,  346,  346,  346,  437,  345,
      347,  347,  347,  348,  348,  348,  349,  349,  349,  432,
      346,  430,  348,  422,  419,  347,  449,  384,  348,  382,
      381,  349,  350,  350,  350,  351,  351,  351,  380,  354,
      354,  354,  355,  355,  355,  390,  390,  350,  354,  379,
      351,  356,  356,  356,  354,  390,  378,  355,  357,  357,
      357,  358,  358,  358,  375,  373,  356,  359,  359,  359,
      358,  367,  390,  357,  326,  325,  358,  360,  360,  360,
      374,  374,  359,  361,  361,  361,  362,  362,  362,  363,
      363,  363,  360,  364,  364,  364,  324,  323,  361,  365,

      365,  365,  322,  321,  363,  366,  366,  366,  364,  368,
      368,  368,  320,  319,  365,  369,  369,  369,  368,  374,
      366,  317,  374,  315,  368,  362,  370,  370,  370,  363,
      369,  313,  311,  364,  310,  308,  366,  305,  300,  365,
      296,  370,  371,  371,  371,  366,  372,  372,  372,  368,
      376,  376,  376,  291,  282,  369,  274,  371,  377,  377,
      377,  372,  383,  383,  383,  385,  370,  385,  385,  385,
      386,  763,  386,  386,  386,  273,  267,  372,  387,  387,
      387,  264,  371,  763,  763,  386,  372,  433,  433,  433,
      263,  387,  434,  434,  434,  436,  436,  436,  439,  439,

      439,  383,  389,  389,  389,  389,  389,  389,  389,  389,
      389,  389,  389,  389,  389,  389,  389,  389,  389,  389,
      389,  389,  389,  389,  389,  389,  389,  389,  389,  389,
      389,  389,  389,  389,  389,  389,  389,  389,  389,  389,
      389,  389,  389,  389,  389,  389,  389,  389,  389,  389,
      389,  389,  389,  391,  391,  391,  442,  442,  442,  391,
      391,  261,  259,  391,  391,  391,  391,  254,  391,  391,
      391,  391,  391,  391,  418,  418,  418,  253,  391,  250,
      391,  391,  391,  391,  391,  391,  391,  391,  391,  391,
      391,  391,  391,  391,  391,  391,  249,  391,  247,  391,

      393,  393,  393,  394,  394,  394,  431,  431,  246,  393,
      242,  238,  394,  418,  235,  393,  228,  223,  394,  395,
      395,  395,  396,  396,  396,  397,  397,  397,  395,  212,
      202,  396,  201,  199,  395,  431,  184,  396,  176,  166,
      397,  398,  398,  398,  399,  399,  399,  162,  431,  154,
      398,  151,  133,  399,  130,  116,  398,  114,   98,  399,
      400,  400,  400,  401,  401,  401,  402,  402,  402,  400,
       97,   96,  401,   95,   94,  400,   93,   91,  401,   89,
       87,  402,  403,  403,  403,  404,  404,  404,  463,  463,
       75,  403,   69,   68,  404,   67,   57,  403,   53,   52,

      404,  405,  405,  405,  406,  406,  406,  407,  407,  407,
      405,   48,   43,  406,   42,   41,  405,   40,  463,  406,
       39,   30,  407,  408,  408,  408,  409,  409,  409,   29,
      463,   28,  408,   27,   24,  409,   23,   20,  408,   19,
       16,  409,  410,  410,  410,  411,  411,  411,  412,  412,
      412,  410,   15,    0,  411,    0,    0,  410,    0,    0,
      411,    0,    0,  412,  413,  413,  413,  414,  414,  414,
      464,  464,  464,  413,    0,    0,  414,    0,    0,  413,
        0,    0,  414,  415,  415,  415,  416,  416,  416,  417,
      417,  417,  415,    0,    0,  416,    0,    0,  415,    0,

        0,  416,    0,    0,  417,  420,  420,  420,  421,  421,
      421,    0,  423,  423,  423,  424,  424,  424,    0,    0,
      420,  423,    0,  421,  424,    0,    0,  423,    0,    0,
      424,  425,  425,  425,  426,  426,  426,  444,  444,  444,
      425,    0,    0,  426,    0,  420,  425,  421,  421,  426,
      444,    0,  423,    0,    0,  424,    0,  427,  427,  427,
      428,  428,  428,  429,  429,  429,  427,  435,  435,  435,
        0,  425,  427,    0,  426,  428,    0,  443,  429,  443,
      443,  443,    0,  451,  451,  451,    0,    0,  427,  435,
        0,    0,  451,  467,  467,  467,    0,  427,  451,    0,

      428,    0,  429,  429,  450,  450,  450,  468,  468,  468,
      450,  450,    0,    0,  450,  450,  450,  450,    0,  450,
      450,  450,  450,  450,  450,  465,  465,  465,    0,  450,
        0,  450,  450,  450,  450,  450,  450,  450,  450,  450,
      450,  450,  450,  450,  450,  450,  450,  465,  450,    0,
      450,  452,  452,  452,  453,  453,  453,  470,  470,  470,
      452,    0,    0,  453,    0,    0,  452,    0,    0,  453,
      454,  454,  454,  455,  455,  455,  457,  457,  457,  454,
        0,    0,  455,    0,    0,  454,    0,    0,  455,    0,
        0,  457,  459,  459,  459,  460,  460,  460,  461,  461,

      461,  459,    0,    0,  460,  457,    0,  459,    0,    0,
      460,    0,    0,  461,    0,    0,  457,  472,  472,  472,
      473,  473,  473,    0,  483,  483,  483,  461,  480,  480,
      480,    0,  459,  483,  460,  460,    0,    0,  461,  483,
      487,  487,  487,  488,  488,  488,    0,  472,  472,    0,
        0,  472,    0,  483,  486,  486,  486,  472,  477,  480,
        0,    0,  480,    0,  483,  489,  489,  489,    0,    0,
      477,  477,  477,  477,  477,  477,  477,  477,  477,  477,
      477,  477,  477,  477,  477,  481,  481,  481,    0,  477,
      484,  484,  484,  490,  490,  490,    0,  486,    0,    0,

      481,  491,  491,  491,    0,  484,  496,  496,  496,  498,
      498,  498,  481,  501,  501,  501,    0,  484,  506,  506,
      506,    0,    0,  490,  490,  481,    0,  490,  501,    0,
      484,  491,  491,  490,    0,  491,  507,  507,  507,    0,
      498,  491,  497,  498,  508,  508,  508,  509,  509,  509,
      501,  497,  497,  501,  497,  497,  497,  533,  533,  533,
        0,  506,    0,  497,  497,  497,  497,  497,  497,  497,
      497,  497,  497,  497,  497,  497,  497,  497,  497,  502,
      502,  502,  497,  503,  503,  503,    0,  508,  502,  504,
      504,  504,  503,    0,  502,  561,  561,  561,  503,  505,

      505,  505,    0,    0,  504,  524,  524,  524,  505,    0,
      503,  568,  568,  568,  505,  525,  525,  525,    0,    0,
      524,    0,    0,  503,  525,    0,  504,    0,    0,  504,
      525,  528,  528,  528,    0,    0,  524,  562,  562,  562,
      528,  529,  529,  529,    0,  524,  528,    0,  530,  530,
      530,  550,  550,  550,    0,    0,  529,  530,    0,  562,
      550,    0,    0,  530,    0,    0,  550,    0,  528,    0,
        0,  528,  529,  552,  552,  552,    0,  553,  553,  553,
        0,  529,  552,  569,  569,  569,  553,    0,  552,    0,
        0,  550,  553,    0,  554,  554,  554,  556,  556,  556,

      596,  596,  596,  554,    0,  569,  556,    0,  553,  554,
        0,    0,  556,  573,  573,  573,    0,  553,  574,  574,
      574,    0,  573,  575,  575,  575,    0,  574,  573,  576,
      576,  576,  575,  574,  554,  600,  600,  600,  575,  578,
      578,  578,    0,    0,  576,  603,  603,  603,  578,    0,
      579,  579,  579,  573,  578,  580,  580,  580,  574,  579,
      605,  605,  605,  575,  580,  579,  581,  581,  581,  576,
      580,  582,  582,  582,    0,  581,  583,  583,  583,    0,
      582,  581,  586,  586,  586,  583,  582,  584,  584,  584,
        0,  583,  585,  585,  585,    0,  584,  586,  638,  638,

      638,  585,  584,  588,  588,  588,    0,  585,  589,  589,
      589,  582,  588,  597,  597,  597,  583,  589,  588,  590,
      590,  590,  586,  589,  591,  591,  591,  584,  590,  599,
      599,  599,  585,  591,  590,  597,  604,  604,  604,  591,
      608,  608,  608,    0,  609,  609,  609,    0,    0,  608,
        0,  599,    0,  609,    0,  608,    0,    0,  604,  609,
      610,  610,  610,  611,  611,  611,  639,  639,  639,  610,
        0,    0,  611,    0,    0,  610,    0,    0,  611,    0,
      608,  612,  612,  612,  609,    0,  613,  613,  613,    0,
      612,    0,  640,  640,  640,  613,  612,  642,  642,  642,

      610,  613,    0,  611,  614,  614,  614,  615,  615,  615,
        0,    0,  612,  614,  640,    0,  615,    0,    0,  614,
        0,  612,  615,  616,  616,  616,  613,  617,  617,  617,
        0,    0,  616,  643,  643,  643,  617,    0,  616,  618,
      618,  618,  617,  619,  619,  619,    0,    0,  618,  645,
      645,  645,  619,    0,  618,  620,  620,  620,  619,  621,
      621,  621,    0,    0,  620,  646,  646,  646,  621,    0,
      620,  622,  622,  622,  621,  625,  625,  625,    0,    0,
      622,    0,    0,  619,  625,    0,  622,  626,  626,  626,
      625,  627,  627,  627,    0,  620,  626,    0,    0,  621,

      627,    0,  626,  628,  628,  628,  627,  629,  629,  629,
        0,  622,  628,    0,    0,  625,  629,    0,  628,  630,
      630,  630,  629,    0,  631,  631,  631,  626,  630,    0,
        0,  627,    0,  631,  630,  632,  632,  632,  629,  631,
      633,  633,  633,  628,  632,    0,    0,  629,    0,  633,
      632,  634,  634,  634,    0,  633,  635,  635,  635,  630,
      634,  647,  647,  647,    0,  635,  634,  648,  648,  648,
      647,  635,  649,  649,  649,    0,  647,  650,  650,  650,
        0,  649,  648,  672,  672,  672,  650,  649,  651,  651,
      651,    0,  650,  652,  652,  652,    0,  651,  674,  674,

      674,  647,  652,  651,  653,  653,  653,  648,  652,  654,
      654,  654,  649,  653,  656,  656,  656,  650,  654,  653,
      675,  675,  675,  656,  654,  657,  657,  657,  651,  656,
      658,  658,  658,  652,  657,  653,  676,  676,  676,  658,
      657,  659,  659,  659,  653,  658,  660,  660,  660,    0,
      659,  661,  661,  661,  656,  660,  659,  663,  663,  663,
      661,  660,  700,  700,  700,  657,  661,  662,  662,  662,
      658,    0,  663,  701,  701,  701,  662,  660,  665,  665,
      665,  659,  662,  666,  666,  666,  660,  665,    0,    0,
        0,  661,  666,  665,  667,  667,  667,  663,  666,  668,

      668,  668,    0,  667,  669,  669,  669,  662,  668,  667,
        0,    0,    0,  669,  668,  670,  670,  670,  665,  669,
        0,    0,    0,  666,  670,    0,    0,  677,  677,  677,
      670,  678,  678,  678,  667,  669,  677,    0,    0,  668,
      678,    0,  677,    0,  669,    0,  678,  679,  679,  679,
      680,  680,  680,    0,    0,    0,  679,    0,    0,  680,
        0,    0,  679,    0,    0,  680,    0,  677,  681,  681,
      681,  678,    0,  682,  682,  682,    0,  681,    0,    0,
        0,    0,  682,  681,  683,  683,  683,  679,  682,    0,
      680,    0,    0,  683,  684,  684,  684,    0,    0,  683,

        0,    0,    0,  684,  682,  685,  685,  685,  681,  684,
      686,  686,  686,  682,  685,    0,    0,    0,    0,  686,
      685,  687,  687,  687,  683,  686,  688,  688,  688,    0,
      687,    0,    0,  684,  684,  688,  687,  689,  689,  689,
        0,  688,  690,  690,  690,  685,  689,  691,  691,  691,
      686,  690,  689,    0,    0,    0,  691,  690,    0,    0,
        0,  687,  691,  692,  692,  692,  688,    0,    0,    0,
        0,    0,  692,  690,  693,  693,  693,  689,  692,  694,
      694,  694,  690,  693,  695,  695,  695,  691,  694,  693,
        0,    0,    0,  695,  694,  696,  696,  696,    0,  695,

      697,  697,  697,  692,  696,    0,    0,    0,    0,  697,
      696,  698,  698,  698,  693,  697,    0,    0,    0,  694,
      698,  699,  699,  699,  695,    0,  698,    0,    0,    0,
      699,  697,  702,  702,  702,  696,  699,  703,  703,  703,
      697,  702,    0,    0,    0,    0,  703,  702,  704,  704,
      704,  698,  703,  705,  705,  705,    0,  704,    0,    0,
      699,  699,  705,  704,    0,    0,  703,    0,  705,  706,
      706,  706,  702,    0,  707,  707,  707,  703,  706,    0,
        0,    0,    0,  707,  706,  708,  708,  708,  704,  707,
      709,  709,  709,  705,  708,  710,  710,  710,    0,  709,

      708,    0,    0,    0,  710,  709,  711,  711,  711,  706,
      710,  713,  713,  713,  707,  711,  708,    0,    0,    0,
      713,  711,  714,  714,  714,  708,  713,  715,  715,  715,
      709,  714,    0,    0,  710,  710,  715,  714,    0,    0,
      713,    0,  715,  716,  716,  716,  711,    0,    0,  714,
        0,  713,  716,    0,  717,  717,  717,    0,  716,  718,
      718,  718,  714,  717,  719,  719,  719,  715,  718,  717,
        0,    0,  716,  719,  718,  720,  720,  720,    0,  719,
        0,  717,    0,  716,  720,    0,  721,  721,  721,    0,
      720,  719,    0,    0,  717,  721,  718,    0,    0,  718,

        0,  721,    0,    0,  719,  722,  722,  722,    0,  723,
      723,  723,  720,    0,  722,  720,    0,  721,  723,    0,
      722,  724,  724,  724,  723,    0,  721,    0,    0,    0,
      724,    0,  725,  725,  725,    0,  724,  726,  726,  726,
      723,  725,  722,    0,    0,  722,  726,  725,    0,  723,
        0,    0,  726,  727,  727,  727,    0,    0,    0,    0,
        0,  724,  727,  725,    0,    0,    0,    0,  727,    0,
        0,    0,  725,    0,    0,    0,    0,  726,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,  727,  729,  729,  729,  729,  729,  729,

      729,  729,  729,  729,  729,  729,  729,  729,  729,  729,
      729,  729,  729,  729,  730,  730,  730,  730,  730,  730,
      730,  730,  730,  730,  730,  730,  730,  730,  730,  730,
      730,  730,  730,  730,  731,  731,  731,  731,  731,  731,
      731,  731,  731,  731,  731,  731,  731,  731,  731,  731,
      731,  731,  731,  731,  732,  732,  732,  732,  732,  732,
      732,  732,  732,  732,  732,  732,  732,  732,  732,  732,
      732,  732,  732,  732,  733,  733,  733,  733,  733,  733,
      733,  733,  733,  733,  733,  733,  733,  733,  733,  733,
      733,  733,  733,  733,  734,  734,  734,  734,  734,  734,

      734,  734,  734,  734,  734,  734,  734,  734,  734,  734,
      734,  734,  734,  734,  735,  735,  735,  735,  735,  735,
      735,  735,  735,  735,  735,  735,  735,  735,  735,  735,
      735,  735,  735,  735,  736,  736,  736,  736,  736,  736,
      736,  736,  736,  736,  736,  736,  736,  736,  736,  736,
      736,  736,  736,  736,  737,  737,  737,  737,  737,  737,
      737,  737,  737,  737,  737,  737,  737,  737,  737,  737,
      737,  737,  737,  737,  738,  738,  738,  738,  738,  738,
      738,  738,  738,  738,  738,  738,  738,  738,  738,  738,
      738,  738,  738,  738,  739,  739,  739,  739,  739,  739,

      739,  739,  739,  739,  739,  739,  739,  739,  739,  739,
      739,  739,  739,  739,  740,  740,  740,  740,  740,  740,
      740,  740,  740,  740,  740,  740,  740,  740,  740,  740,
      740,  740,  740,  740,  741,  741,  741,  741,  741,  741,
      741,  741,  741,  741,  741,  741,  741,  741,  741,  741,
      741,  741,  741,  741,  742,  742,  742,  742,  742,  742,
      742,  742,  742,  742,  742,  742,  742,  742,  742,  742,
      742,  742,  742,  742,  743,  743,  743,  743,  743,  743,
      743,  743,  743,  743,  743,  743,  743,  743,  743,  743,
      743,  743,  743,  743,  744,  744,  744,  744,  744,  744,

      744,  744,  744,  744,  744,  744,  744,  744,  744,  744,
      744,  744,  744,  744,  745,    0,    0,    0,    0,    0,
        0,  745,    0,    0,    0,    0,  745,  745,  746,    0,
        0,  746,    0,    0,  746,  746,    0,    0,    0,    0,
      746,  746,  747,    0,    0,    0,    0,    0,    0,  747,
        0,    0,    0,    0,  747,  747,  749,    0,    0,    0,
        0,    0,    0,  749,    0,    0,    0,    0,  749,  749,
      750,  750,  750,  750,    0,  750,  750,  750,  750,  750,
      750,  750,  750,  750,  750,    0,    0,  750,  750,  750,
      751,  751,  751,  751,    0,  751,  751,  751,  751,  751,

      751,  751,  751,  751,  751,  751,  751,  751,  751,  751,
      752,  752,  752,  752,  752,  752,  752,  752,  752,  752,
      752,  752,  752,  752,  752,  752,    0,  752,  752,  752,
      753,    0,    0,    0,    0,    0,    0,  753,    0,    0,
        0,    0,  753,  753,  754,  754,    0,    0,  754,    0,
        0,    0,    0,    0,    0,  754,    0,  754,    0,    0,
      754,  754,  755,  755,  755,  755,  755,  755,  755,    0,
      755,  755,  755,  755,  755,  755,  755,  755,  755,  755,
      755,  755,  756,  756,  756,  756,  756,  756,  756,  756,
      756,    0,  756,  756,  756,  756,  756,  756,  756,  756,

      756,  756,  757,  757,  757,  757,    0,  757,  757,  757,
      757,  757,  757,  757,  757,  757,  757,  757,  757,  757,
      757,  757,  758,  758,  758,  758,  758,  758,  758,    0,
      758,  758,  758,  758,  758,  758,  758,  758,  758,  758,
      758,  758,  759,  759,  759,  759,  759,  759,  759,    0,
      759,  759,  759,  759,  759,  759,  759,  759,  759,  759,
      759,  760,  760,  760,  760,  760,  760,  760,  760,  760,
      760,  760,  760,  760,  760,  760,  760,  760,  760,  760,
      760,  761,  761,  761,  761,  761,  761,  761,    0,  761,
      761,  761,  761,  761,  761,  761,  761,  761,  761,  761,

      761,  762,  762,  762,  762,  762,    0,  762,  762,  762,
      762,  762,  762,  762,  762,  762,  762,  762,  762,  762,
      762,  764,  764,    0,    0,  764,    0,    0,    0,    0,
        0,    0,  764,    0,  764,    0,    0,  764,  764,  765,
        0,    0,  765,    0,    0,  765,  765,    0,    0,    0,
        0,  765,  765,  766,  766,  766,  766,  766,  766,  766,
      766,  766,  766,  766,  766,  766,  766,  766,  766,  766,
      766,  766,  766,  768,    0,    0,    0,    0,    0,    0,
      768,    0,    0,    0,    0,  768,  768,  769,  769,    0,
      769,  769,  769,  769,  769,  769,  769,  769,  769,  769,

      769,  769,  769,  769,  769,  769,  769,  770,    0,    0,
      770,    0,    0,  770,  770,    0,    0,    0,    0,  770,
      770,  771,    0,    0,    0,    0,  771,  771,  771,    0,
        0,    0,    0,  771,  771,  772,    0,    0,  772,    0,
        0,  772,  772,    0,    0,    0,    0,  772,  772,  774,
        0,    0,    0,    0,    0,    0,  774,    0,    0,    0,
        0,  774,  774,  776,  776,    0,    0,  776,  776,    0,
      776,  776,  776,  776,  776,    0,    0,    0,  776,  776,
      776,  777,  777,  777,  777,  777,  777,  777,  777,  777,
      777,  777,  777,  777,  777,  777,  777,  777,  777,  777,

      777,  778,  778,  778,  778,  778,  778,  778,  778,  778,
      778,  778,  778,  778,  778,  778,  778,  778,  778,  778,
      778,  779,  779,  779,  779,  779,  779,  779,  779,  779,
      779,  779,  779,  779,  779,  779,  779,  779,  779,  779,
      779,  781,  781,  781,  781,  781,  781,  781,  781,  781,
      781,  781,  781,  781,  781,  781,  781,  781,  781,  781,
      781,  782,  782,  782,  782,  782,  782,  782,  782,  782,
      782,  782,  782,  782,  782,  782,  782,  782,  782,  782,
      782,  783,  783,  783,  783,  783,  783,  783,  783,  783,
      783,  783,  783,  783,  783,  783,  783,  783,  783,  783,

      783,  784,  784,  784,  784,  784,  784,  784,  784,  784,
      784,  784,  784,  784,  784,  784,  784,  784,  784,  784,
      784,  785,    0,    0,    0,    0,  785,  785,  785,    0,
        0,    0,    0,  785,  785,  786,  786,  786,  786,  786,
      786,  786,  786,  786,  786,  786,  786,  786,  786,  786,
      786,  786,  786,  786,  786,  787,  787,  787,  787,  787,
      787,  787,  787,  787,  787,  787,  787,  787,  787,  787,
      787,  787,  787,  787,  787,  788,  788,  788,  788,  788,
      788,  788,  788,  788,  788,  788,  788,  788,  788,  788,
      788,  788,  788,  788,  788,  789,  789,  789,  789,  789,

      789,  789,  789,  789,  789,  789,  789,  789,  789,  789,
      789,  789,  789,  789,  789,  790,  790,  790,  790,  790,
      790,  790,  790,  790,  790,  790,  790,  790,  790,  790,
      790,  790,  790,  790,  790,  791,  791,  791,  791,  791,
      791,  791,  791,  791,  791,  791,  791,  791,  791,  791,
      791,  791,  791,  791,  791,  792,  792,  792,  792,  792,
      792,  792,    0,  792,  792,  792,  792,  792,  792,  792,
      792,  792,  792,  792,  792,  793,  793,  793,  793,  793,
      793,  793,    0,  793,  793,  793,  793,  793,  793,  793,
      793,  793,  793,  793,  793,  794,  794,  794,  794,  794,

      794,  794,  794,  794,  794,  794,  794,  794,  794,  794,
      794,  794,  794,  794,  794,  795,  795,  795,  795,  795,
      795,  795,  795,  795,  795,  795,  795,  795,  795,  795,
      795,  795,  795,  795,  795,  796,  796,  796,  796,  796,
      796,  796,  796,  796,  796,  796,  796,  796,  796,  796,
      796,  796,  796,  796,  796,  797,  797,  797,  797,  797,
      797,  797,  797,  797,  797,  797,  797,  797,  797,  797,
      797,  797,  797,  797,  797,  798,  798,  798,  798,  798,
      798,  798,  798,  798,  798,  798,  798,  798,  798,  798,
      798,  798,  798,  798,  798,  799,  799,  799,  799,  799,

      799,  799,  799,  799,  799,  799,  799,  799,  799,  799,
      799,  799,  799,  799,  799,  800,  800,  800,  800,  800,
      800,  800,  800,  800,  800,  800,  800,  800,  800,  800,
      800,  800,  800,  800,  800,  801,  801,  801,  801,  801,
      801,  801,  801,  801,  801,  801,  801,  801,  801,  801,
      801,  801,  801,  801,  801,  802,  802,  802,  802,  802,
      802,  802,  802,  802,  802,  802,  802,  802,  802,  802,
      802,  802,  802,  802,  802,  803,  803,  803,  803,  803,
      803,  803,  803,  803,  803,  803,  803,  803,  803,  803,
      803,  803,  803,  803,  803,  804,  804,  804,  804,  804,

      804,  804,  804,  804,  804,  804,  804,  804,  804,  804,
      804,  804,  804,  804,  804,  805,  805,  805,  805,  805,
      805,  805,  805,  805,  805,  805,  805,  805,  805,  805,
      805,  805,  805,  805,  805,  806,  806,  806,  806,  806,
      806,  806,  806,  806,  806,  806,  806,  806,  806,  806,
      806,  806,  806,  806,  806,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,

      728,  728,  728,  728,  728,  728,  728
    } ;

static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
static char *yy_full_match;
static int yy_lp;
#define REJECT \
{ \
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
yy_cp = yy_full_match; /* restore poss. backed-over text */ \
++yy_lp; \
goto find_rule; \
}
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "pgc.l"
#define INITIAL 0
#line 2 "pgc.l"
/*-------------------------------------------------------------------------
 *
 * pgc.l
 *      lexical scanner for ecpg
 *
 * This is a modified version of src/backend/parser/scan.l
 *
 *
 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 *
 * IDENTIFICATION
 *      $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.169 2009/01/23 12:43:32 petere Exp $
 *
 *-------------------------------------------------------------------------
 */
#include "postgres_fe.h"

#include <ctype.h>
#include <sys/types.h>
#include <limits.h>

#include "extern.h"

extern YYSTYPE yylval;

static int        xcdepth = 0;      /* depth of nesting in slash-star comments */
static char    *dolqstart;      /* current $foo$ quote start string */
static YY_BUFFER_STATE scanbufhandle;
static char *scanbuf;

/*
 * literalbuf is used to accumulate literal values when multiple rules
 * are needed to parse a single literal.  Call startlit to reset buffer
 * to empty, addlit to add text.  Note that the buffer is permanently
 * malloc'd to the largest size needed so far in the current run.
 */
static char    *literalbuf = NULL;        /* expandable buffer */
static int        literallen;                   /* actual current length */
static int        literalalloc;                 /* current allocated buffer size */

#define startlit()      (literalbuf[0] = '\0', literallen = 0)
static void addlit(char *ytext, int yleng);
static void addlitchar (unsigned char);
static void parse_include (void);
static bool ecpg_isspace(char ch);
static bool isdefine(void);
static bool isinformixdefine(void);

char *token_start;
int state_before;

struct _yy_buffer 
{ 
      YY_BUFFER_STATE         buffer;
      long                    lineno;
      char                    *filename;
      struct _yy_buffer       *next;
} *yy_buffer = NULL;

static char *old;

#define MAX_NESTED_IF 128
static short preproc_tos;
static short ifcond;
static struct _if_value 
{
      short condition;
      short else_branch;
} stacked_if_value[MAX_NESTED_IF];

#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
#define C 1
#define SQL 2
#define incl 3
#define def 4
#define def_ident 5
#define undef 6
 
/*
 * OK, here is a short description of lex/flex rules behavior.
 * The longest pattern which matches an input string is always chosen.
 * For equal-length patterns, the first occurring in the rules list is chosen.
 * INITIAL is the starting state, to which all non-conditional rules apply.
 * Exclusive states change parsing rules while the state is active.  When in
 * an exclusive state, only those rules defined for that state apply.
 *
 * We use exclusive states for quoted strings, extended comments,
 * and to eliminate parsing troubles for numeric strings.
 * Exclusive states:
 *    <xb> bit string literal
 *    <xc> extended C-style comments - thomas 1997-07-12
 *    <xd> delimited identifiers (double-quoted identifiers) - thomas 1997-10-27
 *    <xh> hexadecimal numeric string - thomas 1997-11-16
 *    <xq> standard quoted strings - thomas 1997-07-30
 *    <xqc> standard quoted strings in C - michael
 *    <xe> extended quoted strings (support backslash escape sequences)
 *    <xn> national character quoted strings
 *  <xdolq> $foo$ quoted strings
 *  <xui> quoted identifier with Unicode escapes
 *  <xus> quoted string with Unicode escapes
 */
#define xb 7

#define xc 8

#define xd 9

#define xdc 10

#define xh 11

#define xe 12

#define xn 13

#define xq 14

#define xqc 15

#define xdolq 16

#define xcond 17

#define xskip 18

#define xui 19

#define xus 20

/* Bit string
 */
/* Hexadecimal number */
/* National character */
/* Quoted string that allows backslash escapes */
/* C version of hex number */
/* Extended quote
 * xqdouble implements embedded quote, ''''
 */
/* $foo$ style quotes ("dollar quoting")
 * The quoted string starts with $foo$ where "foo" is an optional string
 * in the form of an identifier, except that it may not contain "$",
 * and extends to the first occurrence of an identical string.
 * There is *no* processing of the quoted text.
 *
 * {dolqfailed} is an error rule to avoid scanner backup when {dolqdelim}
 * fails to match its trailing "$".
 */
/* Double quote
 * Allows embedded spaces and other special characters into identifiers.
 */
/* Unicode escapes */
/* (The ecpg scanner is not backup-free, so the fail rules in scan.l are not needed here, but could be added if desired.) */
/* Quoted identifier with Unicode escapes */
/* Quoted string with Unicode escapes */
/* special stuff for C strings */
/* C-style comments
 *
 * The "extended comment" syntax closely resembles allowable operator syntax.
 * The tricky part here is to get lex to recognize a string starting with
 * slash-star as a comment, when interpreting it as an operator would produce
 * a longer match --- remember lex will prefer a longer match!    Also, if we
 * have something like plus-slash-star, lex will think this is a 3-character
 * operator whereas we want to see it as a + operator and a comment start.
 * The solution is two-fold:
 * 1. append {op_chars}* to xcstart so that it matches as much text as
 *      {operator} would. Then the tie-breaker (first matching rule of same
 *      length) ensures xcstart wins.  We put back the extra stuff with yyless()
 *      in case it contains a star-slash that should terminate the comment.
 * 2. In the operator rule, check for slash-star within the operator, and
 *      if found throw it back with yyless().  This handles the plus-slash-star
 *      problem.
 * Dash-dash comments have similar interactions with the operator rule.
 */
/*
 * "self" is the set of chars that should be returned as single-character
 * tokens.  "op_chars" is the set of chars that can make up "Op" tokens,
 * which can be one or more characters long (but if a single-char token
 * appears in the "self" set, it is not to be returned as an Op).  Note
 * that the sets overlap, but each has some chars that are not in the other.
 *
 * If you change either set, adjust the character lists appearing in the
 * rule for "operator"!
 */
/* we no longer allow unary minus in numbers.
 * instead we pass it separately to parser. there it gets
 * coerced via doNegate() -- Leon aug 20 1999
 *
 * {realfail1} and {realfail2} are added to prevent the need for scanner
 * backup when the {real} rule fails to match completely.
 */
/*
 * In order to make the world safe for Windows and Mac clients as well as
 * Unix ones, we accept either \n or \r as a newline.  A DOS-style \r\n
 * sequence will be seen as two successive newlines, but that doesn't cause
 * any problems.  SQL92-style comments, which start with -- and extend to the
 * next newline, are treated as equivalent to a single whitespace character.
 *
 * NOTE a fine point: if there is no newline following --, we will absorb
 * everything to the end of the input as a comment.  This is correct.  Older
 * versions of Postgres failed to recognize -- as a comment if the input
 * did not end with a newline.
 *
 * XXX perhaps \f (formfeed) should be treated as a newline as well?
 *
 * XXX if you change the set of whitespace characters, fix ecpg_isspace()
 * to agree.
 */
/*
 * SQL92 requires at least one newline in the whitespace separating
 * string literals that are to be concatenated.  Silly, but who are we
 * to argue?  Note that {whitespace_with_newline} should not have * after
 * it, whereas {whitespace} should generally have a * after it...
 */
/* special characters for other dbms */
/* we have to react differently in compat mode */
/* some stuff needed for ecpg */
/* we might want to parse all cpp include files */
/* Take care of cpp lines, they may also be continuated */
/*
 * Dollar quoted strings are totally opaque, and no escaping is done on them.
 * Other quoted strings must allow some special characters such as single-quote
 *    and newline.
 * Embedded single-quotes are implemented both in the SQL standard
 *    style of two adjacent single quotes "''" and in the Postgres/Java style
 *    of escaped-quote "\'".
 * Other embedded escaped characters are matched explicitly and the leading
 *    backslash is dropped from the string. - thomas 1997-09-24
 * Note that xcstart must appear before operator, as explained above!
 *    Also whitespace (comment) must appear before operator.
 */
#line 1882 "pgc.c"

/* Macros after this point can all be overridden by user definitions in
 * section 1.
 */

#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif

#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif

#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif

#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif

#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
#endif

#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif

#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif

#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
/* Just try to get by without declaring the routines.  This will fail
 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
 * or sizeof(void*) != sizeof(int).
 */
#endif
#endif

/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif

/* Copy whatever the last rule matched to the standard output. */

#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
 * we now use fwrite().
 */
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif

/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
 * is returned in "result".
 */
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
      if ( yy_current_buffer->yy_is_interactive ) \
            { \
            int c = '*', 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 if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
              && ferror( yyin ) ) \
            YY_FATAL_ERROR( "input in flex scanner failed" );
#endif

/* No semi-colon after return; correct usage is to write "yyterminate();" -
 * we don't want an extra ';' after the "return" because that will cause
 * some compilers to complain about unreachable statements.
 */
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif

/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif

/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif

/* Default declaration of generated scanner - a define so the user can
 * easily add parameters.
 */
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif

/* Code executed at the beginning of each rule, after yytext and yyleng
 * have been set up.
 */
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif

/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif

#define YY_RULE_SETUP \
      YY_USER_ACTION

YY_DECL
      {
      register yy_state_type yy_current_state;
      register char *yy_cp, *yy_bp;
      register int yy_act;

#line 346 "pgc.l"



            /* code to execute during start of each call of yylex() */
            token_start = NULL;


#line 2041 "pgc.c"

      if ( yy_init )
            {
            yy_init = 0;

#ifdef YY_USER_INIT
            YY_USER_INIT;
#endif

            if ( ! yy_start )
                  yy_start = 1;     /* first start state */

            if ( ! yyin )
                  yyin = stdin;

            if ( ! yyout )
                  yyout = stdout;

            if ( ! yy_current_buffer )
                  yy_current_buffer =
                        yy_create_buffer( yyin, YY_BUF_SIZE );

            yy_load_buffer_state();
            }

      while ( 1 )       /* loops until end-of-file is reached */
            {
            yy_cp = yy_c_buf_p;

            /* Support of yytext. */
            *yy_cp = yy_hold_char;

            /* yy_bp points to the position in yy_ch_buf of the start of
             * the current run.
             */
            yy_bp = yy_cp;

            yy_current_state = yy_start;
            yy_state_ptr = yy_state_buf;
            *yy_state_ptr++ = yy_current_state;
yy_match:
            do
                  {
                  register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*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 >= 729 )
                              yy_c = yy_meta[(unsigned int) yy_c];
                        }
                  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
                  *yy_state_ptr++ = yy_current_state;
                  ++yy_cp;
                  }
            while ( yy_base[yy_current_state] != 4256 );

yy_find_action:
            yy_current_state = *--yy_state_ptr;
            yy_lp = yy_accept[yy_current_state];
goto find_rule; /* avoid `defined but not used' warning */
find_rule: /* we branch to this label when backing up */
            for ( ; ; ) /* until we find what rule we matched */
                  {
                  if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
                        {
                        yy_act = yy_acclist[yy_lp];
                              {
                              yy_full_match = yy_cp;
                              break;
                              }
                        }
                  --yy_cp;
                  yy_current_state = *--yy_state_ptr;
                  yy_lp = yy_accept[yy_current_state];
                  }

            YY_DO_BEFORE_ACTION;

            if ( yy_act != YY_END_OF_BUFFER )
                  {
                  int yyl;
                  for ( yyl = 0; yyl < yyleng; ++yyl )
                        if ( yytext[yyl] == '\n' )
                              ++yylineno;
                  }

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


            switch ( yy_act )
      { /* beginning of action switch */
case 1:
YY_RULE_SETUP
#line 353 "pgc.l"
{ /* ignore */ }
      YY_BREAK
case 2:
YY_RULE_SETUP
#line 355 "pgc.l"
{
                              token_start = yytext;
                              state_before = YYSTATE;
                              xcdepth = 0;
                              BEGIN(xc);
                              /* Put back any characters past slash-star; see above */
                              yyless(2);
                              fputs("/*", yyout);
                        }
      YY_BREAK
case 3:
YY_RULE_SETUP
#line 364 "pgc.l"
{
                              xcdepth++;
                              /* Put back any characters past slash-star; see above */
                              yyless(2);
                              fputs("/*", yyout);
                        }
      YY_BREAK
case 4:
YY_RULE_SETUP
#line 371 "pgc.l"
{
                              ECHO;
                              if (xcdepth <= 0)
                              {
                                    BEGIN(state_before);
                                    token_start = NULL;
                              }
                              else
                                    xcdepth--;
                        }
      YY_BREAK
case 5:
YY_RULE_SETUP
#line 382 "pgc.l"
{ ECHO; }
      YY_BREAK
case 6:
YY_RULE_SETUP
#line 383 "pgc.l"
{ ECHO; }
      YY_BREAK
case 7:
YY_RULE_SETUP
#line 384 "pgc.l"
{ ECHO; }
      YY_BREAK
case YY_STATE_EOF(xc):
#line 386 "pgc.l"
{ mmerror(PARSE_ERROR, ET_FATAL, "unterminated /* comment"); }
      YY_BREAK
case 8:
YY_RULE_SETUP
#line 388 "pgc.l"
{
                              token_start = yytext;
                              BEGIN(xb);
                              startlit();
                              addlitchar('b');
                        }
      YY_BREAK
case 9:
#line 395 "pgc.l"
case 10:
YY_RULE_SETUP
#line 395 "pgc.l"
{
                              yyless(1);
                              BEGIN(SQL);
                              if (literalbuf[strspn(literalbuf, "01") + 1] != '\0')
                                    mmerror(PARSE_ERROR, ET_ERROR, "invalid bit string literal");
                              yylval.str = mm_strdup(literalbuf);
                              return BCONST;
                        }
      YY_BREAK
case 11:
#line 405 "pgc.l"
case 12:
YY_RULE_SETUP
#line 405 "pgc.l"
{ addlit(yytext, yyleng); }
      YY_BREAK
case 13:
#line 407 "pgc.l"
case 14:
YY_RULE_SETUP
#line 407 "pgc.l"
{ /* ignore */ }
      YY_BREAK
case YY_STATE_EOF(xb):
#line 408 "pgc.l"
{ mmerror(PARSE_ERROR, ET_FATAL, "unterminated bit string literal"); }
      YY_BREAK
case 15:
YY_RULE_SETUP
#line 410 "pgc.l"
{
                              token_start = yytext;
                              BEGIN(xh);
                              startlit();
                              addlitchar('x');
                        }
      YY_BREAK
case 16:
#line 417 "pgc.l"
case 17:
YY_RULE_SETUP
#line 417 "pgc.l"
{
                        yyless(1);
                        BEGIN(SQL);
                        yylval.str = mm_strdup(literalbuf);
                        return XCONST;
                  }
      YY_BREAK
case YY_STATE_EOF(xh):
#line 424 "pgc.l"
{ mmerror(PARSE_ERROR, ET_FATAL, "unterminated hexadecimal string literal"); }
      YY_BREAK
case 18:
YY_RULE_SETUP
#line 425 "pgc.l"
{
                        /* National character.
                         * Transfer it as-is to the backend.
                         */
                        token_start = yytext;
                        state_before = YYSTATE;
                        BEGIN(xn);
                        startlit();
                  }
      YY_BREAK
case 19:
YY_RULE_SETUP
#line 434 "pgc.l"
{
                        token_start = yytext;
                        state_before = YYSTATE;
                        BEGIN(xqc);
                        startlit();
                  }
      YY_BREAK
case 20:
YY_RULE_SETUP
#line 440 "pgc.l"
{
                        token_start = yytext;
                        state_before = YYSTATE;
                        BEGIN(xq);
                        startlit();
                  }
      YY_BREAK
case 21:
YY_RULE_SETUP
#line 446 "pgc.l"
{
                        token_start = yytext;
                        state_before = YYSTATE;
                        BEGIN(xe);
                        startlit();
                  }
      YY_BREAK
case 22:
YY_RULE_SETUP
#line 452 "pgc.l"
{
                        token_start = yytext;
                        state_before = YYSTATE;
                        BEGIN(xus);
                        startlit();
                        addlit(yytext, yyleng);
                  }
      YY_BREAK
case 23:
#line 460 "pgc.l"
case 24:
YY_RULE_SETUP
#line 460 "pgc.l"
{
                        yyless(1);
                        BEGIN(state_before);
                        yylval.str = mm_strdup(literalbuf);
                        return SCONST;
                  }
      YY_BREAK
case 25:
#line 467 "pgc.l"
case 26:
YY_RULE_SETUP
#line 467 "pgc.l"
{
                        yyless(1);
                        BEGIN(state_before);
                        yylval.str = mm_strdup(literalbuf);
                        return ECONST;
                  }
      YY_BREAK
case 27:
#line 474 "pgc.l"
case 28:
YY_RULE_SETUP
#line 474 "pgc.l"
{
                        yyless(1);
                        BEGIN(state_before);
                        yylval.str = mm_strdup(literalbuf);
                        return NCONST;
                  }
      YY_BREAK
case 29:
YY_RULE_SETUP
#line 480 "pgc.l"
{
                        addlit(yytext, yyleng);
                        BEGIN(state_before);
                        yylval.str = mm_strdup(literalbuf);
                        return UCONST;
                  }
      YY_BREAK
case 30:
YY_RULE_SETUP
#line 486 "pgc.l"
{ addlitchar('\''); }
      YY_BREAK
case 31:
YY_RULE_SETUP
#line 487 "pgc.l"
{
                        addlitchar('\\');
                        addlitchar('\'');
                  }
      YY_BREAK
case 32:
YY_RULE_SETUP
#line 491 "pgc.l"
{ addlit(yytext, yyleng); }
      YY_BREAK
case 33:
YY_RULE_SETUP
#line 492 "pgc.l"
{ addlit(yytext, yyleng); }
      YY_BREAK
case 34:
YY_RULE_SETUP
#line 493 "pgc.l"
{ addlit(yytext, yyleng); }
      YY_BREAK
case 35:
YY_RULE_SETUP
#line 494 "pgc.l"
{ addlit(yytext, yyleng); }
      YY_BREAK
case 36:
YY_RULE_SETUP
#line 495 "pgc.l"
{ addlit(yytext, yyleng); }
      YY_BREAK
case 37:
YY_RULE_SETUP
#line 496 "pgc.l"
{ /* ignore */ }
      YY_BREAK
case 38:
YY_RULE_SETUP
#line 497 "pgc.l"
{
                     /* This is only needed for \ just before EOF */
                     addlitchar(yytext[0]);
                  }
      YY_BREAK
case YY_STATE_EOF(xq):
case YY_STATE_EOF(xqc):
case YY_STATE_EOF(xe):
case YY_STATE_EOF(xn):
case YY_STATE_EOF(xus):
#line 501 "pgc.l"
{ mmerror(PARSE_ERROR, ET_FATAL, "unterminated quoted string"); }
      YY_BREAK
case 39:
YY_RULE_SETUP
#line 502 "pgc.l"
{
                        /* throw back all but the initial "$" */
                        yyless(1);
                        /* and treat it as {other} */
                        return yytext[0]; 
                  }
      YY_BREAK
case 40:
YY_RULE_SETUP
#line 508 "pgc.l"
{
                        token_start = yytext;
                        dolqstart = mm_strdup(yytext);
                        BEGIN(xdolq);
                        startlit();
                        addlit(yytext, yyleng);
                  }
      YY_BREAK
case 41:
YY_RULE_SETUP
#line 515 "pgc.l"
{
                        if (strcmp(yytext, dolqstart) == 0)
                        {
                              addlit(yytext, yyleng);
                              free(dolqstart);
                              BEGIN(SQL);
                              yylval.str = mm_strdup(literalbuf);
                              return DOLCONST;
                        }
                        else
                        {
                          /*
                           * When we fail to match $...$ to dolqstart, transfer
                           * the $... part to the output, but put back the final
                           * $ for rescanning.  Consider $delim$...$junk$delim$
                           */
                          addlit(yytext, yyleng-1);
                          yyless(yyleng-1);
                        }
                  }
      YY_BREAK
case 42:
YY_RULE_SETUP
#line 535 "pgc.l"
{ addlit(yytext, yyleng); }
      YY_BREAK
case 43:
YY_RULE_SETUP
#line 536 "pgc.l"
{ addlit(yytext, yyleng); }
      YY_BREAK
case 44:
YY_RULE_SETUP
#line 537 "pgc.l"
{
                        /* single quote or dollar sign */
                        addlitchar(yytext[0]);
                  }
      YY_BREAK
case YY_STATE_EOF(xdolq):
#line 541 "pgc.l"
{ base_yyerror("unterminated dollar-quoted string"); }
      YY_BREAK
case 45:
YY_RULE_SETUP
#line 542 "pgc.l"
{
                                    state_before = YYSTATE;
                                    BEGIN(xd);
                                    startlit();
                              }
      YY_BREAK
case 46:
YY_RULE_SETUP
#line 547 "pgc.l"
{
                                    state_before = YYSTATE;
                                    BEGIN(xui);
                                    startlit();
                                    addlit(yytext, yyleng);
                              }
      YY_BREAK
case 47:
YY_RULE_SETUP
#line 553 "pgc.l"
{
                                    BEGIN(state_before);
                                    if (literallen == 0)
                                          mmerror(PARSE_ERROR, ET_ERROR, "zero-length delimited identifier");
                                    /* The backend will truncate the identifier here. We do not as it does not change the result. */
                                    yylval.str = mm_strdup(literalbuf);
                                    return CSTRING;
                              }
      YY_BREAK
case 48:
YY_RULE_SETUP
#line 561 "pgc.l"
{
                                    BEGIN(state_before);
                                    yylval.str = mm_strdup(literalbuf);
                                    return CSTRING;
                              }
      YY_BREAK
case 49:
YY_RULE_SETUP
#line 566 "pgc.l"
{
                                    BEGIN(state_before);
                                    if (literallen == 2) /* "U&" */
                                          mmerror(PARSE_ERROR, ET_ERROR, "zero-length delimited identifier");
                                    /* The backend will truncate the identifier here. We do not as it does not change the result. */
                                    addlit(yytext, yyleng);
                                    yylval.str = mm_strdup(literalbuf);
                                    return UIDENT;
                              }
      YY_BREAK
case 50:
YY_RULE_SETUP
#line 575 "pgc.l"
{ addlitchar('"'); }
      YY_BREAK
case 51:
YY_RULE_SETUP
#line 576 "pgc.l"
{ addlit(yytext, yyleng); }
      YY_BREAK
case YY_STATE_EOF(xd):
case YY_STATE_EOF(xdc):
case YY_STATE_EOF(xui):
#line 577 "pgc.l"
{ mmerror(PARSE_ERROR, ET_FATAL, "unterminated quoted identifier"); }
      YY_BREAK
case 52:
YY_RULE_SETUP
#line 578 "pgc.l"
{
                                    state_before = YYSTATE;
                                    BEGIN(xdc);
                                    startlit();
                              }
      YY_BREAK
case 53:
YY_RULE_SETUP
#line 583 "pgc.l"
{ addlit(yytext, yyleng); }
      YY_BREAK
case 54:
YY_RULE_SETUP
#line 584 "pgc.l"
{ return TYPECAST; }
      YY_BREAK
case 55:
YY_RULE_SETUP
#line 585 "pgc.l"
{
                    /* are we simulating Informix? */
                        if (INFORMIX_MODE)
                        {
                              unput(':');
                        }
                        else
                              return yytext[0];
                        }
      YY_BREAK
case 56:
YY_RULE_SETUP
#line 594 "pgc.l"
{ /*
                                 * We may find a ';' inside a structure
                                 * definition in a TYPE or VAR statement.
                                 * This is not an EOL marker.
                                 */
                                if (yytext[0] == ';' && struct_level == 0)
                                     BEGIN(C);
                                return yytext[0];
                              }
      YY_BREAK
case 57:
YY_RULE_SETUP
#line 603 "pgc.l"
{
                                    /*
                                     * Check for embedded slash-star or dash-dash; those
                                     * are comment starts, so operator must stop there.
                                     * Note that slash-star or dash-dash at the first
                                     * character will match a prior rule, not this one.
                                     */
                                    int         nchars = yyleng;
                                    char   *slashstar = strstr(yytext, "/*");
                                    char   *dashdash = strstr(yytext, "--");

                                    if (slashstar && dashdash)
                                    {
                                          /* if both appear, take the first one */
                                          if (slashstar > dashdash)
                                                slashstar = dashdash;
                                    }
                                    else if (!slashstar)
                                          slashstar = dashdash;
                                    if (slashstar)
                                          nchars = slashstar - yytext;

                                    /*
                                     * For SQL compatibility, '+' and '-' cannot be the
                                     * last char of a multi-char operator unless the operator
                                     * contains chars that are not in SQL operators.
                                     * The idea is to lex '=-' as two operators, but not
                                     * to forbid operator names like '?-' that could not be
                                     * sequences of SQL operators.
                                     */
                                    while (nchars > 1 &&
                                             (yytext[nchars-1] == '+' ||
                                                yytext[nchars-1] == '-'))
                                    {
                                          int         ic;

                                          for (ic = nchars-2; ic >= 0; ic--)
                                          {
                                                if (strchr("~!@#^&|`?%", yytext[ic]))
                                                      break;
                                          }
                                          if (ic >= 0)
                                                break; /* found a char that makes it OK */
                                          nchars--; /* else remove the +/-, and check again */
                                    }

                                    if (nchars < yyleng)
                                    {
                                          /* Strip the unwanted chars from the token */
                                          yyless(nchars);
                                          /*
                                           * If what we have left is only one char, and it's
                                           * one of the characters matching "self", then
                                           * return it as a character token the same way
                                           * that the "self" rule would have.
                                           */
                                          if (nchars == 1 &&
                                                strchr(",()[].;:+-*/%^<>=", yytext[0]))
                                                return yytext[0];
                                    }

                                    /* Convert "!=" operator to "<>" for compatibility */
                                    if (strcmp(yytext, "!=") == 0)
                                          yylval.str = mm_strdup("<>");
                                    else
                                          yylval.str = mm_strdup(yytext);
                                    return Op;
                              }
      YY_BREAK
case 58:
YY_RULE_SETUP
#line 671 "pgc.l"
{
                                    yylval.ival = atol(yytext+1);
                                    return PARAM;
                              }
      YY_BREAK
case 59:
YY_RULE_SETUP
#line 675 "pgc.l"
{
                                    long val;
                                    char* endptr;

                                    errno = 0;
                                    val = strtol((char *)yytext, &endptr,10);
                                    if (*endptr != '\0' || errno == ERANGE
#ifdef HAVE_LONG_INT_64
                                          /* if long > 32 bits, check for overflow of int4 */
                                          || val != (long) ((int32) val)
#endif
                                          )
                                    {
                                          errno = 0;
                                          yylval.str = mm_strdup(yytext);
                                          return FCONST;
                                    }
                                    yylval.ival = val;
                                    return ICONST;
                              }
      YY_BREAK
case 60:
YY_RULE_SETUP
#line 695 "pgc.l"
{
                                    yylval.str = mm_strdup(yytext);
                                    return IP;
                        }
      YY_BREAK
case 61:
YY_RULE_SETUP
#line 699 "pgc.l"
{
                                    yylval.str = mm_strdup(yytext);
                                    return FCONST;
                  }
      YY_BREAK
case 62:
YY_RULE_SETUP
#line 703 "pgc.l"
{
                                    yylval.str = mm_strdup(yytext);
                                    return FCONST;
                  }
      YY_BREAK
case 63:
YY_RULE_SETUP
#line 707 "pgc.l"
{
                                    yyless(yyleng-1);
                                    yylval.str = mm_strdup(yytext);
                                    return FCONST;
                              }
      YY_BREAK
case 64:
YY_RULE_SETUP
#line 712 "pgc.l"
{
                                    yyless(yyleng-2);
                                    yylval.str = mm_strdup(yytext);
                                    return FCONST;
                              }
      YY_BREAK
case 65:
YY_RULE_SETUP
#line 717 "pgc.l"
{
                                    yylval.str = mm_strdup(yytext+1);
                                    return(CVARIABLE);
                              }
      YY_BREAK
case 66:
YY_RULE_SETUP
#line 721 "pgc.l"
{
                                    const ScanKeyword    *keyword;
                                    
                                    if (!isdefine())
                                    {
                                          /* Is it an SQL/ECPG keyword? */
                                          keyword = ScanECPGKeywordLookup(yytext);
                                          if (keyword != NULL)
                                                return keyword->value;

                                          /* Is it a C keyword? */
                                          keyword = ScanCKeywordLookup(yytext);
                                          if (keyword != NULL)
                                                return keyword->value;

                                          /*
                                           * None of the above.  Return it as an identifier.
                                           *
                                           * The backend will attempt to truncate and case-fold
                                           * the identifier, but I see no good reason for ecpg
                                           * to do so; that's just another way that ecpg could get
                                           * out of step with the backend.
                                           */
                                          yylval.str = mm_strdup(yytext);
                                          return IDENT;
                                    }
                              }
      YY_BREAK
case 67:
YY_RULE_SETUP
#line 748 "pgc.l"
{ return yytext[0]; }
      YY_BREAK
case 68:
YY_RULE_SETUP
#line 749 "pgc.l"
{ BEGIN(SQL); return SQL_START; }
      YY_BREAK
case 69:
YY_RULE_SETUP
#line 750 "pgc.l"
{ 
                                    /* are we simulating Informix? */
                                    if (INFORMIX_MODE)
                                    {
                                          BEGIN(SQL);
                                          return SQL_START;
                                    }
                                    else
                                          return S_ANYTHING;
                               }
      YY_BREAK
case 70:
YY_RULE_SETUP
#line 760 "pgc.l"
{ ECHO; }
      YY_BREAK
case 71:
YY_RULE_SETUP
#line 761 "pgc.l"
{
                                    char* endptr;

                                    errno = 0;
                                    yylval.ival = strtoul((char *)yytext,&endptr,16);
                                    if (*endptr != '\0' || errno == ERANGE)
                                    {
                                          errno = 0;
                                          yylval.str = mm_strdup(yytext);
                                          return SCONST;
                                    }
                                    return ICONST;
                              }
      YY_BREAK
case 72:
YY_RULE_SETUP
#line 774 "pgc.l"
{
                                    if (system_includes)
                                    {
                                          BEGIN(incl);
                                    }
                                    else
                                    {
                                          yylval.str = mm_strdup(yytext);
                                          return(CPP_LINE);
                                    }
                              }
      YY_BREAK
case 73:
YY_RULE_SETUP
#line 785 "pgc.l"
{
                                    yylval.str = mm_strdup(yytext);
                                    return(CPP_LINE);
                              }
      YY_BREAK
case 74:
YY_RULE_SETUP
#line 789 "pgc.l"
{
                                    const ScanKeyword       *keyword;
                                          
                                    /* Informix uses SQL defines only in SQL space */
                                    /* however, some defines have to be taken care of for compatibility */
                                    if ((!INFORMIX_MODE || !isinformixdefine()) && !isdefine())
                                    {
                                          keyword = ScanCKeywordLookup(yytext);
                                          if (keyword != NULL)
                                                return keyword->value;
                                          else
                                          {
                                                yylval.str = mm_strdup(yytext);
                                                return IDENT;
                                          }
                                    }
                              }
      YY_BREAK
case 75:
YY_RULE_SETUP
#line 806 "pgc.l"
{ return(':'); }
      YY_BREAK
case 76:
YY_RULE_SETUP
#line 807 "pgc.l"
{ return(';'); }
      YY_BREAK
case 77:
YY_RULE_SETUP
#line 808 "pgc.l"
{ return(','); }
      YY_BREAK
case 78:
YY_RULE_SETUP
#line 809 "pgc.l"
{ return('*'); }
      YY_BREAK
case 79:
YY_RULE_SETUP
#line 810 "pgc.l"
{ return('%'); }
      YY_BREAK
case 80:
YY_RULE_SETUP
#line 811 "pgc.l"
{ return('/'); }
      YY_BREAK
case 81:
YY_RULE_SETUP
#line 812 "pgc.l"
{ return('+'); }
      YY_BREAK
case 82:
YY_RULE_SETUP
#line 813 "pgc.l"
{ return('-'); }
      YY_BREAK
case 83:
YY_RULE_SETUP
#line 814 "pgc.l"
{ return('('); }
      YY_BREAK
case 84:
YY_RULE_SETUP
#line 815 "pgc.l"
{ return(')'); }
      YY_BREAK
case 85:
YY_RULE_SETUP
#line 816 "pgc.l"
{ ECHO; }
      YY_BREAK
case 86:
YY_RULE_SETUP
#line 817 "pgc.l"
{ return('{'); }
      YY_BREAK
case 87:
YY_RULE_SETUP
#line 818 "pgc.l"
{ return('}'); }
      YY_BREAK
case 88:
YY_RULE_SETUP
#line 819 "pgc.l"
{ return('['); }
      YY_BREAK
case 89:
YY_RULE_SETUP
#line 820 "pgc.l"
{ return(']'); }
      YY_BREAK
case 90:
YY_RULE_SETUP
#line 821 "pgc.l"
{ return('='); }
      YY_BREAK
case 91:
YY_RULE_SETUP
#line 822 "pgc.l"
{ return(S_MEMBER); }
      YY_BREAK
case 92:
YY_RULE_SETUP
#line 823 "pgc.l"
{ return(S_RSHIFT); }
      YY_BREAK
case 93:
YY_RULE_SETUP
#line 824 "pgc.l"
{ return(S_LSHIFT); }
      YY_BREAK
case 94:
YY_RULE_SETUP
#line 825 "pgc.l"
{ return(S_OR); }
      YY_BREAK
case 95:
YY_RULE_SETUP
#line 826 "pgc.l"
{ return(S_AND); }
      YY_BREAK
case 96:
YY_RULE_SETUP
#line 827 "pgc.l"
{ return(S_INC); }
      YY_BREAK
case 97:
YY_RULE_SETUP
#line 828 "pgc.l"
{ return(S_DEC); }
      YY_BREAK
case 98:
YY_RULE_SETUP
#line 829 "pgc.l"
{ return(S_EQUAL); }
      YY_BREAK
case 99:
YY_RULE_SETUP
#line 830 "pgc.l"
{ return(S_NEQUAL); }
      YY_BREAK
case 100:
YY_RULE_SETUP
#line 831 "pgc.l"
{ return(S_ADD); }
      YY_BREAK
case 101:
YY_RULE_SETUP
#line 832 "pgc.l"
{ return(S_SUB); }
      YY_BREAK
case 102:
YY_RULE_SETUP
#line 833 "pgc.l"
{ return(S_MUL); }
      YY_BREAK
case 103:
YY_RULE_SETUP
#line 834 "pgc.l"
{ return(S_DIV); }
      YY_BREAK
case 104:
YY_RULE_SETUP
#line 835 "pgc.l"
{ return(S_MOD); }
      YY_BREAK
case 105:
YY_RULE_SETUP
#line 836 "pgc.l"
{ return(S_MEMPOINT); }
      YY_BREAK
case 106:
YY_RULE_SETUP
#line 837 "pgc.l"
{ return(S_DOTPOINT); }
      YY_BREAK
case 107:
YY_RULE_SETUP
#line 838 "pgc.l"
{ return S_ANYTHING; }
      YY_BREAK
case 108:
YY_RULE_SETUP
#line 839 "pgc.l"
{ BEGIN(def_ident); }
      YY_BREAK
case 109:
YY_RULE_SETUP
#line 840 "pgc.l"
{
                                    /* are we simulating Informix? */
                                    if (INFORMIX_MODE)
                                    {
                                          BEGIN(def_ident);
                                    }
                                    else
                                    {
                                          yyless(1);
                                          return (S_ANYTHING);
                                    }
                              }
      YY_BREAK
case 110:
YY_RULE_SETUP
#line 852 "pgc.l"
{ BEGIN(undef); }
      YY_BREAK
case 111:
YY_RULE_SETUP
#line 853 "pgc.l"
{
                                    /* are we simulating Informix? */
                                    if (INFORMIX_MODE)
                                    {
                                          BEGIN(undef);
                                    }
                                    else
                                    {
                                          yyless(1);
                                          return (S_ANYTHING);
                                    }
                              }
      YY_BREAK
case 112:
YY_RULE_SETUP
#line 865 "pgc.l"
{
                              struct _defines *ptr, *ptr2 = NULL;
                              int i;

                              /*
                               *    Skip the ";" and trailing whitespace. Note that yytext
                               *    contains at least one non-space character plus the ";"
                               */
                              for (i = strlen(yytext)-2;
                                     i > 0 && ecpg_isspace(yytext[i]);
                                     i-- )
                                    ;
                              yytext[i+1] = '\0';


                              for (ptr = defines; ptr != NULL; ptr2 = ptr, ptr = ptr->next)
                              {
                                    if (strcmp(yytext, ptr->old) == 0)
                                    {
                                          if (ptr2 == NULL)
                                                defines = ptr->next;
                                          else
                                                ptr2->next = ptr->next;
                                          free(ptr->new);
                                          free(ptr->old);
                                          free(ptr);
                                          break;
                                    }
                              }

                              BEGIN(C);
                        }
      YY_BREAK
case 113:
YY_RULE_SETUP
#line 897 "pgc.l"
{
                              mmerror(PARSE_ERROR, ET_FATAL, "missing identifier in EXEC SQL UNDEF command");
                                  yyterminate();
                        }
      YY_BREAK
case 114:
YY_RULE_SETUP
#line 901 "pgc.l"
{ BEGIN(incl); }
      YY_BREAK
case 115:
YY_RULE_SETUP
#line 902 "pgc.l"
{ 
                                /* are we simulating Informix? */
                                if (INFORMIX_MODE)
                                {
                                      BEGIN(incl);
                                }
                                else
                                {
                                      yyless(1);
                                      return (S_ANYTHING);
                                }
                              }
      YY_BREAK
case 116:
YY_RULE_SETUP
#line 914 "pgc.l"
{ ifcond = TRUE; BEGIN(xcond); }
      YY_BREAK
case 117:
YY_RULE_SETUP
#line 915 "pgc.l"
{ 
                                /* are we simulating Informix? */
                                if (INFORMIX_MODE)
                                {
                                      ifcond = TRUE;
                                      BEGIN(xcond);
                                }
                                else
                                {
                                      yyless(1);
                                      return (S_ANYTHING);
                                }
                              }
      YY_BREAK
case 118:
YY_RULE_SETUP
#line 928 "pgc.l"
{ ifcond = FALSE; BEGIN(xcond); }
      YY_BREAK
case 119:
YY_RULE_SETUP
#line 929 "pgc.l"
{ 
                                /* are we simulating Informix? */
                                if (INFORMIX_MODE)
                                {
                                      ifcond = FALSE;
                                      BEGIN(xcond);
                                }
                                else
                                {
                                      yyless(1);
                                      return (S_ANYTHING);
                                }
                              }
      YY_BREAK
case 120:
YY_RULE_SETUP
#line 942 "pgc.l"
{     /* pop stack */
                                    if ( preproc_tos == 0 ) {
                                          mmerror(PARSE_ERROR, ET_FATAL, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\"");
                                    }
                                    else if ( stacked_if_value[preproc_tos].else_branch )
                                          mmerror(PARSE_ERROR, ET_FATAL, "missing \"EXEC SQL ENDIF;\"");
                                    else
                                          preproc_tos--;

                                    ifcond = TRUE; BEGIN(xcond);
                              }
      YY_BREAK
case 121:
YY_RULE_SETUP
#line 953 "pgc.l"
{ 
                              /* are we simulating Informix? */
                              if (INFORMIX_MODE)
                              {
                                    if (preproc_tos == 0)
                                          mmerror(PARSE_ERROR, ET_FATAL, "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\"");
                                    else if (stacked_if_value[preproc_tos].else_branch)
                                          mmerror(PARSE_ERROR, ET_FATAL, "missing \"EXEC SQL ENDIF;\"");
                                    else
                                          preproc_tos--;

                                    ifcond = TRUE;
                                    BEGIN(xcond);
                              }
                              else
                              {
                                    yyless(1);
                                    return (S_ANYTHING);
                              }
                        }
      YY_BREAK
case 122:
YY_RULE_SETUP
#line 974 "pgc.l"
{     /* only exec sql endif pops the stack, so take care of duplicated 'else' */
                              if (stacked_if_value[preproc_tos].else_branch)
                                    mmerror(PARSE_ERROR, ET_FATAL, "more than one EXEC SQL ELSE");
                              else
                              {
                                    stacked_if_value[preproc_tos].else_branch = TRUE;
                                    stacked_if_value[preproc_tos].condition =
                                          (stacked_if_value[preproc_tos-1].condition &&
                                           !stacked_if_value[preproc_tos].condition);

                                    if (stacked_if_value[preproc_tos].condition)
                                          BEGIN(C);
                                    else
                                          BEGIN(xskip);
                              }
                        }
      YY_BREAK
case 123:
YY_RULE_SETUP
#line 990 "pgc.l"
{
                              /* are we simulating Informix? */
                              if (INFORMIX_MODE)
                              {
                                    if (stacked_if_value[preproc_tos].else_branch)
                                          mmerror(PARSE_ERROR, ET_FATAL, "more than one EXEC SQL ELSE");
                                    else
                                    {
                                          stacked_if_value[preproc_tos].else_branch = TRUE;
                                          stacked_if_value[preproc_tos].condition =
                                          (stacked_if_value[preproc_tos-1].condition &&
                                           !stacked_if_value[preproc_tos].condition);

                                          if (stacked_if_value[preproc_tos].condition)
                                                BEGIN(C);
                                          else
                                                BEGIN(xskip);
                                    }
                              }
                              else
                              {
                                    yyless(1);
                                    return (S_ANYTHING);
                              }
                        }
      YY_BREAK
case 124:
YY_RULE_SETUP
#line 1015 "pgc.l"
{
                              if (preproc_tos == 0)
                                    mmerror(PARSE_ERROR, ET_FATAL, "unmatched EXEC SQL ENDIF");
                              else
                                    preproc_tos--;

                              if (stacked_if_value[preproc_tos].condition)
                                 BEGIN(C);
                              else
                                 BEGIN(xskip);
                        }
      YY_BREAK
case 125:
YY_RULE_SETUP
#line 1026 "pgc.l"
{
                              /* are we simulating Informix? */
                              if (INFORMIX_MODE)
                              {
                                    if (preproc_tos == 0)
                                          mmerror(PARSE_ERROR, ET_FATAL, "unmatched EXEC SQL ENDIF");
                                    else
                                          preproc_tos--;

                                    if (stacked_if_value[preproc_tos].condition)
                                          BEGIN(C);
                                    else
                                          BEGIN(xskip);
                              }
                              else
                              {
                                    yyless(1);
                                    return (S_ANYTHING);
                              }
                        }
      YY_BREAK
case 126:
YY_RULE_SETUP
#line 1047 "pgc.l"
{ /* ignore */ }
      YY_BREAK
case 127:
YY_RULE_SETUP
#line 1049 "pgc.l"
{
                              if (preproc_tos >= MAX_NESTED_IF-1)
                                    mmerror(PARSE_ERROR, ET_FATAL, "too many nested EXEC SQL IFDEF conditions");
                              else 
                              {
                                    struct _defines *defptr;
                                    unsigned int i;

                                    /*
                                     *    Skip the ";" and trailing whitespace. Note that yytext
                                     *    contains at least one non-space character plus the ";"
                                     */
                                    for (i = strlen(yytext)-2;
                                           i > 0 && ecpg_isspace(yytext[i]);
                                           i-- )
                                          ;
                                    yytext[i+1] = '\0';

                                    for (defptr = defines;
                                           defptr != NULL && strcmp(yytext, defptr->old) != 0;
                                           defptr = defptr->next);

                                    preproc_tos++;
                                    stacked_if_value[preproc_tos].else_branch = FALSE;
                                    stacked_if_value[preproc_tos].condition =
                                    (defptr ? ifcond : !ifcond) && stacked_if_value[preproc_tos-1].condition;
                              }

                              if (stacked_if_value[preproc_tos].condition)
                                    BEGIN(C);
                              else
                                    BEGIN(xskip);
                        }
      YY_BREAK
case 128:
YY_RULE_SETUP
#line 1083 "pgc.l"
{
                        mmerror(PARSE_ERROR, ET_FATAL, "missing identifier in EXEC SQL IFDEF command");
                        yyterminate();
                  }
      YY_BREAK
case 129:
YY_RULE_SETUP
#line 1087 "pgc.l"
{
                        old = mm_strdup(yytext);
                        BEGIN(def);
                        startlit();
                  }
      YY_BREAK
case 130:
YY_RULE_SETUP
#line 1092 "pgc.l"
{
                        mmerror(PARSE_ERROR, ET_FATAL, "missing identifier in EXEC SQL DEFINE command");
                        yyterminate();
                  }     
      YY_BREAK
case 131:
YY_RULE_SETUP
#line 1096 "pgc.l"
{
                                    struct _defines *ptr, *this;

                                    for (ptr = defines; ptr != NULL; ptr = ptr->next)
                                    {
                                           if (strcmp(old, ptr->old) == 0)
                                           {
                                                free(ptr->new);
                                                ptr->new = mm_strdup(literalbuf);
                                           }
                                    }
                                    if (ptr == NULL)
                                    {
                                          this = (struct _defines *) mm_alloc(sizeof(struct _defines));

                                          /* initial definition */
                                          this->old = old;
                                          this->new = mm_strdup(literalbuf);
                                          this->next = defines;
                                          this->used = NULL;
                                          defines = this;
                                    }

                                    BEGIN(C);
                              }
      YY_BREAK
case 132:
YY_RULE_SETUP
#line 1121 "pgc.l"
{ addlit(yytext, yyleng); }
      YY_BREAK
case 133:
YY_RULE_SETUP
#line 1122 "pgc.l"
{     parse_include(); }
      YY_BREAK
case 134:
YY_RULE_SETUP
#line 1123 "pgc.l"
{     parse_include(); }
      YY_BREAK
case 135:
YY_RULE_SETUP
#line 1124 "pgc.l"
{ parse_include(); }
      YY_BREAK
case 136:
YY_RULE_SETUP
#line 1125 "pgc.l"
{
                              mmerror(PARSE_ERROR, ET_FATAL, "syntax error in EXEC SQL INCLUDE command");
                              yyterminate();
                        }
      YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(C):
case YY_STATE_EOF(SQL):
case YY_STATE_EOF(incl):
case YY_STATE_EOF(def):
case YY_STATE_EOF(def_ident):
case YY_STATE_EOF(undef):
case YY_STATE_EOF(xcond):
case YY_STATE_EOF(xskip):
#line 1130 "pgc.l"
{
                              if (yy_buffer == NULL)
                              {
                                    if ( preproc_tos > 0 ) 
                                    {
                                          preproc_tos = 0;
                                          mmerror(PARSE_ERROR, ET_FATAL, "missing \"EXEC SQL ENDIF;\"");
                                    }
                                    yyterminate();
                              }
                              else
                              {
                                    struct _yy_buffer *yb = yy_buffer;
                                    int i;
                                    struct _defines *ptr;

                                    for (ptr = defines; ptr; ptr = ptr->next)
                                          if (ptr->used == yy_buffer)
                                          {
                                                ptr->used = NULL;
                                                break;
                                          }
                                                
                                    if (yyin != NULL)
                                          fclose(yyin);

                                    yy_delete_buffer( YY_CURRENT_BUFFER );
                                    yy_switch_to_buffer(yy_buffer->buffer);

                                    yylineno = yy_buffer->lineno;

                                    /* We have to output the filename only if we change files here */
                                    i = strcmp(input_filename, yy_buffer->filename);

                                    free(input_filename);
                                    input_filename = yy_buffer->filename;

                                    yy_buffer = yy_buffer->next;
                                    free(yb);

                                    if (i != 0)
                                          output_line_number();
                                    
                              }
                        }
      YY_BREAK
case 137:
YY_RULE_SETUP
#line 1175 "pgc.l"
{ mmerror(PARSE_ERROR, ET_FATAL, "internal error: unreachable state; please report this to <pgsql-bugs@postgresql.org>"); }
      YY_BREAK
case 138:
YY_RULE_SETUP
#line 1176 "pgc.l"
YY_FATAL_ERROR( "flex scanner jammed" );
      YY_BREAK
#line 3510 "pgc.c"

      case YY_END_OF_BUFFER:
            {
            /* Amount of text matched not including the EOB char. */
            int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;

            /* Undo the effects of YY_DO_BEFORE_ACTION. */
            *yy_cp = yy_hold_char;
            YY_RESTORE_YY_MORE_OFFSET

            if ( yy_current_buffer->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.
                   */
                  yy_n_chars = yy_current_buffer->yy_n_chars;
                  yy_current_buffer->yy_input_file = yyin;
                  yy_current_buffer->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 ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
                  { /* This was really a NUL. */
                  yy_state_type yy_next_state;

                  yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

                  yy_current_state = yy_get_previous_state();

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

                  yy_bp = yytext_ptr + YY_MORE_ADJ;

                  if ( yy_next_state )
                        {
                        /* Consume the NUL. */
                        yy_cp = ++yy_c_buf_p;
                        yy_current_state = yy_next_state;
                        goto yy_match;
                        }

                  else
                        {
                        yy_cp = yy_c_buf_p;
                        goto yy_find_action;
                        }
                  }

            else switch ( yy_get_next_buffer() )
                  {
                  case EOB_ACT_END_OF_FILE:
                        {
                        yy_did_buffer_switch_on_eof = 0;

                        if ( yywrap() )
                              {
                              /* 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.
                               */
                              yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;

                              yy_act = YY_STATE_EOF(YY_START);
                              goto do_action;
                              }

                        else
                              {
                              if ( ! yy_did_buffer_switch_on_eof )
                                    YY_NEW_FILE;
                              }
                        break;
                        }

                  case EOB_ACT_CONTINUE_SCAN:
                        yy_c_buf_p =
                              yytext_ptr + yy_amount_of_matched_text;

                        yy_current_state = yy_get_previous_state();

                        yy_cp = yy_c_buf_p;
                        yy_bp = yytext_ptr + YY_MORE_ADJ;
                        goto yy_match;

                  case EOB_ACT_LAST_MATCH:
                        yy_c_buf_p =
                        &yy_current_buffer->yy_ch_buf[yy_n_chars];

                        yy_current_state = yy_get_previous_state();

                        yy_cp = yy_c_buf_p;
                        yy_bp = yytext_ptr + YY_MORE_ADJ;
                        goto yy_find_action;
                  }
            break;
            }

      default:
            YY_FATAL_ERROR(
                  "fatal flex scanner internal error--no action found" );
      } /* end of action switch */
            } /* end of scanning one token */
      } /* end of yylex */


/* yy_get_next_buffer - try to read in a new buffer
 *
 * Returns a code representing an action:
 *    EOB_ACT_LAST_MATCH -
 *    EOB_ACT_CONTINUE_SCAN - continue scanning from current position
 *    EOB_ACT_END_OF_FILE - end of file
 */

static int yy_get_next_buffer()
      {
      register char *dest = yy_current_buffer->yy_ch_buf;
      register char *source = yytext_ptr;
      register int number_to_move, i;
      int ret_val;

      if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
            YY_FATAL_ERROR(
            "fatal flex scanner internal error--end of buffer missed" );

      if ( yy_current_buffer->yy_fill_buffer == 0 )
            { /* Don't try to fill the buffer, so this is an EOF. */
            if ( yy_c_buf_p - 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) (yy_c_buf_p - yytext_ptr) - 1;

      for ( i = 0; i < number_to_move; ++i )
            *(dest++) = *(source++);

      if ( yy_current_buffer->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->yy_n_chars = yy_n_chars = 0;

      else
            {
            int num_to_read =
                  yy_current_buffer->yy_buf_size - number_to_move - 1;

            while ( num_to_read <= 0 )
                  { /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
                  YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else

                  /* just a shorter name for the current buffer */
                  YY_BUFFER_STATE b = yy_current_buffer;

                  int yy_c_buf_p_offset =
                        (int) (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. */
                              yy_flex_realloc( (void *) b->yy_ch_buf,
                                           b->yy_buf_size + 2 );
                        }
                  else
                        /* Can't grow it, we don't own it. */
                        b->yy_ch_buf = 0;

                  if ( ! b->yy_ch_buf )
                        YY_FATAL_ERROR(
                        "fatal error - scanner input buffer overflow" );

                  yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

                  num_to_read = yy_current_buffer->yy_buf_size -
                                    number_to_move - 1;
#endif
                  }

            if ( num_to_read > YY_READ_BUF_SIZE )
                  num_to_read = YY_READ_BUF_SIZE;

            /* Read in more data. */
            YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
                  yy_n_chars, num_to_read );

            yy_current_buffer->yy_n_chars = yy_n_chars;
            }

      if ( yy_n_chars == 0 )
            {
            if ( number_to_move == YY_MORE_ADJ )
                  {
                  ret_val = EOB_ACT_END_OF_FILE;
                  yyrestart( yyin );
                  }

            else
                  {
                  ret_val = EOB_ACT_LAST_MATCH;
                  yy_current_buffer->yy_buffer_status =
                        YY_BUFFER_EOF_PENDING;
                  }
            }

      else
            ret_val = EOB_ACT_CONTINUE_SCAN;

      yy_n_chars += number_to_move;
      yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
      yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;

      yytext_ptr = &yy_current_buffer->yy_ch_buf[0];

      return ret_val;
      }


/* yy_get_previous_state - get the state just before the EOB char was reached */

static yy_state_type yy_get_previous_state()
      {
      register yy_state_type yy_current_state;
      register char *yy_cp;

      yy_current_state = yy_start;
      yy_state_ptr = yy_state_buf;
      *yy_state_ptr++ = yy_current_state;

      for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
            {
            register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
            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 >= 729 )
                        yy_c = yy_meta[(unsigned int) yy_c];
                  }
            yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
            *yy_state_ptr++ = yy_current_state;
            }

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

#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
      {
      register int yy_is_jam;

      register YY_CHAR yy_c = 1;
      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 >= 729 )
                  yy_c = yy_meta[(unsigned int) yy_c];
            }
      yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
      yy_is_jam = (yy_current_state == 728);
      if ( ! yy_is_jam )
            *yy_state_ptr++ = yy_current_state;

      return yy_is_jam ? 0 : yy_current_state;
      }


#ifndef YY_NO_UNPUT
#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
      {
      register char *yy_cp = yy_c_buf_p;

      /* undo effects of setting up yytext */
      *yy_cp = yy_hold_char;

      if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
            { /* need to shift things up to make room */
            /* +2 for EOB chars. */
            register int number_to_move = yy_n_chars + 2;
            register char *dest = &yy_current_buffer->yy_ch_buf[
                              yy_current_buffer->yy_buf_size + 2];
            register char *source =
                        &yy_current_buffer->yy_ch_buf[number_to_move];

            while ( source > yy_current_buffer->yy_ch_buf )
                  *--dest = *--source;

            yy_cp += (int) (dest - source);
            yy_bp += (int) (dest - source);
            yy_current_buffer->yy_n_chars =
                  yy_n_chars = yy_current_buffer->yy_buf_size;

            if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
                  YY_FATAL_ERROR( "flex scanner push-back overflow" );
            }

      *--yy_cp = (char) c;

      if ( c == '\n' )
            --yylineno;

      yytext_ptr = yy_bp;
      yy_hold_char = *yy_cp;
      yy_c_buf_p = yy_cp;
      }
#endif      /* ifndef YY_NO_UNPUT */


#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
      {
      int c;

      *yy_c_buf_p = yy_hold_char;

      if ( *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 ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
                  /* This was really a NUL. */
                  *yy_c_buf_p = '\0';

            else
                  { /* need more input */
                  int offset = yy_c_buf_p - yytext_ptr;
                  ++yy_c_buf_p;

                  switch ( yy_get_next_buffer() )
                        {
                        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 );

                              /* fall through */

                        case EOB_ACT_END_OF_FILE:
                              {
                              if ( yywrap() )
                                    return EOF;

                              if ( ! yy_did_buffer_switch_on_eof )
                                    YY_NEW_FILE;
#ifdef __cplusplus
                              return yyinput();
#else
                              return input();
#endif
                              }

                        case EOB_ACT_CONTINUE_SCAN:
                              yy_c_buf_p = yytext_ptr + offset;
                              break;
                        }
                  }
            }

      c = *(unsigned char *) yy_c_buf_p;  /* cast for 8-bit char's */
      *yy_c_buf_p = '\0';     /* preserve yytext */
      yy_hold_char = *++yy_c_buf_p;

      if ( c == '\n' )
            ++yylineno;

      return c;
      }


#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
      {
      if ( ! yy_current_buffer )
            yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );

      yy_init_buffer( yy_current_buffer, input_file );
      yy_load_buffer_state();
      }


#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
      {
      if ( yy_current_buffer == new_buffer )
            return;

      if ( yy_current_buffer )
            {
            /* Flush out information for old buffer. */
            *yy_c_buf_p = yy_hold_char;
            yy_current_buffer->yy_buf_pos = yy_c_buf_p;
            yy_current_buffer->yy_n_chars = yy_n_chars;
            }

      yy_current_buffer = new_buffer;
      yy_load_buffer_state();

      /* 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.
       */
      yy_did_buffer_switch_on_eof = 1;
      }


#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
      {
      yy_n_chars = yy_current_buffer->yy_n_chars;
      yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
      yyin = yy_current_buffer->yy_input_file;
      yy_hold_char = *yy_c_buf_p;
      }


#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
      {
      YY_BUFFER_STATE b;

      b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
      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 *) yy_flex_alloc( b->yy_buf_size + 2 );
      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 );

      return b;
      }


#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
      {
      if ( ! b )
            return;

      if ( b == yy_current_buffer )
            yy_current_buffer = (YY_BUFFER_STATE) 0;

      if ( b->yy_is_our_buffer )
            yy_flex_free( (void *) b->yy_ch_buf );

      yy_flex_free( (void *) b );
      }


#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif

#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif


      {
      yy_flush_buffer( b );

      b->yy_input_file = file;
      b->yy_fill_buffer = 1;

#if YY_ALWAYS_INTERACTIVE
      b->yy_is_interactive = 1;
#else
#if YY_NEVER_INTERACTIVE
      b->yy_is_interactive = 0;
#else
      b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
#endif
      }


#ifdef YY_USE_PROTOS
void yy_flush_buffer( YY_BUFFER_STATE b )
#else
void yy_flush_buffer( b )
YY_BUFFER_STATE b;
#endif

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


#ifndef YY_NO_SCAN_BUFFER
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
#else
YY_BUFFER_STATE yy_scan_buffer( base, size )
char *base;
yy_size_t size;
#endif
      {
      YY_BUFFER_STATE b;

      if ( size < 2 ||
           base[size-2] != YY_END_OF_BUFFER_CHAR ||
           base[size-1] != YY_END_OF_BUFFER_CHAR )
            /* They forgot to leave room for the EOB's. */
            return 0;

      b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
      if ( ! b )
            YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );

      b->yy_buf_size = size - 2;    /* "- 2" to take care of EOB's */
      b->yy_buf_pos = b->yy_ch_buf = base;
      b->yy_is_our_buffer = 0;
      b->yy_input_file = 0;
      b->yy_n_chars = b->yy_buf_size;
      b->yy_is_interactive = 0;
      b->yy_at_bol = 1;
      b->yy_fill_buffer = 0;
      b->yy_buffer_status = YY_BUFFER_NEW;

      yy_switch_to_buffer( b );

      return b;
      }
#endif


#ifndef YY_NO_SCAN_STRING
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
#else
YY_BUFFER_STATE yy_scan_string( yy_str )
yyconst char *yy_str;
#endif
      {
      int len;
      for ( len = 0; yy_str[len]; ++len )
            ;

      return yy_scan_bytes( yy_str, len );
      }
#endif


#ifndef YY_NO_SCAN_BYTES
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
#else
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
yyconst char *bytes;
int len;
#endif
      {
      YY_BUFFER_STATE b;
      char *buf;
      yy_size_t n;
      int i;

      /* Get memory for full buffer, including space for trailing EOB's. */
      n = len + 2;
      buf = (char *) yy_flex_alloc( n );
      if ( ! buf )
            YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );

      for ( i = 0; i < len; ++i )
            buf[i] = bytes[i];

      buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;

      b = yy_scan_buffer( buf, n );
      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_NO_PUSH_STATE
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
      {
      if ( yy_start_stack_ptr >= yy_start_stack_depth )
            {
            yy_size_t new_size;

            yy_start_stack_depth += YY_START_STACK_INCR;
            new_size = yy_start_stack_depth * sizeof( int );

            if ( ! yy_start_stack )
                  yy_start_stack = (int *) yy_flex_alloc( new_size );

            else
                  yy_start_stack = (int *) yy_flex_realloc(
                              (void *) yy_start_stack, new_size );

            if ( ! yy_start_stack )
                  YY_FATAL_ERROR(
                  "out of memory expanding start-condition stack" );
            }

      yy_start_stack[yy_start_stack_ptr++] = YY_START;

      BEGIN(new_state);
      }
#endif


#ifndef YY_NO_POP_STATE
static void yy_pop_state()
      {
      if ( --yy_start_stack_ptr < 0 )
            YY_FATAL_ERROR( "start-condition stack underflow" );

      BEGIN(yy_start_stack[yy_start_stack_ptr]);
      }
#endif


#ifndef YY_NO_TOP_STATE
static int yy_top_state()
      {
      return yy_start_stack[yy_start_stack_ptr - 1];
      }
#endif

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

#ifdef YY_USE_PROTOS
static void yy_fatal_error( yyconst char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
      {
      (void) fprintf( stderr, "%s\n", msg );
      exit( YY_EXIT_FAILURE );
      }



/* Redefine yyless() so it works in section 3 code. */

#undef yyless
#define yyless(n) \
      do \
            { \
            /* Undo effects of setting up yytext. */ \
            yytext[yyleng] = yy_hold_char; \
            yy_c_buf_p = yytext + n; \
            yy_hold_char = *yy_c_buf_p; \
            *yy_c_buf_p = '\0'; \
            yyleng = n; \
            } \
      while ( 0 )


/* Internal utility routines. */

#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
yyconst char *s2;
int n;
#endif
      {
      register int i;
      for ( i = 0; i < n; ++i )
            s1[i] = s2[i];
      }
#endif

#ifdef YY_NEED_STRLEN
#ifdef YY_USE_PROTOS
static int yy_flex_strlen( yyconst char *s )
#else
static int yy_flex_strlen( s )
yyconst char *s;
#endif
      {
      register int n;
      for ( n = 0; s[n]; ++n )
            ;

      return n;
      }
#endif


#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
      {
      return (void *) malloc( size );
      }

#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
      {
      /* The cast to (char *) in the following accommodates both
       * implementations that use char* generic pointers, and those
       * that use void* generic pointers.  It works with the latter
       * because both ANSI C and C++ allow castless assignment from
       * any pointer type to void*, and deal with argument conversions
       * as though doing an assignment.
       */
      return (void *) realloc( (char *) ptr, size );
      }

#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
      {
      free( ptr );
      }

#if YY_MAIN
int main()
      {
      yylex();
      return 0;
      }
#endif
#line 1176 "pgc.l"

void
lex_init(void)
{
      braces_open = 0;

      preproc_tos = 0;
      yylineno = 1;
      ifcond = TRUE;
      stacked_if_value[preproc_tos].condition = ifcond;
      stacked_if_value[preproc_tos].else_branch = FALSE;

      /* initialize literal buffer to a reasonable but expansible size */
      if (literalbuf == NULL)
      {
            literalalloc = 1024;
            literalbuf = (char *) malloc(literalalloc);
      }
      startlit();

      BEGIN(C);
}

static void
addlit(char *ytext, int yleng)
{
      /* enlarge buffer if needed */
      if ((literallen+yleng) >= literalalloc)
      {
            do 
                  literalalloc *= 2;
            while ((literallen+yleng) >= literalalloc);
            literalbuf = (char *) realloc(literalbuf, literalalloc);
      }
      /* append new data, add trailing null */
      memcpy(literalbuf+literallen, ytext, yleng);
      literallen += yleng;
      literalbuf[literallen] = '\0';
}

static void
addlitchar(unsigned char ychar)
{
      /* enlarge buffer if needed */
        if ((literallen+1) >= literalalloc)
        {
                literalalloc *= 2;
                literalbuf = (char *) realloc(literalbuf, literalalloc);
        }
      /* append new data, add trailing null */
      literalbuf[literallen] = ychar;
      literallen += 1;
      literalbuf[literallen] = '\0';
}

static void
parse_include(void)
{
      /* got the include file name */
      struct _yy_buffer *yb;
      struct _include_path *ip;
      char inc_file[MAXPGPATH];
      unsigned int i;

      yb = mm_alloc(sizeof(struct _yy_buffer));

      yb->buffer =      YY_CURRENT_BUFFER;
      yb->lineno = yylineno;
      yb->filename = input_filename;
      yb->next = yy_buffer;

      yy_buffer = yb;

      /*
       * skip the ";" if there is one and trailing whitespace. Note that
       * yytext contains at least one non-space character plus the ";" 
       */
      for (i = strlen(yytext)-2;
             i > 0 && ecpg_isspace(yytext[i]);
             i--)
            ;

      if (yytext[i] == ';')
            i--;

      yytext[i+1] = '\0';
      
      yyin = NULL;

      /* If file name is enclosed in '"' remove these and look only in '.' */
      /* Informix does look into all include paths though, except filename starts with '/' */
      if (yytext[0] == '"' && yytext[i] == '"' &&
          ((compat != ECPG_COMPAT_INFORMIX && compat != ECPG_COMPAT_INFORMIX_SE) || yytext[1] == '/'))
      {
            yytext[i] = '\0';
            memmove(yytext, yytext+1, strlen(yytext));
      
            strncpy(inc_file, yytext, sizeof(inc_file));
            yyin = fopen(inc_file, "r");
            if (!yyin)
            {
                  if (strcmp(inc_file + strlen(inc_file) - 2, ".h"))
                  {
                        strcat(inc_file, ".h");
                        yyin = fopen(inc_file, "r");
                  }
            }
            
      }
      else
      {
            if ((yytext[0] == '"' && yytext[i] == '"') || (yytext[0] == '<' && yytext[i] == '>'))
            {
                  yytext[i] = '\0';
                  memmove(yytext, yytext+1, strlen(yytext));
            }
            
            for (ip = include_paths; yyin == NULL && ip != NULL; ip = ip->next)
            {
                  if (strlen(ip->path) + strlen(yytext) + 3 > MAXPGPATH)
                  {
                        fprintf(stderr, _("Error: include path \"%s/%s\" is too long on line %d, skipping\n"), ip->path, yytext, yylineno);
                        continue;
                  }
                  snprintf (inc_file, sizeof(inc_file), "%s/%s", ip->path, yytext);
                  yyin = fopen(inc_file, "r");
                  if (!yyin)
                  {
                        if (strcmp(inc_file + strlen(inc_file) - 2, ".h"))
                        {
                              strcat(inc_file, ".h");
                              yyin = fopen( inc_file, "r" );
                        }
                  }
            }
      }
      if (!yyin)
            mmerror(NO_INCLUDE_FILE, ET_FATAL, "could not open include file \"%s\" on line %d", yytext, yylineno);

      input_filename = mm_strdup(inc_file);
      yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE ));
      yylineno = 1;
      output_line_number();

      BEGIN(C);
}

/*
 * ecpg_isspace() --- return TRUE if flex scanner considers char whitespace
 */
static bool
ecpg_isspace(char ch)
{
      if (ch == ' ' ||
            ch == '\t' ||
            ch == '\n' ||
            ch == '\r' ||
            ch == '\f')
            return true;
      return false;
}

static bool isdefine(void)
{
      struct _defines *ptr;

      /* is it a define? */
      for (ptr = defines; ptr; ptr = ptr->next)
      {
            if (strcmp(yytext, ptr->old) == 0 && ptr->used == NULL)
            {
                  struct _yy_buffer *yb;

                  yb = mm_alloc(sizeof(struct _yy_buffer));

                  yb->buffer =  YY_CURRENT_BUFFER;
                  yb->lineno = yylineno;
                  yb->filename = mm_strdup(input_filename);
                  yb->next = yy_buffer;

                  ptr->used = yy_buffer = yb;

                  yy_scan_string(ptr->new);
                  return true;
            }
      }

      return false;
}

static bool isinformixdefine(void)
{
      const char *new = NULL;

      if (strcmp(yytext, "dec_t") == 0)
            new = "decimal";
      else if (strcmp(yytext, "intrvl_t") == 0)
              new = "interval";
      else if (strcmp(yytext, "dtime_t") == 0)
                new = "timestamp";

      if (new)
      {
            struct _yy_buffer *yb;

            yb = mm_alloc(sizeof(struct _yy_buffer));

            yb->buffer =  YY_CURRENT_BUFFER;
            yb->lineno = yylineno;
            yb->filename = mm_strdup(input_filename);
            yb->next = yy_buffer;
            yy_buffer = yb;

            yy_scan_string(new);
            return true;
      }

      return false;
}

/*
 * Called before any actual parsing is done
 */
void
scanner_init(const char *str)
{
      Size  slen = strlen(str);

      /*
       * Might be left over after ereport()
       */
      if (YY_CURRENT_BUFFER)
            yy_delete_buffer(YY_CURRENT_BUFFER);

      /*
       * Make a scan buffer with special termination needed by flex.
       */
      scanbuf = mm_alloc(slen + 2);
      memcpy(scanbuf, str, slen);
      scanbuf[slen] = scanbuf[slen + 1] = YY_END_OF_BUFFER_CHAR;
      scanbufhandle = yy_scan_buffer(scanbuf, slen + 2);

      /* initialize literal buffer to a reasonable but expansible size */
      literalalloc = 128;
      literalbuf = (char *) mm_alloc(literalalloc);
      startlit();

      BEGIN(INITIAL);
}


/*
 * Called after parsing is done to clean up after scanner_init()
 */
void
scanner_finish(void)
{
      yy_delete_buffer(scanbufhandle);
      free(scanbuf);
}

Generated by  Doxygen 1.6.0   Back to index