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

token.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 82
#define YY_END_OF_BUFFER 83
static yyconst short int yy_accept[517] =
    {   0,
        0,    0,    0,    0,    0,    0,    0,    0,   83,   81,
       69,   70,   81,   71,   80,   81,   73,   76,   76,   79,
       72,   74,   75,   79,   79,   79,   79,   79,   79,   79,
       79,   79,   79,   79,   79,   79,   79,   79,   16,   16,
       16,   16,   16,   16,   16,   16,   17,   16,   16,   16,
       16,   16,   16,   16,   16,   16,   16,   16,   16,   16,
       16,   16,   79,   79,   79,   79,   76,   79,   79,   79,
       79,   79,   79,   79,   79,   69,    0,   78,   71,   80,
       18,   25,   49,   36,   15,   53,    0,   58,    0,   54,
       63,   57,   79,   76,   79,   79,   19,   79,   79,   79,

       79,   79,   79,   79,   79,   79,   79,   79,   79,   79,
       79,   79,   79,   79,   79,   79,   79,   16,   16,   16,
       16,   16,   16,   15,   16,   16,   16,   16,   16,   16,
       16,   16,   16,   16,   16,   16,   16,   16,   16,   16,
       16,   16,   16,   16,   16,   16,   16,   16,   16,   16,
       16,   16,   16,   16,   16,   16,   79,   79,   79,   79,
       79,   79,   79,   79,   79,   79,   79,   79,   79,   18,
       66,   67,   64,   65,   77,    1,   79,   68,    9,   79,
       79,   79,   20,   79,   79,    4,   79,   52,   79,   50,
       79,   79,   79,   79,   79,   79,   79,   79,   16,   16,

       16,   16,   16,   16,    1,   16,   16,    9,   16,   16,
       16,   16,   16,   16,    4,   16,   16,   16,   16,   16,
       16,   16,   16,   16,   16,   16,   16,   79,   79,   79,
       79,   79,   79,   79,   79,   79,   79,   79,   79,   79,
       79,   79,   79,    6,   79,    7,   79,   79,   79,    8,
       79,   79,   79,   79,   79,   79,   79,   79,   79,   16,
       16,   16,    6,   16,    7,   16,   16,   16,    8,   16,
       16,   16,   16,   16,   16,   16,   16,   16,   79,   79,
       79,   35,   79,   79,   79,   79,   79,   39,   79,   79,
       79,   79,   79,   79,   79,   79,    5,   79,   79,   79,

       79,   79,   79,   79,   79,   79,   79,   79,   79,   16,
       16,   16,   16,   16,    5,   16,   16,   16,   16,   16,
       16,   16,   16,   16,   16,   16,   16,   79,   79,   79,
       79,   79,   79,   79,   79,   79,   79,   79,   79,   79,
       21,   79,    2,   79,   79,   24,   79,   79,   79,   10,
       79,   79,   79,   14,   79,   56,   79,   16,   16,    2,
       16,   16,   16,   16,   16,   16,   10,   16,   16,   16,
       14,   16,   16,   16,   79,   79,   79,   79,   79,   79,
       79,   79,   79,   79,   79,   79,   79,   79,   40,   79,
       51,   79,   22,   23,   79,   79,   60,   79,   12,   79,

       79,   79,   16,   16,   16,   16,   16,   16,   16,   16,
       12,   16,   16,   16,   79,   79,   79,   79,   79,   79,
       79,   46,   48,   79,   79,   79,   37,   79,   79,   79,
       79,   79,   79,   79,   13,   79,   61,   16,   16,   16,
       16,   13,   16,   16,   79,   26,   79,   79,   79,   79,
       38,   79,   79,   44,   79,   79,   79,    3,   79,   79,
       11,   55,    3,   16,   16,   11,   16,   79,   79,   27,
       79,   28,   79,   79,   79,   43,   79,   79,   79,   59,
       16,   16,   79,   79,   79,   29,   79,   79,   79,   79,
       79,   16,   79,   79,   79,   79,   79,   79,   42,   79,

       45,   62,   16,   34,   79,   79,   79,   79,   41,   47,
       79,   30,   31,   32,   33,    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,    7,    8,    9,   10,   11,   12,   13,   14,
       15,   16,   17,   18,   19,   20,   19,   21,   22,    1,
        1,    1,    1,    1,   23,   24,   25,   24,   26,   24,
       21,   21,   21,   21,   21,   21,   21,   21,   21,   27,
       21,   28,   21,   21,   21,   21,   21,   29,   21,   21,
       30,    1,   31,    1,   32,    1,   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,   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,    1,    1,    1
    } ;

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

static yyconst short int yy_base[523] =
    {   0,
        0,    0,   58,    0,   84,   85,  117,  155, 1669, 1998,
     1665, 1998, 1662,    0,    0,  192, 1998,  238,  287, 1654,
     1998, 1998, 1998,  118,  114,  112,  121,  111,  125,  113,
      115,  127,  126,  128,  133,  138,  149,  139, 1654,    0,
      292,    0,    0,  344,  399,  232, 1998,  430,  266,  279,
      277,  364,  418,  432,  445,  377,  476,  483,  490,  502,
      549,  509,  176,  135,  148,  140, 1619,  187,  152,  170,
      223,  151,  281,  184,  336, 1637, 1634, 1998,    0,    0,
      245, 1998, 1998, 1998, 1998, 1998,  143, 1998,  160, 1998,
     1998, 1998, 1628,    0,  595,  236,  129,  221,  233,  305,

      220,  317,  206,  240,  275,  289,  241,  304,  288,  313,
      332,  333,  345,  360,  362,  382,  327, 1633,    0,  376,
        0,    0,    0,    0,    0,  347,    0,  353,    0,    0,
        0,  551,    0,  626,  561,  568,  663,  665,  675,  677,
      697,  584,  723,  725,  735,  751,  758,  771,  778,  789,
      806,  820,  822,  834,  857,  867,  323,  397,  326,  415,
      428,  395,  434,  437,  481,  419,  453,  461,  449,  456,
     1998, 1998, 1998, 1998,    0, 1623,  452, 1620, 1619,  463,
      436,  492,  131,  474,  467, 1618,  519, 1613,  340, 1610,
      513,  506,  136,  679,  516,  527,  539,  520,  515,    0,

        0,    0,    0,    0,  869,  879,  889,  902,  912,  922,
      929,  939,  955,  962,  972,  982,  989, 1008, 1015, 1025,
     1035, 1042, 1076, 1053, 1086, 1088, 1099,  459,  566,  541,
      536,  537,  529,  535,  596,  597,  540,  581,  588,  586,
      609,  590,  629, 1609,  688, 1598,  614,  647,  681, 1588,
      667,  650,  682,  686,  649,  703,  618,  713,  739, 1119,
     1133, 1145, 1147, 1167, 1178, 1185, 1198, 1200, 1216, 1226,
     1238, 1248, 1258, 1260, 1280, 1291, 1298, 1311,  693,  743,
      736, 1587,  755,  760,  763,  258,  973, 1581,  748,  767,
      683,  779,  780,  797,  796,  790, 1578,  791,  799,  808,

      840,  810,  839,  812,  798,  871,  836,  841,  850, 1325,
     1337, 1344, 1351, 1364, 1371, 1383, 1390, 1403, 1405, 1417,
     1439, 1449, 1456, 1466, 1482, 1484, 1497,  887, 1031,  854,
      900,  968,  886,  898,  931,  894,  930,  885,  935,  944,
     1577,  941,  991,  880,  993, 1576,  945,  997,  995, 1573,
     1017, 1004,  947, 1566, 1022, 1565, 1026, 1504, 1515, 1530,
     1532, 1546, 1548, 1558, 1568, 1580, 1590, 1600, 1602, 1612,
     1622, 1638, 1640, 1650, 1064, 1027, 1062, 1040, 1060, 1105,
     1065, 1054, 1078,  627, 1116, 1107, 1067, 1108, 1536, 1120,
     1534, 1115, 1519, 1513, 1129, 1125, 1505, 1130, 1502, 1154,

     1111, 1135, 1657, 1673, 1684, 1691, 1701, 1711, 1718, 1737,
     1744, 1754, 1764, 1771, 1160,  441, 1164, 1182, 1168, 1176,
     1218, 1488, 1472, 1214, 1230, 1159, 1471, 1190, 1213, 1266,
     1228, 1268, 1256, 1244, 1454, 1277, 1453, 1790, 1797, 1808,
     1810, 1824, 1841, 1843, 1270, 1436, 1288, 1302,  943, 1316,
     1295, 1299, 1329, 1236, 1323, 1379, 1330, 1183, 1333, 1391,
     1175, 1117, 1855, 1857, 1869, 1883, 1895, 1289, 1318,  974,
     1409,  960, 1234, 1394, 1396,  842, 1401, 1431, 1313,  786,
     1909, 1911, 1437, 1418, 1720,  695, 1432, 1447, 1467, 1468,
     1372, 1921, 1489, 1512, 1415, 1348, 1559, 1511,  648, 1523,

      522,  446, 1923,  443, 1352, 1425, 1050, 1464,  342,  267,
      698,  254,  251,  189,  134, 1998, 1970, 1976, 1978, 1981,
     1986, 1991
    } ;

static yyconst short int yy_def[523] =
    {   0,
      516,    1,  516,    3,    1,    1,    1,    1,  516,  516,
      516,  516,  517,  518,  519,  516,  516,  520,  520,  520,
      516,  516,  516,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  521,  521,
      521,  521,  521,  522,  522,  522,  516,  522,  522,  522,
      522,  522,  522,  522,  522,  522,  522,  522,  522,  522,
      522,  522,  520,  520,  520,  520,   19,  520,  520,  520,
      520,  520,  520,  520,  520,  516,  517,  516,  518,  519,
      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  520,   19,   19,  520,  520,  520,  520,  520,

      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  521,  521,  521,
      521,  521,  521,  521,  521,  521,  521,  521,  521,  521,
      521,  522,   45,   45,  522,  522,  522,  522,  522,  522,
      522,  522,  522,  522,  522,  522,  522,  522,  522,  522,
      522,  522,  522,  522,  522,  522,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  516,
      516,  516,  516,  516,   95,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  521,  521,

      521,  521,  521,  134,  522,  522,  522,  522,  522,  522,
      522,  522,  522,  522,  522,  522,  522,  522,  522,  522,
      522,  522,  522,  522,  522,  522,  522,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  522,
      522,  522,  522,  522,  522,  522,  522,  522,  522,  522,
      522,  522,  522,  522,  522,  522,  522,  522,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,

      520,  520,  520,  520,  520,  520,  520,  520,  520,  522,
      522,  522,  522,  522,  522,  522,  522,  522,  522,  522,
      522,  522,  522,  522,  522,  522,  522,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  522,  522,  522,
      522,  522,  522,  522,  522,  522,  522,  522,  522,  522,
      522,  522,  522,  522,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,

      520,  520,  522,  522,  522,  522,  522,  522,  522,  522,
      522,  522,  522,  522,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  522,  522,  522,
      522,  522,  522,  522,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  522,  522,  522,  522,  522,  520,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      522,  522,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  522,  520,  520,  520,  520,  520,  520,  520,  520,

      520,  520,  522,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  520,  520,    0,  516,  516,  516,  516,
      516,  516
    } ;

static yyconst short int yy_nxt[2057] =
    {   0,
       10,   11,   12,   13,   14,   10,   10,   15,   16,   10,
       17,   18,   19,   19,   19,   19,   19,   19,   19,   19,
       20,   21,   20,   20,   20,   20,   20,   20,   20,   22,
       23,   10,   24,   25,   20,   26,   27,   28,   29,   20,
       30,   20,   20,   31,   20,   32,   33,   20,   34,   35,
       36,   37,   20,   20,   20,   20,   20,   38,   10,   39,
       40,   13,   14,   10,   10,   15,   41,   42,   43,   44,
       45,   45,   45,   45,   45,   45,   45,   45,   46,   47,
       46,   46,   46,   46,   46,   46,   46,   22,   23,   42,
       48,   49,   46,   50,   51,   52,   53,   46,   54,   46,

       46,   55,   46,   56,   57,   46,   58,   59,   60,   61,
       46,   46,   46,   46,   46,   62,   63,   63,  516,  516,
      516,  516,  516,   64,   64,  516,   65,   65,  516,   66,
       66,   67,  516,  516,  516,  516,  516,  177,  516,  245,
      516,  516,  516,  516,  252,  516,  516,  516,  100,   68,
       69,   70,   71,   96,  104,  516,  516,   97,  516,  516,
      106,  105,   72,   98,  101,  111,   73,   74,   75,   67,
       99,  102,  107,  108,  112,  117,  103,  516,  109,  158,
      110,  114,  171,  516,  159,  113,  108,   68,   69,   70,
       71,  516,  160,  172,  516,  163,  516,  108,  115,  173,

       72,  116,  164,  166,   73,   74,   75,   81,   99,   81,
      174,   96,  157,  516,   82,   97,   83,   84,   85,   86,
      112,   98,   96,  162,  168,   87,   97,  516,  516,   88,
      516,  113,   98,  119,  119,   89,   90,   81,  119,  516,
      516,   91,  119,  516,   92,   80,  184,  516,  516,   94,
       94,   94,   94,   94,   94,   94,   94,   94,  516,  165,
      170,  516,  170,  119,  182,  516,   95,  119,  119,  179,
      334,  176,  119,  516,  516,  101,  119,  178,  119,  119,
      119,  119,  516,  119,  516,  119,  516,  119,  516,  119,
      170,  188,  185,   95,   80,  516,  516,  119,   94,   94,

       94,   94,   94,   94,   94,   94,   94,  120,  119,  120,
      119,  516,  516,  111,  121,  139,  122,  123,  124,  125,
      516,  167,  138,  187,  516,  126,  186,  141,  190,  127,
      516,  140,  142,  516,  516,  128,  129,  120,  189,  516,
      516,  130,  180,  516,  131,  119,  119,  516,  181,  516,
      119,   80,  516,  191,  119,  133,  133,  133,  133,  133,
      133,  133,  133,  133,  183,  119,  119,  516,  114,  516,
      119,  516,  134,  228,  119,  119,  198,  192,  119,  119,
      194,  193,  230,  119,  516,  115,  200,  119,  116,  516,
      169,  199,  202,  199,  196,  119,  249,  201,  195,  134,

      119,  119,  516,  203,  516,  119,   80,  143,  119,  119,
      133,  133,  133,  133,  133,  133,  133,  133,  133,  119,
      119,  199,  516,  147,  119,  516,  516,  197,  119,  229,
      119,  119,  119,  119,  119,  516,  119,  516,  119,  516,
      119,  516,  119,  516,  516,  233,  119,  119,  516,  119,
      516,  119,  516,  516,  144,  119,  516,  446,  231,  516,
      516,  119,  237,  119,  232,  135,  516,  279,  516,  136,
      516,  170,  243,  170,  516,  137,  119,  119,  119,  145,
      234,  516,  119,  516,  119,  119,  119,  235,  516,  119,
      516,  119,  119,  119,  238,  240,  119,  516,  241,  516,

      119,  170,  146,  119,  119,  239,  242,  119,  119,  516,
      119,  119,  119,  516,  119,  119,  516,  247,  180,  119,
      516,  119,  150,  516,  181,  246,  516,  516,  148,  516,
      199,  236,  199,  119,  516,  149,  516,  284,  151,  244,
      119,  251,  516,  516,  516,  156,  516,  516,  516,  152,
      119,  119,  119,  119,  256,  119,  516,  119,  516,  119,
      199,  119,  119,  119,  250,  248,  259,  119,  516,  119,
      119,  119,  257,  516,  119,  516,  206,  281,  119,  282,
      119,  153,  119,  288,  258,  119,  119,  283,  516,  285,
      119,  516,  119,  516,  119,  516,  205,  516,  154,  119,

      280,  155,  516,  516,  516,  287,  175,  175,  175,  175,
      175,  175,  175,  175,  175,  119,  516,  175,  175,  175,
      175,  516,  293,  291,  213,  516,  289,  175,  175,  175,
      175,  175,  175,  516,  516,  290,  516,  204,  204,  204,
      204,  204,  204,  204,  204,  204,  425,  286,  204,  204,
      204,  204,  292,  297,  516,  516,  516,  516,  204,  204,
      204,  204,  204,  204,  119,  119,  119,  119,  307,  119,
      516,  119,  516,  119,  516,  119,  119,  119,  119,  119,
      294,  119,  516,  119,  516,  119,  516,  119,  516,  516,
      516,  298,  305,  516,  119,  516,  119,  301,  119,  119,

      516,  208,  516,  119,  516,  516,  119,  119,  119,  515,
      516,  253,  209,  300,  254,  299,  255,  302,  210,  207,
      516,  211,  303,  340,  119,  119,  119,  119,  119,  119,
      516,  119,  516,  119,  295,  119,  119,  119,  304,  306,
      296,  119,  516,  516,  212,  119,  516,  309,  328,  308,
      516,  329,  119,  119,  119,  516,  119,  119,  516,  119,
      119,  119,  516,  331,  119,  516,  119,  516,  119,  216,
      516,  330,  119,  119,  516,  214,  215,  119,  516,  119,
      119,  119,  119,  338,  119,  516,  516,  516,  119,  119,
      119,  119,  218,  516,  332,  119,  516,  516,  516,  119,

      333,  217,  119,  516,  516,  516,  516,  119,  119,  119,
      339,  219,  119,  516,  341,  516,  119,  516,  220,  516,
      119,  119,  119,  119,  119,  345,  119,  516,  119,  516,
      119,  342,  119,  343,  221,  119,  119,  119,  346,  344,
      119,  516,  347,  516,  119,  350,  516,  516,  516,  516,
      353,  119,  348,  119,  222,  223,  352,  516,  119,  119,
      224,  516,  379,  119,  516,  119,  225,  119,  119,  119,
      119,  119,  349,  119,  516,  119,  516,  119,  516,  119,
      119,  119,  351,  355,  356,  119,  516,  516,  119,  119,
      119,  119,  516,  516,  516,  119,  516,  357,  119,  119,

      119,  516,  226,  119,  119,  516,  354,  516,  119,  516,
      119,  384,  119,  119,  119,  393,  227,  388,  119,  516,
      119,  375,  119,  119,  119,  260,  383,  386,  119,  516,
      119,  119,  119,  119,  380,  119,  516,  516,  516,  119,
      119,  119,  516,  119,  385,  119,  516,  264,  516,  119,
      516,  516,  516,  119,  516,  261,  119,  119,  262,  472,
      119,  119,  516,  119,  119,  119,  387,  516,  119,  516,
      119,  389,  119,  119,  119,  516,  263,  391,  119,  516,
      516,  516,  119,  119,  119,  395,  119,  335,  119,  516,
      119,  119,  119,  119,  390,  119,  516,  400,  516,  119,

      516,  381,  516,  119,  516,  396,  265,  336,  337,  119,
      119,  516,  266,  119,  119,  516,  119,  119,  119,  382,
      119,  119,  516,  392,  516,  119,  119,  119,  267,  516,
      397,  119,  516,  516,  516,  119,  119,  119,  516,  119,
      394,  119,  516,  119,  119,  119,  119,  516,  119,  516,
      271,  399,  119,  398,  119,  119,  119,  516,  402,  119,
      516,  516,  416,  119,  268,  513,  119,  516,  401,  516,
      270,  516,  516,  119,  516,  376,  269,  119,  119,  418,
      377,  378,  119,  516,  119,  516,  119,  119,  119,  119,
      119,  275,  119,  516,  119,  516,  119,  415,  119,  422,

      119,  119,  417,  423,  419,  119,  516,  119,  272,  119,
      420,  273,  516,  274,  516,  516,  428,  119,  516,  119,
      119,  119,  516,  516,  516,  119,  516,  516,  424,  119,
      119,  276,  516,  277,  119,  119,  516,  516,  421,  119,
      516,  427,  516,  119,  429,  278,  119,  119,  119,  119,
      119,  119,  516,  119,  516,  119,  426,  119,  431,  430,
      436,  516,  310,  432,  119,  311,  516,  516,  119,  119,
      437,  516,  433,  119,  516,  516,  119,  119,  119,  119,
      119,  434,  516,  516,  119,  516,  119,  119,  119,  516,
      516,  119,  516,  435,  445,  119,  312,  516,  119,  119,

      119,  119,  119,  449,  119,  516,  119,  516,  119,  119,
      119,  447,  454,  313,  448,  450,  119,  119,  119,  314,
      516,  516,  119,  516,  315,  516,  119,  119,  119,  119,
      455,  119,  119,  516,  317,  516,  119,  516,  453,  119,
      119,  516,  316,  516,  119,  516,  486,  119,  119,  119,
      119,  516,  451,  452,  119,  516,  456,  119,  119,  119,
      119,  119,  119,  516,  119,  516,  119,  516,  119,  119,
      119,  458,  318,  516,  457,  516,  459,  516,  468,  119,
      461,  119,  119,  320,  516,  319,  119,  516,  460,  119,
      119,  119,  119,  119,  321,  516,  516,  119,  516,  119,

      119,  119,  516,  323,  119,  516,  516,  474,  119,  516,
      322,  119,  119,  119,  470,  471,  324,  119,  516,  327,
      516,  119,  119,  516,  469,  516,  119,  119,  462,  119,
      516,  119,  516,  483,  326,  119,  516,  516,  119,  119,
      516,  325,  119,  119,  516,  119,  119,  119,  473,  491,
      119,  516,  119,  119,  119,  516,  119,  119,  516,  516,
      358,  119,  484,  475,  478,  119,  119,  507,  119,  511,
      119,  516,  119,  119,  119,  119,  476,  119,  516,  516,
      360,  119,  119,  479,  119,  119,  516,  477,  359,  119,
      516,  119,  119,  119,  361,  119,  119,  516,  516,  362,

      119,  516,  119,  516,  119,  119,  119,  119,  516,  119,
      516,  119,  516,  119,  119,  119,  516,  485,  119,  119,
      502,  119,  516,  119,  516,  516,  480,  119,  487,  488,
      363,  506,  516,  364,  119,  489,  119,  366,  516,  516,
      119,  119,  512,  516,  516,  119,  516,  365,  119,  119,
      119,  119,  367,  494,  516,  119,  516,  119,  119,  119,
      516,  516,  119,  516,  490,  498,  119,  119,  119,  493,
      119,  516,  119,  516,  516,  516,  119,  514,  516,  516,
      119,  499,  368,  119,  119,  119,  119,  119,  119,  516,
      119,  516,  119,  369,  119,  516,  516,  119,  119,  119,

      500,  371,  501,  119,  516,  119,  119,  119,  370,  516,
      119,  516,  516,  119,  119,  119,  119,  119,  516,  516,
      516,  119,  516,  504,  505,  119,  516,  373,  119,  372,
      516,  119,  119,  119,  119,  119,  119,  516,  119,  516,
      119,  516,  119,  516,  374,  509,  119,  119,  119,  119,
      119,  403,  119,  516,  119,  516,  119,  510,  119,  119,
      119,  119,  404,  119,  119,  516,  516,  405,  119,  119,
      119,  508,  516,  516,  119,  516,  408,  119,  119,  119,
      516,  119,  119,  516,  516,  516,  119,  516,  516,  119,
      119,  119,  119,  406,  516,  516,  119,  516,  407,  119,

      119,  119,  119,  119,  119,  516,  119,  516,  119,  516,
      119,  119,  119,  119,  119,  409,  516,  516,  119,  516,
      516,  119,  119,  119,  119,  516,  516,  516,  119,  516,
      516,  119,  119,  119,  118,  516,  410,   78,   76,  119,
      119,  119,  119,  119,  119,  516,  119,  516,  119,  411,
      119,  119,  119,  119,  161,  118,  119,  516,  119,  119,
      119,  516,  412,  119,  516,   78,   76,  119,  516,  119,
      516,  119,  516,  516,  119,  119,  516,  516,  516,  119,
      516,  119,  414,  119,  413,  119,  119,  516,  119,  516,
      119,  516,  119,  119,  119,  516,  516,  119,  516,  516,

      516,  119,  119,  119,  119,  516,  516,  119,  516,  516,
      516,  119,  119,  119,  516,  119,  438,  119,  516,  119,
      119,  119,  119,  516,  119,  516,  516,  516,  119,  516,
      516,  516,  119,  495,  496,  439,  497,  516,  119,  119,
      516,  516,  119,  119,  516,  119,  119,  119,  516,  119,
      119,  516,  516,  516,  119,  119,  119,  516,  440,  516,
      119,  516,  516,  516,  119,  119,  119,  516,  119,  516,
      119,  516,  119,  119,  119,  119,  516,  119,  516,  516,
      516,  119,  516,  516,  516,  119,  516,  516,  441,  516,
      516,  119,  119,  442,  516,  119,  119,  516,  119,  119,

      119,  516,  119,  119,  516,  464,  444,  119,  516,  119,
      119,  119,  119,  443,  119,  516,  119,  516,  119,  516,
      119,  119,  516,  516,  516,  119,  119,  516,  119,  516,
      119,  516,  516,  463,  119,  516,  516,  516,  516,  119,
      465,  119,  119,  119,  119,  119,  466,  119,  516,  119,
      516,  119,  516,  119,  516,  119,  119,  119,  119,  119,
      516,  119,  516,  119,  516,  119,  516,  119,  516,  516,
      119,  119,  119,  516,  119,  119,  516,  516,  516,  119,
      516,  516,  516,  516,  119,  119,  119,  516,  119,  119,
      516,  516,  467,  119,  516,  516,  119,  119,  516,  516,

      119,  119,  516,  516,  482,  119,  516,  481,  516,  516,
      119,  119,  119,  119,  119,  119,  516,  119,  516,  119,
      516,  119,  119,  119,  119,  119,  119,  119,  516,  119,
      516,  119,  516,  119,  516,  516,  516,  516,  516,  516,
      119,  516,  119,  516,  516,  492,  516,  516,  516,  516,
      516,  516,  119,  516,  119,  516,  516,  516,  516,  516,
      516,  516,  516,  516,  516,  516,  516,  516,  516,  503,
       77,   77,   77,   77,   77,   77,   79,   79,  516,   79,
       79,   79,   80,   80,   93,   93,   93,  119,  119,  119,
      516,  119,  132,  132,  132,  132,  132,    9,  516,  516,

      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  516,  516,  516,  516
    } ;

static yyconst short int yy_chk[2057] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,

        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    5,    6,   28,   26,
       30,   25,   31,    5,    6,   24,    5,    6,   27,    5,
        6,    7,   29,   33,   32,   34,   97,   97,  183,  183,
       35,  515,   64,  193,  193,   36,   38,   66,   26,    7,
        7,    7,    7,   24,   28,   65,   37,   24,   72,   69,
       30,   29,    7,   24,   26,   35,    7,    7,    7,    8,
       25,   27,   31,   32,   36,   38,   27,   70,   33,   64,
       34,   37,   87,   63,   65,   36,   66,    8,    8,    8,
        8,   74,   66,   87,   68,   69,  514,   72,   37,   89,

        8,   37,   70,   72,    8,    8,    8,   16,   69,   16,
       89,   63,   63,  103,   16,   63,   16,   16,   16,   16,
       74,   63,   68,   68,   74,   16,   68,  101,   98,   16,
       71,   74,   68,   46,   46,   16,   16,   16,   46,   46,
       99,   16,   46,   96,   16,   18,  103,  104,  107,   18,
       18,   18,   18,   18,   18,   18,   18,   18,  513,   71,
       81,  512,   81,   46,  101,  286,   18,   49,   49,   99,
      286,   96,   49,   49,  510,   71,   49,   98,   51,   51,
       50,   50,  105,   51,   51,   50,   50,   51,   73,   50,
       81,  107,  104,   18,   19,  109,  106,   49,   19,   19,

       19,   19,   19,   19,   19,   19,   19,   41,   51,   41,
       50,  108,  100,   73,   41,   50,   41,   41,   41,   41,
      110,   73,   49,  106,  102,   41,  105,   51,  109,   41,
      157,   50,   51,  159,  117,   41,   41,   41,  108,  111,
      112,   41,  100,   75,   41,   44,   44,  189,  100,  509,
       44,   44,  113,  110,   44,   44,   44,   44,   44,   44,
       44,   44,   44,   44,  102,   52,   52,  114,   75,  115,
       52,   52,   44,  157,   52,   44,  117,  111,   56,   56,
      113,  112,  159,   56,   56,   75,  126,   56,   75,  116,
       75,  120,  128,  120,  115,   52,  189,  126,  114,   44,

       45,   45,  162,  128,  158,   45,   45,   52,   56,   45,
       45,   45,   45,   45,   45,   45,   45,   45,   45,   53,
       53,  120,  160,   56,   53,   53,  166,  116,   53,  158,
       45,   48,   48,   54,   54,  161,   48,   48,   54,   54,
       48,  163,   54,  181,  164,  162,   55,   55,  416,   53,
      504,   55,   55,  502,   53,   55,  169,  416,  160,  177,
      167,   48,  166,   54,  161,   48,  228,  228,  168,   48,
      180,  170,  181,  170,  185,   48,   55,   57,   57,   54,
      163,  184,   57,   57,   58,   58,   57,  164,  165,   58,
       58,   59,   59,   58,  167,  169,   59,   59,  177,  182,

       59,  170,   55,   60,   60,  168,  180,   57,   60,   60,
       62,   62,   60,  192,   58,   62,   62,  185,  165,   62,
      191,   59,   59,  195,  165,  184,  187,  198,   57,  501,
      199,  165,  199,   60,  196,   58,  233,  233,   60,  182,
       62,  192,  234,  231,  232,   62,  197,  237,  230,   60,
       61,   61,  132,  132,  195,   61,   61,  132,  132,   61,
      199,  132,  135,  135,  191,  187,  198,  135,  135,  136,
      136,  135,  196,  229,  136,  136,  136,  230,  136,  231,
       61,   61,  132,  237,  197,  142,  142,  232,  238,  234,
      142,  142,  135,  240,  142,  239,  135,  242,   61,  136,

      229,   61,   95,  235,  236,  236,   95,   95,   95,   95,
       95,   95,   95,   95,   95,  142,  241,   95,   95,   95,
       95,  247,  242,  240,  142,  257,  238,   95,   95,   95,
       95,   95,   95,  134,  384,  239,  243,  134,  134,  134,
      134,  134,  134,  134,  134,  134,  384,  235,  134,  134,
      134,  134,  241,  247,  248,  499,  255,  252,  134,  134,
      134,  134,  134,  134,  137,  137,  138,  138,  257,  137,
      137,  138,  138,  137,  251,  138,  139,  139,  140,  140,
      243,  139,  139,  140,  140,  139,  194,  140,  249,  253,
      291,  248,  255,  254,  137,  245,  138,  252,  141,  141,

      279,  138,  486,  141,  141,  511,  139,  141,  140,  511,
      256,  194,  139,  251,  194,  249,  194,  253,  139,  137,
      258,  140,  254,  291,  143,  143,  144,  144,  141,  143,
      143,  144,  144,  143,  245,  144,  145,  145,  254,  256,
      245,  145,  145,  281,  141,  145,  259,  259,  279,  258,
      280,  280,  146,  146,  143,  289,  144,  146,  146,  147,
      147,  146,  283,  283,  147,  147,  145,  284,  147,  145,
      285,  281,  148,  148,  290,  143,  144,  148,  148,  149,
      149,  148,  146,  289,  149,  149,  292,  293,  149,  147,
      150,  150,  147,  480,  284,  150,  150,  296,  298,  150,

      285,  146,  148,  295,  294,  305,  299,  151,  151,  149,
      290,  148,  151,  151,  292,  300,  151,  302,  149,  304,
      150,  152,  152,  153,  153,  296,  152,  152,  153,  153,
      152,  293,  153,  294,  150,  154,  154,  151,  298,  295,
      154,  154,  299,  307,  154,  302,  303,  301,  308,  476,
      305,  152,  300,  153,  151,  152,  304,  309,  155,  155,
      153,  330,  330,  155,  155,  154,  154,  155,  156,  156,
      205,  205,  301,  156,  156,  205,  205,  156,  306,  205,
      206,  206,  303,  307,  308,  206,  206,  344,  155,  206,
      207,  207,  338,  333,  328,  207,  207,  309,  156,  207,

      205,  336,  155,  208,  208,  334,  306,  331,  208,  208,
      206,  334,  208,  209,  209,  344,  156,  338,  209,  209,
      207,  328,  209,  210,  210,  206,  333,  336,  210,  210,
      211,  211,  210,  208,  331,  211,  211,  337,  335,  211,
      212,  212,  339,  209,  335,  212,  212,  212,  342,  212,
      449,  340,  347,  210,  353,  209,  213,  213,  210,  449,
      211,  213,  213,  214,  214,  213,  337,  472,  214,  214,
      212,  339,  214,  215,  215,  332,  211,  342,  215,  215,
      287,  470,  215,  216,  216,  347,  213,  287,  216,  216,
      217,  217,  216,  214,  340,  217,  217,  353,  343,  217,

      345,  332,  349,  215,  348,  348,  213,  287,  287,  218,
      218,  352,  214,  216,  218,  218,  219,  219,  218,  332,
      217,  219,  219,  343,  351,  219,  220,  220,  216,  355,
      349,  220,  220,  357,  376,  220,  221,  221,  329,  218,
      345,  221,  221,  222,  222,  221,  219,  378,  222,  222,
      222,  352,  222,  351,  224,  224,  220,  507,  357,  224,
      224,  382,  376,  224,  218,  507,  221,  379,  355,  377,
      221,  375,  381,  222,  387,  329,  220,  223,  223,  378,
      329,  329,  223,  223,  224,  383,  223,  225,  225,  226,
      226,  224,  225,  225,  226,  226,  225,  375,  226,  381,

      227,  227,  377,  382,  379,  227,  227,  223,  223,  227,
      379,  223,  380,  223,  386,  388,  387,  225,  401,  226,
      260,  260,  392,  385,  462,  260,  260,  390,  383,  260,
      227,  225,  396,  226,  261,  261,  395,  398,  380,  261,
      261,  386,  402,  261,  388,  227,  262,  262,  263,  263,
      260,  262,  262,  263,  263,  262,  385,  263,  392,  390,
      401,  400,  260,  395,  261,  261,  426,  415,  264,  264,
      402,  417,  396,  264,  264,  419,  262,  264,  263,  265,
      265,  398,  461,  420,  265,  265,  266,  266,  265,  418,
      458,  266,  266,  400,  415,  266,  262,  428,  264,  267,

      267,  268,  268,  419,  267,  267,  268,  268,  267,  265,
      268,  417,  426,  264,  418,  420,  266,  269,  269,  264,
      429,  424,  269,  269,  266,  421,  269,  270,  270,  267,
      428,  268,  270,  270,  268,  431,  270,  425,  425,  271,
      271,  473,  267,  454,  271,  271,  473,  269,  271,  272,
      272,  434,  421,  424,  272,  272,  429,  270,  272,  273,
      273,  274,  274,  433,  273,  273,  274,  274,  273,  271,
      274,  431,  270,  430,  430,  432,  432,  445,  445,  272,
      434,  275,  275,  272,  436,  271,  275,  275,  433,  273,
      275,  274,  276,  276,  273,  447,  468,  276,  276,  277,

      277,  276,  451,  274,  277,  277,  452,  452,  277,  448,
      273,  275,  278,  278,  448,  448,  275,  278,  278,  278,
      479,  278,  276,  450,  447,  469,  310,  310,  436,  277,
      455,  310,  310,  468,  277,  310,  453,  457,  311,  311,
      459,  276,  278,  311,  311,  312,  312,  311,  450,  479,
      312,  312,  313,  313,  312,  496,  310,  313,  313,  505,
      310,  313,  469,  453,  457,  314,  314,  496,  311,  505,
      314,  314,  315,  315,  314,  312,  455,  315,  315,  491,
      312,  315,  313,  459,  316,  316,  456,  456,  311,  316,
      316,  317,  317,  316,  313,  314,  317,  317,  460,  314,

      317,  474,  315,  475,  318,  318,  319,  319,  477,  318,
      318,  319,  319,  318,  316,  319,  471,  471,  320,  320,
      491,  317,  495,  320,  320,  484,  460,  320,  474,  475,
      316,  495,  506,  317,  318,  477,  319,  319,  478,  487,
      321,  321,  506,  446,  483,  321,  321,  318,  320,  321,
      322,  322,  320,  484,  488,  322,  322,  323,  323,  322,
      437,  435,  323,  323,  478,  487,  323,  324,  324,  483,
      321,  508,  324,  324,  489,  490,  324,  508,  427,  423,
      322,  488,  321,  325,  325,  326,  326,  323,  325,  325,
      326,  326,  325,  322,  326,  422,  493,  324,  327,  327,

      489,  324,  490,  327,  327,  358,  358,  327,  323,  399,
      358,  358,  397,  325,  358,  326,  359,  359,  498,  494,
      394,  359,  359,  493,  494,  359,  393,  326,  327,  325,
      500,  360,  360,  361,  361,  358,  360,  360,  361,  361,
      360,  391,  361,  389,  327,  498,  359,  362,  362,  363,
      363,  359,  362,  362,  363,  363,  362,  500,  363,  364,
      364,  360,  360,  361,  364,  364,  497,  361,  364,  365,
      365,  497,  356,  354,  365,  365,  365,  362,  365,  363,
      350,  366,  366,  346,  341,  297,  366,  366,  288,  364,
      366,  367,  367,  362,  282,  250,  367,  367,  364,  365,

      367,  368,  368,  369,  369,  246,  368,  368,  369,  369,
      368,  366,  369,  370,  370,  366,  244,  190,  370,  370,
      188,  367,  370,  371,  371,  186,  179,  178,  371,  371,
      176,  368,  371,  369,  118,   93,  368,   77,   76,  372,
      372,  373,  373,  370,  372,  372,  373,  373,  372,  369,
      373,  374,  374,  371,   67,   39,  374,  374,  403,  403,
      374,   20,  370,  403,  403,   13,   11,  403,    9,  372,
        0,  373,    0,    0,  404,  404,    0,    0,    0,  404,
      404,  374,  374,  404,  372,  405,  405,    0,  403,    0,
      405,  405,  406,  406,  405,    0,    0,  406,  406,    0,

        0,  406,  407,  407,  404,    0,    0,  407,  407,    0,
        0,  407,  408,  408,    0,  405,  404,  408,  408,  409,
      409,  408,  406,    0,  409,  409,    0,  485,  409,    0,
        0,    0,  407,  485,  485,  407,  485,    0,  410,  410,
        0,    0,  408,  410,  410,  411,  411,  410,    0,  409,
      411,  411,    0,    0,  411,  412,  412,    0,  408,    0,
      412,  412,    0,    0,  412,  413,  413,    0,  410,    0,
      413,  413,  414,  414,  413,  411,    0,  414,  414,    0,
        0,  414,    0,    0,    0,  412,    0,    0,  410,    0,
        0,  438,  438,  412,    0,  413,  438,  438,  439,  439,

      438,    0,  414,  439,  439,  439,  414,  439,    0,  440,
      440,  441,  441,  413,  440,  440,  441,  441,  440,    0,
      441,  438,    0,    0,    0,  442,  442,    0,  439,    0,
      442,  442,    0,  438,  442,    0,    0,    0,    0,  440,
      440,  441,  443,  443,  444,  444,  441,  443,  443,  444,
      444,  443,    0,  444,    0,  442,  463,  463,  464,  464,
        0,  463,  463,  464,  464,  463,    0,  464,    0,    0,
      465,  465,  443,    0,  444,  465,  465,    0,    0,  465,
        0,    0,    0,    0,  466,  466,  463,    0,  464,  466,
      466,    0,  443,  466,    0,    0,  467,  467,    0,    0,

      465,  467,  467,    0,  465,  467,    0,  464,    0,    0,
      481,  481,  482,  482,  466,  481,  481,  482,  482,  481,
        0,  482,  492,  492,  503,  503,  467,  492,  492,  503,
      503,  492,    0,  503,    0,    0,    0,    0,    0,    0,
      481,    0,  482,    0,    0,  481,    0,    0,    0,    0,
        0,    0,  492,    0,  503,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,  492,
      517,  517,  517,  517,  517,  517,  518,  518,    0,  518,
      518,  518,  519,  519,  520,  520,  520,  521,  521,  521,
        0,  521,  522,  522,  522,  522,  522,  516,  516,  516,

      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  516,  516,  516,  516
    } ;

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 "token.l"
#define INITIAL 0
/*    $KAME: token.l,v 1.44 2003/10/21 07:20:58 itojun Exp $      */
/*
 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 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.
 */
#line 33 "token.l"

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <net/pfkeyv2.h>
#include <netinet/in.h>
#ifdef HAVE_NETINET6_IPSEC
#  include <netinet6/ipsec.h>
#else 
#  include <netinet/ipsec.h>
#endif

#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <netdb.h>

#include "vchar.h"
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__linux__)
#include "parse.h"
#else
#include "y.tab.h"
#endif

int lineno = 1;

extern u_char m_buf[BUFSIZ];
extern u_int m_len;
extern int f_debug;

int yylex __P((void));
void yyfatal __P((const char *s));
void yyerror __P((const char *s));
extern void parse_init __P((void));
int parse __P((FILE **));
int yyparse __P((void));

/* make the code compile on *BSD-current */
#ifndef SADB_X_AALG_SHA2_256
#define SADB_X_AALG_SHA2_256  (-1)
#endif
#ifndef SADB_X_AALG_SHA2_384
#define SADB_X_AALG_SHA2_384  (-1)
#endif
#ifndef SADB_X_AALG_SHA2_512
#define SADB_X_AALG_SHA2_512  (-1)
#endif
#ifndef SADB_X_AALG_RIPEMD160HMAC
#define SADB_X_AALG_RIPEMD160HMAC   (-1)
#endif
#ifndef SADB_X_AALG_AES_XCBC_MAC
#define SADB_X_AALG_AES_XCBC_MAC    (-1)
#endif
#ifndef SADB_X_EALG_TWOFISHCBC
#define SADB_X_EALG_TWOFISHCBC      (-1)
#endif
#ifndef SADB_X_EALG_AESCTR
#define SADB_X_EALG_AESCTR    (-1)
#endif
/* common section */
#define S_PL 1
#define S_AUTHALG 2
#define S_ENCALG 3

#line 1091 "token.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 123 "token.l"


#line 1245 "token.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 >= 517 )
                              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] != 1998 );

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 125 "token.l"
{ return(ADD); }
      YY_BREAK
case 2:
YY_RULE_SETUP
#line 126 "token.l"
{ return(DELETE); }
      YY_BREAK
case 3:
YY_RULE_SETUP
#line 127 "token.l"
{ return(DELETEALL); }
      YY_BREAK
case 4:
YY_RULE_SETUP
#line 128 "token.l"
{ return(GET); }
      YY_BREAK
case 5:
YY_RULE_SETUP
#line 129 "token.l"
{ return(FLUSH); }
      YY_BREAK
case 6:
YY_RULE_SETUP
#line 130 "token.l"
{ return(DUMP); }
      YY_BREAK
case 7:
YY_RULE_SETUP
#line 131 "token.l"
{ return(EXIT); }
      YY_BREAK
case 8:
YY_RULE_SETUP
#line 132 "token.l"
{ return(EXIT); }
      YY_BREAK
case 9:
YY_RULE_SETUP
#line 133 "token.l"
{ return(EXIT); }
      YY_BREAK
/* for management SPD */
case 10:
YY_RULE_SETUP
#line 136 "token.l"
{ return(SPDADD); }
      YY_BREAK
case 11:
YY_RULE_SETUP
#line 137 "token.l"
{ return(SPDDELETE); }
      YY_BREAK
case 12:
YY_RULE_SETUP
#line 138 "token.l"
{ return(SPDDUMP); }
      YY_BREAK
case 13:
YY_RULE_SETUP
#line 139 "token.l"
{ return(SPDFLUSH); }
      YY_BREAK
case 14:
YY_RULE_SETUP
#line 140 "token.l"
{ return(TAGGED); }
      YY_BREAK
case 15:
YY_RULE_SETUP
#line 141 "token.l"
{ BEGIN S_PL; return(F_POLICY); }
      YY_BREAK
case 16:
YY_RULE_SETUP
#line 142 "token.l"
{
                  yymore();

                  /* count up for nl */
                      {
                        char *p;
                        for (p = yytext; *p != '\0'; p++)
                              if (*p == '\n')
                                    lineno++;
                      }

                  yylval.val.len = strlen(yytext);
                  yylval.val.buf = strdup(yytext);
                  if (!yylval.val.buf)
                        yyfatal("insufficient memory");

                  return(PL_REQUESTS);
            }
      YY_BREAK
case 17:
YY_RULE_SETUP
#line 160 "token.l"
{ BEGIN INITIAL; return(EOT); }
      YY_BREAK
/* address resolution flags */
case 18:
YY_RULE_SETUP
#line 163 "token.l"
{
                  yylval.val.len = strlen(yytext);
                  yylval.val.buf = strdup(yytext);
                  if (!yylval.val.buf)
                        yyfatal("insufficient memory");
                  return(F_AIFLAGS);
            }
      YY_BREAK
/* security protocols */
case 19:
YY_RULE_SETUP
#line 172 "token.l"
{ yylval.num = 0; return(PR_AH); }
      YY_BREAK
case 20:
YY_RULE_SETUP
#line 173 "token.l"
{ yylval.num = 0; return(PR_ESP); }
      YY_BREAK
case 21:
YY_RULE_SETUP
#line 174 "token.l"
{ yylval.num = 1; return(PR_AH); }
      YY_BREAK
case 22:
YY_RULE_SETUP
#line 175 "token.l"
{ yylval.num = 1; return(PR_ESP); }
      YY_BREAK
case 23:
YY_RULE_SETUP
#line 176 "token.l"
{ yylval.num = 0; return(PR_ESPUDP); }
      YY_BREAK
case 24:
YY_RULE_SETUP
#line 177 "token.l"
{ yylval.num = 0; return(PR_IPCOMP); }
      YY_BREAK
/* authentication alogorithm */
case 25:
YY_RULE_SETUP
#line 180 "token.l"
{ BEGIN S_AUTHALG; return(F_AUTH); }
      YY_BREAK
case 26:
YY_RULE_SETUP
#line 181 "token.l"
{ yylval.num = SADB_AALG_MD5HMAC; BEGIN INITIAL; return(ALG_AUTH); }
      YY_BREAK
case 27:
YY_RULE_SETUP
#line 182 "token.l"
{ yylval.num = SADB_AALG_SHA1HMAC; BEGIN INITIAL; return(ALG_AUTH); }
      YY_BREAK
case 28:
YY_RULE_SETUP
#line 183 "token.l"
{ yylval.num = SADB_X_AALG_MD5; BEGIN INITIAL; return(ALG_AUTH); }
      YY_BREAK
case 29:
YY_RULE_SETUP
#line 184 "token.l"
{ yylval.num = SADB_X_AALG_SHA; BEGIN INITIAL; return(ALG_AUTH); }
      YY_BREAK
case 30:
YY_RULE_SETUP
#line 185 "token.l"
{ yylval.num = SADB_X_AALG_SHA2_256; BEGIN INITIAL; return(ALG_AUTH); }
      YY_BREAK
case 31:
YY_RULE_SETUP
#line 186 "token.l"
{ yylval.num = SADB_X_AALG_SHA2_384; BEGIN INITIAL; return(ALG_AUTH); }
      YY_BREAK
case 32:
YY_RULE_SETUP
#line 187 "token.l"
{ yylval.num = SADB_X_AALG_SHA2_512; BEGIN INITIAL; return(ALG_AUTH); }
      YY_BREAK
case 33:
YY_RULE_SETUP
#line 188 "token.l"
{ yylval.num = SADB_X_AALG_RIPEMD160HMAC; BEGIN INITIAL; return(ALG_AUTH); }
      YY_BREAK
case 34:
YY_RULE_SETUP
#line 189 "token.l"
{ yylval.num = SADB_X_AALG_AES_XCBC_MAC; BEGIN INITIAL; return(ALG_AUTH); }
      YY_BREAK
case 35:
YY_RULE_SETUP
#line 190 "token.l"
{ yylval.num = SADB_X_AALG_NULL; BEGIN INITIAL; return(ALG_AUTH_NOKEY); }
      YY_BREAK
/* encryption alogorithm */
case 36:
YY_RULE_SETUP
#line 193 "token.l"
{ BEGIN S_ENCALG; return(F_ENC); }
      YY_BREAK
case 37:
YY_RULE_SETUP
#line 194 "token.l"
{ yylval.num = SADB_EALG_DESCBC; BEGIN INITIAL; return(ALG_ENC); }
      YY_BREAK
case 38:
YY_RULE_SETUP
#line 195 "token.l"
{ yylval.num = SADB_EALG_3DESCBC; BEGIN INITIAL; return(ALG_ENC); }
      YY_BREAK
case 39:
YY_RULE_SETUP
#line 196 "token.l"
{ yylval.num = SADB_EALG_NULL; BEGIN INITIAL; return(ALG_ENC_NOKEY); }
      YY_BREAK
case 40:
YY_RULE_SETUP
#line 197 "token.l"
{ yylval.num = SADB_EALG_NULL; BEGIN INITIAL; return(ALG_ENC_OLD); }
      YY_BREAK
case 41:
YY_RULE_SETUP
#line 198 "token.l"
{ yylval.num = SADB_X_EALG_BLOWFISHCBC; BEGIN INITIAL; return(ALG_ENC); }
      YY_BREAK
case 42:
YY_RULE_SETUP
#line 199 "token.l"
{ yylval.num = SADB_X_EALG_CAST128CBC; BEGIN INITIAL; return(ALG_ENC); }
      YY_BREAK
case 43:
YY_RULE_SETUP
#line 200 "token.l"
{ yylval.num = SADB_EALG_DESCBC; BEGIN INITIAL; return(ALG_ENC_DESDERIV); }
      YY_BREAK
case 44:
YY_RULE_SETUP
#line 201 "token.l"
{ yylval.num = SADB_EALG_DESCBC; BEGIN INITIAL; return(ALG_ENC_DES32IV); }
      YY_BREAK
case 45:
YY_RULE_SETUP
#line 202 "token.l"
{ yylval.num = SADB_X_EALG_TWOFISHCBC; BEGIN INITIAL; return(ALG_ENC); }
      YY_BREAK
case 46:
YY_RULE_SETUP
#line 203 "token.l"
{ 
#ifdef SADB_X_EALG_AESCBC
      yylval.num = SADB_X_EALG_AESCBC; BEGIN INITIAL; return(ALG_ENC); 
#endif
}
      YY_BREAK
case 47:
YY_RULE_SETUP
#line 208 "token.l"
{ 
#ifdef SADB_X_EALG_AESCBC
      yylval.num = SADB_X_EALG_AESCBC; BEGIN INITIAL; return(ALG_ENC); 
#endif
}
      YY_BREAK
case 48:
YY_RULE_SETUP
#line 213 "token.l"
{ yylval.num = SADB_X_EALG_AESCTR; BEGIN INITIAL; return(ALG_ENC); }
      YY_BREAK
/* compression algorithms */
case 49:
YY_RULE_SETUP
#line 216 "token.l"
{ return(F_COMP); }
      YY_BREAK
case 50:
YY_RULE_SETUP
#line 217 "token.l"
{ yylval.num = SADB_X_CALG_OUI; return(ALG_COMP); }
      YY_BREAK
case 51:
YY_RULE_SETUP
#line 218 "token.l"
{ yylval.num = SADB_X_CALG_DEFLATE; return(ALG_COMP); }
      YY_BREAK
case 52:
YY_RULE_SETUP
#line 219 "token.l"
{ yylval.num = SADB_X_CALG_LZS; return(ALG_COMP); }
      YY_BREAK
case 53:
YY_RULE_SETUP
#line 220 "token.l"
{ return(F_RAWCPI); }
      YY_BREAK
/* extension */
case 54:
YY_RULE_SETUP
#line 223 "token.l"
{ return(F_MODE); }
      YY_BREAK
case 55:
YY_RULE_SETUP
#line 224 "token.l"
{ yylval.num = IPSEC_MODE_TRANSPORT; return(MODE); }
      YY_BREAK
case 56:
YY_RULE_SETUP
#line 225 "token.l"
{ yylval.num = IPSEC_MODE_TUNNEL; return(MODE); }
      YY_BREAK
case 57:
YY_RULE_SETUP
#line 226 "token.l"
{ return(F_REQID); }
      YY_BREAK
case 58:
YY_RULE_SETUP
#line 227 "token.l"
{ return(F_EXT); }
      YY_BREAK
case 59:
YY_RULE_SETUP
#line 228 "token.l"
{ yylval.num = SADB_X_EXT_PRAND; return(EXTENSION); }
      YY_BREAK
case 60:
YY_RULE_SETUP
#line 229 "token.l"
{ yylval.num = SADB_X_EXT_PSEQ; return(EXTENSION); }
      YY_BREAK
case 61:
YY_RULE_SETUP
#line 230 "token.l"
{ yylval.num = SADB_X_EXT_PZERO; return(EXTENSION); }
      YY_BREAK
case 62:
YY_RULE_SETUP
#line 231 "token.l"
{ return(NOCYCLICSEQ); }
      YY_BREAK
case 63:
YY_RULE_SETUP
#line 232 "token.l"
{ return(F_REPLAY); }
      YY_BREAK
case 64:
YY_RULE_SETUP
#line 233 "token.l"
{ return(F_LIFETIME_HARD); }
      YY_BREAK
case 65:
YY_RULE_SETUP
#line 234 "token.l"
{ return(F_LIFETIME_SOFT); }
      YY_BREAK
case 66:
YY_RULE_SETUP
#line 235 "token.l"
{ return(F_LIFEBYTE_HARD); }
      YY_BREAK
case 67:
YY_RULE_SETUP
#line 236 "token.l"
{ return(F_LIFEBYTE_SOFT); }
      YY_BREAK
/* ... */
case 68:
YY_RULE_SETUP
#line 239 "token.l"
{ return(ANY); }
      YY_BREAK
case 69:
YY_RULE_SETUP
#line 240 "token.l"
{ }
      YY_BREAK
case 70:
YY_RULE_SETUP
#line 241 "token.l"
{ lineno++; }
      YY_BREAK
case 71:
YY_RULE_SETUP
#line 242 "token.l"

      YY_BREAK
case 72:
YY_RULE_SETUP
#line 243 "token.l"
{ return(EOT); }
      YY_BREAK
/* for address parameters: /prefix, [port] */
case 73:
YY_RULE_SETUP
#line 246 "token.l"
{ return SLASH; }
      YY_BREAK
case 74:
YY_RULE_SETUP
#line 247 "token.l"
{ return BLCL; }
      YY_BREAK
case 75:
YY_RULE_SETUP
#line 248 "token.l"
{ return ELCL; }
      YY_BREAK
/* parameter */
case 76:
YY_RULE_SETUP
#line 251 "token.l"
{
                  char *bp;

                  yylval.ulnum = strtoul(yytext, &bp, 10);
                  return(DECSTRING);
            }
      YY_BREAK
case 77:
YY_RULE_SETUP
#line 258 "token.l"
{
                  yylval.val.buf = strdup(yytext + 2);
                  if (!yylval.val.buf)
                        yyfatal("insufficient memory");
                  yylval.val.len = strlen(yylval.val.buf);

                  return(HEXSTRING);
            }
      YY_BREAK
case 78:
YY_RULE_SETUP
#line 267 "token.l"
{
                  char *p = yytext;
                  while (*++p != '"') ;
                  *p = '\0';
                  yytext++;
                  yylval.val.len = yyleng - 2;
                  yylval.val.buf = strdup(yytext);
                  if (!yylval.val.buf)
                        yyfatal("insufficient memory");

                  return(QUOTEDSTRING);
            }
      YY_BREAK
case 79:
YY_RULE_SETUP
#line 280 "token.l"
{
                  yylval.val.len = yyleng;
                  yylval.val.buf = strdup(yytext);
                  if (!yylval.val.buf)
                        yyfatal("insufficient memory");
                  return(STRING);
            }
      YY_BREAK
case 80:
YY_RULE_SETUP
#line 288 "token.l"
{
                  yylval.val.len = yyleng;
                  yylval.val.buf = strdup(yytext);
                  if (!yylval.val.buf)
                        yyfatal("insufficient memory");
                  return(STRING);
            }
      YY_BREAK
case 81:
YY_RULE_SETUP
#line 296 "token.l"
{
                  yyfatal("Syntax error");
                  /*NOTREACHED*/
            }
      YY_BREAK
case 82:
YY_RULE_SETUP
#line 301 "token.l"
ECHO;
      YY_BREAK
#line 1823 "token.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(S_PL):
case YY_STATE_EOF(S_AUTHALG):
case YY_STATE_EOF(S_ENCALG):
      yyterminate();

      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 >= 517 )
                        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 >= 517 )
                  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 == 516);

      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 301 "token.l"


void
yyfatal(s)
      const char *s;
{
      yyerror(s);
      exit(1);
}

void
yyerror(s)
      const char *s;
{
      printf("line %d: %s at [%s]\n", lineno, s, yytext);
}

int
parse(fp)
      FILE **fp;
{
      yyin = *fp;

      parse_init();

      if (yyparse()) {
            printf("parse failed, line %d.\n", lineno);
            return(-1);
      }

      return(0);
}

int
parse_string (char *src)
{
      int             result;
      YY_BUFFER_STATE buf_state;

      buf_state = yy_scan_string(src);
      result = yyparse();
      yy_delete_buffer(buf_state);
      return result;
}


Generated by  Doxygen 1.6.0   Back to index