Logo Search packages:      
Sourcecode: ipsec-tools version File versions

cftoken.c

#line 2 "cftoken.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)

typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
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; \
      yytext_ptr -= yy_more_len; \
      yyleng = (int) (yy_cp - yytext_ptr); \
      yy_hold_char = *yy_cp; \
      *yy_cp = '\0'; \
      yy_c_buf_p = yy_cp;

#define YY_NUM_RULES 236
#define YY_END_OF_BUFFER 237
static yyconst short int yy_accept[1418] =
    {   0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,  237,  235,  231,  232,  235,  233,
      235,  227,  227,  227,  230,  234,  218,  235,  235,  235,
      235,  230,  230,  230,  230,  230,  230,  235,  235,  235,
      235,  235,  235,  235,  235,  235,  235,  235,  235,  235,
      235,  235,  230,  235,  235,  235,  235,  235,  235,  235,
        6,  230,  230,  235,  235,    9,   18,  230,  235,  235,
      230,  235,  235,  235,   20,   26,  230,  230,  235,  235,

       28,   35,  230,  235,  235,  235,   54,   61,  230,  230,
      230,  230,  235,  235,  235,  235,  235,  235,   37,   52,
       68,  235,  230,  230,   67,   79,  230,  230,  230,  230,
      235,  235,  235,  235,  235,   69,  230,  235,   83,   86,
      230,  230,  230,  230,  230,  230,  235,  235,  235,  235,
      235,  235,  235,  235,  235,  235,  235,  235,   84,  230,
      230,  230,  230,  235,  235,  235,  235,  138,  139,  231,
        0,  229,  233,  150,  230,  230,  227,    0,  230,    0,
      219,  220,  221,    0,  230,  230,  153,    0,    0,    0,
      230,  230,  230,    0,  230,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
      226,    0,    0,  148,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,  230,  230,
        0,    0,  230,    0,  226,    0,    0,    0,    0,  230,
        0,    0,    0,    0,    0,    0,    0,    0,  230,    0,
      230,    0,    0,    0,    0,  226,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,  230,    0,  230,  230,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,  226,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,  150,  230,  228,  230,    0,  151,  230,  171,    0,
        0,    0,    0,    0,  230,  160,    0,  230,  152,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,  190,
      182,  223,    0,    0,    0,  149,  188,    0,  168,  162,
        0,    0,  222,    0,  157,    0,    0,  158,    0,    0,
      225,    0,    0,    0,    0,   11,    0,    0,    0,    0,
        0,    0,  230,    0,    0,    0,  230,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,  230,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,   65,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,   90,  128,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,  222,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,  150,
      161,    0,    0,    0,    0,  218,    0,    0,    0,    0,

        0,    0,  213,    0,    0,  224,    0,  155,  163,    0,
        0,  181,  223,    0,    0,    0,  170,    0,    0,    0,
        0,    0,    0,  222,  183,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    1,    0,    0,    0,
        0,    0,    0,    0,    0,   12,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,   40,    0,    0,    0,   47,    0,
        0,    0,    0,    0,    0,   66,    0,   75,    0,    0,
        0,    0,    0,    0,   74,    0,    0,    0,   87,  127,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,   88,    0,    0,
        0,    0,  119,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,  126,    0,  103,    0,    0,  142,
        0,    0,    0,    0,    0,  141,  166,    0,    0,    0,
      218,    0,    0,    0,    0,    0,    0,    0,    0,    0,
      224,    0,  156,    0,  214,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,  184,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,   53,    0,    0,    0,    0,   14,
        0,    0,    0,    0,    0,   31,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,   46,    0,
        0,    0,    0,    0,   41,   64,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,  122,
        0,    0,    0,    0,    0,  121,    0,  117,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
      216,    0,    0,    0,    0,    0,    0,  203,    0,    0,
        0,    0,    0,    0,  154,  223,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,  204,  205,

      202,  222,    0,    0,    0,    0,    0,    0,    0,    0,
        0,   27,    0,    0,   80,   62,    0,    0,    0,    0,
       15,   16,   17,   13,    0,    0,    0,    0,    0,    0,
       29,    0,    0,    0,    0,    0,   58,   59,    0,    0,
        0,   50,    0,    0,    0,    0,   48,   45,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,  106,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,  133,    0,    0,    0,  120,    0,
        0,    0,    0,    0,    0,    0,    0,    0,  215,    0,

      164,    0,  189,    0,    0,  180,  194,  195,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,  191,    0,
        0,    0,    0,    0,    0,    0,    0,  173,    0,    0,
        0,    0,    7,    0,   19,    0,    0,    2,    0,    0,
        0,    0,    0,    0,    0,    0,    0,   55,    0,    0,
       57,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,   82,    0,  102,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,  124,
        0,    0,    0,    0,    0,   94,    0,  109,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,  165,  217,
      167,  159,    0,  175,    0,    0,    0,  192,  193,  196,
      197,  198,  199,  200,  174,  169,    0,  172,  185,  186,
      187,    0,    0,    0,    0,   36,    5,    0,    0,    0,
        0,    0,    0,    0,   33,    0,    0,   56,    0,    0,
        0,    0,    0,   39,   38,    0,    0,    0,    0,    0,
        0,   73,    0,    0,    0,    0,    0,  110,    0,    0,
        0,    0,    0,    0,    0,  132,    0,    0,    0,    0,
      125,  136,    0,    0,    0,    0,    0,    0,    0,    0,
      137,    0,    0,    0,    0,    0,    0,    0,  146,    0,

        0,    0,  140,    0,  176,    0,    0,    0,    0,  212,
      211,    0,    0,    0,    0,    0,    0,   21,    0,   32,
        0,    0,    0,    0,    0,    0,    0,   49,   63,    0,
        0,    0,    0,    0,   70,   81,    0,    0,  129,    0,
      130,    0,    0,    0,    0,    0,   95,   91,  123,    0,
        0,    0,    0,    0,    0,  134,  104,    0,  108,   92,
        0,    0,    0,    0,    0,    0,    0,  147,    0,  206,
        0,    0,    0,    0,    0,    8,    0,    0,    0,    0,
        0,    0,    0,    0,    0,   44,    0,    0,    0,    0,
        0,    0,   71,    0,   89,    0,    0,    0,    0,   96,

        0,    0,    0,    0,  111,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    4,    0,    0,    0,    0,    0,
       30,    0,    0,   42,    0,   43,    0,    0,    0,    0,
        0,  131,    0,    0,    0,    0,    0,    0,    0,    0,
      135,    0,    0,    0,  107,    0,   98,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,   24,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,  113,    0,    0,    0,    0,    0,  177,  178,  179,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,   51,    0,    0,    0,   72,    0,   85,    0,
       93,    0,   97,  116,    0,    0,    0,  114,    0,    0,
        0,    0,    0,    0,    0,    0,  201,   10,    3,   25,
       23,    0,   34,   60,    0,    0,    0,    0,    0,    0,
      105,    0,  118,    0,    0,    0,  145,    0,    0,    0,
        0,    0,    0,    0,    0,    0,  112,  115,    0,    0,
        0,    0,    0,    0,    0,    0,   22,    0,    0,    0,
      101,   99,    0,    0,    0,  210,  208,  209,  207,    0,
        0,    0,  100,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,   76,    0,  143,
        0,   78,  144,    0,    0,   77,    0
    } ;

static yyconst int yy_ec[256] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    2,    1,    4,    5,    1,    6,    1,    1,    1,
        1,    1,    1,    7,    1,    8,    9,   10,   11,   12,
       13,   14,   15,   16,   17,   18,   19,   20,   21,    1,
        1,    1,    1,    1,   22,   23,   22,   22,   22,   22,
       24,   24,   24,   24,   25,   24,   26,   24,   24,   24,
       24,   24,   24,   27,   24,   24,   24,   24,   24,   24,
       28,    1,   29,    1,   30,    1,   31,   32,   33,   34,

       35,   36,   37,   38,   39,   40,   41,   42,   43,   44,
       45,   46,   47,   48,   49,   50,   51,   52,   53,   54,
       55,   56,   57,    1,   58,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1
    } ;

static yyconst int yy_meta[59] =
    {   0,
        1,    1,    2,    1,    1,    3,    1,    3,    1,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    3,
        1,    5,    5,    6,    6,    6,    6,    1,    1,    1,
        5,    5,    5,    5,    5,    5,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,    1,    1
    } ;

static yyconst short int yy_base[1427] =
    {   0,
        0,    0,   26,   38,   46,   61, 1682, 1681,   62,   69,
       62,   69,   90,   94,   98,  120,  148,    0,    0,    0,
        0,    0,  129,  167,  218,  270,   83,   84,  322,    0,
      350,  378,    0,    0, 1701, 1704, 1698, 1704, 1695,    0,
        0,  431, 1644,  115, 1691, 1704, 1690, 1672, 1671, 1670,
        0,  177,  103,   60,   67,  140,   83, 1643,  129,  129,
      141, 1635,  165,   19,  149, 1642,  169,   25,  174,  180,
     1654, 1653,  185,  188,  192,  194,  188,  205,  221,  202,
     1704,  236,  239,  229, 1639, 1704, 1704,  237,  246,   87,
      265,  250,  284,  247, 1704, 1704, 1652,  287,  291,  261,

     1704, 1704,  300,  305,  276,  312, 1704, 1704,  214,  363,
      395,  342,  213,  259,  122,  313,  335, 1646, 1704, 1704,
     1704, 1653, 1639,  240, 1704, 1704, 1631,  369,  425,  373,
      425,  227,  344,  282,  399, 1704, 1637,  435, 1704, 1704,
     1643,  449,  392,  451,  466,  467,  174,  472,  297,  358,
      443,  456,  458,  486,  492,  493, 1644,  388, 1704, 1627,
      497,  502,  505, 1628,  502,  365,  502, 1704, 1704, 1674,
     1671, 1704,    0,    0,    0, 1668, 1619,    0,  390, 1638,
     1704, 1704, 1704, 1642,  427,  470, 1704, 1626, 1624, 1618,
      487,  294,  517, 1618,  472, 1620, 1631, 1615, 1632, 1611,

     1629, 1617, 1624, 1625, 1602, 1622, 1606, 1639, 1609, 1618,
     1607, 1608, 1613, 1704, 1609, 1612,   47, 1606, 1614, 1611,
     1612, 1596, 1604, 1595, 1593, 1603, 1593, 1587, 1592, 1599,
     1600, 1583, 1594, 1596,  510, 1586, 1589,  513,  128,  516,
     1594, 1591,  542, 1589,  515, 1591, 1569, 1578, 1573,  552,
     1571, 1588, 1570, 1566, 1566, 1565, 1566, 1582,  396, 1562,
       92, 1567, 1561, 1576, 1558, 1563, 1561, 1571, 1555, 1559,
     1558,  516, 1556, 1550, 1549, 1555, 1564, 1561, 1559, 1564,
     1544,  525, 1547, 1553, 1553,  523, 1539,  557,  561, 1557,
     1557, 1537, 1546, 1550,  362, 1535, 1538, 1546, 1545,  530,

      540,  535, 1543, 1539, 1543, 1546, 1525, 1530, 1538, 1523,
     1536, 1539, 1538,  540, 1520,  544, 1517, 1518, 1519,  539,
      535, 1554, 1512, 1512, 1511, 1530, 1526, 1509, 1508, 1520,
      555,    0,    0,    0,  575, 1520, 1704,  578, 1704, 1543,
     1500, 1517, 1501, 1500,   93, 1519, 1499,  587, 1704, 1503,
     1515, 1512, 1496, 1495, 1496, 1510, 1495, 1500, 1497, 1704,
     1704,  545, 1491, 1506, 1493, 1704, 1704, 1504, 1704, 1704,
     1489,  562,  554,  589, 1704, 1497, 1495, 1704, 1482, 1495,
     1704, 1482,  571, 1485, 1476, 1704,  570, 1491, 1486, 1478,
     1478, 1486,  469, 1470, 1477, 1488,  598, 1472, 1477, 1473,

     1475, 1479, 1473, 1472, 1479, 1468, 1469, 1463, 1471, 1455,
     1455, 1454,  601, 1464, 1457, 1464, 1485, 1467,  565,  582,
     1455, 1457, 1445, 1445, 1438, 1448, 1704, 1448, 1452, 1454,
     1442, 1439,  583, 1451, 1446, 1454, 1448, 1438, 1446, 1432,
     1444, 1443, 1427, 1426, 1436, 1437, 1424, 1704, 1442, 1438,
     1432, 1436, 1433,  588, 1437, 1416, 1430, 1429, 1417, 1427,
     1417,  587, 1421, 1429,  138, 1403, 1408, 1408, 1406, 1415,
     1407, 1413,  580, 1417, 1399, 1410, 1402, 1412, 1407, 1426,
     1394, 1405, 1407, 1404, 1392, 1408, 1400, 1402, 1401, 1704,
     1704, 1404, 1399, 1399, 1396, 1382, 1419, 1385, 1397,  591,

     1388, 1415, 1704, 1379, 1394, 1374, 1383, 1405, 1704, 1377,
     1385, 1704, 1704, 1368,  624, 1386, 1386, 1366, 1380, 1369,
     1377, 1372, 1366, 1704, 1704, 1379, 1360, 1368, 1376, 1360,
     1362, 1353, 1351, 1366, 1370, 1360, 1704, 1348, 1361, 1348,
     1344,  600, 1343, 1344, 1355, 1704, 1355, 1339, 1346, 1343,
     1354, 1342, 1353, 1341, 1350, 1332, 1333, 1350, 1344, 1343,
     1326, 1346, 1340, 1344, 1704, 1331, 1341, 1326, 1704, 1340,
     1318, 1333, 1353, 1337, 1310, 1704, 1329, 1314, 1314, 1306,
     1310, 1309, 1324, 1320, 1704, 1301, 1307, 1319, 1704, 1304,
     1297,  604, 1308, 1302, 1314,  611, 1298, 1316, 1311, 1297,

     1294, 1307, 1303, 1304, 1307, 1308, 1288, 1704, 1307, 1302,
     1285, 1299, 1704, 1294, 1283, 1296, 1286, 1284, 1282, 1292,
     1296, 1294, 1291, 1278, 1704, 1286, 1704, 1283, 1285, 1270,
     1270, 1262, 1270, 1285, 1264, 1704, 1704, 1264, 1268, 1272,
     1704, 1298, 1278, 1258, 1255, 1275, 1268,  605, 1265,  604,
     1704, 1269, 1704, 1256, 1704, 1266,  640, 1290, 1289, 1288,
     1286, 1280, 1284, 1243, 1258, 1254, 1260, 1257, 1237, 1251,
     1253,  645, 1704, 1237, 1249, 1236, 1248, 1243, 1247, 1236,
     1246, 1234, 1242, 1231, 1704, 1229, 1238, 1239, 1234,  649,
     1216, 1221, 1218, 1225, 1217, 1217, 1223, 1218, 1213, 1227,

     1209, 1219, 1215,  640, 1214,  615, 1209, 1207, 1704, 1206,
     1206, 1204, 1203, 1208, 1704, 1704, 1207, 1205, 1213, 1201,
     1207, 1206, 1209, 1195, 1199, 1202, 1191, 1193, 1202, 1704,
     1192, 1203, 1200, 1203, 1198, 1704, 1188, 1704, 1200, 1191,
     1181, 1197, 1179, 1196, 1183, 1185, 1190, 1187, 1173, 1190,
     1167, 1188, 1206, 1186, 1166, 1164, 1180, 1179, 1161, 1160,
     1161, 1153, 1177, 1162, 1160,  171,  269,  303,  302,  434,
     1704,  443,  595,  578,  621,  653,  634, 1704,  653,  655,
      641,  638,  635,  644, 1704,  626,  664,  664,  664,  662,
      661,  667,  664,  664,  634,  641,  655,  652, 1704, 1704,

     1704,  639,  674,  672,  680,  654,  646,  664,  641,  660,
      662, 1704,  662,  662, 1704, 1704,  651,  662,  667,  672,
     1704, 1704, 1704, 1704,  665,  662,  667,  677,  663,  674,
      680,  681,  664,  682,  679,  681, 1704, 1704,  666,  672,
      680, 1704,  674,  679,  680,  683, 1704, 1704,  678,  674,
      676,  676,  691,  685,  685,  685,  686,  682,  684,  699,
      696,  685, 1704,  695,  684,  689,  703,  691,  706,  712,
      702,  706,  712,  708,  705,  713,  706,  720,  703,  718,
      721,  725,  709,  727, 1704,  704,  726,  723, 1704,  713,
      734,  723,  716,  716,  718,  739,  728,  728, 1704,  734,

     1704,  738, 1704,  763,  762, 1704, 1704, 1704,  736,  763,
      748,  746,  767,  766,  765,  772,  769,  772, 1704,  775,
      750,  756,  742,  749,  776,  779,  783, 1704,  762,  758,
      768,  760, 1704,  763, 1704,  770,  769, 1704,  755,  752,
      775,  750,  774,  775,  775,  766,  780, 1704,  770,  778,
     1704,  775,  764,  768,  766,  804,  805,  764,  770,  783,
      774,  785,  786,  791,  777,  777,  778, 1704,  791, 1704,
      798,  786,  802,  798,  787,  801,  802,  799,  784,  803,
      811,  792,  798,  792,  810,  809,  797,  796,  810, 1704,
      815,  817,  818,  804,  812, 1704,  807, 1704,  811,  827,

      825,  814,  821,  815,  823,  824,  829,  832, 1704, 1704,
     1704, 1704,  820, 1704,  859,  823,  824, 1704, 1704, 1704,
     1704, 1704, 1704, 1704, 1704, 1704,  839, 1704, 1704, 1704,
     1704,  831,  842,  845,  843, 1704, 1704,  848,  845,  846,
      840,  848,  846,  844, 1704,  855,  853, 1704,  842,  845,
      842,  846,  844, 1704, 1704,  858,  845,  862,  857,  852,
      863, 1704,  860,  854,  852,  850,  872, 1704,  849,  874,
      851,  877,  878,  874,  880, 1704,  878,  857,  874,  879,
     1704, 1704,  876,  881,  861,  870,  884,  875,  875,  891,
      893,  874,  881,  883,  892,  894,  893,  898, 1704,  887,

      899,  889, 1704,  903, 1704,  906,  888,  907,  905, 1704,
     1704,  889,  893,  892,  909,  914,  910,  916,  912, 1704,
      898,  915,  919,  914,  919,  903,  921, 1704, 1704,  924,
      911,  913,  910,  923, 1704, 1704,  925,  911, 1704,  923,
     1704,  920,  918,  917,  921,  922, 1704, 1704, 1704,  932,
      921,  935,  921,  928,  920, 1704, 1704,  941, 1704, 1704,
      936,  928,  929,  943,  940,  949,  937, 1704,  934, 1704,
      971,  955,  957,  958,  945, 1704,  955,  961,  942,  949,
      952,  962,  946,  949,  956, 1704,  964,  950,  966,  952,
      959,  974, 1704,  966, 1704,  971,  965,  963,  964, 1704,

      966,  967,  973,  964, 1704,  978,  965,  972,  979,  972,
      974,  970,  977,  978,  973,  994,  986, 1011, 1009, 1017,
      996,  997,  990,  998, 1704,  992, 1003,  998, 1001,  996,
     1704, 1003, 1000, 1704,  998, 1704, 1002, 1012, 1012, 1009,
     1017, 1704, 1014, 1007, 1008, 1001, 1017, 1022, 1015, 1016,
     1704, 1021, 1041, 1004, 1704, 1009, 1704, 1021, 1030, 1012,
     1047, 1050, 1053, 1024, 1032, 1026, 1034, 1035, 1029, 1037,
     1034, 1024, 1031, 1704, 1027, 1025, 1043, 1034, 1049, 1039,
     1034, 1033, 1049, 1046, 1031, 1056, 1040, 1047, 1048, 1055,
     1059, 1704, 1038, 1055, 1050, 1054, 1059, 1704, 1704, 1704,

     1059, 1051, 1061, 1053, 1047, 1068, 1049, 1063, 1068, 1070,
     1059, 1074, 1704, 1066, 1069, 1075, 1704, 1058, 1704, 1081,
     1704, 1082, 1704, 1704, 1081, 1078, 1077, 1704, 1083, 1076,
     1084, 1079, 1088, 1072, 1090, 1074, 1704, 1704, 1704, 1704,
     1704, 1077, 1704, 1704, 1098, 1092, 1085, 1085, 1077, 1083,
     1704, 1099, 1704, 1096, 1106, 1092, 1704, 1094, 1104, 1096,
     1106, 1104, 1112, 1099, 1097, 1111, 1704, 1704, 1099, 1113,
     1106, 1102, 1101, 1104, 1103, 1106, 1704, 1113, 1108, 1118,
     1704, 1704, 1110, 1124, 1121, 1704, 1704, 1704, 1704, 1124,
     1123, 1113, 1704, 1114, 1115, 1121, 1117, 1130, 1131, 1132,

     1123, 1134, 1130, 1129, 1132, 1137, 1134, 1704, 1144, 1704,
     1129, 1704, 1704, 1142, 1138, 1704, 1704, 1181, 1187, 1185,
     1191, 1193, 1194, 1195, 1198, 1200
    } ;

static yyconst short int yy_def[1427] =
    {   0,
     1417,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,   17,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,   29,
        1,    1,    1,    1, 1417, 1417, 1417, 1417, 1418, 1419,
     1420, 1417,   42,   42, 1421, 1417, 1421, 1417, 1417, 1417,
     1422, 1421, 1421, 1421, 1421, 1421, 1421, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1421, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1421, 1421, 1417, 1417, 1417, 1417, 1421, 1417, 1417,
     1421, 1417, 1417, 1417, 1417, 1417,   52, 1421, 1417, 1417,

     1417, 1417, 1421, 1417, 1417, 1417, 1417, 1417,   52, 1421,
     1421, 1421, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1422,   52, 1421, 1417, 1417,   52, 1421, 1421, 1421,
     1417, 1417, 1417, 1417, 1417, 1417,   52, 1417, 1417, 1417,
       52, 1421, 1421, 1421, 1421, 1421, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,   52,
     1421, 1421, 1421, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1418, 1417, 1419, 1423, 1424, 1421,   42, 1425, 1421, 1417,
     1417, 1417, 1417, 1422, 1421, 1421, 1417, 1417, 1417, 1417,
     1421, 1421, 1421, 1417, 1421, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1421, 1421,
     1417, 1417, 1421, 1417, 1417, 1417, 1417, 1417, 1417, 1421,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1421, 1417,
     1421, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1421, 1417, 1421, 1421, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1426, 1424, 1425, 1421, 1417, 1417, 1421, 1417, 1417,
     1417, 1417, 1417, 1417, 1421, 1417, 1417, 1421, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1421, 1417, 1417, 1417, 1421, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1421, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,

     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417,    0, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417
    } ;

static yyconst short int yy_nxt[1763] =
    {   0,
       36,   37,   38,   39,   40,   36,   36,   36,   41,   42,
       43,   43,   44,   43,   43,   43,   43,   43,   43,   45,
       46,   45,   47,   36,   48,   49,   50,   51,   36,   36,
       52,   53,   54,   55,   56,   57,   58,   59,   60,   36,
       61,   62,   63,   64,   65,   66,   36,   67,   68,   69,
       70,   71,   36,   36,   72,   36,   36,   36,   73,  220,
      369,  370,  221,  211,   74,  175,   81,   75,   76,  212,
       73,   77,  175,   78,   79,   80,   74,   82,   83,   75,
       76,   81,   87,   77,   84,   78,   79,   80,  175,   87,
      191,   85,   82,   83,  192,   88,   91,  175,  175,   84,

       89,  193,   88,   91,   92,   90,   85,   89,  175,   93,
       94,   92,   90,  137,  137,  194,   93,   94,   95,   96,
       97,  138,  138,   98,   97,   95,   96,   98,   99,  197,
      103,  245,   99,  175,  499,  415,  104,  212,  100,  139,
      139,  105,  100,  106,  189,  175,  101,  102,  179,  121,
      101,  102,  103,  180,  107,  108,  122,  190,  104,  123,
      393,  202,  203,  105,  124,  106,  267,  516, 1417,  216,
      612,  199,  195,  200,  204,  205,  107,  108,  109,  110,
      111,  112,  175,  201,  213,  125,  206,  121,  196,  113,
      175,  114,  214,  115,  122,  116,  117,  123,  208,  215,

      118,  217,  124,  209,  119,  120,  222,  218,  297,  210,
      185,  186,  223,  225,  187,  191,  895,  219,  235,  192,
      202,  230,  198,  125,  126,  188,  224,  208,  226,  229,
      232,  231,  209,  204,  222,  216,  233,  217,  234,  236,
      238,  175,  175,  218,  175,  175,  259,  207,  127,  128,
      129,  237,  130,  219,  224,  220,  131,  264,  221,  132,
      133,  202,  203,  134,  260,  279,  239,  135,  207,  191,
      175,  243,  241,  240,  204,  136,  126,  189,  202,  203,
      247,  220,  207,  208,  221,  194,  197,  273,  209,  244,
      190,  204,  175,  265,  210,  220,  249,  195,  221,  175,

      127,  128,  129,  266,  130,  175,  256,  896,  131,  212,
      253,  132,  133,  196,  248,  134,  217,  281,  246,  135,
      211,  193,  218,  202,  203,  251,  212,  136,  140,  216,
      191,  302,  219,  897,  192,  194,  204,  202,  203,  252,
      898,  344,  206,  268,  254,  217,  257,  175,  255,  258,
      204,  218,  141,  142,  143,  144,  145,  146,  147,  216,
      148,  219,  149,  150,  151,  152,  153,  154,  175,  220,
      155,  156,  221,  157,  175,  158,  193,  208,  175,  159,
      160,  161,  209,  162,  163,  263,  164,  165,  210,  269,
      194,  166,  450,  261,  451,  175,  303,  175,  280,  167,

      175,  175,  322,  330,  189,  195,  168,  169,  160,  161,
      189,  162,  163,  207,  164,  165,  277,  190,  323,  166,
      207,  196,  288,  275,  335,  191,  289,  167,  413,  192,
      175,  222,  175,  290,  168,  169,  175,  282,  176,  262,
      177,  177,  177,  177,  177,  177,  177,  177,  177,  177,
      176,  224,  176,  176,  175,  191,  175,  202,  278,  192,
      338,  176,  176,  176,  176,  176,  176,  202,  203,  276,
      204,  175,  175,  304,  175,  175,  208,  175,  284,  286,
      204,  209,  899,  348,  178,  193,  307,  305,  291,  309,
      189,  900,  175,  213,  292,  293,  294,  306,  195,  194,

      308,  214,  175,  287,  202,  298,  212,  175,  215,  541,
      175,  296,  299,  197,  196,  300,  310,  301,  339,  295,
      311,  175,  175,  312,  315,  222,  316,  313,  175,  221,
      317,  320,  329,  314,  222,  343,  193,  195,  189,  326,
      331,  318,  319,  388,  199,  224,  200,  175,  327,  376,
      194,  325,  345,  196,  224,  392,  201,  175,  364,  389,
      426,  376,  175,  394,  399,  346,  175,  437,  456,  459,
      427,  441,  357,  397,  368,  376,  473,  345,  380,  457,
      175,  478,  479,  175,  471,  338,  443,  474,  458,  358,
      346,  376,  175,  513,  404,  514,  520,  489,  523,  525,

      526,  509,  524,  175,  535,  343,  175,  567,  444,  521,
      522,  516,  901,  509,  532,  515,  569,  568,  509,  779,
      902,  609,  780,  491,  523,  493,  581,  620,  524,  645,
      502,  601,  515,  646,  657,  658,  659,  660,  687,  661,
      662,  663,  729,  643,  733,  561,  782,  643,  545,  787,
      837,  838,  783,  734,  788,  903,  803,  804,  735,  805,
      821,  822,  823,  840,  841,  904,  906,  907,  905,  908,
      909,  910,  911,  912,  513,  913,  914,  915,  916,  917,
      918,  919,  920,  921,  922,  923,  924,  524,  925,  926,
      927,  928,  929,  930,  931,  932,  933,  934,  935,  936,

      937,  938,  939,  940,  941,  942,  943,  944,  945,  946,
      947,  948,  949,  950,  951,  952,  953,  954,  955,  956,
      957,  958,  959,  960,  961,  962,  963,  964,  965,  966,
      967,  968,  969,  970,  971,  972,  973,  974,  975,  976,
      977,  978,  980,  981,  982,  983,  984,  985,  986,  987,
      988,  989,  990,  991,  993,  979,  994,  995,  996,  992,
      997,  999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007,
     1008, 1009, 1010,  998, 1011, 1012, 1013, 1014, 1015, 1016,
     1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027,
     1028, 1029, 1030, 1017, 1031, 1032, 1033, 1034, 1035, 1036,

     1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046,
     1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056,
     1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066,
     1067, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076,
     1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086,
     1087, 1088, 1090, 1091, 1092, 1093, 1094, 1095, 1097, 1098,
     1099, 1100, 1101, 1096, 1013, 1102, 1103, 1104, 1089, 1105,
     1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115,
     1116, 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125,
     1126, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135,

     1136, 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145,
     1146, 1147, 1148, 1149, 1150, 1151, 1152, 1153, 1154, 1155,
     1156, 1157, 1158, 1159, 1160, 1161, 1163, 1164, 1162, 1165,
     1166, 1167, 1168, 1169, 1170, 1171, 1172, 1173, 1174, 1175,
     1176, 1177, 1178, 1179, 1180, 1181, 1182, 1183, 1184, 1185,
     1186, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1195,
     1196, 1197, 1198, 1199, 1200, 1201, 1202, 1203, 1204, 1205,
     1206, 1207, 1208, 1209, 1210, 1211, 1212, 1213, 1214, 1215,
     1216, 1217, 1218, 1219, 1221, 1220, 1222, 1223, 1224, 1225,
     1226, 1227, 1228, 1229, 1230, 1231, 1232, 1233, 1234, 1235,

     1236, 1237, 1238, 1239, 1240, 1241, 1242, 1243, 1244, 1245,
     1246, 1247, 1248, 1249, 1250, 1251, 1252, 1253, 1254, 1255,
     1256, 1257, 1258, 1259, 1260, 1261, 1262, 1263, 1264, 1266,
     1268, 1269, 1270, 1271, 1272, 1273, 1274, 1275, 1276, 1277,
     1278, 1279, 1280, 1281, 1265, 1267, 1282, 1283, 1284, 1285,
     1286, 1287, 1288, 1289, 1290, 1291, 1292, 1293, 1294, 1295,
     1296, 1297, 1298, 1299, 1300, 1301, 1302, 1303, 1304, 1305,
     1306, 1307, 1308, 1309, 1310, 1311, 1312, 1313, 1314, 1315,
     1316, 1317, 1318, 1319, 1320, 1321, 1322, 1323, 1324, 1325,
     1326, 1327, 1328, 1329, 1330, 1331, 1332, 1333, 1334, 1335,

     1336, 1337, 1338, 1339, 1340, 1341, 1342, 1343, 1344, 1345,
     1346, 1347, 1348, 1349, 1350, 1351, 1352, 1353, 1354, 1355,
     1356, 1357, 1358, 1359, 1360, 1361, 1362, 1363, 1364, 1365,
     1366, 1367, 1368, 1369, 1370, 1371, 1372, 1373, 1374, 1375,
     1376, 1377, 1378, 1379, 1380, 1381, 1382, 1383, 1384, 1385,
     1386, 1387, 1388, 1389, 1390, 1391, 1392, 1393, 1394, 1395,
     1396, 1397, 1398, 1399, 1400, 1401, 1402, 1403, 1404, 1405,
     1406, 1407, 1408, 1409, 1410, 1411, 1412, 1413, 1414, 1415,
     1416,  171,  171,  171,  171,  171,  171,  173,  174,  173,
      173,  173,  173,  176,  176,  176,  184,  332,  333,  333,

      333,  334,  334,  490,  894,  893,  892,  891,  890,  889,
      888,  887,  886,  885,  884,  883,  882,  881,  880,  879,
      878,  877,  876,  875,  874,  873,  872,  871,  870,  869,
      868,  867,  866,  865,  864,  863,  862,  861,  860,  859,
      858,  857,  856,  855,  854,  853,  852,  851,  850,  849,
      848,  847,  846,  845,  844,  843,  842,  839,  836,  835,
      834,  833,  832,  831,  830,  829,  828,  827,  826,  825,
      824,  820,  819,  818,  817,  816,  815,  814,  813,  812,
      811,  810,  809,  808,  807,  806,  802,  801,  800,  799,
      798,  797,  796,  795,  794,  793,  792,  791,  790,  789,

      786,  785,  784,  781,  778,  777,  776,  775,  774,  773,
      772,  771,  770,  769,  768,  767,  766,  765,  641,  764,
      763,  762,  761,  760,  759,  758,  757,  756,  755,  754,
      753,  752,  751,  750,  749,  748,  747,  746,  745,  744,
      743,  742,  741,  740,  739,  738,  737,  736,  732,  731,
      730,  728,  641,  727,  726,  725,  724,  723,  722,  721,
      720,  719,  641,  718,  717,  716,  715,  714,  713,  712,
      711,  710,  709,  708,  707,  706,  705,  704,  703,  702,
      701,  700,  699,  698,  697,  696,  695,  694,  693,  692,
      691,  690,  689,  688,  686,  685,  684,  683,  682,  681,

      680,  679,  678,  677,  676,  675,  674,  673,  672,  671,
      670,  669,  668,  667,  666,  665,  664,  656,  655,  654,
      653,  652,  651,  650,  649,  648,  647,  644,  643,  642,
      641,  640,  639,  638,  637,  636,  635,  634,  633,  632,
      631,  630,  629,  628,  627,  626,  625,  624,  623,  622,
      621,  619,  618,  617,  616,  615,  614,  613,  611,  610,
      608,  607,  606,  605,  604,  603,  602,  600,  599,  598,
      597,  596,  595,  594,  593,  592,  591,  590,  589,  588,
      587,  586,  585,  584,  583,  582,  580,  579,  578,  577,
      576,  575,  574,  573,  572,  571,  570,  566,  565,  564,

      563,  562,  560,  559,  558,  557,  556,  555,  554,  553,
      552,  551,  550,  549,  548,  547,  546,  544,  543,  542,
      540,  539,  538,  537,  536,  534,  533,  531,  530,  529,
      528,  527,  519,  518,  517,  516,  515,  512,  511,  510,
      509,  508,  507,  506,  505,  504,  503,  501,  500,  498,
      497,  496,  495,  494,  492,  488,  487,  486,  485,  484,
      483,  482,  481,  480,  477,  476,  475,  472,  470,  469,
      468,  467,  466,  465,  464,  463,  462,  461,  460,  455,
      454,  453,  452,  449,  448,  447,  446,  445,  442,  440,
      439,  438,  436,  435,  434,  433,  432,  431,  430,  429,

      428,  425,  424,  423,  422,  421,  420,  419,  418,  417,
      416,  414,  412,  411,  410,  409,  408,  407,  406,  405,
      403,  402,  401,  400,  398,  396,  395,  391,  390,  387,
      386,  385,  384,  383,  382,  381,  380,  379,  378,  377,
      376,  375,  374,  373,  372,  371,  368,  367,  366,  365,
      364,  363,  362,  361,  360,  359,  358,  357,  356,  355,
      354,  353,  352,  351,  350,  349,  347,  342,  341,  340,
      337,  336, 1417,  175,  172,  170,  328,  324,  321,  285,
      283,  274,  272,  271,  270,  250,  242,  228,  227,  216,
      207,  198,  183,  182,  181,  175,  175, 1417,  172,  170,

     1417,   86,   86,   35, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417
    } ;

static yyconst short int yy_chk[1763] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    3,   68,
      217,  217,   68,   64,    3,   54,    5,    3,    3,   64,
        4,    3,   55,    3,    3,    3,    4,    5,    5,    4,
        4,    6,    9,    4,    5,    4,    4,    4,   57,   10,
       54,    5,    6,    6,   54,    9,   11,  261,  345,    6,

        9,   55,   10,   12,   11,    9,    6,   10,   53,   11,
       11,   12,   10,   27,   28,   55,   12,   12,   11,   11,
       13,   27,   28,   13,   14,   12,   12,   14,   13,   57,
       15,   90,   14,  239,  345,  261,   15,   90,   13,   27,
       28,   15,   14,   15,   53,   56,   13,   13,   44,   23,
       14,   14,   16,   44,   15,   15,   23,   53,   16,   23,
      239,   60,   60,   16,   23,   16,  115,  465,   44,  115,
      465,   59,   56,   59,   60,   61,   16,   16,   17,   17,
       17,   17,   52,   59,   65,   23,   61,   24,   56,   17,
       73,   17,   65,   17,   24,   17,   17,   24,   63,   65,

       17,   67,   24,   63,   17,   17,   69,   67,  147,   63,
       52,   52,   69,   70,   52,   73,  766,   67,   77,   73,
       74,   74,  147,   24,   25,   52,   69,   76,   70,   73,
       75,   74,   76,   74,   80,   77,   75,   78,   76,   78,
       80,   82,   88,   78,   83,  124,  109,   75,   25,   25,
       25,   79,   25,   78,   80,   79,   25,  113,   79,   25,
       25,   84,   84,   25,  109,  132,   82,   25,  113,   83,
       91,   88,   84,   83,   84,   25,   26,   82,   89,   89,
       92,   94,  132,   92,   94,   88,  124,  124,   92,   89,
       82,   89,   98,  114,   92,  100,   94,   91,  100,  192,

       26,   26,   26,  114,   26,  103,  105,  767,   26,  114,
      100,   26,   26,   91,   93,   26,   93,  134,   91,   26,
      105,   98,   93,   99,   99,   98,  105,   26,   29,  134,
      103,  149,   93,  768,  103,   98,   99,  104,  104,   99,
      769,  192,  149,  116,  103,  116,  106,  112,  104,  106,
      104,  116,   29,   29,   29,   29,   29,   29,   29,  106,
       29,  116,   29,   29,   29,   29,   29,   29,  110,  117,
       29,   29,  117,   29,  128,   29,  112,  133,  130,   29,
       31,   31,  133,   31,   31,  112,   31,   31,  133,  117,
      112,   31,  295,  110,  295,  179,  150,  143,  133,   31,

      111,  259,  158,  166,  110,  130,   31,   31,   32,   32,
      128,   32,   32,  150,   32,   32,  130,  110,  158,   32,
      166,  130,  143,  128,  179,  111,  143,   32,  259,  111,
      129,  135,  185,  143,   32,   32,   42,  135,   42,  111,
       42,   42,   42,   42,   42,   42,   42,   42,   42,   42,
       42,  135,   42,   42,  142,  129,  144,  131,  131,  129,
      185,   42,   42,   42,   42,   42,   42,  138,  138,  129,
      131,  145,  146,  151,  393,  186,  151,  195,  138,  142,
      138,  151,  770,  195,   42,  144,  152,  151,  144,  153,
      142,  772,  191,  153,  144,  144,  144,  151,  145,  144,

      152,  153,  161,  142,  148,  148,  152,  162,  153,  393,
      163,  146,  148,  146,  145,  148,  154,  148,  186,  145,
      154,  240,  193,  154,  155,  156,  155,  154,  286,  155,
      155,  156,  165,  154,  167,  191,  162,  163,  161,  162,
      167,  155,  155,  235,  165,  156,  165,  243,  163,  238,
      162,  161,  193,  163,  167,  238,  165,  250,  245,  235,
      272,  282,  288,  240,  245,  193,  289,  282,  300,  302,
      272,  286,  301,  243,  314,  320,  316,  243,  321,  300,
      335,  320,  321,  338,  314,  250,  288,  316,  301,  302,
      243,  331,  348,  362,  250,  362,  372,  331,  373,  374,

      374,  383,  373,  397,  387,  288,  413,  419,  289,  372,
      372,  420,  773,  433,  383,  387,  420,  419,  454,  648,
      774,  462,  648,  335,  473,  338,  433,  473,  473,  500,
      348,  454,  462,  500,  515,  515,  515,  515,  542,  515,
      515,  515,  592,  542,  596,  413,  650,  592,  397,  657,
      704,  704,  650,  596,  657,  775,  672,  672,  596,  672,
      690,  690,  690,  706,  706,  776,  777,  779,  776,  780,
      781,  782,  783,  784,  786,  787,  788,  789,  790,  791,
      792,  793,  794,  795,  796,  797,  798,  802,  803,  804,
      805,  806,  807,  808,  809,  810,  811,  813,  814,  817,

      818,  819,  820,  825,  826,  827,  828,  829,  830,  831,
      832,  833,  834,  835,  836,  839,  840,  841,  843,  844,
      845,  846,  849,  850,  851,  852,  853,  854,  855,  856,
      857,  858,  859,  860,  861,  862,  864,  865,  866,  867,
      868,  869,  870,  871,  872,  873,  874,  875,  876,  877,
      878,  879,  880,  881,  882,  869,  883,  884,  886,  881,
      887,  888,  890,  891,  892,  893,  894,  895,  896,  897,
      898,  900,  902,  887,  904,  905,  909,  910,  911,  912,
      913,  914,  915,  916,  917,  918,  920,  921,  922,  923,
      924,  925,  926,  912,  927,  929,  930,  931,  932,  934,

      936,  937,  939,  940,  941,  942,  943,  944,  945,  946,
      947,  949,  950,  952,  953,  954,  955,  956,  957,  958,
      959,  960,  961,  962,  963,  964,  965,  966,  967,  969,
      971,  972,  973,  974,  975,  976,  977,  978,  979,  980,
      981,  982,  983,  984,  985,  986,  987,  988,  989,  991,
      992,  993,  994,  995,  997,  999, 1000, 1001, 1002, 1003,
     1004, 1005, 1006, 1001, 1006, 1007, 1008, 1013,  993, 1015,
     1015, 1016, 1017, 1027, 1032, 1033, 1034, 1035, 1038, 1039,
     1040, 1041, 1042, 1043, 1044, 1046, 1047, 1049, 1050, 1051,
     1052, 1053, 1056, 1057, 1058, 1059, 1060, 1061, 1063, 1064,

     1065, 1066, 1067, 1069, 1070, 1071, 1072, 1073, 1074, 1075,
     1077, 1078, 1079, 1080, 1083, 1084, 1085, 1086, 1087, 1088,
     1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1094, 1097,
     1098, 1100, 1101, 1102, 1104, 1106, 1107, 1108, 1109, 1112,
     1113, 1114, 1115, 1116, 1117, 1118, 1119, 1121, 1122, 1123,
     1124, 1125, 1126, 1127, 1130, 1131, 1132, 1133, 1134, 1137,
     1138, 1140, 1142, 1143, 1144, 1145, 1146, 1150, 1151, 1152,
     1153, 1154, 1155, 1158, 1161, 1162, 1163, 1164, 1165, 1166,
     1167, 1169, 1171, 1171, 1172, 1171, 1173, 1174, 1175, 1177,
     1178, 1179, 1180, 1181, 1182, 1183, 1184, 1185, 1187, 1188,

     1189, 1190, 1191, 1192, 1194, 1196, 1197, 1198, 1199, 1201,
     1202, 1203, 1204, 1206, 1207, 1208, 1209, 1210, 1211, 1212,
     1213, 1214, 1215, 1216, 1217, 1218, 1219, 1220, 1221, 1222,
     1223, 1224, 1226, 1227, 1228, 1229, 1230, 1232, 1233, 1235,
     1237, 1238, 1239, 1240, 1221, 1222, 1241, 1243, 1244, 1245,
     1246, 1247, 1248, 1249, 1250, 1252, 1253, 1254, 1256, 1258,
     1259, 1260, 1261, 1262, 1263, 1264, 1265, 1266, 1267, 1268,
     1269, 1270, 1271, 1272, 1273, 1275, 1276, 1277, 1278, 1279,
     1280, 1281, 1282, 1283, 1284, 1285, 1286, 1287, 1288, 1289,
     1290, 1291, 1293, 1294, 1295, 1296, 1297, 1301, 1302, 1303,

     1304, 1305, 1306, 1307, 1308, 1309, 1310, 1311, 1312, 1314,
     1315, 1316, 1318, 1320, 1322, 1325, 1326, 1327, 1329, 1330,
     1331, 1332, 1333, 1334, 1335, 1336, 1342, 1345, 1346, 1347,
     1348, 1349, 1350, 1352, 1354, 1355, 1356, 1358, 1359, 1360,
     1361, 1362, 1363, 1364, 1365, 1366, 1369, 1370, 1371, 1372,
     1373, 1374, 1375, 1376, 1378, 1379, 1380, 1383, 1384, 1385,
     1390, 1391, 1392, 1394, 1395, 1396, 1397, 1398, 1399, 1400,
     1401, 1402, 1403, 1404, 1405, 1406, 1407, 1409, 1411, 1414,
     1415, 1418, 1418, 1418, 1418, 1418, 1418, 1419, 1420, 1419,
     1419, 1419, 1419, 1421, 1421, 1421, 1422, 1423, 1424, 1424,

     1424, 1425, 1425, 1426,  765,  764,  763,  762,  761,  760,
      759,  758,  757,  756,  755,  754,  753,  752,  751,  750,
      749,  748,  747,  746,  745,  744,  743,  742,  741,  740,
      739,  737,  735,  734,  733,  732,  731,  729,  728,  727,
      726,  725,  724,  723,  722,  721,  720,  719,  718,  717,
      714,  713,  712,  711,  710,  708,  707,  705,  703,  702,
      701,  700,  699,  698,  697,  696,  695,  694,  693,  692,
      691,  689,  688,  687,  686,  684,  683,  682,  681,  680,
      679,  678,  677,  676,  675,  674,  671,  670,  669,  668,
      667,  666,  665,  664,  663,  662,  661,  660,  659,  658,

      656,  654,  652,  649,  647,  646,  645,  644,  643,  642,
      640,  639,  638,  635,  634,  633,  632,  631,  630,  629,
      628,  626,  624,  623,  622,  621,  620,  619,  618,  617,
      616,  615,  614,  612,  611,  610,  609,  607,  606,  605,
      604,  603,  602,  601,  600,  599,  598,  597,  595,  594,
      593,  591,  590,  588,  587,  586,  584,  583,  582,  581,
      580,  579,  578,  577,  575,  574,  573,  572,  571,  570,
      568,  567,  566,  564,  563,  562,  561,  560,  559,  558,
      557,  556,  555,  554,  553,  552,  551,  550,  549,  548,
      547,  545,  544,  543,  541,  540,  539,  538,  536,  535,

      534,  533,  532,  531,  530,  529,  528,  527,  526,  523,
      522,  521,  520,  519,  518,  517,  516,  514,  511,  510,
      508,  507,  506,  505,  504,  502,  501,  499,  498,  497,
      496,  495,  494,  493,  492,  489,  488,  487,  486,  485,
      484,  483,  482,  481,  480,  479,  478,  477,  476,  475,
      474,  472,  471,  470,  469,  468,  467,  466,  464,  463,
      461,  460,  459,  458,  457,  456,  455,  453,  452,  451,
      450,  449,  447,  446,  445,  444,  443,  442,  441,  440,
      439,  438,  437,  436,  435,  434,  432,  431,  430,  429,
      428,  426,  425,  424,  423,  422,  421,  418,  417,  416,

      415,  414,  412,  411,  410,  409,  408,  407,  406,  405,
      404,  403,  402,  401,  400,  399,  398,  396,  395,  394,
      392,  391,  390,  389,  388,  385,  384,  382,  380,  379,
      377,  376,  371,  368,  365,  364,  363,  359,  358,  357,
      356,  355,  354,  353,  352,  351,  350,  347,  346,  344,
      343,  342,  341,  340,  336,  330,  329,  328,  327,  326,
      325,  324,  323,  322,  319,  318,  317,  315,  313,  312,
      311,  310,  309,  308,  307,  306,  305,  304,  303,  299,
      298,  297,  296,  294,  293,  292,  291,  290,  287,  285,
      284,  283,  281,  280,  279,  278,  277,  276,  275,  274,

      273,  271,  270,  269,  268,  267,  266,  265,  264,  263,
      262,  260,  258,  257,  256,  255,  254,  253,  252,  251,
      249,  248,  247,  246,  244,  242,  241,  237,  236,  234,
      233,  232,  231,  230,  229,  228,  227,  226,  225,  224,
      223,  222,  221,  220,  219,  218,  216,  215,  213,  212,
      211,  210,  209,  208,  207,  206,  205,  204,  203,  202,
      201,  200,  199,  198,  197,  196,  194,  190,  189,  188,
      184,  180,  177,  176,  171,  170,  164,  160,  157,  141,
      137,  127,  123,  122,  118,   97,   85,   72,   71,   66,
       62,   58,   50,   49,   48,   47,   45,   43,   39,   37,

       35,    8,    7, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417, 1417,
     1417, 1417
    } ;

static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;

/* The intent behind this definition is that it'll catch
 * any uses of REJECT which flex missed.
 */
#define REJECT reject_used_but_not_detected
static int yy_more_flag = 0;
static int yy_more_len = 0;
#define yymore() (yy_more_flag = 1)
#define YY_MORE_ADJ yy_more_len
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "./cftoken.l"
#define INITIAL 0
/* $Id: cftoken.l,v 1.26.2.2 2005/04/21 08:57:15 monas Exp $ */
#line 4 "./cftoken.l"
/*
 * Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 and 2003 WIDE Project.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the project nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */

#include "config.h"

#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>

#include <netinet/in.h>
#ifdef HAVE_NETINET6_IPSEC 
#  include <netinet6/ipsec.h>
#else 
#  include <netinet/ipsec.h>
#endif

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include <ctype.h>
#include <glob.h>
#ifdef HAVE_STDARG_H
#include <stdarg.h>
#else
#include <varargs.h>
#endif

#include "var.h"
#include "misc.h"
#include "vmbuf.h"
#include "plog.h"
#include "debug.h"

#include "algorithm.h"
#include "cfparse_proto.h"
#include "cftoken_proto.h"
#include "localconf.h"
#include "oakley.h"
#include "isakmp_var.h"
#include "isakmp.h"
#include "ipsec_doi.h"
#include "proposal.h"
#include "nattraversal.h"
#ifdef GC
#include "gcmalloc.h"
#endif

#include "cfparse.h"

int yyerrorcount = 0;

#if defined(YIPS_DEBUG)
#  define YYDB plog(LLV_DEBUG2, LOCATION, NULL,                                \
            "begin <%d>%s\n", yy_start, yytext);
#  define YYD {                                                                \
      plog(LLV_DEBUG2, LOCATION, NULL, "<%d>%s",                             \
          yy_start, loglevel >= LLV_DEBUG2 ? "\n" : "");                     \
}
#else
#  define YYDB
#  define YYD
#endif /* defined(YIPS_DEBUG) */

#define MAX_INCLUDE_DEPTH 10

static struct include_stack {
      char *path;
      FILE *fp;
      YY_BUFFER_STATE prevstate;
      int lineno;
      glob_t matches;
      int matchon;
} incstack[MAX_INCLUDE_DEPTH];
static int incstackp = 0;

static int yy_first_time = 1;
/* common seciton */
/*octet           (([01]?{digit}?{digit})|((2([0-4]{digit}))|(25[0-5]))) */
#define S_INI 1
#define S_PTH 2
#define S_INF 3
#define S_LOG 4
#define S_PAD 5
#define S_LST 6
#define S_RTRY 7
#define S_CFG 8

#define S_ALGST 9
#define S_ALGCL 10

#define S_SAINF 11
#define S_SAINFS 12

#define S_RMT 13
#define S_RMTS 14
#define S_RMTP 15

#define S_SA 16

#line 1354 "cftoken.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 141 "./cftoken.l"


      if (yy_first_time) {
            BEGIN S_INI;
            yy_first_time = 0;
      }


      /* path */
#line 1515 "cftoken.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_more_len = 0;
            if ( yy_more_flag )
                  {
                  yy_more_len = yy_c_buf_p - yytext_ptr;
                  yy_more_flag = 0;
                  }
            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_match:
            do
                  {
                  register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
                  if ( yy_accept[yy_current_state] )
                        {
                        yy_last_accepting_state = yy_current_state;
                        yy_last_accepting_cpos = yy_cp;
                        }
                  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
                        {
                        yy_current_state = (int) yy_def[yy_current_state];
                        if ( yy_current_state >= 1418 )
                              yy_c = yy_meta[(unsigned int) yy_c];
                        }
                  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
                  ++yy_cp;
                  }
            while ( yy_base[yy_current_state] != 1704 );

yy_find_action:
            yy_act = yy_accept[yy_current_state];
            if ( yy_act == 0 )
                  { /* have to back up */
                  yy_cp = yy_last_accepting_cpos;
                  yy_current_state = yy_last_accepting_state;
                  yy_act = yy_accept[yy_current_state];
                  }

            YY_DO_BEFORE_ACTION;


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


            switch ( yy_act )
      { /* beginning of action switch */
                  case 0: /* must back up */
                  /* undo the effects of YY_DO_BEFORE_ACTION */
                  *yy_cp = yy_hold_char;
                  yy_cp = yy_last_accepting_cpos;
                  yy_current_state = yy_last_accepting_state;
                  goto yy_find_action;

case 1:
YY_RULE_SETUP
#line 150 "./cftoken.l"
{ BEGIN S_PTH; YYDB; return(PATH); }
      YY_BREAK
case 2:
YY_RULE_SETUP
#line 151 "./cftoken.l"
{ YYD; yylval.num = LC_PATHTYPE_INCLUDE;
                        return(PATHTYPE); }
      YY_BREAK
case 3:
YY_RULE_SETUP
#line 153 "./cftoken.l"
{ YYD; yylval.num = LC_PATHTYPE_PSK;
                        return(PATHTYPE); }
      YY_BREAK
case 4:
YY_RULE_SETUP
#line 155 "./cftoken.l"
{ YYD; yylval.num = LC_PATHTYPE_CERT;
                        return(PATHTYPE); }
      YY_BREAK
case 5:
YY_RULE_SETUP
#line 157 "./cftoken.l"
{ YYD; yylval.num = LC_PATHTYPE_BACKUPSA;
                        return(PATHTYPE); }
      YY_BREAK
case 6:
YY_RULE_SETUP
#line 159 "./cftoken.l"
{ BEGIN S_INI; YYDB; return(EOS); }
      YY_BREAK
/* include */
case 7:
YY_RULE_SETUP
#line 162 "./cftoken.l"
{ YYDB; return(INCLUDE); }
      YY_BREAK
/* self information */
case 8:
YY_RULE_SETUP
#line 165 "./cftoken.l"
{ BEGIN S_INF; YYDB; yywarn("it is obsoleted.  use \"my_identifier\" in each remote directives."); return(IDENTIFIER); }
      YY_BREAK
case 9:
YY_RULE_SETUP
#line 166 "./cftoken.l"
{ BEGIN S_INI; return(EOS); }
      YY_BREAK
/* special */
case 10:
YY_RULE_SETUP
#line 169 "./cftoken.l"
{ YYDB; return(COMPLEX_BUNDLE); }
      YY_BREAK
/* logging */
case 11:
YY_RULE_SETUP
#line 172 "./cftoken.l"
{ BEGIN S_LOG; YYDB; return(LOGGING); }
      YY_BREAK
case 12:
YY_RULE_SETUP
#line 173 "./cftoken.l"
{ YYD; yywarn("it is obsoleted.  use \"notify\""); yylval.num = 0; return(LOGLEV); }
      YY_BREAK
case 13:
YY_RULE_SETUP
#line 174 "./cftoken.l"
{ YYD; yylval.num = 0; return(LOGLEV); }
      YY_BREAK
case 14:
YY_RULE_SETUP
#line 175 "./cftoken.l"
{ YYD; yylval.num = 1; return(LOGLEV); }
      YY_BREAK
case 15:
YY_RULE_SETUP
#line 176 "./cftoken.l"
{ YYD; yylval.num = 2; return(LOGLEV); }
      YY_BREAK
case 16:
YY_RULE_SETUP
#line 177 "./cftoken.l"
{ YYD; yywarn("it is osboleted.  use \"debug2\""); yylval.num = 2; return(LOGLEV); }
      YY_BREAK
case 17:
YY_RULE_SETUP
#line 178 "./cftoken.l"
{ YYD; yywarn("it is obsoleted.  use \"debug2\""); yylval.num = 2; return(LOGLEV); }
      YY_BREAK
case 18:
YY_RULE_SETUP
#line 179 "./cftoken.l"
{ BEGIN S_INI; return(EOS); }
      YY_BREAK
/* padding */
case 19:
YY_RULE_SETUP
#line 182 "./cftoken.l"
{ BEGIN S_PAD; YYDB; return(PADDING); }
      YY_BREAK
case 20:
YY_RULE_SETUP
#line 183 "./cftoken.l"
{ return(BOC); }
      YY_BREAK
case 21:
YY_RULE_SETUP
#line 184 "./cftoken.l"
{ YYD; return(PAD_RANDOMIZE); }
      YY_BREAK
case 22:
YY_RULE_SETUP
#line 185 "./cftoken.l"
{ YYD; return(PAD_RANDOMIZELEN); }
      YY_BREAK
case 23:
YY_RULE_SETUP
#line 186 "./cftoken.l"
{ YYD; return(PAD_MAXLEN); }
      YY_BREAK
case 24:
YY_RULE_SETUP
#line 187 "./cftoken.l"
{ YYD; return(PAD_STRICT); }
      YY_BREAK
case 25:
YY_RULE_SETUP
#line 188 "./cftoken.l"
{ YYD; return(PAD_EXCLTAIL); }
      YY_BREAK
case 26:
YY_RULE_SETUP
#line 189 "./cftoken.l"
{ BEGIN S_INI; return(EOC); }
      YY_BREAK
/* listen */
case 27:
YY_RULE_SETUP
#line 192 "./cftoken.l"
{ BEGIN S_LST; YYDB; return(LISTEN); }
      YY_BREAK
case 28:
YY_RULE_SETUP
#line 193 "./cftoken.l"
{ return(BOC); }
      YY_BREAK
case 29:
YY_RULE_SETUP
#line 194 "./cftoken.l"
{ YYD; return(X_ISAKMP); }
      YY_BREAK
case 30:
YY_RULE_SETUP
#line 195 "./cftoken.l"
{ YYD; return(X_ISAKMP_NATT); }
      YY_BREAK
case 31:
YY_RULE_SETUP
#line 196 "./cftoken.l"
{ YYD; return(X_ADMIN); }
      YY_BREAK
case 32:
YY_RULE_SETUP
#line 197 "./cftoken.l"
{ YYD; return(ADMINSOCK); }
      YY_BREAK
case 33:
YY_RULE_SETUP
#line 198 "./cftoken.l"
{ YYD; return(DISABLED); }
      YY_BREAK
case 34:
YY_RULE_SETUP
#line 199 "./cftoken.l"
{ YYD; return(STRICT_ADDRESS); }
      YY_BREAK
case 35:
YY_RULE_SETUP
#line 200 "./cftoken.l"
{ BEGIN S_INI; return(EOC); }
      YY_BREAK
/* mode_cfg */
case 36:
YY_RULE_SETUP
#line 203 "./cftoken.l"
{ BEGIN S_CFG; YYDB; return(MODECFG); }
      YY_BREAK
case 37:
YY_RULE_SETUP
#line 204 "./cftoken.l"
{ return(BOC); }
      YY_BREAK
case 38:
YY_RULE_SETUP
#line 205 "./cftoken.l"
{ YYD; return(CFG_NET4); }
      YY_BREAK
case 39:
YY_RULE_SETUP
#line 206 "./cftoken.l"
{ YYD; return(CFG_MASK4); }
      YY_BREAK
case 40:
YY_RULE_SETUP
#line 207 "./cftoken.l"
{ YYD; return(CFG_DNS4); }
      YY_BREAK
case 41:
YY_RULE_SETUP
#line 208 "./cftoken.l"
{ YYD; return(CFG_NBNS4); }
      YY_BREAK
case 42:
YY_RULE_SETUP
#line 209 "./cftoken.l"
{ YYD; return(CFG_AUTH_SOURCE); }
      YY_BREAK
case 43:
YY_RULE_SETUP
#line 210 "./cftoken.l"
{ YYD; return(CFG_CONF_SOURCE); }
      YY_BREAK
case 44:
YY_RULE_SETUP
#line 211 "./cftoken.l"
{ YYD; return(CFG_ACCOUNTING); }
      YY_BREAK
case 45:
YY_RULE_SETUP
#line 212 "./cftoken.l"
{ YYD; return(CFG_SYSTEM); }
      YY_BREAK
case 46:
YY_RULE_SETUP
#line 213 "./cftoken.l"
{ YYD; return(CFG_LOCAL); }
      YY_BREAK
case 47:
YY_RULE_SETUP
#line 214 "./cftoken.l"
{ YYD; return(CFG_NONE); }
      YY_BREAK
case 48:
YY_RULE_SETUP
#line 215 "./cftoken.l"
{ YYD; return(CFG_RADIUS); }
      YY_BREAK
case 49:
YY_RULE_SETUP
#line 216 "./cftoken.l"
{ YYD; return(CFG_POOL_SIZE); }
      YY_BREAK
case 50:
YY_RULE_SETUP
#line 217 "./cftoken.l"
{ YYD; return(CFG_MOTD); }
      YY_BREAK
case 51:
YY_RULE_SETUP
#line 218 "./cftoken.l"
{ YYD; return(CFG_AUTH_THROTTLE); }
      YY_BREAK
case 52:
YY_RULE_SETUP
#line 219 "./cftoken.l"
{ BEGIN S_INI; return(EOC); }
      YY_BREAK
/* timer */
case 53:
YY_RULE_SETUP
#line 222 "./cftoken.l"
{ BEGIN S_RTRY; YYDB; return(RETRY); }
      YY_BREAK
case 54:
YY_RULE_SETUP
#line 223 "./cftoken.l"
{ return(BOC); }
      YY_BREAK
case 55:
YY_RULE_SETUP
#line 224 "./cftoken.l"
{ YYD; return(RETRY_COUNTER); }
      YY_BREAK
case 56:
YY_RULE_SETUP
#line 225 "./cftoken.l"
{ YYD; return(RETRY_INTERVAL); }
      YY_BREAK
case 57:
YY_RULE_SETUP
#line 226 "./cftoken.l"
{ YYD; return(RETRY_PERSEND); }
      YY_BREAK
case 58:
YY_RULE_SETUP
#line 227 "./cftoken.l"
{ YYD; return(RETRY_PHASE1); }
      YY_BREAK
case 59:
YY_RULE_SETUP
#line 228 "./cftoken.l"
{ YYD; return(RETRY_PHASE2); }
      YY_BREAK
case 60:
YY_RULE_SETUP
#line 229 "./cftoken.l"
{ YYD; return(NATT_KA); }
      YY_BREAK
case 61:
YY_RULE_SETUP
#line 230 "./cftoken.l"
{ BEGIN S_INI; return(EOC); }
      YY_BREAK
/* sainfo */
case 62:
YY_RULE_SETUP
#line 233 "./cftoken.l"
{ BEGIN S_SAINF; YYDB; return(SAINFO); }
      YY_BREAK
case 63:
YY_RULE_SETUP
#line 234 "./cftoken.l"
{ YYD; return(ANONYMOUS); }
      YY_BREAK
case 64:
YY_RULE_SETUP
#line 235 "./cftoken.l"
{ YYD; return(PORTANY); }
      YY_BREAK
case 65:
YY_RULE_SETUP
#line 236 "./cftoken.l"
{ YYD; return(ANY); }
      YY_BREAK
case 66:
YY_RULE_SETUP
#line 237 "./cftoken.l"
{ YYD; return(FROM); }
      YY_BREAK
/* sainfo spec */
case 67:
YY_RULE_SETUP
#line 239 "./cftoken.l"
{ BEGIN S_SAINFS; return(BOC); }
      YY_BREAK
case 68:
YY_RULE_SETUP
#line 240 "./cftoken.l"
{ BEGIN S_INI; return(EOS); }
      YY_BREAK
case 69:
YY_RULE_SETUP
#line 241 "./cftoken.l"
{ BEGIN S_INI; return(EOC); }
      YY_BREAK
case 70:
YY_RULE_SETUP
#line 242 "./cftoken.l"
{ YYD; return(PFS_GROUP); }
      YY_BREAK
case 71:
YY_RULE_SETUP
#line 243 "./cftoken.l"
{ YYD; yywarn("it is obsoleted.  use \"my_identifier\"."); return(IDENTIFIER); }
      YY_BREAK
case 72:
YY_RULE_SETUP
#line 244 "./cftoken.l"
{ YYD; return(MY_IDENTIFIER); }
      YY_BREAK
case 73:
YY_RULE_SETUP
#line 245 "./cftoken.l"
{ YYD; return(LIFETIME); }
      YY_BREAK
case 74:
YY_RULE_SETUP
#line 246 "./cftoken.l"
{ YYD; return(LIFETYPE_TIME); }
      YY_BREAK
case 75:
YY_RULE_SETUP
#line 247 "./cftoken.l"
{ YYD; return(LIFETYPE_BYTE); }
      YY_BREAK
case 76:
YY_RULE_SETUP
#line 248 "./cftoken.l"
{ YYD; yylval.num = algclass_ipsec_enc; return(ALGORITHM_CLASS); }
      YY_BREAK
case 77:
YY_RULE_SETUP
#line 249 "./cftoken.l"
{ YYD; yylval.num = algclass_ipsec_auth; return(ALGORITHM_CLASS); }
      YY_BREAK
case 78:
YY_RULE_SETUP
#line 250 "./cftoken.l"
{ YYD; yylval.num = algclass_ipsec_comp; return(ALGORITHM_CLASS); }
      YY_BREAK
case 79:
YY_RULE_SETUP
#line 251 "./cftoken.l"
{ YYD; return(COMMA); }
      YY_BREAK
/* remote */
case 80:
YY_RULE_SETUP
#line 254 "./cftoken.l"
{ BEGIN S_RMT; YYDB; return(REMOTE); }
      YY_BREAK
case 81:
YY_RULE_SETUP
#line 255 "./cftoken.l"
{ YYD; return(ANONYMOUS); }
      YY_BREAK
case 82:
YY_RULE_SETUP
#line 256 "./cftoken.l"
{ YYD; return(INHERIT); }
      YY_BREAK
/* remote spec */
case 83:
YY_RULE_SETUP
#line 258 "./cftoken.l"
{ BEGIN S_RMTS; return(BOC); }
      YY_BREAK
case 84:
YY_RULE_SETUP
#line 259 "./cftoken.l"
{ BEGIN S_INI; return(EOC); }
      YY_BREAK
case 85:
YY_RULE_SETUP
#line 260 "./cftoken.l"
{ YYD; return(EXCHANGE_MODE); }
      YY_BREAK
case 86:
YY_RULE_SETUP
#line 261 "./cftoken.l"
{ YYD; /* XXX ignored, but to be handled. */ ; }
      YY_BREAK
case 87:
YY_RULE_SETUP
#line 262 "./cftoken.l"
{ YYD; yylval.num = ISAKMP_ETYPE_BASE; return(EXCHANGETYPE); }
      YY_BREAK
case 88:
YY_RULE_SETUP
#line 263 "./cftoken.l"
{ YYD; yylval.num = ISAKMP_ETYPE_IDENT; return(EXCHANGETYPE); }
      YY_BREAK
case 89:
YY_RULE_SETUP
#line 264 "./cftoken.l"
{ YYD; yylval.num = ISAKMP_ETYPE_AGG; return(EXCHANGETYPE); }
      YY_BREAK
case 90:
YY_RULE_SETUP
#line 265 "./cftoken.l"
{ YYD; return(DOI); }
      YY_BREAK
case 91:
YY_RULE_SETUP
#line 266 "./cftoken.l"
{ YYD; yylval.num = IPSEC_DOI; return(DOITYPE); }
      YY_BREAK
case 92:
YY_RULE_SETUP
#line 267 "./cftoken.l"
{ YYD; return(SITUATION); }
      YY_BREAK
case 93:
YY_RULE_SETUP
#line 268 "./cftoken.l"
{ YYD; yylval.num = IPSECDOI_SIT_IDENTITY_ONLY; return(SITUATIONTYPE); }
      YY_BREAK
case 94:
YY_RULE_SETUP
#line 269 "./cftoken.l"
{ YYD; yylval.num = IPSECDOI_SIT_SECRECY; return(SITUATIONTYPE); }
      YY_BREAK
case 95:
YY_RULE_SETUP
#line 270 "./cftoken.l"
{ YYD; yylval.num = IPSECDOI_SIT_INTEGRITY; return(SITUATIONTYPE); }
      YY_BREAK
case 96:
YY_RULE_SETUP
#line 271 "./cftoken.l"
{ YYD; yywarn("it is obsoleted.  use \"my_identifier\"."); return(IDENTIFIER); }
      YY_BREAK
case 97:
YY_RULE_SETUP
#line 272 "./cftoken.l"
{ YYD; return(MY_IDENTIFIER); }
      YY_BREAK
case 98:
YY_RULE_SETUP
#line 273 "./cftoken.l"
{ YYD; return(XAUTH_LOGIN); /* formerly identifier type login */ }
      YY_BREAK
case 99:
YY_RULE_SETUP
#line 274 "./cftoken.l"
{ YYD; return(PEERS_IDENTIFIER); }
      YY_BREAK
case 100:
YY_RULE_SETUP
#line 275 "./cftoken.l"
{ YYD; return(VERIFY_IDENTIFIER); }
      YY_BREAK
case 101:
YY_RULE_SETUP
#line 276 "./cftoken.l"
{ YYD; return(CERTIFICATE_TYPE); }
      YY_BREAK
case 102:
YY_RULE_SETUP
#line 277 "./cftoken.l"
{ YYD; return(CA_TYPE); }
      YY_BREAK
case 103:
YY_RULE_SETUP
#line 278 "./cftoken.l"
{ YYD; yylval.num = ISAKMP_CERT_X509SIGN; return(CERT_X509); }
      YY_BREAK
case 104:
YY_RULE_SETUP
#line 279 "./cftoken.l"
{ YYD; yylval.num = ISAKMP_CERT_PLAINRSA; return(CERT_PLAINRSA); }
      YY_BREAK
case 105:
YY_RULE_SETUP
#line 280 "./cftoken.l"
{ YYD; return(PEERS_CERTFILE); }
      YY_BREAK
case 106:
YY_RULE_SETUP
#line 281 "./cftoken.l"
{ YYD; return(DNSSEC); }
      YY_BREAK
case 107:
YY_RULE_SETUP
#line 282 "./cftoken.l"
{ YYD; return(VERIFY_CERT); }
      YY_BREAK
case 108:
YY_RULE_SETUP
#line 283 "./cftoken.l"
{ YYD; return(SEND_CERT); }
      YY_BREAK
case 109:
YY_RULE_SETUP
#line 284 "./cftoken.l"
{ YYD; return(SEND_CR); }
      YY_BREAK
case 110:
YY_RULE_SETUP
#line 285 "./cftoken.l"
{ YYD; return(DH_GROUP); }
      YY_BREAK
case 111:
YY_RULE_SETUP
#line 286 "./cftoken.l"
{ YYD; return(NONCE_SIZE); }
      YY_BREAK
case 112:
YY_RULE_SETUP
#line 287 "./cftoken.l"
{ YYD; return(GENERATE_POLICY); }
      YY_BREAK
case 113:
YY_RULE_SETUP
#line 288 "./cftoken.l"
{ YYD; yywarn("it is obsoleted.  use \"support_proxy\"."); return(SUPPORT_PROXY); }
      YY_BREAK
case 114:
YY_RULE_SETUP
#line 289 "./cftoken.l"
{ YYD; return(SUPPORT_PROXY); }
      YY_BREAK
case 115:
YY_RULE_SETUP
#line 290 "./cftoken.l"
{ YYD; return(INITIAL_CONTACT); }
      YY_BREAK
case 116:
YY_RULE_SETUP
#line 291 "./cftoken.l"
{ YYD; return(NAT_TRAVERSAL); }
      YY_BREAK
case 117:
YY_RULE_SETUP
#line 292 "./cftoken.l"
{ YYD; yylval.num = NATT_FORCE; return(NAT_TRAVERSAL_LEVEL); }
      YY_BREAK
case 118:
YY_RULE_SETUP
#line 293 "./cftoken.l"
{ YYD; return(PROPOSAL_CHECK); }
      YY_BREAK
case 119:
YY_RULE_SETUP
#line 294 "./cftoken.l"
{ YYD; yylval.num = PROP_CHECK_OBEY; return(PROPOSAL_CHECK_LEVEL); }
      YY_BREAK
case 120:
YY_RULE_SETUP
#line 295 "./cftoken.l"
{ YYD; yylval.num = PROP_CHECK_STRICT; return(PROPOSAL_CHECK_LEVEL); }
      YY_BREAK
case 121:
YY_RULE_SETUP
#line 296 "./cftoken.l"
{ YYD; yylval.num = PROP_CHECK_EXACT; return(PROPOSAL_CHECK_LEVEL); }
      YY_BREAK
case 122:
YY_RULE_SETUP
#line 297 "./cftoken.l"
{ YYD; yylval.num = PROP_CHECK_CLAIM; return(PROPOSAL_CHECK_LEVEL); }
      YY_BREAK
case 123:
YY_RULE_SETUP
#line 298 "./cftoken.l"
{ YYD; return(KEEPALIVE); }
      YY_BREAK
case 124:
YY_RULE_SETUP
#line 299 "./cftoken.l"
{ YYD; return(PASSIVE); }
      YY_BREAK
case 125:
YY_RULE_SETUP
#line 300 "./cftoken.l"
{ YYD; return(LIFETIME); }
      YY_BREAK
case 126:
YY_RULE_SETUP
#line 301 "./cftoken.l"
{ YYD; return(LIFETYPE_TIME); }
      YY_BREAK
case 127:
YY_RULE_SETUP
#line 302 "./cftoken.l"
{ YYD; return(LIFETYPE_BYTE); }
      YY_BREAK
case 128:
YY_RULE_SETUP
#line 303 "./cftoken.l"
{ YYD; return(DPD); }
      YY_BREAK
case 129:
YY_RULE_SETUP
#line 304 "./cftoken.l"
{ YYD; return(DPD_DELAY); }
      YY_BREAK
case 130:
YY_RULE_SETUP
#line 305 "./cftoken.l"
{ YYD; return(DPD_RETRY); }
      YY_BREAK
case 131:
YY_RULE_SETUP
#line 306 "./cftoken.l"
{ YYD; return(DPD_MAXFAIL); }
      YY_BREAK
case 132:
YY_RULE_SETUP
#line 307 "./cftoken.l"
{ YYD; return(IKE_FRAG); }
      YY_BREAK
case 133:
YY_RULE_SETUP
#line 308 "./cftoken.l"
{ YYD; return(SCRIPT); }
      YY_BREAK
case 134:
YY_RULE_SETUP
#line 309 "./cftoken.l"
{ YYD; return(PHASE1_UP); }
      YY_BREAK
case 135:
YY_RULE_SETUP
#line 310 "./cftoken.l"
{ YYD; return(PHASE1_DOWN); }
      YY_BREAK
case 136:
YY_RULE_SETUP
#line 311 "./cftoken.l"
{ YYD; return(MODE_CFG); }
      YY_BREAK
/* remote proposal */
case 137:
YY_RULE_SETUP
#line 313 "./cftoken.l"
{ BEGIN S_RMTP; YYDB; return(PROPOSAL); }
      YY_BREAK
case 138:
YY_RULE_SETUP
#line 314 "./cftoken.l"
{ return(BOC); }
      YY_BREAK
case 139:
YY_RULE_SETUP
#line 315 "./cftoken.l"
{ BEGIN S_RMTS; return(EOC); }
      YY_BREAK
case 140:
YY_RULE_SETUP
#line 316 "./cftoken.l"
{ YYD; return(LIFETIME); }
      YY_BREAK
case 141:
YY_RULE_SETUP
#line 317 "./cftoken.l"
{ YYD; return(LIFETYPE_TIME); }
      YY_BREAK
case 142:
YY_RULE_SETUP
#line 318 "./cftoken.l"
{ YYD; return(LIFETYPE_BYTE); }
      YY_BREAK
case 143:
YY_RULE_SETUP
#line 319 "./cftoken.l"
{ YYD; yylval.num = algclass_isakmp_enc; return(ALGORITHM_CLASS); }
      YY_BREAK
case 144:
YY_RULE_SETUP
#line 320 "./cftoken.l"
{ YYD; yylval.num = algclass_isakmp_ameth; return(ALGORITHM_CLASS); }
      YY_BREAK
case 145:
YY_RULE_SETUP
#line 321 "./cftoken.l"
{ YYD; yylval.num = algclass_isakmp_hash; return(ALGORITHM_CLASS); }
      YY_BREAK
case 146:
YY_RULE_SETUP
#line 322 "./cftoken.l"
{ YYD; return(DH_GROUP); }
      YY_BREAK
case 147:
YY_RULE_SETUP
#line 323 "./cftoken.l"
{ YYD; return(GSSAPI_ID); }
      YY_BREAK
/* parameter */
case 148:
YY_RULE_SETUP
#line 326 "./cftoken.l"
{ YYD; yylval.num = TRUE; return(SWITCH); }
      YY_BREAK
case 149:
YY_RULE_SETUP
#line 327 "./cftoken.l"
{ YYD; yylval.num = FALSE; return(SWITCH); }
      YY_BREAK
/* prefix */
case 150:
YY_RULE_SETUP
#line 330 "./cftoken.l"
{
                  YYD;
                  yytext++;
                  yylval.num = atoi(yytext);
                  return(PREFIX);
            }
      YY_BREAK
/* port number */
case 151:
YY_RULE_SETUP
#line 338 "./cftoken.l"
{
                  char *p = yytext;
                  YYD;
                  while (*++p != ']') ;
                  *p = 0;
                  yytext++;
                  yylval.num = atoi(yytext);
                  return(PORT);
            }
      YY_BREAK
/* upper protocol */
case 152:
YY_RULE_SETUP
#line 349 "./cftoken.l"
{ YYD; yylval.num = IPPROTO_ESP; return(UL_PROTO); }
      YY_BREAK
case 153:
YY_RULE_SETUP
#line 350 "./cftoken.l"
{ YYD; yylval.num = IPPROTO_AH; return(UL_PROTO); }
      YY_BREAK
case 154:
YY_RULE_SETUP
#line 351 "./cftoken.l"
{ YYD; yylval.num = IPPROTO_IPCOMP; return(UL_PROTO); }
      YY_BREAK
case 155:
YY_RULE_SETUP
#line 352 "./cftoken.l"
{ YYD; yylval.num = IPPROTO_ICMP; return(UL_PROTO); }
      YY_BREAK
case 156:
YY_RULE_SETUP
#line 353 "./cftoken.l"
{ YYD; yylval.num = IPPROTO_ICMPV6; return(UL_PROTO); }
      YY_BREAK
case 157:
YY_RULE_SETUP
#line 354 "./cftoken.l"
{ YYD; yylval.num = IPPROTO_TCP; return(UL_PROTO); }
      YY_BREAK
case 158:
YY_RULE_SETUP
#line 355 "./cftoken.l"
{ YYD; yylval.num = IPPROTO_UDP; return(UL_PROTO); }
      YY_BREAK
/* algorithm type */
case 159:
YY_RULE_SETUP
#line 358 "./cftoken.l"
{ YYD; yylval.num = algtype_des_iv64;     return(ALGORITHMTYPE); }
      YY_BREAK
case 160:
YY_RULE_SETUP
#line 359 "./cftoken.l"
{ YYD; yylval.num = algtype_des;    return(ALGORITHMTYPE); }
      YY_BREAK
case 161:
YY_RULE_SETUP
#line 360 "./cftoken.l"
{ YYD; yylval.num = algtype_3des;   return(ALGORITHMTYPE); }
      YY_BREAK
case 162:
YY_RULE_SETUP
#line 361 "./cftoken.l"
{ YYD; yylval.num = algtype_rc5;    return(ALGORITHMTYPE); }
      YY_BREAK
case 163:
YY_RULE_SETUP
#line 362 "./cftoken.l"
{ YYD; yylval.num = algtype_idea;   return(ALGORITHMTYPE); }
      YY_BREAK
case 164:
YY_RULE_SETUP
#line 363 "./cftoken.l"
{ YYD; yylval.num = algtype_cast128;      return(ALGORITHMTYPE); }
      YY_BREAK
case 165:
YY_RULE_SETUP
#line 364 "./cftoken.l"
{ YYD; yylval.num = algtype_blowfish;     return(ALGORITHMTYPE); }
      YY_BREAK
case 166:
YY_RULE_SETUP
#line 365 "./cftoken.l"
{ YYD; yylval.num = algtype_3idea;  return(ALGORITHMTYPE); }
      YY_BREAK
case 167:
YY_RULE_SETUP
#line 366 "./cftoken.l"
{ YYD; yylval.num = algtype_des_iv32;     return(ALGORITHMTYPE); }
      YY_BREAK
case 168:
YY_RULE_SETUP
#line 367 "./cftoken.l"
{ YYD; yylval.num = algtype_rc4;    return(ALGORITHMTYPE); }
      YY_BREAK
case 169:
YY_RULE_SETUP
#line 368 "./cftoken.l"
{ YYD; yylval.num = algtype_null_enc;     return(ALGORITHMTYPE); }
      YY_BREAK
case 170:
YY_RULE_SETUP
#line 369 "./cftoken.l"
{ YYD; yylval.num = algtype_null_enc;     return(ALGORITHMTYPE); }
      YY_BREAK
case 171:
YY_RULE_SETUP
#line 370 "./cftoken.l"
{ YYD; yylval.num = algtype_aes;    return(ALGORITHMTYPE); }
      YY_BREAK
case 172:
YY_RULE_SETUP
#line 371 "./cftoken.l"
{ YYD; yylval.num = algtype_aes;    return(ALGORITHMTYPE); }
      YY_BREAK
case 173:
YY_RULE_SETUP
#line 372 "./cftoken.l"
{ YYD; yylval.num = algtype_twofish;      return(ALGORITHMTYPE); }
      YY_BREAK
case 174:
YY_RULE_SETUP
#line 373 "./cftoken.l"
{ YYD; yylval.num = algtype_non_auth;     return(ALGORITHMTYPE); }
      YY_BREAK
case 175:
YY_RULE_SETUP
#line 374 "./cftoken.l"
{ YYD; yylval.num = algtype_hmac_md5;     return(ALGORITHMTYPE); }
      YY_BREAK
case 176:
YY_RULE_SETUP
#line 375 "./cftoken.l"
{ YYD; yylval.num = algtype_hmac_sha1;    return(ALGORITHMTYPE); }
      YY_BREAK
case 177:
YY_RULE_SETUP
#line 376 "./cftoken.l"
{ YYD; yylval.num = algtype_hmac_sha2_256;      return(ALGORITHMTYPE); }
      YY_BREAK
case 178:
YY_RULE_SETUP
#line 377 "./cftoken.l"
{ YYD; yylval.num = algtype_hmac_sha2_384;      return(ALGORITHMTYPE); }
      YY_BREAK
case 179:
YY_RULE_SETUP
#line 378 "./cftoken.l"
{ YYD; yylval.num = algtype_hmac_sha2_512;      return(ALGORITHMTYPE); }
      YY_BREAK
case 180:
YY_RULE_SETUP
#line 379 "./cftoken.l"
{ YYD; yylval.num = algtype_des_mac;      return(ALGORITHMTYPE); }
      YY_BREAK
case 181:
YY_RULE_SETUP
#line 380 "./cftoken.l"
{ YYD; yylval.num = algtype_kpdk;   return(ALGORITHMTYPE); }
      YY_BREAK
case 182:
YY_RULE_SETUP
#line 381 "./cftoken.l"
{ YYD; yylval.num = algtype_md5;    return(ALGORITHMTYPE); }
      YY_BREAK
case 183:
YY_RULE_SETUP
#line 382 "./cftoken.l"
{ YYD; yylval.num = algtype_sha1;   return(ALGORITHMTYPE); }
      YY_BREAK
case 184:
YY_RULE_SETUP
#line 383 "./cftoken.l"
{ YYD; yylval.num = algtype_tiger;  return(ALGORITHMTYPE); }
      YY_BREAK
case 185:
YY_RULE_SETUP
#line 384 "./cftoken.l"
{ YYD; yylval.num = algtype_sha2_256;     return(ALGORITHMTYPE); }
      YY_BREAK
case 186:
YY_RULE_SETUP
#line 385 "./cftoken.l"
{ YYD; yylval.num = algtype_sha2_384;     return(ALGORITHMTYPE); }
      YY_BREAK
case 187:
YY_RULE_SETUP
#line 386 "./cftoken.l"
{ YYD; yylval.num = algtype_sha2_512;     return(ALGORITHMTYPE); }
      YY_BREAK
case 188:
YY_RULE_SETUP
#line 387 "./cftoken.l"
{ YYD; yylval.num = algtype_oui;    return(ALGORITHMTYPE); }
      YY_BREAK
case 189:
YY_RULE_SETUP
#line 388 "./cftoken.l"
{ YYD; yylval.num = algtype_deflate;      return(ALGORITHMTYPE); }
      YY_BREAK
case 190:
YY_RULE_SETUP
#line 389 "./cftoken.l"
{ YYD; yylval.num = algtype_lzs;    return(ALGORITHMTYPE); }
      YY_BREAK
case 191:
YY_RULE_SETUP
#line 390 "./cftoken.l"
{ YYD; yylval.num = algtype_modp768;      return(ALGORITHMTYPE); }
      YY_BREAK
case 192:
YY_RULE_SETUP
#line 391 "./cftoken.l"
{ YYD; yylval.num = algtype_modp1024;     return(ALGORITHMTYPE); }
      YY_BREAK
case 193:
YY_RULE_SETUP
#line 392 "./cftoken.l"
{ YYD; yylval.num = algtype_modp1536;     return(ALGORITHMTYPE); }
      YY_BREAK
case 194:
YY_RULE_SETUP
#line 393 "./cftoken.l"
{ YYD; yylval.num = algtype_ec2n155;      return(ALGORITHMTYPE); }
      YY_BREAK
case 195:
YY_RULE_SETUP
#line 394 "./cftoken.l"
{ YYD; yylval.num = algtype_ec2n185;      return(ALGORITHMTYPE); }
      YY_BREAK
case 196:
YY_RULE_SETUP
#line 395 "./cftoken.l"
{ YYD; yylval.num = algtype_modp2048;     return(ALGORITHMTYPE); }
      YY_BREAK
case 197:
YY_RULE_SETUP
#line 396 "./cftoken.l"
{ YYD; yylval.num = algtype_modp3072;     return(ALGORITHMTYPE); }
      YY_BREAK
case 198:
YY_RULE_SETUP
#line 397 "./cftoken.l"
{ YYD; yylval.num = algtype_modp4096;     return(ALGORITHMTYPE); }
      YY_BREAK
case 199:
YY_RULE_SETUP
#line 398 "./cftoken.l"
{ YYD; yylval.num = algtype_modp6144;     return(ALGORITHMTYPE); }
      YY_BREAK
case 200:
YY_RULE_SETUP
#line 399 "./cftoken.l"
{ YYD; yylval.num = algtype_modp8192;     return(ALGORITHMTYPE); }
      YY_BREAK
case 201:
YY_RULE_SETUP
#line 400 "./cftoken.l"
{ YYD; yylval.num = algtype_psk;    return(ALGORITHMTYPE); }
      YY_BREAK
case 202:
YY_RULE_SETUP
#line 401 "./cftoken.l"
{ YYD; yylval.num = algtype_rsasig; return(ALGORITHMTYPE); }
      YY_BREAK
case 203:
YY_RULE_SETUP
#line 402 "./cftoken.l"
{ YYD; yylval.num = algtype_dsssig; return(ALGORITHMTYPE); }
      YY_BREAK
case 204:
YY_RULE_SETUP
#line 403 "./cftoken.l"
{ YYD; yylval.num = algtype_rsaenc; return(ALGORITHMTYPE); }
      YY_BREAK
case 205:
YY_RULE_SETUP
#line 404 "./cftoken.l"
{ YYD; yylval.num = algtype_rsarev; return(ALGORITHMTYPE); }
      YY_BREAK
case 206:
YY_RULE_SETUP
#line 405 "./cftoken.l"
{ YYD; yylval.num = algtype_gssapikrb;    return(ALGORITHMTYPE); }
      YY_BREAK
case 207:
YY_RULE_SETUP
#line 406 "./cftoken.l"
{
#ifdef ENABLE_HYBRID
      YYD; yylval.num = algtype_hybrid_rsa_s; return(ALGORITHMTYPE);
#else
      yyerror("racoon not configured with --enable-hybrid");
#endif
}
      YY_BREAK
case 208:
YY_RULE_SETUP
#line 413 "./cftoken.l"
{
#ifdef ENABLE_HYBRID
      YYD; yylval.num = algtype_hybrid_dss_s; return(ALGORITHMTYPE);
#else
      yyerror("racoon not configured with --enable-hybrid");
#endif
}
      YY_BREAK
case 209:
YY_RULE_SETUP
#line 420 "./cftoken.l"
{
#ifdef ENABLE_HYBRID
      YYD; yylval.num = algtype_hybrid_rsa_c; return(ALGORITHMTYPE);
#else
      yyerror("racoon not configured with --enable-hybrid");
#endif
}
      YY_BREAK
case 210:
YY_RULE_SETUP
#line 427 "./cftoken.l"
{
#ifdef ENABLE_HYBRID
      YYD; yylval.num = algtype_hybrid_dss_c; return(ALGORITHMTYPE);
#else
      yyerror("racoon not configured with --enable-hybrid");
#endif
}
      YY_BREAK
/* identifier type */
case 211:
YY_RULE_SETUP
#line 437 "./cftoken.l"
{ YYD; yywarn("it is obsoleted."); return(VENDORID); }
      YY_BREAK
case 212:
YY_RULE_SETUP
#line 438 "./cftoken.l"
{ YYD; yylval.num = IDTYPE_USERFQDN; return(IDENTIFIERTYPE); }
      YY_BREAK
case 213:
YY_RULE_SETUP
#line 439 "./cftoken.l"
{ YYD; yylval.num = IDTYPE_FQDN; return(IDENTIFIERTYPE); }
      YY_BREAK
case 214:
YY_RULE_SETUP
#line 440 "./cftoken.l"
{ YYD; yylval.num = IDTYPE_KEYID; return(IDENTIFIERTYPE); }
      YY_BREAK
case 215:
YY_RULE_SETUP
#line 441 "./cftoken.l"
{ YYD; yylval.num = IDTYPE_ADDRESS; return(IDENTIFIERTYPE); }
      YY_BREAK
case 216:
YY_RULE_SETUP
#line 442 "./cftoken.l"
{ YYD; yylval.num = IDTYPE_ASN1DN; return(IDENTIFIERTYPE); }
      YY_BREAK
case 217:
YY_RULE_SETUP
#line 443 "./cftoken.l"
{ YYD; yywarn("certname will be obsoleted in near future."); yylval.num = IDTYPE_ASN1DN; return(IDENTIFIERTYPE); }
      YY_BREAK
/* units */
case 218:
YY_RULE_SETUP
#line 446 "./cftoken.l"
{ YYD; return(UNITTYPE_BYTE); }
      YY_BREAK
case 219:
YY_RULE_SETUP
#line 447 "./cftoken.l"
{ YYD; return(UNITTYPE_KBYTES); }
      YY_BREAK
case 220:
YY_RULE_SETUP
#line 448 "./cftoken.l"
{ YYD; return(UNITTYPE_MBYTES); }
      YY_BREAK
case 221:
YY_RULE_SETUP
#line 449 "./cftoken.l"
{ YYD; return(UNITTYPE_TBYTES); }
      YY_BREAK
case 222:
YY_RULE_SETUP
#line 450 "./cftoken.l"
{ YYD; return(UNITTYPE_SEC); }
      YY_BREAK
case 223:
YY_RULE_SETUP
#line 451 "./cftoken.l"
{ YYD; return(UNITTYPE_MIN); }
      YY_BREAK
case 224:
YY_RULE_SETUP
#line 452 "./cftoken.l"
{ YYD; return(UNITTYPE_HOUR); }
      YY_BREAK
/* boolean */
case 225:
YY_RULE_SETUP
#line 455 "./cftoken.l"
{ YYD; yylval.num = TRUE; return(BOOLEAN); }
      YY_BREAK
case 226:
YY_RULE_SETUP
#line 456 "./cftoken.l"
{ YYD; yylval.num = FALSE; return(BOOLEAN); }
      YY_BREAK
case 227:
YY_RULE_SETUP
#line 458 "./cftoken.l"
{
                  char *bp;

                  YYD;
                  yylval.num = strtol(yytext, &bp, 10);
                  return(NUMBER);
            }
      YY_BREAK
case 228:
YY_RULE_SETUP
#line 466 "./cftoken.l"
{
                  char *p;

                  YYD; 
                  yylval.val = vmalloc(yyleng + (yyleng & 1) + 1);
                  if (yylval.val == NULL) {
                        yyerror("vmalloc failed");
                        return -1;
                  }

                  p = yylval.val->v;
                  *p++ = '0';
                  *p++ = 'x';

                  /* fixed string if length is odd. */
                  if (yyleng & 1)
                        *p++ = '0';
                  memcpy(p, &yytext[2], yyleng - 1);

                  return(HEXSTRING);
            }
      YY_BREAK
case 229:
YY_RULE_SETUP
#line 488 "./cftoken.l"
{
                  char *p = yytext;

                  YYD;
                  while (*++p != '"') ;
                  *p = '\0';

                  yylval.val = vmalloc(yyleng - 1);
                  if (yylval.val == NULL) {
                        yyerror("vmalloc failed");
                        return -1;
                  }
                  memcpy(yylval.val->v, &yytext[1], yylval.val->l);

                  return(QUOTEDSTRING);
            }
      YY_BREAK
case 230:
YY_RULE_SETUP
#line 505 "./cftoken.l"
{
                  YYD;

                  yylval.val = vmalloc(yyleng + 1);
                  if (yylval.val == NULL) {
                        yyerror("vmalloc failed");
                        return -1;
                  }
                  memcpy(yylval.val->v, yytext, yylval.val->l);

                  return(ADDRSTRING);
            }
      YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(S_INI):
case YY_STATE_EOF(S_PTH):
case YY_STATE_EOF(S_INF):
case YY_STATE_EOF(S_LOG):
case YY_STATE_EOF(S_PAD):
case YY_STATE_EOF(S_LST):
case YY_STATE_EOF(S_RTRY):
case YY_STATE_EOF(S_CFG):
case YY_STATE_EOF(S_ALGST):
case YY_STATE_EOF(S_ALGCL):
case YY_STATE_EOF(S_SAINF):
case YY_STATE_EOF(S_SAINFS):
case YY_STATE_EOF(S_RMT):
case YY_STATE_EOF(S_RMTS):
case YY_STATE_EOF(S_RMTP):
case YY_STATE_EOF(S_SA):
#line 518 "./cftoken.l"
{
                  yy_delete_buffer(YY_CURRENT_BUFFER);
                  incstackp--;
    nextfile:
                  if (incstack[incstackp].matchon <
                      incstack[incstackp].matches.gl_pathc) {
                        char* filepath = incstack[incstackp].matches.gl_pathv[incstack[incstackp].matchon];
                        incstack[incstackp].matchon++;
                        incstackp++;
                        if (yycf_set_buffer(filepath) != 0) {
                              incstackp--;
                              goto nextfile;
                        }
                        yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE));
                        BEGIN(S_INI);
                  } else {
                        globfree(&incstack[incstackp].matches);
                        if (incstackp == 0)
                              yyterminate();
                        else
                              yy_switch_to_buffer(incstack[incstackp].prevstate);
                  }
            }
      YY_BREAK
/* ... */
case 231:
YY_RULE_SETUP
#line 543 "./cftoken.l"
{ ; }
      YY_BREAK
case 232:
YY_RULE_SETUP
#line 544 "./cftoken.l"
{ incstack[incstackp].lineno++; }
      YY_BREAK
case 233:
YY_RULE_SETUP
#line 545 "./cftoken.l"
{ YYD; }
      YY_BREAK
case 234:
YY_RULE_SETUP
#line 546 "./cftoken.l"
{ return(EOS); }
      YY_BREAK
case 235:
YY_RULE_SETUP
#line 547 "./cftoken.l"
{ yymore(); }
      YY_BREAK
case 236:
YY_RULE_SETUP
#line 549 "./cftoken.l"
ECHO;
      YY_BREAK
#line 2941 "cftoken.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;

      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);
            if ( yy_accept[yy_current_state] )
                  {
                  yy_last_accepting_state = yy_current_state;
                  yy_last_accepting_cpos = yy_cp;
                  }
            while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
                  {
                  yy_current_state = (int) yy_def[yy_current_state];
                  if ( yy_current_state >= 1418 )
                        yy_c = yy_meta[(unsigned int) yy_c];
                  }
            yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
            }

      return yy_current_state;
      }


/* yy_try_NUL_trans - try to make a transition on the NUL character
 *
 * synopsis
 *    next_state = yy_try_NUL_trans( current_state );
 */

#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 char *yy_cp = yy_c_buf_p;

      register YY_CHAR yy_c = 1;
      if ( yy_accept[yy_current_state] )
            {
            yy_last_accepting_state = yy_current_state;
            yy_last_accepting_cpos = yy_cp;
            }
      while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
            {
            yy_current_state = (int) yy_def[yy_current_state];
            if ( yy_current_state >= 1418 )
                  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 == 1417);

      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;


      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;


      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 549 "./cftoken.l"


void
yyerror(char *s, ...)
{
      char fmt[512];

      va_list ap;
#ifdef HAVE_STDARG_H
      va_start(ap, s);
#else
      va_start(ap);
#endif
      snprintf(fmt, sizeof(fmt), "%s:%d: \"%s\" %s\n",
            incstack[incstackp].path, incstack[incstackp].lineno,
            yytext, s);
      plogv(LLV_ERROR, LOCATION, NULL, fmt, ap);
      va_end(ap);

      yyerrorcount++;
}

void
yywarn(char *s, ...)
{
      char fmt[512];

      va_list ap;
#ifdef HAVE_STDARG_H
      va_start(ap, s);
#else
      va_start(ap);
#endif
      snprintf(fmt, sizeof(fmt), "%s:%d: \"%s\" %s\n",
            incstack[incstackp].path, incstack[incstackp].lineno,
            yytext, s);
      plogv(LLV_WARNING, LOCATION, NULL, fmt, ap);
      va_end(ap);
}

int
yycf_switch_buffer(path)
      char *path;
{
      char *filepath = NULL;

      /* got the include file name */
      if (incstackp >= MAX_INCLUDE_DEPTH) {
            plog(LLV_ERROR, LOCATION, NULL,
                  "Includes nested too deeply");
            return -1;
      }

      if (glob(path, GLOB_TILDE, NULL, &incstack[incstackp].matches) != 0 ||
          incstack[incstackp].matches.gl_pathc == 0) {
            plog(LLV_ERROR, LOCATION, NULL,
                  "glob found no matches for path");
            return -1;
      }
      incstack[incstackp].matchon = 0;
      incstack[incstackp].prevstate = YY_CURRENT_BUFFER;

    nextmatch:
      if (incstack[incstackp].matchon >= incstack[incstackp].matches.gl_pathc)
            return -1;
      filepath =
          incstack[incstackp].matches.gl_pathv[incstack[incstackp].matchon];
      incstack[incstackp].matchon++;
      incstackp++;

      if (yycf_set_buffer(filepath) != 0) {
            incstackp--;
            goto nextmatch;
      }

      yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE));

      BEGIN(S_INI);

      return 0;
}

int
yycf_set_buffer(path)
      char *path;
{
      yyin = fopen(path, "r");
      if (yyin == NULL) {
            fprintf(stderr, "failed to open file %s (%s)\n",
                  path, strerror(errno));
            plog(LLV_ERROR, LOCATION, NULL,
                  "failed to open file %s (%s)\n",
                  path, strerror(errno));
            return -1;
      }

      /* initialize */
      incstack[incstackp].fp = yyin;
      incstack[incstackp].path = strdup(path);
      incstack[incstackp].lineno = 1;
      plog(LLV_DEBUG, LOCATION, NULL,
            "reading config file %s\n", path);

      return 0;
}

void
yycf_init_buffer()
{
      int i;

      for (i = 0; i < MAX_INCLUDE_DEPTH; i++)
            memset(&incstack[i], 0, sizeof(incstack[i]));
      incstackp = 0;
}

void
yycf_clean_buffer()
{
      int i;

      for (i = 0; i < MAX_INCLUDE_DEPTH; i++) {
            if (incstack[i].path != NULL) {
                  fclose(incstack[i].fp);
                  racoon_free(incstack[i].path);
                  incstack[i].path = NULL;
            }
      }
}


Generated by  Doxygen 1.6.0   Back to index