toke.c   [plain text]


/*	$OpenBSD: flex.skl,v 1.10 2007/01/26 14:38:19 tsi Exp $	*/

/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /home/cvs/courtesan/sudo/toke.c,v 1.27 2008/11/24 00:42:20 millert Exp $
 */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#include <stdio.h>
#include <errno.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 */

#ifdef __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

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

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

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


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

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

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

/* Enter a start condition.  This macro really ought to take a parameter,
 * but we do it the disgusting crufty way forced on us by the ()-less
 * definition of BEGIN.
 */
#define BEGIN yy_start = 1 + 2 *

/* Translate the current start state into a value that can be later handed
 * to BEGIN to return to the state.  The YYSTATE alias is for lex
 * compatibility.
 */
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START

/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)

/* Special action meaning "start processing a new file". */
#define YY_NEW_FILE yyrestart( yyin )

#define YY_END_OF_BUFFER_CHAR 0

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

typedef struct yy_buffer_state *YY_BUFFER_STATE;

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

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

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

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

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

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

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


struct yy_buffer_state
	{
	FILE *yy_input_file;

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

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

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

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

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

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

	/* Whether to try to fill the input buffer when we reach the
	 * end of it.
	 */
	int yy_fill_buffer;

	int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
	/* When an EOF's been seen but there's still some text to process
	 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
	 * shouldn't try reading from the input source any more.  We might
	 * still have a bunch of tokens to match, though, because of
	 * possible backing-up.
	 *
	 * When we actually see the EOF, we change the status to "new"
	 * (via yyrestart()), so that the user can continue scanning by
	 * just pointing yyin at a new input file.
	 */
#define YY_BUFFER_EOF_PENDING 2
	};

static YY_BUFFER_STATE yy_current_buffer = 0;

/* We provide macros for accessing buffer states in case in the
 * future we want to put the buffer states in a more general
 * "scanner state".
 */
#define YY_CURRENT_BUFFER yy_current_buffer


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

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


int yyleng;

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

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

void yyrestart YY_PROTO(( FILE *input_file ));

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

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

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

#define yy_new_buffer yy_create_buffer

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

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

#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)


#define yywrap() 1
#define YY_SKIP_YYWRAP
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; \
	yyleng = (int) (yy_cp - yy_bp); \
	yy_hold_char = *yy_cp; \
	*yy_cp = '\0'; \
	yy_c_buf_p = yy_cp;

#define YY_NUM_RULES 48
#define YY_END_OF_BUFFER 49
static yyconst short int yy_accept[534] =
    {   0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,   49,   36,   44,   43,   42,   47,   36,   37,
       38,   36,   39,   36,   36,   36,   36,   41,   40,   47,
       32,   32,   32,   32,   32,   32,   47,   36,   36,   44,
       47,   32,   32,   32,   32,   32,    1,   47,   36,   36,
       16,   15,   16,   15,   15,   47,   47,   47,    2,    8,
        7,    8,    3,    8,    4,   47,   12,   12,   12,   10,
       11,   36,    0,   44,   42,    0,   46,    0,   36,   27,
        0,   26,    0,   35,   35,    0,   36,   36,    0,   36,
       36,   36,   36,    0,   30,   32,   32,   32,   32,   32,

       32,   36,   45,   36,   44,    0,    0,    0,    0,    0,
        0,   36,   36,   36,   36,   36,    1,   33,   33,    0,
       36,   16,   16,   14,   13,   14,    0,    2,    8,    0,
        5,    6,    8,    8,   12,    0,   12,   12,    0,    9,
        0,    0,   36,   36,   36,   36,   36,    0,    0,   30,
       30,   32,   32,   32,   32,   32,   32,   32,   36,    0,
        0,    0,    0,    0,    0,   36,   36,   36,   36,   36,
        0,   36,    9,   36,   36,   36,   36,   36,   36,    0,
       31,   31,   31,    0,    0,   30,   30,   30,   30,   30,
       30,   30,   32,   32,   32,   32,   32,   32,   32,   36,

        0,    0,    0,    0,    0,    0,   36,   36,   36,   36,
       36,   36,   36,    0,    0,   31,   31,   31,    0,   30,
       30,    0,   30,   30,   30,   30,   30,   30,   30,   30,
       30,   30,   30,    0,   23,   32,   32,   32,   32,   32,
       36,    0,    0,    0,    0,   36,   36,   36,   36,   36,
       36,   36,   36,    0,   31,    0,   30,   30,   30,    0,
        0,    0,   30,   30,   30,   30,   30,   30,   30,   30,
       30,   30,   30,   30,   30,   32,   32,   32,   32,   32,
       36,    0,    0,    0,   36,   36,   36,   28,   28,   28,
        0,    0,   30,   30,   30,   30,   30,   30,   30,    0,

        0,    0,    0,    0,   30,   30,   30,   30,   30,   30,
       30,   30,   30,   30,   30,   30,   30,   30,    0,   22,
       32,   32,    0,   21,    0,   24,   36,    0,    0,    0,
       36,   36,   36,   36,   28,   28,   28,   28,    0,   30,
        0,   30,   30,   30,   30,   30,   30,   30,   30,   30,
       30,   30,    0,    0,    0,   30,   30,   30,   30,   30,
       30,   30,   30,   30,   30,   30,   30,   30,   32,   32,
       34,    0,    0,    0,   36,   18,   33,   36,   29,   29,
       29,   30,    0,    0,    0,   30,   30,   30,   30,   30,
       30,   30,   30,   30,   30,   30,   30,   30,    0,    0,

        0,    0,    0,   30,   30,   30,   30,   30,   30,   30,
       30,    0,   20,    0,   25,    0,   18,    0,   36,    0,
       36,   36,   36,   29,   29,   29,   29,   29,    0,    0,
        0,    0,    0,   30,   30,   30,   30,   30,   30,   30,
       30,   30,   30,   30,   30,   30,   30,   30,   30,   30,
       30,   30,   30,    0,    0,   19,   18,    0,   18,    0,
       36,   36,   36,   29,   29,    0,    0,    0,   30,   30,
       30,   30,   30,   30,   30,   30,   30,   30,   30,   30,
       30,   30,   30,   30,   30,   30,   19,    0,   17,   36,
       36,   36,   36,   36,    0,    0,    0,    0,    0,   30,

       30,   30,   30,   30,   30,   30,   30,   36,   36,   36,
       30,   30,   30,   30,   30,   30,   36,   36,   36,   36,
       36,   30,   30,   30,   30,   30,   28,   28,   28,   28,
       28,   28,    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,    4,    5,    6,    1,    7,    1,    1,    8,
        9,   10,   11,   12,   13,   14,   15,   16,   17,   18,
       19,   20,   21,   22,   22,   22,   23,   24,    1,    1,
       25,   26,   10,   27,   28,   29,   30,   31,   32,   29,
       33,   34,   33,   33,   33,   33,   33,   35,   36,   37,
       33,   38,   39,   40,   41,   42,   43,   44,   33,   33,
       10,   45,   10,    1,   46,    1,   47,   48,   49,   50,

       51,   52,   53,   53,   54,   53,   53,   55,   56,   57,
       58,   53,   53,   59,   60,   61,   62,   53,   53,   53,
       53,   53,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    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[63] =
    {   0,
        1,    2,    3,    4,    5,    6,    1,    4,    4,    1,
        1,    2,    1,    7,    8,    9,    9,    9,    9,    9,
        9,    9,    9,   10,    6,    4,    1,    9,    9,    9,
        9,    9,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,   11,   12,   13,   13,   13,   13,
       13,   13,   12,   12,   12,   12,   12,   12,   12,   12,
       12,   12
    } ;

static yyconst short int yy_base[594] =
    {   0,
        0,   61,   62,   63,   69,   84,  128,  189,  250,  294,
       80,  101, 2227, 2181, 2223, 3353, 2220,  337, 2164, 3353,
     3353, 2154, 3353,  107,  347,  119,  137, 2172, 3353, 3353,
      399, 2143,  446, 2141, 2139, 2098,  497,  145,   35,  167,
      521, 2073, 2042, 2034, 2019, 2010, 2065,  193,  256,   55,
        0, 3353, 2062,    0, 3353,  264,  573,  110,    0, 2020,
     3353,   73, 3353,   76, 3353,  117, 2016,  105,  106, 3353,
      142, 2014,  306, 2056, 2053, 2051, 3353,  201,  209, 1993,
      506, 1990,  543,  276, 1989,  554,  306,  581, 2002, 2002,
      325,  364,  317, 1982,   55,  618,    0, 1971,  240, 1963,

     1961,  125, 3353,   98,  523, 1936, 1923, 1913, 1908, 1909,
      146,  115,  219,   29,  212,  149, 1966,  481, 1922,  649,
      154,    0, 1954,  256, 3353, 3353,  284,    0, 1897,  674,
     3353, 3353, 1875,  484, 1848, 1885,  271,  307,  288, 1860,
     1858,  676,  688,  720,  752,  784, 1846, 1835,  821,  268,
      859,  896, 1820, 1799, 1814, 1809, 1786, 1792,  236, 1765,
     1754, 1745, 1726, 1698,  300,  157, 1701,  259,   79,  329,
      691,  344, 1711,  598,  348,  935,  967,  703,  366, 1688,
     1687,  733,  455, 1686, 1670,  464,  709,  999,  760,  606,
     1037,  770, 1669,  401, 1643, 1635, 1632, 1613, 1620,  356,

     1604, 1578, 1563, 1575, 1547,  369,  435,  503,  233,  466,
     1076, 1108, 1140, 1581, 1580,  801, 1565, 1563, 1562, 1545,
      467,  838,  557,  876,  559, 1172,    0,  915, 1183,  943,
      742, 1221,  953,  511, 3353, 1538, 1515, 1521, 1521, 1509,
      483, 1477, 1460, 1461,  543,  363,   21,  532,  979,  505,
     1260, 1292,  989, 1496, 1479, 1468, 1467, 1322,  468, 1019,
     1056, 1086,  630,  648,  670, 1094,  926, 1361,    0, 1118,
     1372, 1127,  846, 1410, 1150,  582, 1447, 1438,  583,  640,
      636, 1409, 1381,  641,  632,  459,  638, 1448, 1479, 1510,
     1411, 1393, 1381, 1158, 1542, 1200,  884, 1579, 1240, 1268,

     1385, 1278, 1302, 1312,  674,  720, 1067, 1251, 1339, 1383,
     1618,    0, 1394, 1629, 1427, 1208, 1667, 1458,  694, 3353,
     1318, 1306,  743, 3353,  806, 3353,  749, 1292, 1274,  605,
      923,  751,  876, 1466,  784, 1705, 1736, 1489, 1280, 1243,
     1496,  771, 1519,  968, 1768,    0,  565, 1779, 1527, 1347,
     1816, 1561, 1598, 1648, 1686, 1047, 1231, 1677, 1715, 1715,
     1746, 1855,    0, 1748, 1866, 1724, 1435, 1757,  824,  918,
     1219, 1194, 1187,  657,  667, 1895, 1165, 1927, 1959, 1991,
     2023, 1160, 1798, 1835, 1886, 1158,  980, 1127, 1907, 1141,
     2055,    0,  724, 2066, 1915, 1935, 2103, 1943, 1967, 1069,

     1977, 2001, 2011, 1278, 1312, 1877,  813,  832, 2142,    0,
      862, 1099, 3353, 1116, 3353, 1033, 2029,  976,  878, 1019,
     1000, 2083, 1018, 2152, 2184, 2216, 2248, 2046, 2120,  997,
     2162, 2172, 2194,  969,  898, 1293, 1392, 2200, 1543, 2280,
        0, 1003, 2291, 2224, 2031, 2328, 2234, 2257, 2266, 2309,
     1561,  871, 1029,  749,  761,  668,  650, 2359,  626, 2384,
     2397, 2429, 2461, 2381, 1894, 2411, 2439, 2449,  628,  546,
     1599, 1649, 2469, 1780, 2493,    0, 1097, 2504, 2477, 2091,
     2523,  544, 2542, 2551, 2420,  521, 3353,  513, 3353, 2559,
     1138, 2591, 2623, 2570, 2576,  488, 2602, 2612, 2633,  460,

      381, 1799,  359,  303, 2641,    0, 1186, 2655, 2687, 2719,
     2663, 2671, 2695,  289,    0,  182, 2703, 1289, 2751, 2783,
     2733, 3353, 2739, 2763, 2128, 3353, 2771, 2791, 2801,  126,
     2821, 2813, 3353, 2866, 2879, 2892, 2905, 2918, 2931, 2944,
     2957, 2970, 2975, 2988, 3001, 3003, 3016, 3029, 3042, 3055,
     3068, 3073, 3079, 3092, 3097, 3103, 3108, 3113, 3118, 3124,
     3129, 3134, 3139, 3145, 3152, 3157, 3162, 3167, 3173, 3180,
     3185, 3190, 3196, 3203, 3208, 3215, 3221, 3228, 3233, 3240,
     3246, 3253, 3266, 3279, 3284, 3291, 3297, 3310, 3315, 3322,
     3327, 3334, 3339

    } ;

static yyconst short int yy_def[594] =
    {   0,
      533,    1,    1,    1,  534,  534,  535,  535,  536,  536,
      537,  537,  533,  538,  533,  533,  533,  539,  540,  533,
      533,  541,  533,  542,  538,   25,   25,  543,  533,  533,
      533,   31,   31,   33,   33,   33,  538,   25,  538,  533,
      539,   31,   31,   33,   33,   33,  533,  533,  544,  538,
      545,  533,  545,  545,  533,  533,  539,  533,  546,  547,
      533,  547,  533,  547,  533,  548,  549,  549,  549,  533,
      533,  538,  538,  533,  533,  550,  533,  533,  533,  540,
      540,  541,  541,  542,  551,  538,  538,   25,  543,   88,
       88,   88,   88,  552,  553,   31,   33,   33,   33,   33,

       33,  538,  533,  538,  533,  533,  533,  533,  533,  533,
      550,  538,   88,  538,  538,  538,  533,  544,  554,  538,
      538,  545,  545,  533,  533,  533,  533,  546,  547,  547,
      533,  533,  547,  547,  549,  533,  549,  549,  533,  533,
      550,  533,  538,  538,  538,   88,  146,  555,  533,  556,
      533,   31,   33,   33,   33,   33,   33,   33,  538,  533,
      533,  533,  533,  533,  550,  538,  146,  538,  538,  538,
      533,  538,  533,  538,  538,  538,  538,  538,  538,  557,
      558,  558,  182,  559,  558,  560,  151,  533,  188,  188,
      533,  188,   33,   33,   33,   33,   33,   33,   33,  538,

      533,  533,  533,  533,  533,  550,  538,  538,  538,  538,
      538,  538,  538,  533,  561,  561,  216,  561,  562,  563,
      564,  533,  565,  191,  565,  565,  226,  565,  533,  229,
      229,  533,  229,  533,  533,   33,   33,   33,   33,   33,
      538,  533,  533,  533,  550,  538,  538,  538,  538,  538,
      538,  538,  538,  566,  566,  567,  568,  533,  533,  533,
      533,  533,  569,  569,  570,  232,  570,  570,  268,  570,
      533,  271,  271,  533,  271,   33,   33,   33,   33,   33,
      538,  533,  533,  550,  538,  538,  538,  538,  538,  538,
      533,  571,  572,  258,  533,  295,  295,  533,  295,  533,

      533,  533,  533,  533,  533,  573,  573,  574,  274,  574,
      574,  311,  574,  533,  314,  314,  533,  314,  533,  533,
       33,   33,  533,  533,  533,  533,  538,  533,  533,  550,
      538,  538,  538,  538,  538,  538,  538,  538,  533,  575,
      533,  576,  298,  576,  576,  345,  345,  533,  348,  348,
      533,  348,  533,  533,  533,  533,  577,  577,  578,  317,
      578,  578,  362,  578,  533,  365,  365,  365,   33,   33,
      538,  533,  533,  550,  538,  538,  538,  538,  538,  538,
      538,  533,  533,  533,  533,  579,  579,  580,  351,  580,
      580,  391,  391,  533,  394,  394,  533,  394,  533,  533,

      533,  533,  533,  533,  581,  581,  582,  582,  582,  409,
      409,  533,  533,  533,  533,  533,  533,  550,  538,  583,
      584,  538,  538,  538,  538,  538,  538,  538,  533,  533,
      533,  533,  533,  533,  585,  585,  586,  397,  586,  586,
      440,  440,  533,  443,  443,  533,  443,  533,  533,  533,
      533,  587,  587,  533,  588,  538,  583,  583,  584,  584,
      538,  538,  538,  538,  538,  533,  533,  533,  533,  589,
      589,  590,  446,  590,  590,  475,  475,  533,  478,  478,
      478,  533,  533,  533,  533,  533,  533,  588,  533,  538,
      538,  538,  538,  538,  533,  533,  533,  533,  533,  533,

      591,  591,  592,  592,  592,  505,  505,  538,  538,  538,
      533,  533,  533,  533,  593,  593,  538,  538,  538,  538,
      538,  533,  533,  533,  533,  533,  538,  538,  538,  538,
      538,  538,    0,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533

    } ;

static yyconst short int yy_nxt[3416] =
    {   0,
       14,   15,   16,   17,   14,   18,   19,   20,   21,   14,
       22,   23,   14,   14,   24,   25,   26,   27,   25,   25,
       25,   25,   25,   28,   29,   30,   14,   31,   31,   31,
       31,   32,   33,   33,   34,   33,   35,   33,   36,   33,
       33,   33,   33,   33,   37,   14,   38,   38,   38,   38,
       38,   38,   14,   14,   14,   14,   14,   14,   14,   39,
       14,   14,   40,   47,   47,   73,   41,   48,   48,  149,
       15,   52,   53,   73,   54,  286,   49,   49,  151,   73,
       55,   68,   16,   69,   70,   15,   52,   53,  168,   54,
       42,   43,   55,   54,   44,   55,  104,  131,   45,   73,

      132,   46,   68,   16,   69,   70,  137,   55,   54,  138,
       85,  127,  103,   56,   85,   85,  121,  130,  134,  103,
      130,   50,   50,   73,   71,  209,  127,  103,   56,   15,
       16,   17,   85,   57,   91,   91,   91,   91,   91,   91,
       91,   91,   73,  139,  140,   71,  135,  159,   77,  136,
      136,   86,   92,   92,   92,   92,   92,   93,   72,   73,
       90,   90,   90,   90,   90,   90,   90,   90,  105,   73,
       73,  166,   58,   59,   59,   59,   59,   59,   59,   59,
       59,   59,   59,   59,   59,   59,   59,   59,   59,   59,
       15,   16,   17,   73,   57,  341,  106,  107,   73,  170,

      108,   73,  165,  172,  109,   78,  207,  110,   79,   79,
       79,   79,   79,   79,   79,   79,   79,   79,   79,   79,
       79,   79,   79,   79,   79,   79,   79,   79,   79,   79,
       79,   79,   72,   58,   59,   59,   59,   59,   59,   59,
       59,   59,   59,   59,   59,   59,   59,   59,   59,   59,
       59,   15,   16,   17,   61,   57,   73,  127,  103,  119,
       62,   63,   64,  119,  119,  124,  103,  125,  169,  126,
      167,  154,  137,  125,   65,  126,  155,   73,  156,   85,
       73,  119,  149,   85,   85,  127,  103,  126,  126,  139,
      140,  187,  207,  200,   66,   15,   16,   17,   61,   57,

      120,   85,   77,   73,   62,   63,   64,   72,  126,   72,
      138,   72,  473,   72,   72,  136,  533,   72,   65,  207,
       86,  143,  144,  145,  143,  143,  143,  143,  143,   72,
       72,   72,  147,  147,  147,  147,  147,  147,   66,   77,
      147,  147,  147,  147,  147,  147,  147,  147,  206,   78,
       73,  136,   79,   79,   79,   79,   79,   79,   79,   79,
       87,  174,   88,   88,   88,   88,   88,   88,   88,   88,
       89,   77,  341,   73,   90,   90,   90,   90,   90,  147,
      147,  147,  147,  147,  147,  147,  147,  207,   73,   89,
      285,   73,   73,   90,   90,   90,   90,   90,   90,   72,

       73,  210,  234,   72,  473,   72,  241,   73,   72,   72,
       73,   72,   72,   72,   96,   96,   96,   96,   96,   96,
       96,   96,   89,  245,  235,   72,   96,   96,   96,   96,
       96,   97,   97,   97,   97,   97,   97,   97,   97,   97,
       97,   97,   97,   73,   97,   90,   90,   90,   90,   90,
       90,   72,   72,   72,   72,   72,   72,   72,   72,   72,
       72,   97,   97,   97,   97,   97,   97,   97,   97,  533,
      218,  218,  218,   97,   97,   97,   97,   97,  149,   73,
      246,  149,  149,  438,  119,  127,  103,  187,  119,  119,
      187,  187,   72,   72,   72,   72,   72,   72,  102,  103,

       72,  495,   72,   73,   72,   72,  119,   80,   72,   80,
       73,   80,  234,   80,   80,  489,  248,   80,  249,  332,
       72,   72,   72,   77,  105,  120,   89,   73,  130,   80,
       80,   80,  281,   78,  235,  149,   79,   79,   79,   79,
       79,   79,   79,   79,   82,   77,   82,   73,   82,   73,
       82,   82,  106,  107,   82,   84,  108,   72,  149,   84,
      109,   72,   72,  110,  247,   84,   82,   82,   82,  438,
      222,  149,  533,  149,  111,   77,   73,   84,   84,   72,
      224,  287,  224,  319,  323,  533,  386,  386,  533,  533,
      533,  533,  533,  533,  533,  533,  146,  146,  146,  146,

      146,  146,  146,  146,  284,  320,  324,   77,  146,  146,
      146,  146,  146,  211,  212,  213,  211,  211,  211,  211,
      211,  227,  227,  227,  227,  227,  228,  146,  146,  146,
      146,  146,  146,  152,  152,  152,  152,  152,  152,  152,
      152,  325,   73,   77,  149,  152,  152,  152,  152,  152,
      118,  389,   72,  224,  118,  374,   72,   72,  418,   77,
      118,  222,  149,  326,  146,  146,  146,  146,  146,  146,
      460,  224,  118,  118,   72,  129,   73,   85,  129,  129,
       73,   85,   73,  222,  149,  129,  331,   85,  149,  327,
      330,  333,  119,  266,  458,  319,  119,  224,  129,   85,

       85,  174,  119,  175,  175,  175,  175,  175,  175,  175,
      175,   73,   73,  419,  119,  119,  174,  320,  175,  175,
      175,  175,  175,  175,  192,  192,  192,  192,  192,  192,
      192,  192,   73,  174,  149,  176,  176,  176,  176,  176,
      176,  176,  176,  266,  323,  435,  435,   73,  216,  216,
      217,  218,  218,  218,  218,  218,  184,  269,  269,  269,
      269,  269,  270,  489,   73,  174,  324,  177,  177,  177,
      177,  177,  178,  175,  175,  226,  226,  226,  226,  226,
      226,  226,  226,  533,  341,  225,  225,  225,  225,  225,
      225,  225,  225,   73,  343,   73,   73,   72,  334,  179,

      179,  179,  179,  179,  179,  179,  179,  325,  487,  371,
      376,  179,  179,  179,  179,  179,  255,  255,  255,  255,
      255,  255,  255,  255,  184,  412,  222,  149,   73,  326,
      179,  179,  179,  179,  179,  179,  181,  182,  183,  183,
      183,  183,  183,  183,  184,  533,  149,  413,  185,  185,
      185,  185,  185,  260,  261,  262,  260,  260,  260,  260,
      260,  312,  312,  312,  312,  312,  313,  185,  185,  185,
      185,  185,  185,  149,  188,  189,  190,  188,  188,  188,
      188,  188,  191,  452,  452,  149,  192,  192,  192,  192,
      192,  233,  233,  233,  233,  233,  233,  233,  233,  346,

      346,  346,  346,  346,  347,  192,  192,  192,  192,  192,
      192,  193,  193,  193,  193,  193,  193,  193,  193,  414,
       73,  389,   73,  193,  193,  193,  193,  193,  222,  149,
      264,  264,  264,  264,  264,  264,  377,  456,  224,  533,
      149,  415,  179,  179,  179,  179,  179,  179,  174,  266,
      175,  175,  175,  175,  175,  175,  175,  175,  268,  268,
      268,  268,  268,  268,  268,  268,  533,   73,  267,  267,
      267,  267,  267,  267,  267,  267,  375,  418,   77,   73,
      174,  533,  175,  175,  175,  175,  175,  175,  175,  175,
      455,  343,  343,  341,  288,  289,  290,  288,  288,  288,

      288,  288,  249,  343,  250,  250,  250,  250,  250,  250,
      429,   73,  222,  149,  223,  223,  223,  223,  223,  223,
      223,  223,  224,   73,  470,  470,  225,  225,  225,  225,
      225,  422,  300,   73,  301,  301,  301,  301,  301,  301,
      301,  301,  222,  149,  460,  225,  225,  225,  225,  225,
      225,  149,  229,  230,  231,  229,  229,  229,  229,  229,
      232,  149,   73,  458,  233,  233,  233,  233,  233,  300,
      266,  302,  302,  302,  302,  302,  302,  302,  302,  454,
      222,  149,  399,  233,  233,  233,  233,  233,  233,  249,
      266,  250,  250,  250,  250,  250,  250,  250,  250,  300,

      412,  303,  303,  303,  303,  303,  304,  301,  301,  275,
      275,  275,  275,  275,  275,  275,  275,  414,  501,  501,
       73,  249,  413,  251,  251,  251,  251,  251,  251,  251,
      251,  222,  149,  307,  307,  307,  307,  307,  307,  415,
      341,  266,  311,  311,  311,  311,  311,  311,  311,  311,
      389,  490,   73,  249,  533,  252,  252,  252,  252,  252,
      253,  250,  250,  533,  389,  310,  310,  310,  310,  310,
      310,  310,  310,  299,  299,  299,  299,  299,  299,  299,
      299,  343,   73,  294,   73,  222,  149,  264,  264,  264,
      264,  264,  264,  264,  264,  224,  222,  149,  265,  265,

      265,  265,  265,  265,  265,  265,  266,  515,  515,   73,
      267,  267,  267,  267,  267,  345,  345,  345,  345,  345,
      345,  345,  345,  363,  363,  363,  363,  363,  364,  267,
      267,  267,  267,  267,  267,  149,  271,  272,  273,  271,
      271,  271,  271,  271,  274,  149,  417,  416,  275,  275,
      275,  275,  275,  533,  309,  344,  344,  344,  344,  344,
      344,  344,  344,   73,  222,  149,  294,  275,  275,  275,
      275,  275,  275,  249,  309,  250,  250,  250,  250,  250,
      250,  250,  250,  353,  354,  355,  353,  353,  353,  353,
      353,  300,  149,  301,  301,  301,  301,  301,  301,  301,

      301,  309,  517,  220,   73,  249,  341,  250,  250,  250,
      250,  250,  250,  250,  250,  300,  389,  301,  301,  301,
      301,  301,  301,  301,  301,  300,  149,  301,  301,  301,
      301,  301,  301,   73,  373,  360,   73,  295,  296,  297,
      295,  295,  295,  295,  295,  298,  372,  370,  369,  299,
      299,  299,  299,  299,  318,  318,  318,  318,  318,  318,
      318,  318,  392,  392,  392,  392,  392,  393,  299,  299,
      299,  299,  299,  299,  222,  149,  307,  307,  307,  307,
      307,  307,  307,  307,  266,  222,  149,  308,  308,  308,
      308,  308,  308,  308,  308,  309,  533,  149,  300,  310,

      310,  310,  310,  310,  294,  341,  309,  222,  149,  358,
      358,  358,  358,  358,  358,  438,  220,  309,  310,  310,
      310,  310,  310,  310,  149,  314,  315,  316,  314,  314,
      314,  314,  314,  317,  184,  329,  328,  318,  318,  318,
      318,  318,  362,  362,  362,  362,  362,  362,  362,  362,
      410,  410,  410,  410,  410,  411,  318,  318,  318,  318,
      318,  318,  334,  335,  335,  335,  335,  335,  335,  335,
      335,  533,  322,  361,  361,  361,  361,  361,  361,  361,
      361,  378,  379,  380,  381,  378,  378,  378,  378,  321,
      294,  220,   73,  334,  336,  336,  336,  336,  336,  336,

      336,  336,  184,  334,  335,  335,  335,  335,  335,  335,
       73,  383,  384,  385,  383,  383,  383,  383,  383,  184,
      242,  283,  282,   73,  334,  337,  337,  337,  337,  337,
      338,  335,  335,   73,  352,  352,  352,  352,  352,  352,
      352,  352,  391,  391,  391,  391,  391,  391,  391,  391,
      280,  279,  278,  277,   73,  341,  533,  342,  342,  342,
      342,  342,  342,  342,  342,  343,  438,  276,  258,  344,
      344,  344,  344,  344,  533,  149,  390,  390,  390,  390,
      390,  390,  390,  390,  360,  220,  184,  254,  344,  344,
      344,  344,  344,  344,  348,  349,  350,  348,  348,  348,

      348,  348,  351,  184,   95,  242,  352,  352,  352,  352,
      352,  399,  341,  400,  400,  400,  400,  400,  400,  400,
      400,  244,  438,  242,  243,  352,  352,  352,  352,  352,
      352,  222,  149,  358,  358,  358,  358,  358,  358,  358,
      358,  309,  222,  149,  359,  359,  359,  359,  359,  359,
      359,  359,  360,  242,  240,  239,  361,  361,  361,  361,
      361,  399,  341,  401,  401,  401,  401,  401,  401,  401,
      401,  238,  473,  237,  236,  361,  361,  361,  361,  361,
      361,  149,  365,  366,  367,  365,  365,  365,  365,  365,
      222,  149,   89,  184,  368,  368,  368,  368,  368,  399,

      309,  402,  402,  402,  402,  402,  403,  400,  400,  220,
      184,   95,  173,  368,  368,  368,  368,  368,  368,  334,
      335,  335,  335,  335,  335,  335,  335,  335,  222,  149,
      368,  368,  368,  368,  368,  368,  368,  368,  360,  409,
      409,  409,  409,  409,  409,  409,  409,  208,  205,   73,
      334,  335,  335,  335,  335,  335,  335,  335,  335,  533,
      149,  222,  149,  406,  406,  406,  406,  406,  406,  360,
      533,  360,  408,  408,  408,  408,  408,  408,  408,  408,
       73,  341,  204,  387,  387,  387,  387,  387,  387,  387,
      387,  343,  341,  533,  388,  388,  388,  388,  388,  388,

      388,  388,  389,  473,  203,  202,  390,  390,  390,  390,
      390,  429,  341,  430,  430,  430,  430,  430,  430,  430,
      430,  201,  473,  199,  198,  390,  390,  390,  390,  390,
      390,  394,  395,  396,  394,  394,  394,  394,  394,  397,
      197,  196,  195,  398,  398,  398,  398,  398,  429,  194,
      431,  431,  431,  431,  431,  431,  431,  431,   95,   87,
       77,  173,  398,  398,  398,  398,  398,  398,  222,  149,
      406,  406,  406,  406,  406,  406,  406,  406,  360,  222,
      149,  407,  407,  407,  407,  407,  407,  407,  407,  135,
      222,  149,  136,  408,  408,  408,  408,  408,  420,  429,

      360,  432,  432,  432,  432,  432,  433,  430,  430,  465,
      465,  465,  408,  408,  408,  408,  408,  408,  420,  130,
      420,  421,  398,  398,  398,  398,  398,  398,  398,  398,
      440,  440,  440,  440,  440,  440,  440,  440,   73,   73,
      422,  130,  423,  423,  423,  423,  423,  423,  423,  423,
      441,  441,  441,  441,  441,  442,  533,  123,  439,  439,
      439,  439,  439,  439,  439,  439,  171,  117,  164,  163,
      162,   73,  422,  161,  424,  424,  424,  424,  424,  424,
      424,  424,  448,  449,  450,  448,  448,  448,  448,  448,
      399,  160,  400,  400,  400,  400,  400,  400,  400,  400,

      158,  157,  153,   73,  422,   95,  425,  425,  425,  425,
      425,  426,  427,  427,  399,   72,  400,  400,  400,  400,
      400,  400,  400,  400,  399,   95,  400,  400,  400,  400,
      400,  400,  420,  142,   83,   73,  422,   81,  428,  428,
      428,  423,  423,  423,  423,  423,  476,  476,  476,  476,
      476,  477,  420,   77,  420,  420,   75,   74,   73,  422,
      136,  465,  465,  465,  130,  123,  117,   73,  341,  116,
      436,  436,  436,  436,  436,  436,  436,  436,  389,  341,
      115,  437,  437,  437,  437,  437,  437,  437,  437,  438,
       73,  114,  113,  439,  439,  439,  439,  439,  461,  462,

      463,  461,  461,  461,  461,  461,  506,  506,  506,  506,
      506,  507,  439,  439,  439,  439,  439,  439,  443,  444,
      445,  443,  443,  443,  443,  443,  446,   73,  112,  101,
      447,  447,  447,  447,  447,  466,  467,  468,  466,  466,
      466,  466,  466,  522,  522,  522,  522,  522,  522,  447,
      447,  447,  447,  447,  447,  222,  149,  453,  453,  453,
      453,  453,  453,  453,  453,  422,  100,  427,  427,  427,
      427,  427,  427,  427,  427,  429,   99,  430,  430,  430,
      430,  430,  430,  430,  430,  429,   98,  430,  430,  430,
      430,  430,  430,  430,  430,   95,   73,  422,   83,  427,

      427,  427,  427,  427,  427,  427,  427,  429,   81,  430,
      430,  430,  430,  430,  430,  447,  447,  447,  447,  447,
      447,  447,  447,   75,   74,   73,  533,  533,   73,  422,
      533,  427,  427,  427,  427,  427,  427,  464,  464,  475,
      475,  475,  475,  475,  475,  475,  475,  533,  533,  474,
      474,  474,  474,  474,  474,  474,  474,  533,  533,  533,
       73,  422,  533,  464,  464,  464,  464,  464,  464,  464,
      464,  149,  482,  482,  482,  482,  482,  482,  482,  482,
      149,  483,  483,  483,  483,  483,  483,  483,  483,  533,
      533,  533,   73,  341,  533,  471,  471,  471,  471,  471,

      471,  471,  471,  438,  341,  533,  472,  472,  472,  472,
      472,  472,  472,  472,  473,  533,  533,  533,  474,  474,
      474,  474,  474,  149,  484,  484,  484,  484,  484,  485,
      482,  482,  533,  533,  533,  533,  533,  474,  474,  474,
      474,  474,  474,  478,  479,  480,  478,  478,  478,  478,
      478,  533,  533,  533,  533,  481,  481,  481,  481,  481,
      457,  533,  457,  533,  457,  533,  457,  457,  533,  533,
      457,  533,  533,  533,  481,  481,  481,  481,  481,  481,
      533,  533,  457,  457,  457,  459,  533,  459,  533,  459,
      533,  459,  459,  533,  533,  459,  464,  464,  464,  464,

      464,  464,  464,  464,  533,  533,  533,  459,  459,  459,
      490,  533,  491,  491,  491,  491,  491,  491,  491,  491,
      533,  533,  533,  533,  495,   73,  496,  496,  496,  496,
      496,  496,  496,  496,  149,  482,  482,  482,  482,  482,
      482,   73,  490,  533,  492,  492,  492,  492,  492,  492,
      492,  492,  495,  533,  497,  497,  497,  497,  497,  497,
      497,  497,  495,  533,  498,  498,  498,  498,  498,  499,
      496,  496,  533,   73,  490,  533,  493,  493,  493,  493,
      493,  494,  491,  491,  481,  481,  481,  481,  481,  481,
      481,  481,  505,  505,  505,  505,  505,  505,  505,  505,

      533,  533,  533,  533,  533,   73,  341,  533,  502,  502,
      502,  502,  502,  502,  502,  502,  473,  341,  533,  503,
      503,  503,  503,  503,  503,  503,  503,  533,  533,  533,
      533,  504,  504,  504,  504,  504,  533,  533,  504,  504,
      504,  504,  504,  504,  504,  504,  533,  533,  533,  533,
      504,  504,  504,  504,  504,  504,  149,  482,  482,  482,
      482,  482,  482,  482,  482,  149,  482,  482,  482,  482,
      482,  482,  482,  482,  508,  509,  510,  508,  508,  508,
      508,  508,  533,  490,  533,  491,  491,  491,  491,  491,
      491,  511,  512,  513,  511,  511,  511,  511,  511,  533,

      533,  533,  533,   73,  490,  533,  491,  491,  491,  491,
      491,  491,  491,  491,   73,  495,  533,  496,  496,  496,
      496,  496,  496,  496,  496,  495,  533,  496,  496,  496,
      496,  496,  496,  496,  496,   73,  490,  533,  491,  491,
      491,  491,  491,  491,  491,  491,  495,  533,  496,  496,
      496,  496,  496,  496,  341,  533,  516,  516,  516,  516,
      516,  516,  516,  516,  533,  533,  533,   73,  517,  533,
      518,  518,  518,  518,  518,  518,  518,  518,  522,  522,
      522,  522,  522,  522,  522,  522,  523,  523,  523,  523,
      523,  523,  523,  523,  533,  533,  533,  533,  533,   73,

      517,  533,  519,  519,  519,  519,  519,  519,  519,  519,
      524,  524,  524,  524,  524,  525,  522,  522,  527,  528,
      529,  527,  527,  527,  527,  527,  533,  533,  533,  533,
      533,   73,  517,  533,  520,  520,  520,  520,  520,  521,
      518,  518,  533,  533,  533,  533,  517,   73,  518,  518,
      518,  518,  518,  518,  522,  522,  522,  522,  522,  522,
      522,  522,  533,   73,  517,  533,  518,  518,  518,  518,
      518,  518,  518,  518,  533,  533,  533,   73,  522,  522,
      522,  522,  522,  522,  522,  522,  530,  530,  530,  530,
      530,  530,  530,  530,  533,   73,  517,  533,  518,  518,

      518,  518,  518,  518,  518,  518,  527,  527,  527,  527,
      527,  527,  527,  527,  533,   73,  531,  531,  531,  531,
      531,  532,  530,  530,  533,  533,  533,   73,  530,  530,
      530,  530,  530,  530,  533,   73,  530,  530,  530,  530,
      530,  530,  530,  530,  533,   73,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,   73,  533,  533,
      533,  533,  533,  533,  533,   73,   51,   51,   51,   51,
       51,   51,   51,   51,   51,   51,   51,   51,   51,   30,
       30,   30,   30,   30,   30,   30,   30,   30,   30,   30,
       30,   30,   60,   60,   60,   60,   60,   60,   60,   60,

       60,   60,   60,   60,   60,   67,   67,   67,   67,   67,
       67,   67,   67,   67,   67,   67,   67,   67,   72,  533,
      533,  533,   72,  533,   72,   72,   72,  533,   72,   72,
       72,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   80,  533,  533,  533,   80,  533,
       80,   80,   80,  533,   80,   80,   80,   82,  533,  533,
      533,   82,  533,   82,   82,   82,  533,   82,   82,   82,
       84,  533,  533,   84,   84,  533,   84,   84,   84,  533,
       84,   84,   84,   94,   94,  533,  533,   94,  118,  533,
      533,  118,  118,  533,  118,  118,  118,  533,  118,  118,

      118,  122,  533,  533,  122,  122,  122,  122,  122,  122,
      533,  533,  122,  122,  128,  128,  129,  533,  533,  129,
      533,  533,  129,  129,  129,  129,  129,  129,  129,  133,
      133,  133,  133,  133,  133,  133,  133,  133,  133,  133,
      133,  133,  135,  135,  533,  135,  533,  135,  135,  135,
      135,  135,  135,  135,  135,  141,  141,  141,  141,  141,
      141,  141,  141,  141,  141,  141,  141,  141,   85,  533,
      533,   85,   85,  533,   85,   85,   85,  533,   85,   85,
       85,  148,  148,  533,  533,  148,  150,  150,  150,  533,
      533,  150,  119,  533,  533,  119,  119,  533,  119,  119,

      119,  533,  119,  119,  119,  180,  180,  533,  533,  180,
      186,  186,  186,  533,  533,  186,  214,  214,  533,  533,
      214,  215,  215,  533,  533,  215,  219,  219,  533,  533,
      219,  221,  221,  221,  533,  533,  221,  254,  254,  533,
      533,  254,  256,  256,  533,  533,  256,  257,  257,  533,
      533,  257,  259,  259,  259,  533,  533,  259,  263,  263,
      263,  263,  533,  533,  263,  291,  291,  533,  533,  291,
      292,  292,  533,  533,  292,  293,  293,  533,  533,  293,
      305,  305,  305,  533,  533,  305,  306,  306,  306,  306,
      533,  533,  306,  339,  339,  533,  533,  339,  340,  340,

      533,  533,  340,  356,  356,  356,  533,  533,  356,  357,
      357,  357,  357,  533,  533,  357,  382,  382,  533,  533,
      382,  386,  533,  386,  386,  533,  533,  386,  404,  404,
      404,  533,  533,  404,  405,  405,  405,  405,  533,  533,
      405,  434,  434,  533,  533,  434,  435,  533,  435,  435,
      533,  533,  435,  451,  451,  451,  533,  533,  451,  452,
      452,  452,  533,  533,  533,  452,  457,  533,  533,  533,
      457,  533,  457,  457,  457,  533,  457,  457,  457,  459,
      533,  533,  533,  459,  533,  459,  459,  459,  533,  459,
      459,  459,  469,  469,  533,  533,  469,  470,  533,  470,

      470,  533,  533,  470,  486,  486,  533,  533,  533,  486,
      488,  488,  488,  488,  488,  488,  488,  488,  488,  488,
      488,  488,  488,  500,  500,  533,  533,  500,  501,  533,
      501,  501,  533,  533,  501,  514,  514,  533,  533,  514,
      515,  533,  515,  533,  533,  533,  515,  526,  533,  533,
      533,  526,   13,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,

      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533
    } ;

static yyconst short int yy_chk[3416] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    2,    3,    4,  247,    2,    3,    4,   95,
        5,    5,    5,  114,    5,  247,    3,    4,   95,   39,
        5,   11,   11,   11,   11,    6,    6,    6,  114,    6,
        2,    2,    5,    5,    2,    6,   39,   62,    2,   50,

       64,    2,   12,   12,   12,   12,   68,    6,    6,   69,
       24,   58,   58,    5,   24,   24,   50,   62,   66,   66,
       64,    3,    4,  169,   11,  169,  102,  102,    6,    7,
        7,    7,   24,    7,   26,   26,   26,   26,   26,   26,
       26,   26,  104,   71,   71,   12,   71,  104,  111,   68,
       69,   24,   27,   27,   27,   27,   27,   27,   38,  112,
       38,   38,   38,   38,   38,   38,   38,   38,   40,  102,
      530,  112,    7,    7,    7,    7,    7,    7,    7,    7,
        7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
        8,    8,    8,  116,    8,  516,   40,   40,  121,  116,

       40,  166,  111,  121,   40,   48,  166,   40,   48,   48,
       48,   48,   48,   48,   48,   48,   78,   78,   78,   78,
       78,   78,   78,   78,   79,   79,   79,   79,   79,   79,
       79,   79,  113,    8,    8,    8,    8,    8,    8,    8,
        8,    8,    8,    8,    8,    8,    8,    8,    8,    8,
        8,    9,    9,    9,    9,    9,  115,  124,  124,   49,
        9,    9,    9,   49,   49,   56,   56,   56,  115,   56,
      113,   99,  137,   56,    9,   56,   99,  209,   99,   84,
      159,   49,  150,   84,   84,  127,  127,   56,   56,  139,
      139,  150,  209,  159,    9,   10,   10,   10,   10,   10,

       49,   84,  165,  168,   10,   10,   10,   73,   56,   73,
      138,   73,  514,   73,   73,  137,  504,   73,   10,  168,
       84,   87,   87,   87,   87,   87,   87,   87,   87,   73,
       73,   73,   93,   93,   93,   93,   93,   93,   10,   18,
       91,   91,   91,   91,   91,   91,   91,   91,  165,   18,
       87,  138,   18,   18,   18,   18,   18,   18,   18,   18,
       25,  175,   25,   25,   25,   25,   25,   25,   25,   25,
       25,  206,  503,  170,   25,   25,   25,   25,   25,   92,
       92,   92,   92,   92,   92,   92,   92,  170,  172,  179,
      246,   25,  175,   25,   25,   25,   25,   25,   25,   31,

      200,  172,  194,   31,  501,   31,  200,  246,   31,   31,
      179,   31,   31,   31,   31,   31,   31,   31,   31,   31,
       31,   31,   31,  206,  194,   31,   31,   31,   31,   31,
       31,   31,   31,   31,   31,   31,   31,   31,   31,   31,
       31,   31,   31,   31,   31,   31,   31,   31,   31,   31,
       31,   31,   31,   31,   31,   31,   31,   31,   31,   31,
       31,   33,   33,   33,   33,   33,   33,   33,   33,   33,
      183,  183,  183,   33,   33,   33,   33,   33,  186,  207,
      207,  221,  259,  500,  118,  134,  134,  186,  118,  118,
      221,  259,   33,   33,   33,   33,   33,   33,   37,   37,

       37,  496,   37,  286,   37,   37,  118,   81,   37,   81,
      210,   81,  234,   81,   81,  488,  210,   81,  250,  286,
       37,   37,   37,   41,  105,  118,  208,  241,  134,   81,
       81,   81,  241,   41,  234,  486,   41,   41,   41,   41,
       41,   41,   41,   41,   83,  245,   83,  208,   83,  250,
       83,   83,  105,  105,   83,   86,  105,   86,  482,   86,
      105,   86,   86,  105,  208,   86,   83,   83,   83,  470,
      223,  223,  225,  225,   41,   57,  248,   86,   86,   86,
      223,  248,  225,  276,  279,   57,  347,  347,   57,   57,
       57,   57,   57,   57,   57,   57,   88,   88,   88,   88,

       88,   88,   88,   88,  245,  276,  279,  330,   88,   88,
       88,   88,   88,  174,  174,  174,  174,  174,  174,  174,
      174,  190,  190,  190,  190,  190,  190,   88,   88,   88,
       88,   88,   88,   96,   96,   96,   96,   96,   96,   96,
       96,  280,  174,  284,  263,   96,   96,   96,   96,   96,
      120,  469,  120,  263,  120,  330,  120,  120,  374,  374,
      120,  264,  264,  280,   96,   96,   96,   96,   96,   96,
      459,  264,  120,  120,  120,  130,  285,  142,  130,  130,
      281,  142,  287,  265,  265,  130,  285,  142,  305,  281,
      284,  287,  171,  265,  457,  319,  171,  305,  130,  142,

      142,  143,  171,  143,  143,  143,  143,  143,  143,  143,
      143,  375,  456,  375,  171,  171,  178,  319,  178,  178,
      178,  178,  178,  178,  187,  187,  187,  187,  187,  187,
      187,  187,  143,  144,  306,  144,  144,  144,  144,  144,
      144,  144,  144,  306,  323,  393,  393,  178,  182,  182,
      182,  182,  182,  182,  182,  182,  182,  231,  231,  231,
      231,  231,  231,  455,  144,  145,  323,  145,  145,  145,
      145,  145,  145,  145,  145,  189,  189,  189,  189,  189,
      189,  189,  189,  192,  342,  192,  192,  192,  192,  192,
      192,  192,  192,  327,  342,  332,  145,  146,  335,  146,

      146,  146,  146,  146,  146,  146,  146,  325,  454,  327,
      332,  146,  146,  146,  146,  146,  216,  216,  216,  216,
      216,  216,  216,  216,  216,  369,  407,  407,  335,  325,
      146,  146,  146,  146,  146,  146,  149,  149,  149,  149,
      149,  149,  149,  149,  149,  408,  408,  369,  149,  149,
      149,  149,  149,  222,  222,  222,  222,  222,  222,  222,
      222,  273,  273,  273,  273,  273,  273,  149,  149,  149,
      149,  149,  149,  151,  151,  151,  151,  151,  151,  151,
      151,  151,  151,  411,  411,  452,  151,  151,  151,  151,
      151,  224,  224,  224,  224,  224,  224,  224,  224,  297,

      297,  297,  297,  297,  297,  151,  151,  151,  151,  151,
      151,  152,  152,  152,  152,  152,  152,  152,  152,  370,
      333,  435,  419,  152,  152,  152,  152,  152,  228,  228,
      228,  228,  228,  228,  228,  228,  333,  419,  228,  267,
      267,  370,  152,  152,  152,  152,  152,  152,  176,  267,
      176,  176,  176,  176,  176,  176,  176,  176,  230,  230,
      230,  230,  230,  230,  230,  230,  233,  331,  233,  233,
      233,  233,  233,  233,  233,  233,  331,  418,  418,  176,
      177,  344,  177,  177,  177,  177,  177,  177,  177,  177,
      418,  344,  434,  387,  249,  249,  249,  249,  249,  249,

      249,  249,  253,  387,  253,  253,  253,  253,  253,  253,
      430,  177,  188,  188,  188,  188,  188,  188,  188,  188,
      188,  188,  188,  249,  442,  442,  188,  188,  188,  188,
      188,  423,  260,  253,  260,  260,  260,  260,  260,  260,
      260,  260,  453,  453,  421,  188,  188,  188,  188,  188,
      188,  191,  191,  191,  191,  191,  191,  191,  191,  191,
      191,  356,  423,  420,  191,  191,  191,  191,  191,  261,
      356,  261,  261,  261,  261,  261,  261,  261,  261,  416,
      307,  307,  400,  191,  191,  191,  191,  191,  191,  211,
      307,  211,  211,  211,  211,  211,  211,  211,  211,  262,

      412,  262,  262,  262,  262,  262,  262,  262,  262,  266,
      266,  266,  266,  266,  266,  266,  266,  414,  477,  477,
      211,  212,  412,  212,  212,  212,  212,  212,  212,  212,
      212,  270,  270,  270,  270,  270,  270,  270,  270,  414,
      388,  270,  272,  272,  272,  272,  272,  272,  272,  272,
      388,  491,  212,  213,  390,  213,  213,  213,  213,  213,
      213,  213,  213,  275,  390,  275,  275,  275,  275,  275,
      275,  275,  275,  294,  294,  294,  294,  294,  294,  294,
      294,  386,  491,  382,  213,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  229,  229,  229,  229,

      229,  229,  229,  229,  229,  229,  229,  507,  507,  377,
      229,  229,  229,  229,  229,  296,  296,  296,  296,  296,
      296,  296,  296,  316,  316,  316,  316,  316,  316,  229,
      229,  229,  229,  229,  229,  232,  232,  232,  232,  232,
      232,  232,  232,  232,  232,  357,  373,  372,  232,  232,
      232,  232,  232,  299,  357,  299,  299,  299,  299,  299,
      299,  299,  299,  371,  308,  308,  340,  232,  232,  232,
      232,  232,  232,  251,  308,  251,  251,  251,  251,  251,
      251,  251,  251,  300,  300,  300,  300,  300,  300,  300,
      300,  302,  404,  302,  302,  302,  302,  302,  302,  302,

      302,  404,  518,  339,  251,  252,  436,  252,  252,  252,
      252,  252,  252,  252,  252,  303,  436,  303,  303,  303,
      303,  303,  303,  303,  303,  304,  405,  304,  304,  304,
      304,  304,  304,  518,  329,  405,  252,  258,  258,  258,
      258,  258,  258,  258,  258,  258,  328,  322,  321,  258,
      258,  258,  258,  258,  309,  309,  309,  309,  309,  309,
      309,  309,  350,  350,  350,  350,  350,  350,  258,  258,
      258,  258,  258,  258,  268,  268,  268,  268,  268,  268,
      268,  268,  268,  268,  268,  271,  271,  271,  271,  271,
      271,  271,  271,  271,  271,  271,  310,  310,  301,  271,

      271,  271,  271,  271,  293,  437,  310,  313,  313,  313,
      313,  313,  313,  313,  313,  437,  292,  313,  271,  271,
      271,  271,  271,  271,  274,  274,  274,  274,  274,  274,
      274,  274,  274,  274,  291,  283,  282,  274,  274,  274,
      274,  274,  315,  315,  315,  315,  315,  315,  315,  315,
      367,  367,  367,  367,  367,  367,  274,  274,  274,  274,
      274,  274,  288,  288,  288,  288,  288,  288,  288,  288,
      288,  318,  278,  318,  318,  318,  318,  318,  318,  318,
      318,  334,  334,  334,  334,  334,  334,  334,  334,  277,
      257,  256,  288,  289,  289,  289,  289,  289,  289,  289,

      289,  289,  255,  338,  338,  338,  338,  338,  338,  338,
      334,  341,  341,  341,  341,  341,  341,  341,  341,  254,
      244,  243,  242,  289,  290,  290,  290,  290,  290,  290,
      290,  290,  290,  338,  343,  343,  343,  343,  343,  343,
      343,  343,  349,  349,  349,  349,  349,  349,  349,  349,
      240,  239,  238,  237,  290,  295,  439,  295,  295,  295,
      295,  295,  295,  295,  295,  295,  439,  236,  220,  295,
      295,  295,  295,  295,  352,  451,  352,  352,  352,  352,
      352,  352,  352,  352,  451,  219,  218,  217,  295,  295,
      295,  295,  295,  295,  298,  298,  298,  298,  298,  298,

      298,  298,  298,  215,  214,  205,  298,  298,  298,  298,
      298,  353,  471,  353,  353,  353,  353,  353,  353,  353,
      353,  204,  471,  203,  202,  298,  298,  298,  298,  298,
      298,  311,  311,  311,  311,  311,  311,  311,  311,  311,
      311,  311,  314,  314,  314,  314,  314,  314,  314,  314,
      314,  314,  314,  201,  199,  198,  314,  314,  314,  314,
      314,  354,  472,  354,  354,  354,  354,  354,  354,  354,
      354,  197,  472,  196,  195,  314,  314,  314,  314,  314,
      314,  317,  317,  317,  317,  317,  317,  317,  317,  317,
      358,  358,  193,  185,  317,  317,  317,  317,  317,  355,

      358,  355,  355,  355,  355,  355,  355,  355,  355,  184,
      181,  180,  173,  317,  317,  317,  317,  317,  317,  336,
      336,  336,  336,  336,  336,  336,  336,  336,  359,  359,
      360,  360,  360,  360,  360,  360,  360,  360,  359,  366,
      366,  366,  366,  366,  366,  366,  366,  167,  164,  336,
      337,  337,  337,  337,  337,  337,  337,  337,  337,  361,
      361,  364,  364,  364,  364,  364,  364,  364,  364,  361,
      368,  364,  368,  368,  368,  368,  368,  368,  368,  368,
      337,  345,  163,  345,  345,  345,  345,  345,  345,  345,
      345,  345,  348,  474,  348,  348,  348,  348,  348,  348,

      348,  348,  348,  474,  162,  161,  348,  348,  348,  348,
      348,  383,  502,  383,  383,  383,  383,  383,  383,  383,
      383,  160,  502,  158,  157,  348,  348,  348,  348,  348,
      348,  351,  351,  351,  351,  351,  351,  351,  351,  351,
      156,  155,  154,  351,  351,  351,  351,  351,  384,  153,
      384,  384,  384,  384,  384,  384,  384,  384,  148,  147,
      141,  140,  351,  351,  351,  351,  351,  351,  362,  362,
      362,  362,  362,  362,  362,  362,  362,  362,  362,  365,
      365,  365,  365,  365,  365,  365,  365,  365,  365,  136,
      406,  406,  135,  365,  365,  365,  365,  365,  376,  385,

      406,  385,  385,  385,  385,  385,  385,  385,  385,  465,
      465,  465,  365,  365,  365,  365,  365,  365,  376,  133,
      376,  376,  389,  389,  389,  389,  389,  389,  389,  389,
      395,  395,  395,  395,  395,  395,  395,  395,  465,  376,
      378,  129,  378,  378,  378,  378,  378,  378,  378,  378,
      396,  396,  396,  396,  396,  396,  398,  123,  398,  398,
      398,  398,  398,  398,  398,  398,  119,  117,  110,  109,
      108,  378,  379,  107,  379,  379,  379,  379,  379,  379,
      379,  379,  399,  399,  399,  399,  399,  399,  399,  399,
      401,  106,  401,  401,  401,  401,  401,  401,  401,  401,

      101,  100,   98,  379,  380,   94,  380,  380,  380,  380,
      380,  380,  380,  380,  402,   90,  402,  402,  402,  402,
      402,  402,  402,  402,  403,   89,  403,  403,  403,  403,
      403,  403,  417,   85,   82,  380,  381,   80,  381,  381,
      381,  381,  381,  381,  381,  381,  445,  445,  445,  445,
      445,  445,  417,   76,  417,  417,   75,   74,   72,  428,
       67,  428,  428,  428,   60,   53,   47,  381,  391,   46,
      391,  391,  391,  391,  391,  391,  391,  391,  391,  394,
       45,  394,  394,  394,  394,  394,  394,  394,  394,  394,
      428,   44,   43,  394,  394,  394,  394,  394,  422,  422,

      422,  422,  422,  422,  422,  422,  480,  480,  480,  480,
      480,  480,  394,  394,  394,  394,  394,  394,  397,  397,
      397,  397,  397,  397,  397,  397,  397,  422,   42,   36,
      397,  397,  397,  397,  397,  429,  429,  429,  429,  429,
      429,  429,  429,  525,  525,  525,  525,  525,  525,  397,
      397,  397,  397,  397,  397,  409,  409,  409,  409,  409,
      409,  409,  409,  409,  409,  424,   35,  424,  424,  424,
      424,  424,  424,  424,  424,  431,   34,  431,  431,  431,
      431,  431,  431,  431,  431,  432,   32,  432,  432,  432,
      432,  432,  432,  432,  432,   28,  424,  425,   22,  425,

      425,  425,  425,  425,  425,  425,  425,  433,   19,  433,
      433,  433,  433,  433,  433,  438,  438,  438,  438,  438,
      438,  438,  438,   17,   15,   14,   13,    0,  425,  426,
        0,  426,  426,  426,  426,  426,  426,  426,  426,  444,
      444,  444,  444,  444,  444,  444,  444,  447,    0,  447,
      447,  447,  447,  447,  447,  447,  447,    0,    0,    0,
      426,  427,    0,  427,  427,  427,  427,  427,  427,  427,
      427,  448,  448,  448,  448,  448,  448,  448,  448,  448,
      449,  449,  449,  449,  449,  449,  449,  449,  449,    0,
        0,    0,  427,  440,    0,  440,  440,  440,  440,  440,

      440,  440,  440,  440,  443,    0,  443,  443,  443,  443,
      443,  443,  443,  443,  443,    0,    0,    0,  443,  443,
      443,  443,  443,  450,  450,  450,  450,  450,  450,  450,
      450,  450,    0,    0,    0,    0,    0,  443,  443,  443,
      443,  443,  443,  446,  446,  446,  446,  446,  446,  446,
      446,    0,    0,    0,    0,  446,  446,  446,  446,  446,
      458,    0,  458,    0,  458,    0,  458,  458,    0,    0,
      458,    0,    0,    0,  446,  446,  446,  446,  446,  446,
        0,    0,  458,  458,  458,  460,    0,  460,    0,  460,
        0,  460,  460,    0,    0,  460,  464,  464,  464,  464,

      464,  464,  464,  464,    0,    0,    0,  460,  460,  460,
      461,    0,  461,  461,  461,  461,  461,  461,  461,  461,
        0,    0,    0,    0,  466,  464,  466,  466,  466,  466,
      466,  466,  466,  466,  485,  485,  485,  485,  485,  485,
      485,  461,  462,    0,  462,  462,  462,  462,  462,  462,
      462,  462,  467,    0,  467,  467,  467,  467,  467,  467,
      467,  467,  468,    0,  468,  468,  468,  468,  468,  468,
      468,  468,    0,  462,  463,    0,  463,  463,  463,  463,
      463,  463,  463,  463,  473,  473,  473,  473,  473,  473,
      473,  473,  479,  479,  479,  479,  479,  479,  479,  479,

        0,    0,    0,    0,    0,  463,  475,    0,  475,  475,
      475,  475,  475,  475,  475,  475,  475,  478,    0,  478,
      478,  478,  478,  478,  478,  478,  478,    0,    0,    0,
        0,  478,  478,  478,  478,  478,  481,    0,  481,  481,
      481,  481,  481,  481,  481,  481,    0,    0,    0,    0,
      478,  478,  478,  478,  478,  478,  483,  483,  483,  483,
      483,  483,  483,  483,  483,  484,  484,  484,  484,  484,
      484,  484,  484,  484,  490,  490,  490,  490,  490,  490,
      490,  490,    0,  494,    0,  494,  494,  494,  494,  494,
      494,  495,  495,  495,  495,  495,  495,  495,  495,    0,

        0,    0,    0,  490,  492,    0,  492,  492,  492,  492,
      492,  492,  492,  492,  494,  497,    0,  497,  497,  497,
      497,  497,  497,  497,  497,  498,    0,  498,  498,  498,
      498,  498,  498,  498,  498,  492,  493,    0,  493,  493,
      493,  493,  493,  493,  493,  493,  499,    0,  499,  499,
      499,  499,  499,  499,  505,    0,  505,  505,  505,  505,
      505,  505,  505,  505,    0,    0,    0,  493,  508,    0,
      508,  508,  508,  508,  508,  508,  508,  508,  511,  511,
      511,  511,  511,  511,  511,  511,  512,  512,  512,  512,
      512,  512,  512,  512,    0,    0,    0,    0,    0,  508,

      509,    0,  509,  509,  509,  509,  509,  509,  509,  509,
      513,  513,  513,  513,  513,  513,  513,  513,  517,  517,
      517,  517,  517,  517,  517,  517,    0,    0,    0,    0,
        0,  509,  510,    0,  510,  510,  510,  510,  510,  510,
      510,  510,    0,    0,    0,    0,  521,  517,  521,  521,
      521,  521,  521,  521,  523,  523,  523,  523,  523,  523,
      523,  523,    0,  510,  519,    0,  519,  519,  519,  519,
      519,  519,  519,  519,    0,    0,    0,  521,  524,  524,
      524,  524,  524,  524,  524,  524,  527,  527,  527,  527,
      527,  527,  527,  527,    0,  519,  520,    0,  520,  520,

      520,  520,  520,  520,  520,  520,  528,  528,  528,  528,
      528,  528,  528,  528,    0,  527,  529,  529,  529,  529,
      529,  529,  529,  529,    0,    0,    0,  520,  532,  532,
      532,  532,  532,  532,    0,  528,  531,  531,  531,  531,
      531,  531,  531,  531,    0,  529,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,  532,    0,    0,
        0,    0,    0,    0,    0,  531,  534,  534,  534,  534,
      534,  534,  534,  534,  534,  534,  534,  534,  534,  535,
      535,  535,  535,  535,  535,  535,  535,  535,  535,  535,
      535,  535,  536,  536,  536,  536,  536,  536,  536,  536,

      536,  536,  536,  536,  536,  537,  537,  537,  537,  537,
      537,  537,  537,  537,  537,  537,  537,  537,  538,    0,
        0,    0,  538,    0,  538,  538,  538,    0,  538,  538,
      538,  539,  539,  539,  539,  539,  539,  539,  539,  539,
      539,  539,  539,  539,  540,    0,    0,    0,  540,    0,
      540,  540,  540,    0,  540,  540,  540,  541,    0,    0,
        0,  541,    0,  541,  541,  541,    0,  541,  541,  541,
      542,    0,    0,  542,  542,    0,  542,  542,  542,    0,
      542,  542,  542,  543,  543,    0,    0,  543,  544,    0,
        0,  544,  544,    0,  544,  544,  544,    0,  544,  544,

      544,  545,    0,    0,  545,  545,  545,  545,  545,  545,
        0,    0,  545,  545,  546,  546,  547,    0,    0,  547,
        0,    0,  547,  547,  547,  547,  547,  547,  547,  548,
      548,  548,  548,  548,  548,  548,  548,  548,  548,  548,
      548,  548,  549,  549,    0,  549,    0,  549,  549,  549,
      549,  549,  549,  549,  549,  550,  550,  550,  550,  550,
      550,  550,  550,  550,  550,  550,  550,  550,  551,    0,
        0,  551,  551,    0,  551,  551,  551,    0,  551,  551,
      551,  552,  552,    0,    0,  552,  553,  553,  553,    0,
        0,  553,  554,    0,    0,  554,  554,    0,  554,  554,

      554,    0,  554,  554,  554,  555,  555,    0,    0,  555,
      556,  556,  556,    0,    0,  556,  557,  557,    0,    0,
      557,  558,  558,    0,    0,  558,  559,  559,    0,    0,
      559,  560,  560,  560,    0,    0,  560,  561,  561,    0,
        0,  561,  562,  562,    0,    0,  562,  563,  563,    0,
        0,  563,  564,  564,  564,    0,    0,  564,  565,  565,
      565,  565,    0,    0,  565,  566,  566,    0,    0,  566,
      567,  567,    0,    0,  567,  568,  568,    0,    0,  568,
      569,  569,  569,    0,    0,  569,  570,  570,  570,  570,
        0,    0,  570,  571,  571,    0,    0,  571,  572,  572,

        0,    0,  572,  573,  573,  573,    0,    0,  573,  574,
      574,  574,  574,    0,    0,  574,  575,  575,    0,    0,
      575,  576,    0,  576,  576,    0,    0,  576,  577,  577,
      577,    0,    0,  577,  578,  578,  578,  578,    0,    0,
      578,  579,  579,    0,    0,  579,  580,    0,  580,  580,
        0,    0,  580,  581,  581,  581,    0,    0,  581,  582,
      582,  582,    0,    0,    0,  582,  583,    0,    0,    0,
      583,    0,  583,  583,  583,    0,  583,  583,  583,  584,
        0,    0,    0,  584,    0,  584,  584,  584,    0,  584,
      584,  584,  585,  585,    0,    0,  585,  586,    0,  586,

      586,    0,    0,  586,  587,  587,    0,    0,    0,  587,
      588,  588,  588,  588,  588,  588,  588,  588,  588,  588,
      588,  588,  588,  589,  589,    0,    0,  589,  590,    0,
      590,  590,    0,    0,  590,  591,  591,    0,    0,  591,
      592,    0,  592,    0,    0,    0,  592,  593,    0,    0,
        0,  593,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,

      533,  533,  533,  533,  533,  533,  533,  533,  533,  533,
      533,  533,  533,  533,  533
    } ;

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
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "toke.l"
#define INITIAL 0
#line 2 "toke.l"
/*
 * Copyright (c) 1996, 1998-2005, 2007-2008
 *	Todd C. Miller <Todd.Miller@courtesan.com>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 * 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.
 *
 * Sponsored in part by the Defense Advanced Research Projects
 * Agency (DARPA) and Air Force Research Laboratory, Air Force
 * Materiel Command, USAF, under agreement number F39502-99-1-0512.
 */

#include <config.h>

#include <sys/types.h>
#include <sys/param.h>
#include <stdio.h>
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif /* STDC_HEADERS */
#ifdef HAVE_STRING_H
# include <string.h>
#else
# ifdef HAVE_STRINGS_H
#  include <strings.h>
# endif
#endif /* HAVE_STRING_H */
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif /* HAVE_UNISTD_H */
#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
# include <malloc.h>
#endif /* HAVE_MALLOC_H && !STDC_HEADERS */
#include <ctype.h>
#include "sudo.h"
#include "parse.h"
#include <gram.h>

#ifndef lint
__unused static const char rcsid[] = "$Sudo: toke.c,v 1.27 2008/11/24 00:42:20 millert Exp $";
#endif /* lint */

extern YYSTYPE yylval;
int sudolineno = 1;
char *sudoers;
static int sawspace = 0;
static int arg_len = 0;
static int arg_size = 0;

static int append		__P((char *, int));
static int _fill		__P((char *, int, int));
static int fill_cmnd		__P((char *, int));
static int fill_args		__P((char *, int, int));
static int switch_buffer	__P((char *));
static int ipv6_valid		__P((const char *s));
static char *parse_include	__P((char *));
extern void yyerror		__P((const char *));

#define fill(a, b)		_fill(a, b, 0)

#define	push_include(_p)	(switch_buffer((_p)))
#define	pop_include()		(switch_buffer(NULL))

/* realloc() to size + COMMANDARGINC to make room for command args */
#define COMMANDARGINC	64

#ifdef TRACELEXER
#define LEXTRACE(msg)	fputs(msg, stderr)
#else
#define LEXTRACE(msg)
#endif
#define YY_NO_UNPUT 1
#define GOTDEFS 1

#define GOTCMND 2

#define STARTDEFS 3

#define INDEFS 4

#define INSTR 5

#line 1413 "lex.yy.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 defined(YY_STACK_USED) && 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
#ifdef __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 \
	if ( yyleng > 0 ) \
		yy_current_buffer->yy_at_bol = \
				(yytext[yyleng - 1] == '\n'); \
	YY_USER_ACTION

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

#line 113 "toke.l"

#line 1569 "lex.yy.c"

	if ( yy_init )
		{
		yy_init = 0;

#ifdef YY_USER_INIT
		YY_USER_INIT;
#endif

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

		if ( ! yyin )
			yyin = stdin;

		if ( ! yyout )
			yyout = stdout;

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

		yy_load_buffer_state();
		}

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

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

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

		yy_current_state = yy_start;
		yy_current_state += YY_AT_BOL();
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 >= 534 )
					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] != 3353 );

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 114 "toke.l"
BEGIN STARTDEFS;
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 116 "toke.l"
{
			    BEGIN INDEFS;
			    LEXTRACE("DEFVAR ");
			    if (!fill(yytext, yyleng))
				yyterminate();
			    return(DEFVAR);
			}
	YY_BREAK

case 3:
YY_RULE_SETUP
#line 125 "toke.l"
{
			    BEGIN STARTDEFS;
			    LEXTRACE(", ");
			    return(',');
			}			/* return ',' */
	YY_BREAK
case 4:
YY_RULE_SETUP
#line 131 "toke.l"
{
			    LEXTRACE("= ");
			    return('=');
			}			/* return '=' */
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 136 "toke.l"
{
			    LEXTRACE("+= ");
			    return('+');
			}			/* return '+' */
	YY_BREAK
case 6:
YY_RULE_SETUP
#line 141 "toke.l"
{
			    LEXTRACE("-= ");
			    return('-');
			}			/* return '-' */
	YY_BREAK
case 7:
YY_RULE_SETUP
#line 146 "toke.l"
{
			    LEXTRACE("BEGINSTR ");
			    yylval.string = NULL;
			    BEGIN INSTR;
			}
	YY_BREAK
case 8:
YY_RULE_SETUP
#line 152 "toke.l"
{
			    LEXTRACE("WORD(2) ");
			    if (!fill(yytext, yyleng))
				yyterminate();
			    return(WORD);
			}
	YY_BREAK


case 9:
YY_RULE_SETUP
#line 161 "toke.l"
{
			    /* Line continuation char followed by newline. */
			    ++sudolineno;
			    LEXTRACE("\n");
			}
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 167 "toke.l"
{
			    LEXTRACE("ENDSTR ");
			    BEGIN INDEFS;
			    return(WORD);
			}
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 173 "toke.l"
{
			    LEXTRACE("BACKSLASH ");
			    if (!append(yytext, yyleng))
				yyterminate();
			}
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 179 "toke.l"
{
			    LEXTRACE("STRBODY ");
			    if (!append(yytext, yyleng))
				yyterminate();
			}
	YY_BREAK


case 13:
YY_RULE_SETUP
#line 187 "toke.l"
{
			    /* quoted fnmatch glob char, pass verbatim */
			    LEXTRACE("QUOTEDCHAR ");
			    if (!fill_args(yytext, 2, sawspace))
				yyterminate();
			    sawspace = FALSE;
			}
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 195 "toke.l"
{
			    /* quoted sudoers special char, strip backslash */
			    LEXTRACE("QUOTEDCHAR ");
			    if (!fill_args(yytext + 1, 1, sawspace))
				yyterminate();
			    sawspace = FALSE;
			}
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 203 "toke.l"
{
			    BEGIN INITIAL;
			    yyless(0);
			    return(COMMAND);
			}			/* end of command line args */
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 209 "toke.l"
{
			    LEXTRACE("ARG ");
			    if (!fill_args(yytext, yyleng, sawspace))
				yyterminate();
			    sawspace = FALSE;
			}			/* a command line arg */
	YY_BREAK

case 17:
YY_RULE_SETUP
#line 217 "toke.l"
{
			    char *path;

			    if ((path = parse_include(yytext)) == NULL)
				yyterminate();

			    LEXTRACE("INCLUDE\n");

			    /* Push current buffer and switch to include file */
			    if (!push_include(path))
				yyterminate();
			}
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 230 "toke.l"
{
			    int n;
			    for (n = 0; isblank((unsigned char)yytext[n]); n++)
				continue;
			    n += 8;
			    BEGIN GOTDEFS;
			    switch (yytext[n++]) {
				case ':':
				    yyless(n);
				    LEXTRACE("DEFAULTS_USER ");
				    return(DEFAULTS_USER);
				case '>':
				    yyless(n);
				    LEXTRACE("DEFAULTS_RUNAS ");
				    return(DEFAULTS_RUNAS);
				case '@':
				    yyless(n);
				    LEXTRACE("DEFAULTS_HOST ");
				    return(DEFAULTS_HOST);
				case '!':
				    yyless(n);
				    LEXTRACE("DEFAULTS_CMND ");
				    return(DEFAULTS_CMND);
				default:
				    LEXTRACE("DEFAULTS ");
				    return(DEFAULTS);
			    }
			}
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 259 "toke.l"
{
			    int n;
			    for (n = 0; isblank((unsigned char)yytext[n]); n++)
				continue;
			    switch (yytext[n]) {
				case 'H':
				    LEXTRACE("HOSTALIAS ");
				    return(HOSTALIAS);
				case 'C':
				    LEXTRACE("CMNDALIAS ");
				    return(CMNDALIAS);
				case 'U':
				    LEXTRACE("USERALIAS ");
				    return(USERALIAS);
				case 'R':
				    LEXTRACE("RUNASALIAS ");
				    return(RUNASALIAS);
			    }
			}
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 279 "toke.l"
{
				/* cmnd does not require passwd for this user */
			    	LEXTRACE("NOPASSWD ");
			    	return(NOPASSWD);
			}
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 285 "toke.l"
{
				/* cmnd requires passwd for this user */
			    	LEXTRACE("PASSWD ");
			    	return(PASSWD);
			}
	YY_BREAK
case 22:
YY_RULE_SETUP
#line 291 "toke.l"
{
			    	LEXTRACE("NOEXEC ");
			    	return(NOEXEC);
			}
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 296 "toke.l"
{
			    	LEXTRACE("EXEC ");
			    	return(EXEC);
			}
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 301 "toke.l"
{
			    	LEXTRACE("SETENV ");
			    	return(SETENV);
			}
	YY_BREAK
case 25:
YY_RULE_SETUP
#line 306 "toke.l"
{
			    	LEXTRACE("NOSETENV ");
			    	return(NOSETENV);
			}
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 311 "toke.l"
{
			    /* netgroup */
			    if (!fill(yytext, yyleng))
				yyterminate();
			    LEXTRACE("NETGROUP ");
			    return(NETGROUP);
			}
	YY_BREAK
case 27:
YY_RULE_SETUP
#line 319 "toke.l"
{
			    /* UN*X group */
			    if (!fill(yytext, yyleng))
				yyterminate();
			    LEXTRACE("USERGROUP ");
			    return(USERGROUP);
			}
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 327 "toke.l"
{
			    if (!fill(yytext, yyleng))
				yyterminate();
			    LEXTRACE("NTWKADDR ");
			    return(NTWKADDR);
			}
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 334 "toke.l"
{
			    if (!fill(yytext, yyleng))
				yyterminate();
			    LEXTRACE("NTWKADDR ");
			    return(NTWKADDR);
			}
	YY_BREAK
case 30:
YY_RULE_SETUP
#line 341 "toke.l"
{
			    if (!ipv6_valid(yytext)) {
				LEXTRACE("ERROR ");
				return(ERROR);
			    }
			    if (!fill(yytext, yyleng))
				yyterminate();
			    LEXTRACE("NTWKADDR ");
			    return(NTWKADDR);
			}
	YY_BREAK
case 31:
YY_RULE_SETUP
#line 352 "toke.l"
{
			    if (!ipv6_valid(yytext)) {
				LEXTRACE("ERROR ");
				return(ERROR);
			    }
			    if (!fill(yytext, yyleng))
				yyterminate();
			    LEXTRACE("NTWKADDR ");
			    return(NTWKADDR);
			}
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 363 "toke.l"
{
			    if (strcmp(yytext, "ALL") == 0) {
				LEXTRACE("ALL ");
				return(ALL);
			    }
#ifdef HAVE_SELINUX
			    /* XXX - restrict type/role to initial state */
			    if (strcmp(yytext, "TYPE") == 0) {
				LEXTRACE("TYPE ");
				return(TYPE);
			    }
			    if (strcmp(yytext, "ROLE") == 0) {
				LEXTRACE("ROLE ");
				return(ROLE);
			    }
#endif /* HAVE_SELINUX */
			    if (!fill(yytext, yyleng))
				yyterminate();
			    LEXTRACE("ALIAS ");
			    return(ALIAS);
			}
	YY_BREAK
case 33:
YY_RULE_SETUP
#line 385 "toke.l"
{
			    /* no command args allowed for Defaults!/path */
			    if (!fill_cmnd(yytext, yyleng))
				yyterminate();
			    LEXTRACE("COMMAND ");
			    return(COMMAND);
			}
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 393 "toke.l"
{
			    BEGIN GOTCMND;
			    LEXTRACE("COMMAND ");
			    if (!fill_cmnd(yytext, yyleng))
				yyterminate();
			}			/* sudo -e */
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 400 "toke.l"
{
			    /* directories can't have args... */
			    if (yytext[yyleng - 1] == '/') {
				LEXTRACE("COMMAND ");
				if (!fill_cmnd(yytext, yyleng))
				    yyterminate();
				return(COMMAND);
			    } else {
				BEGIN GOTCMND;
				LEXTRACE("COMMAND ");
				if (!fill_cmnd(yytext, yyleng))
				    yyterminate();
			    }
			}			/* a pathname */
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 415 "toke.l"
{
			    /* a word */
			    if (!fill(yytext, yyleng))
				yyterminate();
			    LEXTRACE("WORD(4) ");
			    return(WORD);
			}
	YY_BREAK
case 37:
YY_RULE_SETUP
#line 423 "toke.l"
{
			    LEXTRACE("( ");
			    return ('(');
			}
	YY_BREAK
case 38:
YY_RULE_SETUP
#line 428 "toke.l"
{
			    LEXTRACE(") ");
			    return(')');
			}
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 433 "toke.l"
{
			    LEXTRACE(", ");
			    return(',');
			}			/* return ',' */
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 438 "toke.l"
{
			    LEXTRACE("= ");
			    return('=');
			}			/* return '=' */
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 443 "toke.l"
{
			    LEXTRACE(": ");
			    return(':');
			}			/* return ':' */
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 448 "toke.l"
{
			    if (yyleng % 2 == 1)
				return('!');	/* return '!' */
			}
	YY_BREAK
case 43:
YY_RULE_SETUP
#line 453 "toke.l"
{
			    BEGIN INITIAL;
			    ++sudolineno;
			    LEXTRACE("\n");
			    return(COMMENT);
			}			/* return newline */
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 460 "toke.l"
{			/* throw away space/tabs */
			    sawspace = TRUE;	/* but remember for fill_args */
			}
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 464 "toke.l"
{
			    sawspace = TRUE;	/* remember for fill_args */
			    ++sudolineno;
			    LEXTRACE("\n\t");
			}			/* throw away EOL after \ */
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 470 "toke.l"
{
			    BEGIN INITIAL;
			    ++sudolineno;
			    LEXTRACE("\n");
			    return(COMMENT);
			}			/* return comments */
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 477 "toke.l"
{
			    LEXTRACE("ERROR ");
			    return(ERROR);
			}	/* parse error */
	YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(GOTDEFS):
case YY_STATE_EOF(GOTCMND):
case YY_STATE_EOF(STARTDEFS):
case YY_STATE_EOF(INDEFS):
case YY_STATE_EOF(INSTR):
#line 482 "toke.l"
{
			    if (YY_START != INITIAL) {
			    	BEGIN INITIAL;
				LEXTRACE("ERROR ");
				return(ERROR);
			    }
			    if (!pop_include())
				yyterminate();
			}
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 492 "toke.l"
ECHO;
	YY_BREAK
#line 2184 "lex.yy.c"

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

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

		if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
			{
			/* We're scanning a new file or input source.  It's
			 * possible that this happened because the user
			 * just pointed yyin at a new source and called
			 * yylex().  If so, then we have to assure
			 * consistency between yy_current_buffer and our
			 * globals.  Here is the right place to do so, because
			 * this is the first action (other than possibly a
			 * back-up) that will match for the new input source.
			 */
			yy_n_chars = yy_current_buffer->yy_n_chars;
			yy_current_buffer->yy_input_file = yyin;
			yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
			}

		/* Note that here we test for yy_c_buf_p "<=" to the position
		 * of the first EOB in the buffer, since yy_c_buf_p will
		 * already have been incremented past the NUL character
		 * (since all states make transitions on EOB to the
		 * end-of-buffer state).  Contrast this with the test
		 * in input().
		 */
		if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			{ /* This was really a NUL. */
			yy_state_type yy_next_state;

			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state();

			/* Okay, we're now positioned to make the NUL
			 * transition.  We couldn't have
			 * yy_get_previous_state() go ahead and do it
			 * for us because it doesn't know how to deal
			 * with the possibility of jamming (and we don't
			 * want to build jamming into it because then it
			 * will run more slowly).
			 */

			yy_next_state = yy_try_NUL_trans( yy_current_state );

			yy_bp = yytext_ptr + YY_MORE_ADJ;

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

			else
				{
				yy_cp = yy_c_buf_p;
				goto yy_find_action;
				}
			}

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

				if ( yywrap() )
					{
					/* Note: because we've taken care in
					 * yy_get_next_buffer() to have set up
					 * yytext, we can now set up
					 * yy_c_buf_p so that if some total
					 * hoser (like flex itself) wants to
					 * call the scanner after we return the
					 * YY_NULL, it'll still work - another
					 * YY_NULL will get returned.
					 */
					yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

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

			case EOB_ACT_CONTINUE_SCAN:
				yy_c_buf_p =
					yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state();

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

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

				yy_current_state = yy_get_previous_state();

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

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


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

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

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

	if ( yy_current_buffer->yy_fill_buffer == 0 )
		{ /* Don't try to fill the buffer, so this is an EOF. */
		if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
			{
			/* We matched a single character, the EOB, so
			 * treat this as a final EOF.
			 */
			return EOB_ACT_END_OF_FILE;
			}

		else
			{
			/* We matched some text prior to the EOB, first
			 * process it.
			 */
			return EOB_ACT_LAST_MATCH;
			}
		}

	/* Try to read more data. */

	/* First move last chars to start of buffer. */
	number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;

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

	if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
		/* don't do the read, it's not guaranteed to return an EOF,
		 * just force an EOF
		 */
		yy_current_buffer->yy_n_chars = yy_n_chars = 0;

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

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

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

			int yy_c_buf_p_offset =
				(int) (yy_c_buf_p - b->yy_ch_buf);

			if ( b->yy_is_our_buffer )
				{
				int new_size = b->yy_buf_size * 2;

				if ( new_size <= 0 )
					b->yy_buf_size += b->yy_buf_size / 8;
				else
					b->yy_buf_size *= 2;

				b->yy_ch_buf = (char *)
					/* Include room in for 2 EOB chars. */
					yy_flex_realloc( (void *) b->yy_ch_buf,
							 b->yy_buf_size + 2 );
				}
			else
				/* Can't grow it, we don't own it. */
				b->yy_ch_buf = 0;

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

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

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

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

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

		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

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

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

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

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

	yytext_ptr = &yy_current_buffer->yy_ch_buf[0];

	return ret_val;
	}


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

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

	yy_current_state = yy_start;
	yy_current_state += YY_AT_BOL();

	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 >= 534 )
				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 >= 534 )
			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 == 533);

	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;

	yy_current_buffer->yy_at_bol = (c == '\n');

	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
#include <unistd.h>
#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


	{
	int oerrno = errno;

	yy_flush_buffer( b );

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

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


#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 defined(YY_MAIN) && YY_MAIN
int main()
	{
	yylex();
	return 0;
	}
#endif
#line 492 "toke.l"

static int
_fill(src, len, olen)
    char *src;
    int len, olen;
{
    int i, j;
    char *dst;

    dst = olen ? realloc(yylval.string, olen + len + 1) : malloc(len + 1);
    if (dst == NULL) {
	yyerror("unable to allocate memory");
	return(FALSE);
    }
    yylval.string = dst;

    /* Copy the string and collapse any escaped characters. */
    dst += olen;
    for (i = 0, j = 0; i < len; i++, j++) {
	if (src[i] == '\\' && i != len - 1)
	    dst[j] = src[++i];
	else
	    dst[j] = src[i];
    }
    dst[j] = '\0';
    return(TRUE);
}

static int
append(src, len)
    char *src;
    int len;
{
    int olen = 0;

    if (yylval.string != NULL)
	olen = strlen(yylval.string);

    return(_fill(src, len, olen));
}

#define SPECIAL(c) \
    ((c) == ',' || (c) == ':' || (c) == '=' || (c) == ' ' || (c) == '\t' || (c) == '#')

static int
fill_cmnd(src, len)
    char *src;
    int len;
{
    char *dst;
    int i;

    arg_len = arg_size = 0;

    dst = yylval.command.cmnd = (char *) malloc(len + 1);
    if (yylval.command.cmnd == NULL) {
	yyerror("unable to allocate memory");
	return(FALSE);
    }

    /* Copy the string and collapse any escaped sudo-specific characters. */
    for (i = 0; i < len; i++) {
	if (src[i] == '\\' && i != len - 1 && SPECIAL(src[i + 1]))
	    *dst++ = src[++i];
	else
	    *dst++ = src[i];
    }
    *dst = '\0';

    yylval.command.args = NULL;
    return(TRUE);
}

static int
fill_args(s, len, addspace)
    char *s;
    int len;
    int addspace;
{
    int new_len;
    char *p;

    if (yylval.command.args == NULL) {
	addspace = 0;
	new_len = len;
    } else
	new_len = arg_len + len + addspace;

    if (new_len >= arg_size) {
	/* Allocate more space than we need for subsequent args */
	while (new_len >= (arg_size += COMMANDARGINC))
	    ;

	p = yylval.command.args ?
	    (char *) realloc(yylval.command.args, arg_size) :
	    (char *) malloc(arg_size);
	if (p == NULL) {
	    efree(yylval.command.args);
	    yyerror("unable to allocate memory");
	    return(FALSE);
	} else
	    yylval.command.args = p;
    }

    /* Efficiently append the arg (with a leading space if needed). */
    p = yylval.command.args + arg_len;
    if (addspace)
	*p++ = ' ';
    if (strlcpy(p, s, arg_size - (p - yylval.command.args)) != len) {
	yyerror("fill_args: buffer overflow");	/* paranoia */
	return(FALSE);
    }
    arg_len = new_len;
    return(TRUE);
}

struct sudoers_state {
    YY_BUFFER_STATE bs;
    char *path;
    int lineno;
};

#define MAX_SUDOERS_DEPTH	128
#define SUDOERS_STACK_INCREMENT	16

static int
switch_buffer(path)
    char *path;
{
    static size_t stacksize, depth;
    static struct sudoers_state *state;
    static int keepopen;
    FILE *fp;

    if (path != NULL) {
	/* push current state */
	if (depth >= stacksize) {
	    if (depth > MAX_SUDOERS_DEPTH) {
		yyerror("too many levels of includes");
		return(FALSE);
	    }
	    stacksize += SUDOERS_STACK_INCREMENT;
	    state = (struct sudoers_state *) realloc(state,
		sizeof(state) * stacksize);
	    if (state == NULL) {
		yyerror("unable to allocate memory");
		return(FALSE);
	    }
	}
	if ((fp = open_sudoers(path, &keepopen)) == NULL) {
	    yyerror(path);
	    return(FALSE);
	}
	state[depth].bs = YY_CURRENT_BUFFER;
	state[depth].path = sudoers;
	state[depth].lineno = sudolineno;
	depth++;
	sudolineno = 1;
	sudoers = path;
	yy_switch_to_buffer(yy_create_buffer(fp, YY_BUF_SIZE));
    } else {
	/* pop */
	if (depth == 0)
	    return(FALSE);
	depth--;
	if (!keepopen)
	    fclose(YY_CURRENT_BUFFER->yy_input_file);
	yy_delete_buffer(YY_CURRENT_BUFFER);
	yy_switch_to_buffer(state[depth].bs);
	efree(sudoers);
	sudoers = state[depth].path;
	sudolineno = state[depth].lineno;
	keepopen = FALSE;
    }
    return(TRUE);
}

static char *
parse_include(base)
    char *base;
{
    char *cp, *ep, *path;
    int len;

    /* Pull out path from #include line. */
    cp = base + sizeof("#include");
    while (isblank((unsigned char) *cp))
	cp++;
    ep = cp;
    while (*ep != '\0' && !isspace((unsigned char) *ep))
	ep++;

    /* Make a copy of path and return it. */
    len = (int)(ep - cp);
    if ((path = malloc(len + 1)) == NULL)
	yyerror("unable to allocate memory");
    memcpy(path, cp, len);
    path[len] = '\0';

    /* Push any excess characters (e.g. comment, newline) back to the lexer */
    if (*ep != '\0')
	yyless((int)(ep - base));

    return(path);
}

/*
 * Check to make sure an IPv6 address does not contain multiple instances
 * of the string "::".  Assumes strlen(s) >= 1.
 * Returns TRUE if address is valid else FALSE.
 */
static int
ipv6_valid(s)
    const char *s;
{
    int nmatch = 0;

    for (; *s != '\0'; s++) {
	if (s[0] == ':' && s[1] == ':') {
	    if (++nmatch > 1)
		break;
	}
	if (s[0] == '/')
	    nmatch = 0;			/* reset if we hit netmask */
    }

    return (nmatch <= 1);
}