Click here to Skip to main content
15,883,883 members
Articles / Desktop Programming / ATL

En/Decode MIME-Content with MimeSniffer

Rate me:
Please Sign up or sign in to vote.
4.88/5 (26 votes)
2 Dec 20022 min read 372.9K   7K   74  
RFC-compliant Mime-En/Decoder
#define yy_create_buffer MimeDec_create_buffer
#define yy_delete_buffer MimeDec_delete_buffer
#define yy_scan_buffer MimeDec_scan_buffer
#define yy_scan_string MimeDec_scan_string
#define yy_scan_bytes MimeDec_scan_bytes
#define yy_flex_debug MimeDec_flex_debug
#define yy_init_buffer MimeDec_init_buffer
#define yy_flush_buffer MimeDec_flush_buffer
#define yy_load_buffer_state MimeDec_load_buffer_state
#define yy_switch_to_buffer MimeDec_switch_to_buffer
#define yyin MimeDecin
#define yyleng MimeDecleng
#define yylex MimeDeclex
#define yyout MimeDecout
#define yyrestart MimeDecrestart
#define yytext MimeDectext
#define yywrap MimeDecwrap

/* A lexical scanner generated by flex */

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

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#include <stdio.h>


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


#ifdef __cplusplus

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

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

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

#else	/* ! __cplusplus */

#if __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

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

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

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


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

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

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

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

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

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

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

#define YY_END_OF_BUFFER_CHAR 0

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

typedef struct yy_buffer_state *YY_BUFFER_STATE;

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

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

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

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

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

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

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


struct yy_buffer_state
	{
	FILE *yy_input_file;

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

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

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

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

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

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

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

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

static YY_BUFFER_STATE yy_current_buffer = 0;

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


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

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


int yyleng;

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

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

void yyrestart YY_PROTO(( FILE *input_file ));

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

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

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

#define yy_new_buffer yy_create_buffer

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

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

#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)

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

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

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

#define YY_NUM_RULES 246
#define YY_END_OF_BUFFER 247
static yyconst short int yy_accept[1113] =
    {   0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,  247,  245,  244,  245,  241,  245,  244,  245,
      245,  245,  245,  245,  245,  245,  245,  245,  245,    2,
        5,    1,    4,    5,  107,  107,  107,  107,  107,  140,
      133,  140,  137,  135,  139,  134,  132,  137,  138,  131,
      123,  131,  126,  124,  129,  128,  126,  130,  127,  115,
      119,  119,  119,  117,  186,  141,  186,  184,  186,  185,

      186,  154,  152,  152,  152,  152,  152,  152,  152,  152,
      152,  152,  152,  152,  152,  152,  152,  152,   99,  103,
      101,  103,  103,  202,  187,  202,  198,  188,  201,  200,
      196,  198,  199,  198,  198,  198,  198,  198,  198,  203,
      206,  207,  207,  214,  208,  214,  212,  210,  213,  209,
      212,  121,  122,  246,  121,   97,   98,   97,  109,  109,
      114,  114,  113,  114,  112,  111,   95,   48,   95,   92,
       93,   47,   92,   87,   90,   88,   89,   92,   92,   92,
       92,   92,   92,   92,   92,   92,   92,   92,   92,   92,
       92,   92,   92,   92,   92,   46,   39,   46,   38,   46,

       46,   46,   46,   46,   37,   37,   35,   36,   34,   32,
       33,   32,   32,   32,   32,   32,   32,   10,    8,    9,
        8,    8,   24,   12,   24,   21,   22,   11,   21,   19,
       17,   18,   21,   21,   21,   21,  244,  243,    0,    0,
      239,  244,  242,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    2,    3,    0,    0,  106,
        0,    0,  133,    0,  134,    0,  137,  134,    0,  134,
      137,    0,  123,    0,    0,  126,  126,    0,  115,    0,
      116,  141,    0,    0,    0,  154,  154,    0,    0,    0,
        0,    0,  173,  177,    0,    0,    0,  179,    0,    0,

        0,    0,    0,  175,  171,    0,    0,    0,    0,    0,
        0,  181,    0,  183,    0,    0,    0,  142,    0,   99,
        0,  100,  187,    0,    0,  198,    0,    0,    0,    0,
      198,    0,  197,  198,  198,  198,  198,  198,  198,  203,
      205,    0,  208,    0,  209,    0,  212,  209,    0,  209,
      212,    0,  121,  121,    0,  120,   96,    0,    0,  111,
       48,    0,    0,   92,   90,   88,   88,    0,   92,   92,
       92,   92,   92,   92,   92,   92,   92,   92,   92,   92,
       92,   92,   92,   92,   92,   92,   92,   92,   92,   92,
       92,   92,   92,   92,   92,   92,   92,   92,   92,   92,

       92,   39,    0,    0,    0,    0,    0,    0,    0,    0,
        0,   36,   32,    0,    0,    0,    0,    0,   32,   32,
       32,   32,   32,   32,   32,    8,    0,    8,    8,   12,
        0,    0,   21,   19,   17,   17,    0,   21,   21,   21,
       21,   21,  239,  240,    0,    0,  227,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,  225,
        0,    0,  105,    0,  134,    0,    0,    0,  118,    0,
      154,  158,  163,  147,  146,  168,  169,  145,  144,  156,
      178,  143,  155,  162,  161,  160,  157,  159,  149,  170,
      148,  167,  165,  166,  151,  150,  180,  164,  182,  176,

      172,  174,  102,  198,  198,    0,  196,    0,  191,    0,
      198,  198,  194,    0,  198,  198,  204,    0,  209,    0,
        0,  120,  108,  110,    0,   92,   92,   92,   92,   92,
       92,   92,   92,   92,   92,   92,   63,   92,   92,   92,
       92,   92,   92,   92,   92,   92,   92,   92,   92,   92,
       92,   92,   92,   92,   92,   92,   92,   92,   92,   92,
       92,   91,    0,    0,    0,    0,    0,   45,    0,    0,
        0,    0,    0,    0,   29,   32,   25,   32,   32,   32,
       31,    0,    8,    7,    0,    0,   13,   21,   21,   21,
       20,    0,  229,  227,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,  225,    0,    0,    0,    0,
        0,    0,  154,    0,  198,  198,    0,    0,  195,    0,
      198,    0,  192,    0,  198,    0,    0,    0,   92,   92,
       92,   92,   92,   92,   92,   92,    0,   72,   92,   92,
       84,   92,   64,   92,   92,   92,   65,   92,   92,   92,
       92,   92,   92,   92,   92,   92,   76,   92,   92,   92,
       92,   92,   54,   92,   92,   40,   43,    0,    0,    0,
       29,    0,   25,    0,    0,    0,   29,   32,   25,   32,
       32,   27,    0,    8,    0,   13,   21,   21,   21,  229,
        0,    0,  223,    0,  218,    0,    0,    0,    0,    0,

        0,    0,    0,  104,    0,    0,  153,  153,    0,    0,
      190,    0,    0,  193,    0,    0,    0,   92,   92,   92,
       50,   82,   92,   92,   92,   72,   92,   92,   51,   92,
       57,    0,   73,   92,    0,   70,   92,   92,   92,   92,
       92,   61,   92,   92,   92,   92,    0,   71,    0,   68,
       92,    0,   80,   55,    0,    0,    0,    0,    0,    0,
       27,   32,   32,   32,   27,    0,    8,    0,    0,   16,
       21,   21,    0,  223,  218,    0,    0,    0,    0,    0,
        0,    0,    0,  136,  125,  189,    0,    0,  211,   94,
       92,   92,   92,   92,   92,   59,   92,   92,   92,   73,

       92,   70,   92,   92,   92,   92,   92,   92,   92,   83,
       92,   71,   68,   92,   80,   42,   44,    0,    0,    0,
        0,   32,   32,   32,    0,    8,   23,   16,   21,    0,
       15,    0,    0,    0,    0,    0,    0,    0,    0,  219,
        0,   92,   92,   92,   92,   92,   92,   92,   52,   92,
       92,   92,   92,   85,   92,   92,   92,    0,   74,   92,
        0,    0,    0,    0,   32,   32,   32,    0,    8,    0,
       14,   15,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,  219,    0,  232,   92,
       92,   92,   92,    0,   62,   92,   92,   92,   92,    0,

       81,   58,   92,   92,   92,   74,    0,   75,    0,    0,
        0,    0,   26,   32,   32,    0,    6,   14,    0,    0,
        0,    0,    0,    0,  216,    0,  217,    0,    0,    0,
        0,    0,    0,    0,    0,    0,  232,   92,   92,   92,
        0,   56,   62,   92,   92,   53,   92,   81,   92,   92,
       92,   75,    0,   26,    0,    0,   26,   32,   32,    6,
        6,    0,    0,    0,    0,    0,    0,  216,  217,    0,
        0,  228,    0,    0,    0,    0,    0,  226,    0,    0,
       92,   92,   92,   56,   92,   92,   92,   92,   79,   77,
        0,    0,    0,   28,   32,    0,    0,  238,    0,    0,

        0,  233,    0,    0,  230,  228,    0,    0,    0,    0,
      226,    0,    0,   92,   60,   49,    0,   67,   92,   92,
        0,   69,    0,   28,    0,   28,   30,    0,  238,    0,
        0,  233,    0,  230,    0,  224,    0,  221,    0,    0,
        0,  215,    0,    0,   66,   67,   92,   78,   69,    0,
       30,   30,    0,    0,    0,  235,    0,  234,  224,  221,
        0,    0,  215,    0,   66,   86,    0,    0,    0,  235,
      234,    0,    0,  222,    0,    0,    0,    0,    0,  222,
        0,    0,    0,    0,    0,  220,    0,   41,    0,    0,
      220,    0,    0,    0,    0,  231,    0,    0,  231,    0,

      236,    0,  236,    0,    0,    0,    0,    0,    0,  237,
      237,    0
    } ;

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

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

       59,   59,   59,   59,   59,   59,   59,   59,   59,   59,
       59,   59,   59,   59,   59,   59,   59,   59,   59,   59,
       59,   59,   59,   59,   59,   59,   59,   59,   59,   59,
       59,   59,   59,   59,   59,   59,   59,   59,   59,   59,
       59,   59,   59,   59,   59,   59,   59,   59,   59,   59,
       59,   59,   59,   59,   59
    } ;

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

static yyconst short int yy_base[1176] =
    {   0,
        0,    8,   10,   17,    0,   20,   76,  135,  194,  253,
       25,   32,  312,    0,   11,   44,  371,    0,   28,   34,
      430,  489,  106,  165,   46,   62, 3377, 3376,  545,  563,
      584,    0,  642,  697,  753,    0,  812,    0,  871,  927,
      983,    0, 3379, 3490,    1, 3374, 3490,   23,   70, 3373,
     3371,   92,  180,  119,  121,  170,  111,  208,  129,    0,
     3490, 3490, 3490,    0, 3490, 3369,    4,  115, 3366, 3490,
      179, 3366,    0, 3490, 3490,  224, 3490, 3341, 3490, 3490,
      151, 3364,    0, 3490, 3490, 3490, 3339, 3490, 3490,    0,
     3362, 3490,    0, 3490, 3490,  229, 3360, 3490,  221, 3490,

      230,  252,    4, 3490,   31,  248,   81,   75, 3317,  140,
      255, 3314,  111,  154,  257,  147, 3307, 3319,    0, 3352,
     3490,    0, 3490, 3490,  295, 3351, 3339, 3490, 3490, 3490,
      441,  260, 3490,  200,  164,   21,  230,   81,  218,    0,
     3490, 3349, 3490, 3490,  445, 3348,    0, 3490, 3490,  460,
     3322,    0, 3490, 3490,  474, 3490, 3490, 3323, 3490, 3344,
     3490, 3342, 3490,  450, 3490,  488, 3490,  303, 3339,    0,
     3490, 3490,  505, 3490,  511,  479, 3314,  498,  440, 3300,
     3298, 3282, 3296, 3283, 3289, 3285,  497, 3298, 3293,  612,
      142,  499,  438, 3286, 3313, 3490,  551, 3322, 3490, 3290,

     3289,  202, 3268, 3307, 3490, 3314, 3490, 3312, 3490,    0,
      620,  255, 3260, 3235, 3246, 3225, 3247, 3490,    0, 3183,
     3166, 3187, 3490,  566, 3196,    0, 3490, 3490,  650,  661,
      555, 3170, 3160,  621, 3148, 3181,  207, 3490,  681,  682,
      436,  683, 3490, 3189,  687,  688,  692,  883,  901,  882,
      706, 1041,  916,  710,  711,    0, 3490, 3183,  570, 3490,
     1093,  657,  722, 3165,  735,  905,    0,  910, 3148,  959,
     3123,    0,  887, 3146,  446,    0, 3121,    0,    0,  480,
     3490,  939, 3144,  650,  949,  956, 1031, 3096, 3105, 3091,
     3090,  245, 3490, 3490, 3088, 3085, 3102, 3094, 3082, 3087,

      265,  679, 3080, 3490, 3084, 3077, 3074, 3074, 3071, 3070,
     3069, 3068, 3071, 3490, 3072, 3063, 3078, 3490, 3078,    0,
      740, 3490,  977, 3109,  747, 3095, 3076, 1051, 3097, 3045,
      716,    0, 3082, 1055,  136,  496, 1060,  502,  523,    0,
     3490,  877, 1066, 3092, 1075, 1151,    0, 1155, 3091, 1160,
     3066,    0,    0, 1166, 3066,    0, 3490,    0,    0, 1163,
     1081, 3087,  906,    0, 1177, 1183, 1185,    0, 3054, 3036,
     3038, 3025, 3006, 3002, 3018,  657,  671, 3012, 3004, 3015,
     3008, 2993, 2986, 3005, 3003, 2995, 2992, 2982,  685, 2983,
     2998, 2979, 2996, 2993, 2976,  234, 2957, 2934, 2938, 2949,

        0, 1086, 2979,  911, 2940, 2939, 2927, 2929, 2927,    0,
     2966, 2965,    0,  442, 2917, 2920, 2904, 2896, 2849, 2848,
     2846, 2857, 2850, 2838,    0,    0, 2838, 2874,    0, 1172,
     2881, 1056,    0, 1183, 1205, 1207,    0, 1209, 2838, 2836,
     2828,    0, 1070, 3490, 1211, 1213, 1156, 1215, 1217, 1219,
     1221, 1240, 1244, 1246, 1248, 1253, 1258, 1254, 1269, 1227,
     1306, 2875, 3490, 2875, 1293, 2873, 2846, 2845, 1282, 1283,
     1350, 3490, 3490, 3490, 3490, 3490, 3490, 3490, 3490, 3490,
     3490, 3490, 3490, 3490, 3490, 3490, 3490, 3490, 3490, 3490,
     3490, 3490, 3490, 3490, 3490, 3490, 3490, 3490, 3490, 3490,

     3490, 3490, 1370, 2856, 2855, 1242, 1374, 2841, 1378, 2864,
     1382,  933, 1386, 2862, 1390,  905, 1277, 2859, 1396, 2858,
     2832, 3490, 3490, 3490, 2831, 2820, 2819, 2810, 2795, 2767,
     2761, 2752, 2754, 1397, 2747, 2746,    0, 2738, 2416, 2415,
     2402, 2415, 2414, 2410, 2396, 2410, 2409, 2409,  907, 2397,
     2400, 2388, 2401, 2415, 2381, 2394, 2393, 2387, 2376, 2380,
     2370,    0, 2354, 2349, 2347, 2349, 2325,    0, 2313, 2312,
     2303, 2301, 2289, 2277, 2317, 2266, 2301, 2268, 2252, 2243,
        0, 2276, 2250,    0, 2251, 1401, 1287, 2236, 2237, 2227,
        0, 1407, 1408, 1409, 1413, 1414, 1415, 1419, 1425, 1423,

     1429, 1437, 1438, 1444, 1452, 1451,  922, 1463, 2206, 2201,
     2223, 1474, 1480, 2218, 2202, 2201, 2165, 1453, 1467, 2201,
     1500, 1468, 1474, 2194, 1504, 1508, 2138, 2130, 2119, 2105,
     2108, 2098, 2098, 2085, 2057, 2055, 1482, 1475, 2048, 2042,
        0, 2039,    0, 2036, 2028, 1514,    0, 2017, 1519, 1994,
     2001, 1997, 1995, 1994, 1983, 1972, 1998, 1993, 1969, 1520,
     1521, 1968,    0, 1525, 1957, 3490, 3490, 1974, 1937, 1944,
     1973, 1929, 1956, 1925, 1912, 1906, 3490, 1937, 3490, 1902,
     1929, 1933, 1888, 1862, 1858, 1480, 1526, 1869, 1861, 1527,
     1531, 1532, 1533, 1538, 1547, 1553, 1554, 1559, 1560, 1564,

     1565, 1569, 1583, 3490, 1861, 1859, 3490, 1577, 1855, 1578,
     1597, 1877, 1598, 1602, 1869, 1844, 1838, 1803, 1798, 1801,
        0,    0, 1802, 1794, 1778, 1607, 1791, 1774,    0, 1780,
        0, 1612, 1618, 1770, 1619, 1620, 1793, 1759, 1756, 1760,
     1740,    0, 1752, 1731, 1768, 1731, 1624, 1625, 1626, 1630,
     1744, 1631, 1636,    0, 1754, 1709, 1729, 1747, 1710, 1734,
     1732, 1700, 1719, 1680, 3490, 1666, 1663, 1667, 1637, 1638,
     1639, 1643, 1645, 1650, 1652, 1656, 1658, 1664, 1668, 1669,
     1670, 1674, 1682, 3490, 3490, 3490, 1683, 1697, 3490, 3490,
     1668, 1644, 1632, 1614, 1607,    0, 1601, 1613, 1597, 1698,

     1582, 1703, 1559, 1551, 1552, 1540, 1528, 1528, 1522,    0,
     1704, 1705, 1709, 1516, 1710, 3490, 3490, 1550, 1519, 1535,
     1496, 1490, 1503, 1480, 1480, 1470, 3490, 1711, 1716, 1717,
     1721, 1722, 1723, 1728, 1735, 1741, 1787, 1746, 1747, 1751,
     1753, 1451, 1411, 1410, 1404, 1757, 1407, 1400,    0, 1383,
     1380, 1759, 1379,    0, 1364, 1356, 1352, 1765, 1771, 1772,
     1341, 1333, 1343, 1340, 1325, 1268, 1243, 1247, 1242, 1778,
     1793, 1797, 1805, 1806, 1810, 1811, 1812, 1838, 1840, 1846,
     1847, 1848, 1854, 1861, 1862, 1872, 1799, 1876, 1824, 1221,
     1232, 1228, 1885, 1887, 1853, 1218, 1248, 1205, 1202, 1891,

     1897,    0, 1193, 1190, 1184, 1898, 1899, 1909, 1181, 1179,
     1184, 1155, 1184, 1142, 1119, 1125, 1147, 1913, 1915, 1917,
     1921, 1923, 1925, 1927, 1929, 1933, 1931, 1939, 1946, 1955,
     1962, 1960, 1967, 1968, 1974, 1981, 1983, 1048, 1028, 1034,
     1989, 1990, 1995, 1027, 1033,    0, 1029, 1996, 1008,  993,
     1007, 1997,  919,  939,  876,  836, 3490,  840,  713,  741,
     3490, 2010, 2015, 2016, 2017, 2022, 2023, 2028, 2029, 2038,
     2045, 2046, 2050, 2051, 2057, 2052, 2061, 2066, 2073, 2075,
      704,  688,  654, 2079, 2080,  648,  642, 2084,    0,    0,
      627,  620,  613,  641,  519, 2088, 2089, 2097, 2098, 2102,

     2112, 2113, 2114, 2120, 2124, 2125, 2126, 2130, 2135, 2136,
     2141, 2145, 2149, 2151,    0,    0, 2157, 2159,  511,  496,
     2161, 2163,  487,  456,  386, 3490,  291, 2167, 2172, 2173,
     2178, 2179, 2183, 2189, 2191, 2196, 2197, 2201, 2205, 2206,
     2207, 2218, 2220, 2228, 2229, 2230,  207,    0, 2234,  129,
      113, 3490, 2235, 2236, 2241, 2242, 2243, 2247, 2249, 2257,
     2259, 2264, 2265, 2270, 2275,    0,   62, 2277, 2282, 2283,
     2288, 2292, 2293, 2298, 2304,   20, 2305, 2311, 2316, 2300,
     2318,    2, 2326, 2330, 2332, 2339, 2340, 3490, 2344, 2351,
     2345, 2353, 2358, 2363, 2367, 2369, 2374, 2376, 2381, 2388,

     2390, 2392, 2397, 2398, 2403, 2410, 2411, 2416, 2421, 2417,
     2422, 3490, 2456, 2475, 2494, 2513, 2532, 2551, 2570, 2589,
     2608, 2627, 2646, 2665, 2684, 2703, 2722, 2741, 2760, 2779,
     2798, 2815, 2833, 2847, 2858, 2869, 2880, 2896, 2912, 2930,
     2947, 2960, 2971, 2987, 3005, 3019, 3030, 3046, 3065, 3079,
     3094, 3105, 3119, 3133, 3152, 3171, 3185, 3201, 3220, 3239,
     3258, 3277, 3296, 3310, 3324, 3338, 3352, 3366, 3380, 3399,
     3413, 3432, 3446, 3457, 3470
    } ;

static yyconst short int yy_def[1176] =
    {   0,
     1113, 1114, 1115, 1115, 1116, 1117, 1118, 1118, 1119, 1119,
     1120, 1120, 1112,   13, 1121, 1121, 1112,   17, 1122, 1122,
     1123, 1123, 1124, 1124, 1125, 1125, 1126, 1126, 1127, 1127,
     1112,   31, 1128, 1128, 1112,   35, 1112,   37, 1129, 1129,
     1112,   41, 1112, 1112, 1112, 1112, 1112, 1130, 1130, 1112,
     1112, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1131,
     1112, 1112, 1112, 1132, 1112, 1133, 1133, 1133, 1133, 1112,
     1112, 1112, 1134, 1112, 1112, 1112, 1112, 1135, 1112, 1112,
     1112, 1112, 1136, 1112, 1112, 1112, 1137, 1112, 1112, 1138,
     1112, 1112, 1139, 1112, 1112, 1112, 1112, 1112, 1112, 1112,

     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1140, 1112,
     1112, 1141, 1112, 1112, 1112, 1112, 1142, 1112, 1112, 1112,
     1112, 1143, 1112, 1142, 1142, 1142, 1142, 1142, 1142, 1144,
     1112, 1145, 1112, 1112, 1112, 1112, 1146, 1112, 1112, 1112,
     1147, 1148, 1112, 1112, 1149, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1150,
     1112, 1112, 1150, 1112, 1150, 1112, 1112, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1112, 1112, 1112, 1112, 1112,

     1112, 1112, 1112, 1112, 1112, 1151, 1112, 1151, 1112, 1152,
     1112, 1152, 1152, 1152, 1152, 1152, 1152, 1112, 1153, 1112,
     1153, 1153, 1112, 1112, 1112, 1154, 1112, 1112, 1154, 1154,
     1112, 1112, 1154, 1154, 1154, 1154, 1112, 1112, 1130, 1130,
     1112, 1130, 1112, 1112, 1130, 1130, 1130, 1130, 1130, 1130,
     1130, 1130, 1130, 1130, 1130, 1131, 1112, 1133, 1133, 1112,
     1112, 1133, 1112, 1112, 1112, 1112, 1134, 1112, 1112, 1112,
     1135, 1155, 1112, 1112, 1112, 1136, 1137, 1156, 1138, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,

     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1140,
     1112, 1112, 1112, 1112, 1112, 1142, 1157, 1112, 1112, 1112,
     1143, 1158, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1144,
     1112, 1112, 1112, 1112, 1112, 1112, 1146, 1112, 1112, 1112,
     1147, 1159, 1148, 1149, 1160, 1148, 1112, 1161, 1162, 1112,
     1112, 1112, 1112, 1150, 1150, 1112, 1112, 1163, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150,

     1164, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1165,
     1151, 1151, 1152, 1112, 1112, 1112, 1112, 1112, 1152, 1152,
     1152, 1152, 1152, 1152, 1166, 1167, 1112, 1167, 1168, 1112,
     1112, 1112, 1169, 1169, 1112, 1112, 1170, 1169, 1169, 1169,
     1169, 1171, 1112, 1112, 1172, 1172, 1112, 1172, 1172, 1172,
     1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1112,
     1112,  461, 1112, 1112, 1112, 1112, 1155, 1156, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,

     1112, 1112, 1112, 1173, 1174, 1112, 1112, 1158, 1112, 1112,
     1142, 1142, 1112, 1112, 1142, 1142, 1112, 1112, 1112, 1112,
     1159, 1112, 1112, 1112, 1163, 1150, 1150, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150,
     1150, 1164, 1112, 1112, 1112, 1112, 1112, 1165, 1112, 1112,
     1112, 1112, 1112, 1112, 1152, 1152, 1152, 1152, 1152, 1152,
     1166, 1112, 1167, 1168, 1170, 1112, 1112, 1169, 1169, 1169,
     1171, 1172, 1112, 1112, 1172, 1172, 1172, 1172, 1172, 1172,

     1172, 1172, 1172, 1172, 1172, 1112, 1175, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1173, 1174, 1112, 1112, 1112, 1112,
     1142, 1112, 1112, 1112, 1142, 1112, 1112, 1112, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1112, 1112, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1152, 1112, 1152,
     1152, 1152, 1112, 1167, 1112, 1112, 1169, 1169, 1169, 1112,
     1172, 1172, 1112, 1172, 1112, 1172, 1172, 1172, 1172, 1172,

     1172, 1172, 1172, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1112, 1150, 1150, 1150, 1150,
     1150, 1112, 1112, 1150, 1112, 1112, 1150, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1112, 1112, 1112, 1112,
     1150, 1112, 1112, 1150, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1152, 1152, 1152, 1112, 1112, 1167, 1112, 1112, 1112,
     1169, 1169, 1172, 1112, 1112, 1172, 1172, 1172, 1172, 1172,
     1172, 1172, 1172, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1112,

     1150, 1112, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150,
     1150, 1112, 1112, 1150, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1152, 1152, 1152, 1112, 1167, 1112, 1112, 1169, 1112,
     1112, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1112,
     1172, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150, 1150,
     1150, 1150, 1150, 1150, 1150, 1150, 1150, 1112, 1112, 1150,
     1112, 1112, 1112, 1112, 1152, 1152, 1152, 1112, 1167, 1112,
     1112, 1112, 1172, 1172, 1172, 1172, 1172, 1172, 1172, 1172,
     1172, 1172, 1172, 1172, 1172, 1172, 1112, 1172, 1112, 1150,
     1150, 1150, 1150, 1112, 1112, 1150, 1150, 1150, 1150, 1112,

     1112, 1150, 1150, 1150, 1150, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1152, 1152, 1152, 1112, 1167, 1112, 1172, 1172,
     1172, 1172, 1172, 1172, 1112, 1172, 1112, 1172, 1172, 1172,
     1172, 1172, 1172, 1172, 1172, 1172, 1112, 1150, 1150, 1150,
     1112, 1112, 1112, 1150, 1150, 1150, 1150, 1112, 1150, 1150,
     1150, 1112, 1112, 1112, 1112, 1112, 1112, 1152, 1152, 1112,
     1112, 1172, 1172, 1172, 1172, 1172, 1172, 1112, 1112, 1172,
     1172, 1112, 1172, 1172, 1172, 1172, 1172, 1112, 1172, 1172,
     1150, 1150, 1150, 1112, 1150, 1150, 1150, 1150, 1150, 1150,
     1112, 1112, 1112, 1152, 1152, 1172, 1172, 1112, 1172, 1172,

     1172, 1112, 1172, 1172, 1112, 1112, 1172, 1172, 1172, 1172,
     1112, 1172, 1172, 1150, 1150, 1150, 1112, 1112, 1150, 1150,
     1112, 1112, 1112, 1112, 1112, 1112, 1152, 1172, 1112, 1172,
     1172, 1112, 1172, 1112, 1172, 1112, 1172, 1112, 1172, 1172,
     1172, 1112, 1172, 1112, 1112, 1112, 1150, 1150, 1112, 1112,
     1112, 1112, 1172, 1172, 1172, 1112, 1172, 1112, 1112, 1112,
     1172, 1172, 1112, 1172, 1112, 1150, 1112, 1172, 1172, 1112,
     1112, 1172, 1172, 1112, 1172, 1112, 1172, 1172, 1172, 1112,
     1172, 1112, 1172, 1172, 1172, 1112, 1172, 1112, 1172, 1172,
     1112, 1172, 1172, 1172, 1172, 1112, 1172, 1172, 1112, 1172,

     1112, 1172, 1112, 1172, 1172, 1172, 1172, 1172, 1172, 1112,
     1112,    0, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112
    } ;

static yyconst short int yy_nxt[3550] =
    {   0,
     1112,   45,  237,   46,   45,  237,  260,  259,   47,   49,
       44,   50,   49,   61,  120, 1112,   47,  121,   62,   63,
       61,   51,   65,   67,  240,   62,   63,  240,   91,   44,
      141,  142,   68,   69,  327,   91,  141,  142, 1088,   64,
      122,   52,   53,   54,  241,   55,   64,  120,  157,  157,
      121,  288,   56,   92,   93,   94,  289,   57,   58,   59,
       92,   93,   94, 1082,  157,  157,  290,  335,   61,  123,
      336,  242,  158,  122,  242,   61,   70,   71,   70,   72,
       71,  291,   74,   92,   75,   70,  143,   76,  158,   77,
       92,  241,  143,  240,  327, 1076,  240,   77,   77,   77,

       78,   77,  123,   77,   79,   70,   70,  153,  154,  153,
      153,  297,  240,  241,  153,  240,  295,  153,  259, 1052,
      240,  338,  240,  240,  298,  240,  245,  261,  153,  155,
      240,  296,  241,  240,   70,   70,   71,   70,   72,   71,
      241,   74,  241,   75,   70,  308,   76,  252,   77,  327,
      241,  248,  273,  309,  274,  273,   77,   77,   77,   78,
       77, 1067,   77,   79,   70,   70,  153,  154,  153,  153,
      249,  240,  300,  153,  240,  255,  153,  327,  393,  394,
      263,  240,  264,  263,  240,  511,  316,  153,  155,  310,
      265,  241,  301,   70,   80,   81,   80,   82,   81,  317,

       84,  241,   85,   80,  311,   80,  250,   86,  237,  240,
      251,  237,  240,  327,  246,   86,   80,   86,   87,   88,
      334,   86,   89,   80,   80,  268,  247,  269,  268,  241,
      282,  327,  283,  282,  407,  270,  285,  285,  285,  285,
      285,  285,  408,  327,  253,  286,  286,  286,  286,  286,
      286,  333,   80,   80,   81,   80,   82,   81,  339,   84,
      254,   85,   80, 1066,   80,  337,   86,  287,  287,  287,
      287,  287,  287,  327,   86,   80,   86,   87,   88,  476,
       86,   89,   80,   80,  292,  556,  332,  302,  293,  312,
      303,  557,  419,  313,  294,  304,  323, 1052,  324,  323,

      420,  305,  477,  314,  361,  306,  362,  361,  484,  315,
      485,   80,   95,   96,   95,   97,   96,   95,   95,   95,
       98,   95,   99,  100,  101,   95,   95,  102,  102,  102,
      102,  102,  102,  100,   95,   95,   95,   95,   95,   95,
       95,   95,   95,   95,  103,  104,  105,  106,  107,  108,
      109,  104,  104,  110,  104,  104,  111,  112,  113,  114,
      104,  104,  115,  116,  117,  104,  118,  104,  104,  104,
       95,  124,  125,  124,  126,  125,  127,  128,  127,  129,
      124,  127,  124,  127,  124,  127,  127,  127,  127,  127,
      127,  127,  130,  131,  130,  132,  130,  127,  124,  133,

      124,  124,  127,  134,  135,  127,  127,  127,  136,  127,
      127,  137,  127,  127,  127,  127,  127,  127,  127,  127,
      127,  127,  127,  127,  138,  139,  127,  127,  127,  124,
      144,  145,  144,  146,  145, 1051,  148,  443,  149,  144,
      443,  150,  328,  144,  329,  328,  343,  273,  344,  343,
      273,  144,  144,  144,  151,  144,  345,  144,  144,  144,
      144,  348, 1026,  349,  348,  360,  360,  360,  360,  360,
      360,  350,  373,  330,  398,  355,  355,  355,  355,  569,
      366,  469,  355,  366,  469,  355,  374,  570,  144,  144,
      145,  144,  146,  145,  399,  148,  355,  149,  144,  356,

      150,  367,  144,  360,  360,  360,  360,  360,  360,  327,
      144,  144,  144,  151,  144,  327,  144,  144,  144,  144,
      365,  365,  365,  365,  365,  365,  365,  365,  365,  365,
      365,  365,  369,  382,  515,  395,  327,  383, 1050,  396,
     1048,  370,  512,  384,  385,  371, 1047,  144,  162,  386,
      372,  397,  402,  163,  403,  402,  435,  164,  165,  435,
      166,  166,  166,  166,  166,  166,  162,  430, 1027,  431,
      430,  163,  260,  259,  516,  164,  165,  436,  166,  166,
      166,  166,  166,  166,  167,  168,  167,  169,  168,  170,
      171,  170,  172,  167,  170,  167,  173,  170,  174,  175,

      175,  175,  175,  175,  175,  167,  176,  167,  177,  167,
      167,  167,  167,  167,  167,  170,  178,  179,  180,  181,
      182,  170,  183,  184,  185,  186,  170,  170,  187,  188,
      189,  190,  170,  191,  192,  193,  170,  194,  170,  195,
      170,  170,  170,  197,  389,  198,  197, 1026,  390, 1025,
      199,  282,  414,  439,  282,  391, 1024,  415,  392,  463,
      259,  200,  201,  416,  417,  434,  434,  434,  434,  434,
      434,  418, 1023,  440, 1020,  202,  434,  434,  434,  434,
      434,  434,  240,  240,  242,  240,  240,  242,  240,  446,
      203,  240,  446,  240, 1019,  533,  240,  204,  197, 1016,

      198,  197,  241,  241,  241,  199,  534,  240,  241,  447,
      240,  240,  459,  241,  240,  459,  200,  201,  535,  486,
      548,  445,  536,  263, 1015,  264,  263,  241,  487,  327,
      202,  241,  460,  265,  549,  488,  268,  448,  269,  268,
     1014,  503, 1112,  458,  503,  203,  270,  961,  323,  995,
      452,  323,  204,  205,  205,  205,  205,  206,  205,  207,
      208,  208,  208,  208,  208,  208,  208,  208,  208,  208,
      208,  208,  208,  208,  208,  205,  205,  208,  205,  208,
      205,  205,  205,  205,  208,  208,  208,  208,  208,  208,
      208,  208,  208,  208,  208,  208,  208,  208,  208,  208,

      208,  208,  208,  208,  208,  208,  208,  208,  208,  208,
      208,  205,  209,  209,  209,  209,  209,  210,  211,  210,
      209,  209,  210,  209,  210,  210,  209,  210,  210,  210,
      210,  210,  210,  209,  209,  209,  209,  209,  209,  209,
      209,  209,  209,  210,  212,  210,  210,  210,  210,  213,
      210,  210,  210,  210,  210,  214,  215,  210,  210,  210,
      210,  210,  210,  216,  210,  210,  210,  217,  210,  210,
      210,  218,  218,  218,  218,  218,  994,  220,  517,  218,
      218,  517,  218,  240,  240,  218,  240,  240,  273,  993,
      274,  273,  218,  218,  218,  218,  218,  218,  218,  218,

      218,  218,  240,  241,  241,  240,  263,  361,  464,  263,
      361,  268,  402,  269,  268,  402,  265,  240,  327,  992,
      240,  270,  241,  221,  704,  259,  222,  218,  218,  218,
      218,  218,  451,  220,  449,  218,  218,  241,  218,  652,
      282,  218,  283,  282,  625,  957,  327,  450,  218,  218,
      218,  218,  218,  218,  218,  218,  218,  218,  653,  991,
      465,  457,  466,  465,  470,  470,  470,  470,  470,  470,
      270,  471,  471,  471,  471,  471,  471,  621,  323,  221,
      324,  323,  222,  223,  224,  223,  225,  224,  226,  227,
      226,  228,  223,  226,  223,  229,  226,  223,  230,  230,

      230,  230,  230,  230,  223,  231,  223,  232,  223,  223,
      223,  223,  223,  223,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  233,  226,  226,  226,  226,  234,  226,
      226,  226,  226,  226,  235,  226,  226,  226,  236,  226,
      226,  226,  240,  990,  989,  240,  287,  287,  287,  287,
      287,  287,  328,  988,  329,  328,  509,  430,  510,  509,
      430,  513,  241,  514,  513,  987,  986,  343,  327,  344,
      343,  443,  985,  327,  443,  453,  348,  345,  349,  348,
      983,  982,  361,  330,  362,  361,  350,  402,  454,  403,
      402,  455,  456,  258,  258,  981,  259,  461,  258,  258,

      462,  462,  462,  462,  462,  462,  462,  462,  462,  462,
      462,  462,  462,  462,  462,  258,  258,  462,  258,  462,
      258,  258,  258,  258,  462,  462,  462,  462,  462,  462,
      462,  462,  462,  462,  462,  462,  462,  462,  462,  462,
      462,  462,  462,  462,  462,  462,  462,  462,  462,  462,
      462,  258,  343,  961,  518,  343,  348,  594,  349,  348,
      594,  519,  345,  520,  519,  960,  350,  355,  355,  355,
      355,  350,  959,  430,  355,  431,  430,  355,  360,  360,
      360,  360,  360,  360,  366,  958,  366,  366,  355,  366,
      957,  356,  365,  365,  365,  365,  365,  365,  434,  434,

      434,  434,  434,  434,  956,  367,  435,  367,  435,  435,
      586,  435,  592,  586,  446,  592,  240,  446,  240,  240,
      240,  240,  240,  240,  955,  240,  954,  436,  606,  436,
      953,  606,  593,  587,  447,  951,  241,  950,  241,  949,
      241,  240,  241,  328,  240,  240,  328,  240,  240,  240,
      240,  947,  240,  596,  240,  240,  946,  240,  240,  240,
      945,  241,  240,  597,  944,  241,  595,  241,  940,  241,
      459,  598,  939,  459,  241,  241,  599,  938,  517,  241,
      600,  517,  917,  469,  602,  611,  469,  916,  686,  601,
      460,  686,  915,  604,  465,  605,  466,  465,  612,  612,

      612,  612,  612,  612,  270,  603,  258,  258,  914,  259,
      461,  258,  258,  462,  462,  462,  462,  462,  462,  462,
      462,  462,  462,  462,  462,  462,  462,  462,  258,  258,
      462,  258,  462,  258,  258,  258,  258,  462,  462,  462,
      462,  462,  462,  462,  462,  462,  462,  462,  462,  462,
      462,  462,  462,  462,  462,  462,  462,  462,  462,  462,
      462,  462,  462,  462,  258,  613,  613,  613,  613,  613,
      613,  503,  913,  614,  503,  328,  912,  329,  328,  509,
      911,  510,  509,  619,  910,  620,  619,  513,  909,  514,
      513,  623,  905,  624,  623,  327,  904,  519,  637,  520,

      519,  637,  586,  327,  903,  586,  330,  350,  592,  690,
      594,  592,  690,  594,  240,  692,  694,  240,  692,  694,
      240,  638,  902,  240,  240,  587,  240,  240,  593,  240,
      240,  899,  898,  240,  241,  693,  695,  697,  240,  240,
      241,  240,  240,  897,  241,  240,  241,  896,  240,  691,
      241,  696,  606,  240,  509,  606,  240,  509,  241,  241,
      893,  892,  891,  698,  608,  241,  464,  608,  619,  513,
      620,  619,  513,  241,  265,  623,  726,  624,  623,  726,
      702,  686,  700,  637,  686,  699,  637,  701,  703,  707,
      707,  707,  707,  707,  707,  708,  708,  708,  708,  708,

      708,  711,  890,  712,  711,  714,  638,  715,  714,  626,
      869,  518,  626,  327,  868,  732,  867,  327,  732,  345,
      735,  747,  749,  735,  747,  749,  752,  769,  690,  752,
      769,  690,  240,  692,  774,  240,  692,  774,  733,  694,
      866,  865,  694,  736,  748,  750,  864,  863,  775,  753,
      770,  775,  241,  693,  240,  240,  862,  240,  240,  695,
      240,  240,  861,  240,  240,  240,  240,  860,  240,  240,
      240,  857,  779,  240,  241,  241,  773,  856,  855,  619,
      241,  241,  619,  854,  240,  241,  241,  240,  853,  852,
      241,  776,  287,  287,  287,  287,  287,  287,  711,  623,

      712,  711,  623,  714,  241,  715,  714,  777,  726,  851,
      781,  726,  778,  732,  850,  780,  732,  783,  782,  800,
      735,  802,  800,  735,  802,  747,  812,  749,  747,  812,
      749,  813,  752,  849,  813,  752,  733,  815,  769,  828,
      815,  769,  828,  736,  830,  848,  240,  830,  748,  240,
      750,  774,  847,  775,  774,  753,  775,  240,  846,  240,
      240,  770,  240,  845,  844,  240,  241,  831,  240,  240,
      240,  240,  240,  240,  240,  839,  843,  241,  839,  241,
      842,  837,  838,  240,  711,  241,  240,  711,  829,  241,
      241,  241,  833,  827,  834,  840,  832,  826,  714,  800,

      835,  714,  800,  241,  802,  858,  812,  802,  858,  812,
      813,  815,  828,  813,  815,  828,  825,  870,  830,  836,
      870,  830,  872,  240,  240,  872,  240,  240,  859,  240,
      824,  823,  240,  841,  873,  874,  240,  822,  765,  240,
      871,  831,  240,  241,  241,  240,  821,  240,  839,  241,
      240,  839,  887,  820,  888,  887,  241,  888,  894,  819,
      900,  894,  241,  900,  818,  817,  858,  241,  840,  858,
      876,  816,  906,  907,  889,  906,  907,  875,  814,  870,
      811,  895,  870,  901,  810,  809,  808,  877,  240,  859,
      807,  240,  806,  885,  918,  886,  908,  918,  872,  805,

      887,  872,  871,  887,  804,  803,  240,  240,  241,  240,
      240,  240,  924,  926,  240,  924,  926,  801,  799,  798,
      878,  879,  880,  797,  881,  937,  241,  241,  937,  796,
      795,  241,  925,  927,  794,  793,  882,  883,  884,  240,
      919,  240,  240,  792,  240,  920,  922,  240,  240,  240,
      240,  240,  240,  791,  943,  240,  921,  943,  240,  241,
      923,  241,  240,  240,  790,  240,  240,  241,  241,  241,
      789,  788,  928,  240,  929,  241,  240,  888,  930,  787,
      888,  786,  241,  241,  932,  785,  941,  784,  894,  941,
      933,  894,  900,  241,  935,  900,  931,  889,  948,  906,

      907,  948,  906,  907,  772,  771,  768,  934,  936,  942,
      952,  895,  767,  952,  918,  901,  240,  918,  240,  240,
      766,  240,  240,  908,  240,  240,  240,  240,  924,  240,
      968,  924,  969,  968,  926,  969,  241,  926,  241,  765,
      240,  764,  241,  240,  241,  763,  241,  971,  925,  762,
      971,  962,  963,  761,  927,  760,  240,  759,  966,  240,
      241,  240,  679,  240,  240,  967,  240,  972,  240,  977,
      964,  240,  977,  970,  758,  240,  241,  965,  240,  677,
      757,  241,  240,  241,  937,  240,  756,  937,  241,  978,
      941,  984,  755,  941,  984,  241,  943,  948,  952,  943,

      948,  952,  241,  754,  751,  746,  973,  975,  974,  745,
      744,  240,  976,  942,  240,  980,  997,  240,  240,  997,
      240,  240,  743, 1001,  240,  979, 1001,  240,  742,  968,
      969,  241,  968,  969,  741,  740,  998,  241,  241, 1004,
      739,  738, 1004, 1002,  241,  737,  971, 1006,  999,  971,
     1006,  240,  240,  240,  240,  240,  240,  734,  240, 1005,
      996,  240,  977,  731, 1000,  977,  972, 1011,  730, 1003,
     1011,  241,  241,  241,  240,  729,  240,  240,  241,  240,
      984, 1017,  978,  984, 1017, 1021, 1007, 1010, 1021,  240,
      997,  728,  240,  997,  241, 1008,  241,  727, 1029,  240,

     1009, 1029,  240,  240, 1018,  725,  240,  724, 1022,  241,
      998, 1013, 1012, 1001, 1032,  240, 1001, 1032,  240,  241,
      723, 1004, 1028,  241, 1004, 1034, 1006, 1035, 1034, 1006,
     1035, 1037,  722, 1002, 1037,  241,  240,  240, 1031,  240,
      240, 1005, 1011, 1030,  721, 1011, 1041, 1036,  720, 1041,
      240, 1038, 1044,  240,  719, 1044,  241,  241, 1017, 1033,
     1046, 1017, 1021, 1046, 1049, 1021, 1042, 1049,  240,  718,
      241,  240, 1040, 1029,  240, 1045, 1029,  240,  717, 1055,
     1032, 1018, 1055, 1032, 1057, 1022,  716, 1057,  241, 1043,
     1034, 1039, 1035, 1034,  241, 1035,  713, 1059, 1037, 1056,

     1059, 1037, 1060,  710, 1058, 1060,  240,  240, 1041,  240,
      240, 1041, 1036,  709,  327,  327, 1053, 1061, 1038, 1063,
      321,  240, 1063, 1054,  240,  280,  241,  241, 1042, 1044,
     1065, 1046, 1044, 1065, 1046, 1049,  240,  240, 1049,  240,
      240,  241, 1055, 1070, 1057, 1055, 1070, 1057, 1071,  706,
     1059, 1071, 1045, 1059,  705, 1062,  241,  241, 1060,  689,
      240, 1060, 1056,  240, 1058, 1073, 1063, 1064, 1073, 1063,
      688,  240,  687, 1069,  240, 1068, 1065,  685,  240, 1065,
      241,  240,  684,  240, 1070, 1074,  240, 1070,  683, 1071,
      682,  241, 1071,  240, 1073,  681,  240, 1073,  241, 1080,

      680, 1080, 1080,  241, 1080,  240,  240,  679,  240,  240,
     1072,  678,  240,  241, 1074,  240, 1081, 1085, 1078,  240,
     1085, 1075,  240,  677, 1077,  241,  241,  240,  676,  675,
      240,  240,  241, 1085,  240,  674, 1085, 1086, 1079,  241,
     1091,  240, 1090, 1091,  240,  240, 1091,  241,  240, 1091,
      673,  241,  240, 1086, 1095,  240, 1083, 1095,  672,  240,
     1084,  241,  240,  671,  240,  241, 1089,  240, 1095, 1087,
     1099, 1095,  241, 1099, 1096, 1100,  670,  240, 1100,  241,
      240,  669, 1099,  668,  241, 1099, 1092, 1094, 1096, 1100,
     1093, 1103, 1100,  240, 1103, 1101,  240,  241, 1103,  240,

      667, 1103,  240, 1097,  240,  666,  665,  240, 1098, 1101,
     1102,  240,  240,  241,  240,  240,  664, 1109, 1111,  241,
     1109, 1111, 1109, 1111,  241, 1109, 1111,  663,  662,  661,
      660,  241,  241, 1105,  659,  658,  657, 1110, 1104,  656,
      655,  654, 1110, 1106,  651,  650,  649,  648,  647, 1108,
      646,  645,  644,  643,  642, 1107,   44,   44,   44,   44,
       44,   44,   44,   44,   44,   44,   44,   44,   44,   44,
       44,   44,   44,   44,   44,   48,   48,   48,   48,   48,
       48,   48,   48,   48,   48,   48,   48,   48,   48,   48,
       48,   48,   48,   48,   60,   60,   60,   60,   60,   60,

       60,   60,   60,   60,   60,   60,   60,   60,   60,   60,
       60,   60,   60,   65,   65,   65,   65,   65,   65,   65,
       65,   65,   65,   65,   65,   65,   65,   65,   65,   65,
       65,   65,   66,   66,   66,   66,   66,   66,   66,   66,
       66,   66,   66,   66,   66,   66,   66,   66,   66,   66,
       66,   73,   73,   73,   73,   73,   73,   73,   73,   73,
       73,   73,   73,   73,   73,   73,   73,   73,   73,   73,
       83,   83,   83,   83,   83,   83,   83,   83,   83,   83,
       83,   83,   83,   83,   83,   83,   83,   83,   83,   90,
       90,   90,   90,   90,   90,   90,   90,   90,   90,   90,

       90,   90,   90,   90,   90,   90,   90,   90,  119,  119,
      119,  119,  119,  119,  119,  119,  119,  119,  119,  119,
      119,  119,  119,  119,  119,  119,  119,  140,  140,  140,
      140,  140,  140,  140,  140,  140,  140,  140,  140,  140,
      140,  140,  140,  140,  140,  140,  147,  147,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,  147,  147,  147,  152,  152,  152,  152,  152,
      152,  152,  152,  152,  152,  152,  152,  152,  152,  152,
      152,  152,  152,  152,  156,  156,  156,  156,  156,  156,
      156,  156,  156,  156,  156,  156,  156,  156,  156,  156,

      156,  156,  156,  159,  159,  159,  159,  159,  159,  159,
      159,  159,  159,  159,  159,  159,  159,  159,  159,  159,
      159,  159,  161,  161,  161,  161,  161,  161,  161,  161,
      161,  161,  161,  161,  161,  161,  161,  161,  161,  161,
      161,  196,  196,  196,  196,  196,  196,  196,  196,  196,
      196,  196,  196,  196,  196,  196,  196,  196,  196,  196,
      219,  219,  219,  219,  219,  219,  219,  219,  219,  219,
      219,  219,  219,  219,  219,  219,  219,  219,  219,  239,
      239,  641,  640,  239,  239,  239,  239,  639,  239,  239,
      636,  239,  239,  239,  239,  239,  239,  239,  256,  256,

      256,  635,  256,  256,  256,  256,  634,  633,  256,  256,
      256,  256,  256,  256,  256,  257,  257,  257,  257,  257,
      257,  257,  257,  257,  257,  257,  257,  257,  257,  257,
      257,  257,  257,  258,  258,  632,  258,  258,  258,  258,
      258,  258,  258,  258,  258,  258,  258,  258,  258,  258,
      258,  258,  267,  631,  267,  630,  629,  628,  627,  267,
      519,  626,  267,  271,  622,  271,  618,  617,  327,  327,
      271,  610,  609,  271,  276,  465,  276,  608,  607,  590,
      589,  276,  588,  432,  276,  277,  583,  277,  582,  580,
      579,  578,  277,  577,  576,  277,  279,  279,  279,  575,

      279,  279,  279,  279,  279,  279,  279,  279,  279,  279,
      279,  279,  281,  281,  281,  281,  281,  281,  281,  281,
      281,  281,  281,  281,  281,  281,  281,  281,  281,  281,
      320,  320,  320,  574,  320,  320,  573,  320,  320,  320,
      320,  320,  320,  320,  320,  320,  320,  322,  322,  322,
      322,  322,  322,  322,  322,  322,  322,  322,  322,  322,
      322,  322,  322,  322,  322,  326,  572,  326,  571,  411,
      411,  326,  326,  567,  566,  326,  331,  565,  331,  564,
      563,  404,  331,  331,  561,  560,  331,  340,  340,  559,
      558,  340,  340,  340,  340,  340,  340,  340,  340,  340,

      340,  340,  340,  340,  340,  341,  341,  341,  341,  341,
      341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
      341,  341,  341,  341,  347,  555,  347,  554,  553,  552,
      551,  347,  550,  547,  347,  351,  546,  351,  545,  544,
      543,  542,  351,  541,  540,  351,  353,  539,  538,  537,
      532,  353,  353,  353,  531,  353,  530,  353,  353,  353,
      529,  353,  353,  353,  353,  354,  354,  354,  354,  354,
      354,  354,  354,  354,  354,  354,  354,  354,  354,  354,
      354,  354,  354,  354,  364,  528,  364,  527,  526,  363,
      364,  522, 1112,  348,  346,  327,  507,  364,  412,  506,

      505,  412,  412,  412,  412,  412,  412,  412,  327,  412,
      413,  325,  413,  502,  501,  500,  413,  499,  498,  497,
      496,  495,  494,  413,  426,  493,  426,  492,  491,  490,
      426,  489,  483,  482,  481,  480,  479,  426,  433,  478,
      433,  475,  474,  473,  433,  472,  284, 1112,  275, 1112,
      268,  433,  467,  467,  467,  467,  467,  467,  467,  467,
      467,  467,  467,  467,  467,  467,  467,  266,  467,  467,
      467,  468,  468,  468,  468,  468,  468,  468,  468,  468,
      468,  468,  468,  468,  468,  468,  259,  468,  468,  468,
      504,  444,  504,  442,  441,  438,  437,  504,  432,  429,

      504,  508,  508,  508,  508,  508,  508,  508,  508,  508,
      508,  508,  508,  508,  508,  508,  428,  508,  508,  508,
      521,  521,  521,  521,  521,  521,  521,  521,  521,  521,
      521,  521,  521,  521,  521,  427,  521,  521,  521,  355,
      355,  355,  355,  355,  355,  355,  355,  355,  355,  355,
      355,  355,  355,  355,  355,  355,  355,  355,  523,  425,
      523,  523,  424,  523,  523,  523,  523,  523,  523,  523,
      523,  523,  523,  523,  523,  523,  523,  524,  423,  524,
      524,  422,  524,  524,  524,  524,  524,  524,  524,  524,
      524,  524,  524,  524,  524,  524,  525,  525,  525,  525,

      525,  525,  525,  525,  525,  525,  525,  525,  525,  525,
      525,  421,  525,  525,  525,  562,  411,  562,  411,  410,
      409,  562,  406,  405,  404,  401,  400,  388,  562,  568,
      387,  568,  381,  380,  379,  568,  378,  377,  376,  375,
      368,  363,  568,  581,  359,  581,  358,  357,  352,  581,
      346,  342,  327,  325,  321,  319,  581,  426,  318,  426,
      307,  299,  284,  426,  280,  278,  275,  272,  266,  262,
      426,  584,  259,  584,  244,  243,  238,  584, 1112,  160,
      160, 1112, 1112, 1112,  584,  433, 1112,  433, 1112, 1112,
     1112,  433, 1112, 1112, 1112, 1112, 1112, 1112,  433,  585,

      585,  585,  585,  585,  585,  585,  585,  585,  585,  585,
      585,  585,  585,  585, 1112,  585,  585,  585,  591, 1112,
      591, 1112, 1112, 1112,  591, 1112, 1112, 1112, 1112, 1112,
     1112,  591,  239,  239, 1112, 1112,  239,  239,  239,  239,
     1112,  239,  239, 1112,  239,  239,  239,  239,  239,  239,
      239,  615, 1112,  615, 1112, 1112, 1112,  615,  615, 1112,
     1112,  615,  616, 1112,  616, 1112, 1112, 1112,  616,  616,
      258,  258,  258,  258,  258,  258,  258,  258,  258,  258,
      258,  258,  258,  258,  258,  258,  258,  258,  258,   43,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,

     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112
    } ;

static yyconst short int yy_chk[3550] =
    {   0,
        0,    1,   45,    1,    1,   45,   67,   67,    1,    2,
        2,    2,    2,    3,   15,    0,    2,   15,    3,    3,
        4,    2,    6,    6,   48,    4,    4,   48,   11,    2,
       19,   19,    6,    6,  136,   12,   20,   20, 1082,    3,
       15,    2,    2,    2,   48,    2,    4,   16,   25,   25,
       16,  103,    2,   11,   11,   11,  103,    2,    2,    2,
       12,   12,   12, 1076,   26,   26,  105,  136,    3,   15,
      136,   49,   25,   16,   49,    4,    7,    7,    7,    7,
        7,  105,    7,   11,    7,    7,   19,    7,   26,    7,
       12,   49,   20,   52,  138, 1067,   52,    7,    7,    7,

        7,    7,   16,    7,    7,    7,    7,   23,   23,   23,
       23,  108,   57,   52,   23,   57,  107,   23,   68, 1051,
       54,  138,   55,   54,  108,   55,   52,   68,   23,   23,
       59,  107,   57,   59,    7,    8,    8,    8,    8,    8,
       54,    8,   55,    8,    8,  113,    8,   57,    8,  335,
       59,   54,   81,  113,   81,   81,    8,    8,    8,    8,
        8, 1050,    8,    8,    8,    8,   24,   24,   24,   24,
       55,   56,  110,   24,   56,   59,   24,  135,  191,  191,
       71,   53,   71,   71,   53,  335,  116,   24,   24,  114,
       71,   56,  110,    8,    9,    9,    9,    9,    9,  116,

        9,   53,    9,    9,  114,    9,   56,    9,  237,   58,
       56,  237,   58,  134,   53,    9,    9,    9,    9,    9,
      135,    9,    9,    9,    9,   76,   53,   76,   76,   58,
       96,  139,   96,   96,  202,   76,   99,   99,   99,   99,
       99,   99,  202,  137,   58,  101,  101,  101,  101,  101,
      101,  134,    9,   10,   10,   10,   10,   10,  139,   10,
       58,   10,   10, 1047,   10,  137,   10,  102,  102,  102,
      102,  102,  102,  132,   10,   10,   10,   10,   10,  292,
       10,   10,   10,   10,  106,  396,  132,  111,  106,  115,
      111,  396,  212,  115,  106,  111,  125, 1027,  125,  125,

      212,  111,  292,  115,  168,  111,  168,  168,  301,  115,
      301,   10,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   17,   17,   17,   17,   17,   17,   17,   17,   17,
       17,   17,   17,   17,   17,   17,   17,   17,   17,   17,
       17,   17,   17,   17,   17,   17,   17,   17,   17,   17,

       17,   17,   17,   17,   17,   17,   17,   17,   17,   17,
       17,   17,   17,   17,   17,   17,   17,   17,   17,   17,
       17,   17,   17,   17,   17,   17,   17,   17,   17,   17,
       21,   21,   21,   21,   21, 1025,   21,  241,   21,   21,
      241,   21,  131,   21,  131,  131,  145,  275,  145,  145,
      275,   21,   21,   21,   21,   21,  145,   21,   21,   21,
       21,  150, 1024,  150,  150,  164,  164,  164,  164,  164,
      164,  150,  179,  131,  193,  155,  155,  155,  155,  414,
      176,  280,  155,  176,  280,  155,  179,  414,   21,   22,
       22,   22,   22,   22,  193,   22,  155,   22,   22,  155,

       22,  176,   22,  166,  166,  166,  166,  166,  166,  336,
       22,   22,   22,   22,   22,  338,   22,   22,   22,   22,
      173,  173,  173,  173,  173,  173,  175,  175,  175,  175,
      175,  175,  178,  187,  338,  192,  339,  187, 1023,  192,
     1020,  178,  336,  187,  187,  178, 1019,   22,   29,  187,
      178,  192,  197,   29,  197,  197,  231,   29,   29,  231,
       29,   29,   29,   29,   29,   29,   30,  224,  995,  224,
      224,   30,  259,  259,  339,   30,   30,  231,   30,   30,
       30,   30,   30,   30,   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,
       31,   31,   31,   31,   31,   31,   31,   31,   31,   31,
       31,   31,   31,   31,   31,   31,   31,   31,   31,   31,
       31,   31,   31,   33,  190,   33,   33,  994,  190,  993,
       33,  284,  211,  234,  284,  190,  992,  211,  190,  262,
      262,   33,   33,  211,  211,  229,  229,  229,  229,  229,
      229,  211,  991,  234,  987,   33,  230,  230,  230,  230,
      230,  230,  239,  240,  242,  239,  240,  242,  245,  246,
       33,  245,  246,  247,  986,  376,  247,   33,   34,  983,

       34,   34,  239,  240,  242,   34,  376,  251,  245,  246,
      251,  254,  255,  247,  254,  255,   34,   34,  377,  302,
      389,  245,  377,  263,  982,  263,  263,  251,  302,  331,
       34,  254,  255,  263,  389,  302,  265,  247,  265,  265,
      981,  321,  331,  254,  321,   34,  265,  960,  325,  959,
      251,  325,   34,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,

       35,   35,   35,   35,   35,   35,   35,   35,   35,   35,
       35,   35,   37,   37,   37,   37,   37,   37,   37,   37,
       37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
       37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
       37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
       37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
       37,   37,   37,   37,   37,   37,   37,   37,   37,   37,
       37,   39,   39,   39,   39,   39,  958,   39,  342,   39,
       39,  342,   39,  250,  248,   39,  250,  248,  273,  956,
      273,  273,   39,   39,   39,   39,   39,   39,   39,   39,

       39,   39,  249,  250,  248,  249,  266,  363,  266,  266,
      363,  268,  404,  268,  268,  404,  266,  253,  516,  955,
      253,  268,  249,   39,  607,  607,   39,   40,   40,   40,
       40,   40,  250,   40,  248,   40,   40,  253,   40,  549,
      282,   40,  282,  282,  516,  954,  512,  249,   40,   40,
       40,   40,   40,   40,   40,   40,   40,   40,  549,  953,
      270,  253,  270,  270,  285,  285,  285,  285,  285,  285,
      270,  286,  286,  286,  286,  286,  286,  512,  323,   40,
      323,  323,   40,   41,   41,   41,   41,   41,   41,   41,
       41,   41,   41,   41,   41,   41,   41,   41,   41,   41,

       41,   41,   41,   41,   41,   41,   41,   41,   41,   41,
       41,   41,   41,   41,   41,   41,   41,   41,   41,   41,
       41,   41,   41,   41,   41,   41,   41,   41,   41,   41,
       41,   41,   41,   41,   41,   41,   41,   41,   41,   41,
       41,   41,  252,  951,  950,  252,  287,  287,  287,  287,
      287,  287,  328,  949,  328,  328,  334,  432,  334,  334,
      432,  337,  252,  337,  337,  947,  945,  343,  334,  343,
      343,  443,  944,  337,  443,  252,  345,  343,  345,  345,
      940,  939,  361,  328,  361,  361,  345,  402,  252,  402,
      402,  252,  252,  261,  261,  938,  261,  261,  261,  261,

      261,  261,  261,  261,  261,  261,  261,  261,  261,  261,
      261,  261,  261,  261,  261,  261,  261,  261,  261,  261,
      261,  261,  261,  261,  261,  261,  261,  261,  261,  261,
      261,  261,  261,  261,  261,  261,  261,  261,  261,  261,
      261,  261,  261,  261,  261,  261,  261,  261,  261,  261,
      261,  261,  346,  917,  346,  346,  348,  447,  348,  348,
      447,  350,  346,  350,  350,  916,  348,  354,  354,  354,
      354,  350,  915,  430,  354,  430,  430,  354,  360,  360,
      360,  360,  360,  360,  366,  914,  367,  366,  354,  367,
      913,  354,  365,  365,  365,  365,  365,  365,  434,  434,

      434,  434,  434,  434,  912,  366,  435,  367,  436,  435,
      438,  436,  445,  438,  446,  445,  448,  446,  449,  448,
      450,  449,  451,  450,  911,  451,  910,  435,  460,  436,
      909,  460,  445,  438,  446,  905,  448,  904,  449,  903,
      450,  452,  451,  506,  452,  453,  506,  454,  453,  455,
      454,  899,  455,  449,  456,  458,  898,  456,  458,  457,
      897,  452,  457,  450,  896,  453,  448,  454,  892,  455,
      459,  451,  891,  459,  456,  458,  452,  890,  517,  457,
      453,  517,  869,  469,  455,  469,  469,  868,  587,  454,
      459,  587,  867,  457,  465,  458,  465,  465,  470,  470,

      470,  470,  470,  470,  465,  456,  461,  461,  866,  461,
      461,  461,  461,  461,  461,  461,  461,  461,  461,  461,
      461,  461,  461,  461,  461,  461,  461,  461,  461,  461,
      461,  461,  461,  461,  461,  461,  461,  461,  461,  461,
      461,  461,  461,  461,  461,  461,  461,  461,  461,  461,
      461,  461,  461,  461,  461,  461,  461,  461,  461,  461,
      461,  461,  461,  461,  461,  471,  471,  471,  471,  471,
      471,  503,  865,  503,  503,  507,  864,  507,  507,  509,
      863,  509,  509,  511,  862,  511,  511,  513,  861,  513,
      513,  515,  857,  515,  515,  511,  856,  519,  534,  519,

      519,  534,  586,  515,  855,  586,  507,  519,  592,  593,
      594,  592,  593,  594,  595,  596,  597,  595,  596,  597,
      598,  534,  853,  598,  600,  586,  599,  600,  592,  599,
      601,  851,  850,  601,  595,  596,  597,  599,  602,  603,
      598,  602,  603,  848,  600,  604,  599,  847,  604,  595,
      601,  598,  606,  605,  618,  606,  605,  618,  602,  603,
      845,  844,  843,  600,  608,  604,  608,  608,  619,  622,
      619,  619,  622,  605,  608,  623,  638,  623,  623,  638,
      604,  686,  602,  637,  686,  601,  637,  603,  605,  612,
      612,  612,  612,  612,  612,  613,  613,  613,  613,  613,

      613,  621,  842,  621,  621,  625,  637,  625,  625,  626,
      826,  626,  626,  621,  825,  646,  824,  625,  646,  626,
      649,  660,  661,  649,  660,  661,  664,  687,  690,  664,
      687,  690,  691,  692,  693,  691,  692,  693,  646,  694,
      823,  822,  694,  649,  660,  661,  821,  820,  695,  664,
      687,  695,  691,  692,  696,  697,  819,  696,  697,  694,
      698,  699,  818,  698,  699,  700,  701,  814,  700,  701,
      702,  809,  699,  702,  696,  697,  691,  808,  807,  710,
      698,  699,  710,  806,  703,  700,  701,  703,  805,  804,
      702,  696,  708,  708,  708,  708,  708,  708,  711,  713,

      711,  711,  713,  714,  703,  714,  714,  697,  726,  803,
      701,  726,  698,  732,  801,  700,  732,  703,  702,  733,
      735,  736,  733,  735,  736,  747,  748,  749,  747,  748,
      749,  750,  752,  799,  750,  752,  732,  753,  769,  770,
      753,  769,  770,  735,  772,  798,  773,  772,  747,  773,
      749,  774,  797,  775,  774,  752,  775,  776,  795,  777,
      776,  769,  777,  794,  793,  778,  773,  772,  778,  779,
      780,  781,  779,  780,  781,  782,  792,  776,  782,  777,
      791,  780,  781,  783,  787,  778,  783,  787,  771,  779,
      780,  781,  776,  768,  777,  782,  773,  767,  788,  800,

      778,  788,  800,  783,  802,  811,  812,  802,  811,  812,
      813,  815,  828,  813,  815,  828,  766,  829,  830,  779,
      829,  830,  831,  832,  833,  831,  832,  833,  811,  834,
      764,  763,  834,  783,  832,  833,  835,  762,  761,  835,
      829,  830,  836,  832,  833,  836,  760,  838,  839,  834,
      838,  839,  840,  759,  841,  840,  835,  841,  846,  758,
      852,  846,  836,  852,  757,  756,  858,  838,  839,  858,
      835,  755,  859,  860,  841,  859,  860,  834,  751,  870,
      746,  846,  870,  852,  745,  744,  743,  836,  837,  858,
      741,  837,  740,  838,  871,  838,  860,  871,  872,  739,

      887,  872,  870,  887,  738,  737,  873,  874,  837,  873,
      874,  875,  876,  877,  875,  876,  877,  734,  730,  728,
      837,  837,  837,  727,  837,  889,  873,  874,  889,  725,
      724,  875,  876,  877,  723,  720,  837,  837,  837,  878,
      873,  879,  878,  719,  879,  873,  874,  880,  881,  882,
      880,  881,  882,  718,  895,  883,  873,  895,  883,  878,
      875,  879,  884,  885,  717,  884,  885,  880,  881,  882,
      716,  715,  878,  886,  879,  883,  886,  888,  880,  712,
      888,  709,  884,  885,  882,  706,  893,  705,  894,  893,
      883,  894,  900,  886,  885,  900,  881,  888,  901,  906,

      907,  901,  906,  907,  689,  688,  685,  884,  886,  893,
      908,  894,  684,  908,  918,  900,  919,  918,  920,  919,
      683,  920,  921,  907,  922,  921,  923,  922,  924,  923,
      925,  924,  927,  925,  926,  927,  919,  926,  920,  682,
      928,  681,  921,  928,  922,  680,  923,  929,  924,  678,
      929,  919,  920,  676,  926,  675,  930,  674,  922,  930,
      928,  932,  673,  931,  932,  923,  931,  929,  933,  934,
      921,  933,  934,  928,  672,  935,  930,  921,  935,  671,
      670,  932,  936,  931,  937,  936,  669,  937,  933,  934,
      941,  942,  668,  941,  942,  935,  943,  948,  952,  943,

      948,  952,  936,  665,  662,  659,  930,  932,  931,  658,
      657,  962,  933,  941,  962,  936,  963,  964,  965,  963,
      964,  965,  656,  966,  967,  935,  966,  967,  655,  968,
      969,  962,  968,  969,  654,  653,  963,  964,  965,  970,
      652,  651,  970,  966,  967,  650,  971,  972,  964,  971,
      972,  973,  974,  976,  973,  974,  976,  648,  975,  970,
      962,  975,  977,  645,  965,  977,  971,  978,  644,  967,
      978,  973,  974,  976,  979,  642,  980,  979,  975,  980,
      984,  985,  977,  984,  985,  988,  973,  976,  988,  996,
      997,  640,  996,  997,  979,  974,  980,  639,  998,  999,

      975,  998,  999, 1000,  985,  636, 1000,  635,  988,  996,
      997,  980,  979, 1001, 1002, 1003, 1001, 1002, 1003,  999,
      634, 1004,  996, 1000, 1004, 1005, 1006, 1007, 1005, 1006,
     1007, 1008,  633, 1001, 1008, 1003, 1009, 1010, 1000, 1009,
     1010, 1004, 1011,  999,  632, 1011, 1012, 1007,  631, 1012,
     1013, 1008, 1014, 1013,  630, 1014, 1009, 1010, 1017, 1003,
     1018, 1017, 1021, 1018, 1022, 1021, 1012, 1022, 1028,  629,
     1013, 1028, 1010, 1029, 1030, 1014, 1029, 1030,  628, 1031,
     1032, 1017, 1031, 1032, 1033, 1021,  627, 1033, 1028, 1013,
     1034, 1009, 1035, 1034, 1030, 1035,  624, 1036, 1037, 1031,

     1036, 1037, 1038,  620, 1033, 1038, 1039, 1040, 1041, 1039,
     1040, 1041, 1035,  617,  616,  615, 1028, 1039, 1037, 1042,
      614, 1043, 1042, 1030, 1043,  611, 1039, 1040, 1041, 1044,
     1045, 1046, 1044, 1045, 1046, 1049, 1053, 1054, 1049, 1053,
     1054, 1043, 1055, 1056, 1057, 1055, 1056, 1057, 1058,  610,
     1059, 1058, 1044, 1059,  609, 1040, 1053, 1054, 1060,  590,
     1061, 1060, 1055, 1061, 1057, 1062, 1063, 1043, 1062, 1063,
      589, 1064,  588, 1054, 1064, 1053, 1065,  585, 1068, 1065,
     1061, 1068,  583, 1069, 1070, 1062, 1069, 1070,  582, 1071,
      580, 1064, 1071, 1072, 1073,  579, 1072, 1073, 1068, 1074,

      578, 1080, 1074, 1069, 1080, 1075, 1077,  577, 1075, 1077,
     1061,  576, 1078, 1072, 1073, 1078, 1075, 1079, 1069, 1081,
     1079, 1064, 1081,  575, 1068, 1075, 1077, 1083,  574,  573,
     1083, 1084, 1078, 1085, 1084,  572, 1085, 1079, 1072, 1081,
     1086, 1087, 1084, 1086, 1087, 1089, 1091, 1083, 1089, 1091,
      571, 1084, 1090, 1085, 1092, 1090, 1077, 1092,  570, 1093,
     1078, 1087, 1093,  569, 1094, 1089, 1083, 1094, 1095, 1081,
     1096, 1095, 1090, 1096, 1092, 1097,  567, 1098, 1097, 1093,
     1098,  566, 1099,  565, 1094, 1099, 1087, 1090, 1095, 1100,
     1089, 1101, 1100, 1102, 1101, 1097, 1102, 1098, 1103, 1104,

      564, 1103, 1104, 1093, 1105,  563,  561, 1105, 1094, 1100,
     1098, 1106, 1107, 1102, 1106, 1107,  560, 1108, 1110, 1104,
     1108, 1110, 1109, 1111, 1105, 1109, 1111,  559,  558,  557,
      556, 1106, 1107, 1104,  555,  554,  553, 1108, 1102,  552,
      551,  550, 1109, 1105,  548,  547,  546,  545,  544, 1107,
      543,  542,  541,  540,  539, 1106, 1113, 1113, 1113, 1113,
     1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113,
     1113, 1113, 1113, 1113, 1113, 1114, 1114, 1114, 1114, 1114,
     1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114,
     1114, 1114, 1114, 1114, 1115, 1115, 1115, 1115, 1115, 1115,

     1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115,
     1115, 1115, 1115, 1116, 1116, 1116, 1116, 1116, 1116, 1116,
     1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116,
     1116, 1116, 1117, 1117, 1117, 1117, 1117, 1117, 1117, 1117,
     1117, 1117, 1117, 1117, 1117, 1117, 1117, 1117, 1117, 1117,
     1117, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118,
     1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118, 1118,
     1119, 1119, 1119, 1119, 1119, 1119, 1119, 1119, 1119, 1119,
     1119, 1119, 1119, 1119, 1119, 1119, 1119, 1119, 1119, 1120,
     1120, 1120, 1120, 1120, 1120, 1120, 1120, 1120, 1120, 1120,

     1120, 1120, 1120, 1120, 1120, 1120, 1120, 1120, 1121, 1121,
     1121, 1121, 1121, 1121, 1121, 1121, 1121, 1121, 1121, 1121,
     1121, 1121, 1121, 1121, 1121, 1121, 1121, 1122, 1122, 1122,
     1122, 1122, 1122, 1122, 1122, 1122, 1122, 1122, 1122, 1122,
     1122, 1122, 1122, 1122, 1122, 1122, 1123, 1123, 1123, 1123,
     1123, 1123, 1123, 1123, 1123, 1123, 1123, 1123, 1123, 1123,
     1123, 1123, 1123, 1123, 1123, 1124, 1124, 1124, 1124, 1124,
     1124, 1124, 1124, 1124, 1124, 1124, 1124, 1124, 1124, 1124,
     1124, 1124, 1124, 1124, 1125, 1125, 1125, 1125, 1125, 1125,
     1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125,

     1125, 1125, 1125, 1126, 1126, 1126, 1126, 1126, 1126, 1126,
     1126, 1126, 1126, 1126, 1126, 1126, 1126, 1126, 1126, 1126,
     1126, 1126, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127,
     1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127,
     1127, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128,
     1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128, 1128,
     1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129,
     1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1129, 1130,
     1130,  538,  536, 1130, 1130, 1130, 1130,  535, 1130, 1130,
      533, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1131, 1131,

     1131,  532, 1131, 1131, 1131, 1131,  531,  530, 1131, 1131,
     1131, 1131, 1131, 1131, 1131, 1132, 1132, 1132, 1132, 1132,
     1132, 1132, 1132, 1132, 1132, 1132, 1132, 1132, 1132, 1132,
     1132, 1132, 1132, 1133, 1133,  529, 1133, 1133, 1133, 1133,
     1133, 1133, 1133, 1133, 1133, 1133, 1133, 1133, 1133, 1133,
     1133, 1133, 1134,  528, 1134,  527,  526,  525,  521, 1134,
      520,  518, 1134, 1135,  514, 1135,  510,  508,  505,  504,
     1135,  468,  467, 1135, 1136,  466, 1136,  464,  462,  441,
      440, 1136,  439,  431, 1136, 1137,  428, 1137,  427,  424,
      423,  422, 1137,  421,  420, 1137, 1138, 1138, 1138,  419,

     1138, 1138, 1138, 1138, 1138, 1138, 1138, 1138, 1138, 1138,
     1138, 1138, 1139, 1139, 1139, 1139, 1139, 1139, 1139, 1139,
     1139, 1139, 1139, 1139, 1139, 1139, 1139, 1139, 1139, 1139,
     1140, 1140, 1140,  418, 1140, 1140,  417, 1140, 1140, 1140,
     1140, 1140, 1140, 1140, 1140, 1140, 1140, 1141, 1141, 1141,
     1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141,
     1141, 1141, 1141, 1141, 1141, 1142,  416, 1142,  415,  412,
      411, 1142, 1142,  409,  408, 1142, 1143,  407, 1143,  406,
      405,  403, 1143, 1143,  400,  399, 1143, 1144, 1144,  398,
      397, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1144,

     1144, 1144, 1144, 1144, 1144, 1145, 1145, 1145, 1145, 1145,
     1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145, 1145,
     1145, 1145, 1145, 1145, 1146,  395, 1146,  394,  393,  392,
      391, 1146,  390,  388, 1146, 1147,  387, 1147,  386,  385,
      384,  383, 1147,  382,  381, 1147, 1148,  380,  379,  378,
      375, 1148, 1148, 1148,  374, 1148,  373, 1148, 1148, 1148,
      372, 1148, 1148, 1148, 1148, 1149, 1149, 1149, 1149, 1149,
     1149, 1149, 1149, 1149, 1149, 1149, 1149, 1149, 1149, 1149,
     1149, 1149, 1149, 1149, 1150,  371, 1150,  370,  369,  362,
     1150,  355,  351,  349,  344,  333,  330, 1150, 1151,  329,

      327, 1151, 1151, 1151, 1151, 1151, 1151, 1151,  326, 1151,
     1152,  324, 1152,  319,  317,  316, 1152,  315,  313,  312,
      311,  310,  309, 1152, 1153,  308, 1153,  307,  306,  305,
     1153,  303,  300,  299,  298,  297,  296, 1153, 1154,  295,
     1154,  291,  290,  289, 1154,  288,  283,  277,  274,  271,
      269, 1154, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155,
     1155, 1155, 1155, 1155, 1155, 1155, 1155,  264, 1155, 1155,
     1155, 1156, 1156, 1156, 1156, 1156, 1156, 1156, 1156, 1156,
     1156, 1156, 1156, 1156, 1156, 1156,  258, 1156, 1156, 1156,
     1157,  244, 1157,  236,  235,  233,  232, 1157,  225,  222,

     1157, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158, 1158,
     1158, 1158, 1158, 1158, 1158, 1158,  221, 1158, 1158, 1158,
     1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159, 1159,
     1159, 1159, 1159, 1159, 1159,  220, 1159, 1159, 1159, 1160,
     1160, 1160, 1160, 1160, 1160, 1160, 1160, 1160, 1160, 1160,
     1160, 1160, 1160, 1160, 1160, 1160, 1160, 1160, 1161,  217,
     1161, 1161,  216, 1161, 1161, 1161, 1161, 1161, 1161, 1161,
     1161, 1161, 1161, 1161, 1161, 1161, 1161, 1162,  215, 1162,
     1162,  214, 1162, 1162, 1162, 1162, 1162, 1162, 1162, 1162,
     1162, 1162, 1162, 1162, 1162, 1162, 1163, 1163, 1163, 1163,

     1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1163,
     1163,  213, 1163, 1163, 1163, 1164,  208, 1164,  206,  204,
      203, 1164,  201,  200,  198,  195,  194,  189, 1164, 1165,
      188, 1165,  186,  185,  184, 1165,  183,  182,  181,  180,
      177,  169, 1165, 1166,  162, 1166,  160,  158,  151, 1166,
      146,  142,  127,  126,  120,  118, 1166, 1167,  117, 1167,
      112,  109,   97, 1167,   91,   87,   82,   78,   72,   69,
     1167, 1168,   66, 1168,   51,   50,   46, 1168,   43,   28,
       27,    0,    0,    0, 1168, 1169,    0, 1169,    0,    0,
        0, 1169,    0,    0,    0,    0,    0,    0, 1169, 1170,

     1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170, 1170,
     1170, 1170, 1170, 1170,    0, 1170, 1170, 1170, 1171,    0,
     1171,    0,    0,    0, 1171,    0,    0,    0,    0,    0,
        0, 1171, 1172, 1172,    0,    0, 1172, 1172, 1172, 1172,
        0, 1172, 1172,    0, 1172, 1172, 1172, 1172, 1172, 1172,
     1172, 1173,    0, 1173,    0,    0,    0, 1173, 1173,    0,
        0, 1173, 1174,    0, 1174,    0,    0,    0, 1174, 1174,
     1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175,
     1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1175, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,

     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1112
    } ;

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 "MimeDecoder.l"
#define INITIAL 0
#line 2 "MimeDecoder.l"

#include "stdafx.h"
#include "MimeDecoder.y.cpp.h"

#include "MimeSniffer.h"
#include "MimeDecoder.h"
#include "SnifferTrace.h"
#include "quote.h"

#include "yystype.h"

extern YYSTYPE			MimeDec_yylval;
extern int				MimeDecdebug;

		long			g_nMimeDecComment				= 0;
		long			g_nMimeDecCurrentContentType	= -1;
		DWORD			g_nMimeDecLineCount				= 1;
static	list<int>		g_stackMimeDec_yy_start;
static	list<string>	g_stackMimeDecMultiPart;

#undef YY_INPUT
#define YY_INPUT(buf,result,max_size)										\
	{																		\
		CMimeDecoder::s_pCurrentMimeDec->m_pStream->Read(buf, max_size, (unsigned long*)&result);	\
		if (result > 0)																\
		{																			\
			for (long lauf = 0; lauf < result; lauf++)								\
			{																		\
				if (buf[lauf] == 0x0a)												\
					g_nMimeDecLineCount++;											\
			}																		\
			CMimeDecoder::s_pCurrentMimeDec->m_pRawCopy->Write(buf, result, NULL);	\
		}																			\
    }

#define YYEOF		0

extern "C"
{
	int MimeDecwrap()
	{
		return 1;
	}
}

void MimeDecInit()
{
	yy_init		= 1;
	yy_start	= 0;
	YY_NEW_FILE;

#ifdef _DEBUG
	// MimeDecdebug = 1;
#endif

	g_nMimeDecComment	= 0;
	g_nMimeDecLineCount	= 1;
	g_stackMimeDec_yy_start.clear();
	g_stackMimeDecMultiPart.clear();
}

#define state_COMMENT 1

#define state_BODY 2

#define state_ADDRESS 3

#define state_ADDR_SPEC 4

#define state_DOMAIN 5

#define state_DATE 6

#define state_QUOTED 7

#define state_RECEIVED 8

#define state_TEXT 9

#define state_PHRASE 10

#define state_MSGID 11

#define state_IN_QUOTED 12

#define state_FIELD 13

#define state_VERSION 14

#define state_CTTYPE 15

#define state_CTTENC 16

#define state_BOUND 17

#define state_ATYPE 18

#define state_CHARSET 19

#define state_PARTIAL_MSG 20

#line 136 "MimeDecoder.l"

void MimeDecBegin(int state)
{
	// ATLTRACE(_T("Entering lexical-state: %ld\n"), state);

	g_stackMimeDec_yy_start.push_back(yy_start);

	yy_start = 1 + 2 * state;
}

void MimeDecEnd()
{
	ATLASSERT(g_stackMimeDec_yy_start.size() > 0);

	yy_start = g_stackMimeDec_yy_start.back();
	g_stackMimeDec_yy_start.pop_back();

	// ATLTRACE(_T("Resuming lexical-state: %ld\n"), yy_start == 0 ? 0 : (yy_start-1) / 2);
}

void MimeDecBeginMultiPart(const CComVariant& strBoundary)
{
	USES_CONVERSION;

#ifdef _DEBUG
	ATLASSERT(strBoundary.vt == VT_BSTR);
	ATLTRACE(_T("-->BeginMultiPart with Boundary: %s"), OLE2CT(strBoundary.bstrVal));
#endif

	if (strBoundary.vt == VT_BSTR)
	{
		string str = OLE2CT(strBoundary.bstrVal);
		UnQuote(str);
		g_stackMimeDecMultiPart.push_back(str);
	}
}

void MimeDecEndMultiPart()
{
	ATLTRACE(_T("<--EndMultiPart"));
	ATLASSERT(g_stackMimeDecMultiPart.size() > 0);

	g_stackMimeDecMultiPart.pop_back();
}

bool MimeDecIsCurrentDelimiter(const char* text, long& nResult)
{
	if (g_stackMimeDecMultiPart.size() > 0)
	{
		const string& strCurrentDelimit = *g_stackMimeDecMultiPart.rbegin();

		int len = strCurrentDelimit.length();

		if (	strlen(text) >= len 
			&&	strncmp(strCurrentDelimit.c_str(), text, len) == 0
		   )
		{
			if (strcmp(text+len, "\r\n") == 0)
			{
				nResult = tok_Delimiter;
				return true;
			}
			if (strcmp(text+len, "--\r\n") == 0)
			{
				MimeDecEndMultiPart();
				nResult = tok_CloseDelimiter;
				return true;
			}
		}
	}
	return false;
}


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

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

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

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

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

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

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

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

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

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

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

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

/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
 * is returned in "result".
 */
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
	if ( yy_current_buffer->yy_is_interactive ) \
		{ \
		int c = '*', n; \
		for ( n = 0; n < max_size && \
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
			buf[n] = (char) c; \
		if ( c == '\n' ) \
			buf[n++] = (char) c; \
		if ( c == EOF && ferror( yyin ) ) \
			YY_FATAL_ERROR( "input in flex scanner failed" ); \
		result = n; \
		} \
	else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
		  && ferror( yyin ) ) \
		YY_FATAL_ERROR( "input in flex scanner failed" );
#endif

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

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

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

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

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

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

#define YY_RULE_SETUP \
	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 211 "MimeDecoder.l"


	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 >= 1113 )
					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] != 3490 );

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 212 "MimeDecoder.l"
{ g_nMimeDecComment++; }
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 213 "MimeDecoder.l"
{ ;	}
	YY_BREAK
case 3:
YY_RULE_SETUP
#line 214 "MimeDecoder.l"
{ ;	}
	YY_BREAK
case 4:
YY_RULE_SETUP
#line 215 "MimeDecoder.l"
{ if (--g_nMimeDecComment == 0) { MimeDecEnd(); } }
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 216 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 6:
YY_RULE_SETUP
#line 218 "MimeDecoder.l"
{ return tok_us_ascii;			}
	YY_BREAK
case 7:
YY_RULE_SETUP
#line 219 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_XTOKEN; }
	YY_BREAK
case 8:
YY_RULE_SETUP
#line 220 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_TOKEN; }
	YY_BREAK
case 9:
YY_RULE_SETUP
#line 221 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				MimeDecBegin(state_QUOTED); }
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 222 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 224 "MimeDecoder.l"
{ g_nMimeDecComment = 1; MimeDecBegin(state_COMMENT);	 }
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 225 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 226 "MimeDecoder.l"
{ return tok_Id; }
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 227 "MimeDecoder.l"
{ return tok_Number; }
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 228 "MimeDecoder.l"
{ return tok_Total; }
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 229 "MimeDecoder.l"
{ return tok_Name; }
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 230 "MimeDecoder.l"
{ return ';'; }
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 231 "MimeDecoder.l"
{ return '='; }
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 232 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = atol(yytext);			return tok_INTEGER;		}
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 233 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_XTOKEN; }
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 234 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_TOKEN; }
	YY_BREAK
case 22:
YY_RULE_SETUP
#line 235 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				MimeDecBegin(state_QUOTED); }
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 236 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				MimeDecBegin(state_IN_QUOTED); }
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 237 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 25:
YY_RULE_SETUP
#line 239 "MimeDecoder.l"
{ return tok_ftp;			}
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 240 "MimeDecoder.l"
{ return tok_anon_ftp;		}
	YY_BREAK
case 27:
YY_RULE_SETUP
#line 241 "MimeDecoder.l"
{ return tok_tftp;			}
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 242 "MimeDecoder.l"
{ return tok_local_file;	}
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 243 "MimeDecoder.l"
{ return tok_afs;			}
	YY_BREAK
case 30:
YY_RULE_SETUP
#line 244 "MimeDecoder.l"
{ return tok_mail_server;	}
	YY_BREAK
case 31:
YY_RULE_SETUP
#line 245 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_XTOKEN; }
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 246 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_TOKEN; }
	YY_BREAK
case 33:
YY_RULE_SETUP
#line 247 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				MimeDecBegin(state_QUOTED); }
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 248 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 250 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				MimeDecBegin(state_QUOTED); }
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 251 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_BoundValue;	}
	YY_BREAK
case 37:
YY_RULE_SETUP
#line 252 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 38:
YY_RULE_SETUP
#line 254 "MimeDecoder.l"
{ g_nMimeDecComment = 1; MimeDecBegin(state_COMMENT);	 }
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 255 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 256 "MimeDecoder.l"
{ return tok_7bit;				}
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 257 "MimeDecoder.l"
{ return tok_quoted_printable;	}
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 258 "MimeDecoder.l"
{ return tok_base64;			}
	YY_BREAK
case 43:
YY_RULE_SETUP
#line 259 "MimeDecoder.l"
{ return tok_8bit;				}
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 260 "MimeDecoder.l"
{ return tok_binary;			}
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 261 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_XTOKEN; }
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 262 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 264 "MimeDecoder.l"
{ g_nMimeDecComment = 1; MimeDecBegin(state_COMMENT);	 }
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 265 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 49:
YY_RULE_SETUP
#line 266 "MimeDecoder.l"
{ return tok_Application; }
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 267 "MimeDecoder.l"
{ return tok_Audio; }
	YY_BREAK
case 51:
YY_RULE_SETUP
#line 268 "MimeDecoder.l"
{ return tok_Image; }
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 269 "MimeDecoder.l"
{ return tok_Message; }
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 270 "MimeDecoder.l"
{ g_nMimeDecCurrentContentType = tok_BEGIN_MULTIPART_BODY;	return tok_Multipart; }
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 271 "MimeDecoder.l"
{ return tok_Text; }
	YY_BREAK
case 55:
YY_RULE_SETUP
#line 272 "MimeDecoder.l"
{ return tok_Video; }
	YY_BREAK
case 56:
YY_RULE_SETUP
#line 273 "MimeDecoder.l"
{ MimeDecBegin(state_BOUND);		return tok_Boundary; }
	YY_BREAK
case 57:
YY_RULE_SETUP
#line 274 "MimeDecoder.l"
{ return tok_mixed; }
	YY_BREAK
case 58:
YY_RULE_SETUP
#line 275 "MimeDecoder.l"
{ return tok_parallel; }
	YY_BREAK
case 59:
YY_RULE_SETUP
#line 276 "MimeDecoder.l"
{ return tok_digest; }
	YY_BREAK
case 60:
YY_RULE_SETUP
#line 277 "MimeDecoder.l"
{ return tok_alternative; }
	YY_BREAK
case 61:
YY_RULE_SETUP
#line 278 "MimeDecoder.l"
{ return tok_Plain; }
	YY_BREAK
case 62:
YY_RULE_SETUP
#line 279 "MimeDecoder.l"
{ MimeDecBegin(state_CHARSET);		return tok_Charset; }
	YY_BREAK
case 63:
YY_RULE_SETUP
#line 280 "MimeDecoder.l"
{ return tok_Gif; }
	YY_BREAK
case 64:
YY_RULE_SETUP
#line 281 "MimeDecoder.l"
{ return tok_Jpeg; }
	YY_BREAK
case 65:
YY_RULE_SETUP
#line 282 "MimeDecoder.l"
{ return tok_mpeg; }
	YY_BREAK
case 66:
YY_RULE_SETUP
#line 283 "MimeDecoder.l"
{ MimeDecBegin(state_ATYPE);		return tok_AccessType; }
	YY_BREAK
case 67:
YY_RULE_SETUP
#line 284 "MimeDecoder.l"
{ return tok_Expiration; }
	YY_BREAK
case 68:
YY_RULE_SETUP
#line 285 "MimeDecoder.l"
{ return tok_Size; }
	YY_BREAK
case 69:
YY_RULE_SETUP
#line 286 "MimeDecoder.l"
{ return tok_Permission; }
	YY_BREAK
case 70:
YY_RULE_SETUP
#line 287 "MimeDecoder.l"
{ return tok_Name; }
	YY_BREAK
case 71:
YY_RULE_SETUP
#line 288 "MimeDecoder.l"
{ return tok_Site; }
	YY_BREAK
case 72:
YY_RULE_SETUP
#line 289 "MimeDecoder.l"
{ return tok_Dir; }
	YY_BREAK
case 73:
YY_RULE_SETUP
#line 290 "MimeDecoder.l"
{ return tok_Mode; }
	YY_BREAK
case 74:
YY_RULE_SETUP
#line 291 "MimeDecoder.l"
{ return tok_Server; }
	YY_BREAK
case 75:
YY_RULE_SETUP
#line 292 "MimeDecoder.l"
{ return tok_SubjectParam; }
	YY_BREAK
case 76:
YY_RULE_SETUP
#line 293 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = 0l; return tok_Read; }
	YY_BREAK
case 77:
YY_RULE_SETUP
#line 294 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = 1l; return tok_ReadWrite; }
	YY_BREAK
case 78:
YY_RULE_SETUP
#line 295 "MimeDecoder.l"
{ return tok_OctetStream; }
	YY_BREAK
case 79:
YY_RULE_SETUP
#line 296 "MimeDecoder.l"
{ return tok_Postscript; }
	YY_BREAK
case 80:
YY_RULE_SETUP
#line 297 "MimeDecoder.l"
{ return tok_Type; }
	YY_BREAK
case 81:
YY_RULE_SETUP
#line 298 "MimeDecoder.l"
{ return tok_Padding; }
	YY_BREAK
case 82:
YY_RULE_SETUP
#line 299 "MimeDecoder.l"
{ return tok_Basic; }
	YY_BREAK
case 83:
YY_RULE_SETUP
#line 300 "MimeDecoder.l"
{ return tok_rfc822; }
	YY_BREAK
case 84:
YY_RULE_SETUP
#line 301 "MimeDecoder.l"
{ return tok_Html;	}
	YY_BREAK
case 85:
YY_RULE_SETUP
#line 302 "MimeDecoder.l"
{ MimeDecBegin(state_PARTIAL_MSG);	return tok_partial; }
	YY_BREAK
case 86:
YY_RULE_SETUP
#line 303 "MimeDecoder.l"
{ return tok_external_body; }
	YY_BREAK
case 87:
YY_RULE_SETUP
#line 304 "MimeDecoder.l"
{ return '/'; }
	YY_BREAK
case 88:
YY_RULE_SETUP
#line 305 "MimeDecoder.l"
{ return ';'; }
	YY_BREAK
case 89:
YY_RULE_SETUP
#line 306 "MimeDecoder.l"
{ return '='; }
	YY_BREAK
case 90:
YY_RULE_SETUP
#line 307 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = atol(yytext);			return tok_INTEGER;		}
	YY_BREAK
case 91:
YY_RULE_SETUP
#line 308 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_XTOKEN; }
	YY_BREAK
case 92:
YY_RULE_SETUP
#line 309 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_TOKEN; }
	YY_BREAK
case 93:
YY_RULE_SETUP
#line 310 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				MimeDecBegin(state_QUOTED); }
	YY_BREAK
case 94:
YY_RULE_SETUP
#line 311 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				MimeDecBegin(state_IN_QUOTED); }
	YY_BREAK
case 95:
YY_RULE_SETUP
#line 312 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 96:
YY_RULE_SETUP
#line 314 "MimeDecoder.l"
{ MimeDec_yylval.m_Val += yytext; MimeDecEnd(); return tok_QUOTED_STRING; }
	YY_BREAK
case 97:
YY_RULE_SETUP
#line 315 "MimeDecoder.l"
{ MimeDec_yylval.m_Val += yytext;  }
	YY_BREAK
case 98:
YY_RULE_SETUP
#line 316 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd(); return tok_QUOTED_STRING; }
	YY_BREAK
case 99:
YY_RULE_SETUP
#line 318 "MimeDecoder.l"
{ MimeDec_yylval.m_Val += yytext; }
	YY_BREAK
case 100:
YY_RULE_SETUP
#line 319 "MimeDecoder.l"
{ MimeDec_yylval.m_Val += yytext; }
	YY_BREAK
case 101:
YY_RULE_SETUP
#line 320 "MimeDecoder.l"
{ MimeDec_yylval.m_Val += yytext; MimeDecEnd(); return tok_QUOTED_STRING; }
	YY_BREAK
case 102:
YY_RULE_SETUP
#line 321 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 103:
YY_RULE_SETUP
#line 322 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd(); return tok_QUOTED_STRING; }
	YY_BREAK
case 104:
YY_RULE_SETUP
#line 324 "MimeDecoder.l"
{ long nResult; if (MimeDecIsCurrentDelimiter(yytext+2, nResult)) { if (nResult == tok_Delimiter) { MimeDecEnd(); } return nResult; }	else { MimeDec_yylval.m_Val = yytext; return tok_TEXT; } }
	YY_BREAK
case 105:
YY_RULE_SETUP
#line 325 "MimeDecoder.l"
{ MimeDecEnd(); ATLASSERT(g_stackMimeDec_yy_start.size() == 0); return YYEOF; }
	YY_BREAK
case 106:
YY_RULE_SETUP
#line 326 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_TEXT; }
	YY_BREAK
case 107:
YY_RULE_SETUP
#line 327 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 108:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp = yy_bp + 2;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 329 "MimeDecoder.l"
{ MimeDecEnd();										return tok_FIELDCONTENT; }
	YY_BREAK
case 109:
YY_RULE_SETUP
#line 330 "MimeDecoder.l"
{ MimeDec_yylval.m_Val += yytext; }
	YY_BREAK
case 110:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp = yy_bp + 2;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 332 "MimeDecoder.l"
{ MimeDecEnd(); }
	YY_BREAK
case 111:
YY_RULE_SETUP
#line 333 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = atol(yytext);				return tok_INTEGER;		}
	YY_BREAK
case 112:
YY_RULE_SETUP
#line 334 "MimeDecoder.l"
{ return yytext[0]; }
	YY_BREAK
case 113:
YY_RULE_SETUP
#line 335 "MimeDecoder.l"
{ g_nMimeDecComment = 1; MimeDecBegin(state_COMMENT);	 }
	YY_BREAK
case 114:
YY_RULE_SETUP
#line 336 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 115:
YY_RULE_SETUP
#line 338 "MimeDecoder.l"
{ MimeDec_yylval.m_Val += yytext; }
	YY_BREAK
case 116:
YY_RULE_SETUP
#line 339 "MimeDecoder.l"
{ MimeDec_yylval.m_Val += yytext; }
	YY_BREAK
case 117:
YY_RULE_SETUP
#line 340 "MimeDecoder.l"
{ MimeDec_yylval.m_Val += yytext; MimeDecEnd(); return tok_DOMAIN_LITERAL; }
	YY_BREAK
case 118:
YY_RULE_SETUP
#line 341 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 119:
YY_RULE_SETUP
#line 342 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd(); return tok_DOMAIN_LITERAL; }
	YY_BREAK
case 120:
YY_RULE_SETUP
#line 344 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;					return tok_MSGID;	}
	YY_BREAK
case 121:
YY_RULE_SETUP
#line 345 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;					return tok_MSGID;	}
	YY_BREAK
case 122:
YY_RULE_SETUP
#line 346 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 123:
YY_RULE_SETUP
#line 348 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 124:
YY_RULE_SETUP
#line 349 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;					MimeDecBegin(state_QUOTED); }
	YY_BREAK
case 125:
YY_RULE_SETUP
#line 350 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;					MimeDecBegin(state_IN_QUOTED); }
	YY_BREAK
case 126:
YY_RULE_SETUP
#line 351 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;					return tok_ATOM;	}
	YY_BREAK
case 127:
YY_RULE_SETUP
#line 352 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;					MimeDecBegin(state_DOMAIN); }
	YY_BREAK
case 128:
YY_RULE_SETUP
#line 353 "MimeDecoder.l"
{ return yytext[0];			}
	YY_BREAK
case 129:
YY_RULE_SETUP
#line 354 "MimeDecoder.l"
{ g_nMimeDecComment = 1; MimeDecBegin(state_COMMENT);	 }
	YY_BREAK
case 130:
YY_RULE_SETUP
#line 355 "MimeDecoder.l"
{ MimeDecEnd();										return yytext[0];	}
	YY_BREAK
case 131:
YY_RULE_SETUP
#line 356 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 132:
YY_RULE_SETUP
#line 358 "MimeDecoder.l"
{ return yytext[0];		}
	YY_BREAK
case 133:
YY_RULE_SETUP
#line 359 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 134:
YY_RULE_SETUP
#line 360 "MimeDecoder.l"
{ return ','; }
	YY_BREAK
case 135:
YY_RULE_SETUP
#line 361 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;					MimeDecBegin(state_QUOTED); }
	YY_BREAK
case 136:
YY_RULE_SETUP
#line 362 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;					MimeDecBegin(state_IN_QUOTED); }
	YY_BREAK
case 137:
YY_RULE_SETUP
#line 363 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;					return tok_ATOM;	}
	YY_BREAK
case 138:
YY_RULE_SETUP
#line 364 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;					MimeDecBegin(state_DOMAIN); }
	YY_BREAK
case 139:
YY_RULE_SETUP
#line 365 "MimeDecoder.l"
{ g_nMimeDecComment = 1; MimeDecBegin(state_COMMENT);	 }
	YY_BREAK
case 140:
YY_RULE_SETUP
#line 366 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 141:
YY_RULE_SETUP
#line 368 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 142:
YY_RULE_SETUP
#line 369 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();	return tok_Date_Zone;	}
	YY_BREAK
case 143:
YY_RULE_SETUP
#line 370 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();	return tok_Date_Zone;	}
	YY_BREAK
case 144:
YY_RULE_SETUP
#line 371 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();	return tok_Date_Zone;	}
	YY_BREAK
case 145:
YY_RULE_SETUP
#line 372 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();	return tok_Date_Zone;	}
	YY_BREAK
case 146:
YY_RULE_SETUP
#line 373 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();	return tok_Date_Zone;	}
	YY_BREAK
case 147:
YY_RULE_SETUP
#line 374 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();	return tok_Date_Zone;	}
	YY_BREAK
case 148:
YY_RULE_SETUP
#line 375 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();	return tok_Date_Zone;	}
	YY_BREAK
case 149:
YY_RULE_SETUP
#line 376 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();	return tok_Date_Zone;	}
	YY_BREAK
case 150:
YY_RULE_SETUP
#line 377 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();	return tok_Date_Zone;	}
	YY_BREAK
case 151:
YY_RULE_SETUP
#line 378 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();	return tok_Date_Zone;	}
	YY_BREAK
case 152:
YY_RULE_SETUP
#line 379 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();	return tok_Date_Zone;	}
	YY_BREAK
case 153:
YY_RULE_SETUP
#line 380 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;	MimeDecEnd();		return tok_Date_Zone;	}
	YY_BREAK
case 154:
YY_RULE_SETUP
#line 381 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = atol(yytext);			return tok_INTEGER;		}
	YY_BREAK
case 155:
YY_RULE_SETUP
#line 382 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)1;				return tok_Date_Month;	}
	YY_BREAK
case 156:
YY_RULE_SETUP
#line 383 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)2;				return tok_Date_Month;	}
	YY_BREAK
case 157:
YY_RULE_SETUP
#line 384 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)3;				return tok_Date_Month;	}
	YY_BREAK
case 158:
YY_RULE_SETUP
#line 385 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)4;				return tok_Date_Month;	}
	YY_BREAK
case 159:
YY_RULE_SETUP
#line 386 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)5;				return tok_Date_Month;	}
	YY_BREAK
case 160:
YY_RULE_SETUP
#line 387 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)5;				return tok_Date_Month;	}
	YY_BREAK
case 161:
YY_RULE_SETUP
#line 388 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)6;				return tok_Date_Month;	}
	YY_BREAK
case 162:
YY_RULE_SETUP
#line 389 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)7;				return tok_Date_Month;	}
	YY_BREAK
case 163:
YY_RULE_SETUP
#line 390 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)8;				return tok_Date_Month;	}
	YY_BREAK
case 164:
YY_RULE_SETUP
#line 391 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)9;				return tok_Date_Month;	}
	YY_BREAK
case 165:
YY_RULE_SETUP
#line 392 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)10;				return tok_Date_Month;	}
	YY_BREAK
case 166:
YY_RULE_SETUP
#line 393 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)10;				return tok_Date_Month;	}
	YY_BREAK
case 167:
YY_RULE_SETUP
#line 394 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)11;				return tok_Date_Month;	}
	YY_BREAK
case 168:
YY_RULE_SETUP
#line 395 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)12;				return tok_Date_Month;	}
	YY_BREAK
case 169:
YY_RULE_SETUP
#line 396 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)12;				return tok_Date_Month;	}
	YY_BREAK
case 170:
YY_RULE_SETUP
#line 397 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)0;				return tok_Date_WeekDay;}
	YY_BREAK
case 171:
YY_RULE_SETUP
#line 398 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)0;				return tok_Date_WeekDay;}
	YY_BREAK
case 172:
YY_RULE_SETUP
#line 399 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)1;				return tok_Date_WeekDay;}
	YY_BREAK
case 173:
YY_RULE_SETUP
#line 400 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)1;				return tok_Date_WeekDay;}
	YY_BREAK
case 174:
YY_RULE_SETUP
#line 401 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)2;				return tok_Date_WeekDay;}
	YY_BREAK
case 175:
YY_RULE_SETUP
#line 402 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)2;				return tok_Date_WeekDay;}
	YY_BREAK
case 176:
YY_RULE_SETUP
#line 403 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)3;				return tok_Date_WeekDay;}
	YY_BREAK
case 177:
YY_RULE_SETUP
#line 404 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)3;				return tok_Date_WeekDay;}
	YY_BREAK
case 178:
YY_RULE_SETUP
#line 405 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)4;				return tok_Date_WeekDay;}
	YY_BREAK
case 179:
YY_RULE_SETUP
#line 406 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)4;				return tok_Date_WeekDay;}
	YY_BREAK
case 180:
YY_RULE_SETUP
#line 407 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)5;				return tok_Date_WeekDay;}
	YY_BREAK
case 181:
YY_RULE_SETUP
#line 408 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)5;				return tok_Date_WeekDay;}
	YY_BREAK
case 182:
YY_RULE_SETUP
#line 409 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)6;				return tok_Date_WeekDay;}
	YY_BREAK
case 183:
YY_RULE_SETUP
#line 410 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = (long)6;				return tok_Date_WeekDay;}
	YY_BREAK
case 184:
YY_RULE_SETUP
#line 411 "MimeDecoder.l"
{ g_nMimeDecComment = 1; MimeDecBegin(state_COMMENT);	 }
	YY_BREAK
case 185:
YY_RULE_SETUP
#line 412 "MimeDecoder.l"
{ return yytext[0];		}
	YY_BREAK
case 186:
YY_RULE_SETUP
#line 413 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 187:
YY_RULE_SETUP
#line 415 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 188:
YY_RULE_SETUP
#line 416 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				MimeDecBegin(state_QUOTED); }
	YY_BREAK
case 189:
YY_RULE_SETUP
#line 417 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				MimeDecBegin(state_IN_QUOTED); }
	YY_BREAK
case 190:
YY_RULE_SETUP
#line 418 "MimeDecoder.l"
{ return tok_Received_from; }
	YY_BREAK
case 191:
YY_RULE_SETUP
#line 419 "MimeDecoder.l"
{ return tok_Received_by;	}
	YY_BREAK
case 192:
YY_RULE_SETUP
#line 420 "MimeDecoder.l"
{ return tok_Received_via;	}
	YY_BREAK
case 193:
YY_RULE_SETUP
#line 421 "MimeDecoder.l"
{ return tok_Received_with; }
	YY_BREAK
case 194:
YY_RULE_SETUP
#line 422 "MimeDecoder.l"
{ MimeDecBegin(state_MSGID);					return tok_Received_id;	}
	YY_BREAK
case 195:
YY_RULE_SETUP
#line 423 "MimeDecoder.l"
{ MimeDecBegin(state_ADDR_SPEC);				return tok_Received_for;	}
	YY_BREAK
case 196:
YY_RULE_SETUP
#line 424 "MimeDecoder.l"
{ MimeDecEnd(); MimeDecBegin(state_DATE);		return ';'; }
	YY_BREAK
case 197:
YY_RULE_SETUP
#line 425 "MimeDecoder.l"
{ MimeDecEnd(); MimeDecBegin(state_DATE);		return ';'; }
	YY_BREAK
case 198:
YY_RULE_SETUP
#line 426 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_ATOM;	}
	YY_BREAK
case 199:
YY_RULE_SETUP
#line 427 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;					MimeDecBegin(state_DOMAIN); }
	YY_BREAK
case 200:
YY_RULE_SETUP
#line 428 "MimeDecoder.l"
{ return yytext[0];		}
	YY_BREAK
case 201:
YY_RULE_SETUP
#line 429 "MimeDecoder.l"
{ g_nMimeDecComment = 1; MimeDecBegin(state_COMMENT);	 }
	YY_BREAK
case 202:
YY_RULE_SETUP
#line 430 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 203:
YY_RULE_SETUP
#line 432 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;			return tok_TEXT; }
	YY_BREAK
case 204:
YY_RULE_SETUP
#line 433 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 205:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp = yy_bp + 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 434 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_TEXT; }
	YY_BREAK
case 206:
YY_RULE_SETUP
#line 435 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_TEXT; }
	YY_BREAK
case 207:
YY_RULE_SETUP
#line 436 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 208:
YY_RULE_SETUP
#line 438 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 209:
YY_RULE_SETUP
#line 439 "MimeDecoder.l"
{ return ','; }
	YY_BREAK
case 210:
YY_RULE_SETUP
#line 440 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				MimeDecBegin(state_QUOTED); }
	YY_BREAK
case 211:
YY_RULE_SETUP
#line 441 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				MimeDecBegin(state_IN_QUOTED); }
	YY_BREAK
case 212:
YY_RULE_SETUP
#line 442 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = yytext;				return tok_ATOM;	}
	YY_BREAK
case 213:
YY_RULE_SETUP
#line 443 "MimeDecoder.l"
{ g_nMimeDecComment = 1; MimeDecBegin(state_COMMENT);	 }
	YY_BREAK
case 214:
YY_RULE_SETUP
#line 444 "MimeDecoder.l"
{ unput(yytext[0]); MimeDecEnd();	}
	YY_BREAK
case 215:
YY_RULE_SETUP
#line 446 "MimeDecoder.l"
{ MimeDecBegin(state_ADDR_SPEC);		return tok_ReturnPath; }
	YY_BREAK
case 216:
YY_RULE_SETUP
#line 447 "MimeDecoder.l"
{ if (CMimeDecoder::s_pCurrentMimeDec->m_bInterpretReceivedAsRaw) { MimeDec_yylval.m_Val = CYYSType::param(yytext,""); MimeDecBegin(state_FIELD); return tok_ReceivedRaw; }  MimeDecBegin(state_RECEIVED); return tok_Received; }
	YY_BREAK
case 217:
YY_RULE_SETUP
#line 448 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_ReplyTo;	}
	YY_BREAK
case 218:
YY_RULE_SETUP
#line 449 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_From;	}
	YY_BREAK
case 219:
YY_RULE_SETUP
#line 450 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_Sender;	}
	YY_BREAK
case 220:
YY_RULE_SETUP
#line 451 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_ResentReplyTo; }
	YY_BREAK
case 221:
YY_RULE_SETUP
#line 452 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_ResentFrom; }
	YY_BREAK
case 222:
YY_RULE_SETUP
#line 453 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_ResentSender; }
	YY_BREAK
case 223:
YY_RULE_SETUP
#line 454 "MimeDecoder.l"
{ MimeDecBegin(state_DATE);				return tok_Date; }
	YY_BREAK
case 224:
YY_RULE_SETUP
#line 455 "MimeDecoder.l"
{ MimeDecBegin(state_DATE);				return tok_ResentDate; }
	YY_BREAK
case 225:
YY_RULE_SETUP
#line 456 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_To; }
	YY_BREAK
case 226:
YY_RULE_SETUP
#line 457 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_ResentTo; }
	YY_BREAK
case 227:
YY_RULE_SETUP
#line 458 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_cc; }
	YY_BREAK
case 228:
YY_RULE_SETUP
#line 459 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_Resentcc; }
	YY_BREAK
case 229:
YY_RULE_SETUP
#line 460 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_bcc; }
	YY_BREAK
case 230:
YY_RULE_SETUP
#line 461 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_Resentbcc; }
	YY_BREAK
case 231:
YY_RULE_SETUP
#line 462 "MimeDecoder.l"
{ MimeDecBegin(state_ADDRESS);			return tok_ReturnReceiptTo; }
	YY_BREAK
case 232:
YY_RULE_SETUP
#line 463 "MimeDecoder.l"
{ MimeDecBegin(state_TEXT);				return tok_Subject; }
	YY_BREAK
case 233:
YY_RULE_SETUP
#line 464 "MimeDecoder.l"
{ MimeDecBegin(state_MSGID);			return tok_MessageID; }
	YY_BREAK
case 234:
YY_RULE_SETUP
#line 465 "MimeDecoder.l"
{ MimeDecBegin(state_VERSION);			return tok_Version;	}
	YY_BREAK
case 235:
YY_RULE_SETUP
#line 466 "MimeDecoder.l"
{ MimeDecBegin(state_CTTYPE);			return tok_ContentType;	}
	YY_BREAK
case 236:
YY_RULE_SETUP
#line 467 "MimeDecoder.l"
{ MimeDecBegin(state_TEXT);				return tok_ContentDescription;	}
	YY_BREAK
case 237:
YY_RULE_SETUP
#line 468 "MimeDecoder.l"
{ MimeDecBegin(state_CTTENC);			return tok_ContentTransferEncoding;	}
	YY_BREAK
case 238:
YY_RULE_SETUP
#line 469 "MimeDecoder.l"
{ MimeDecBegin(state_MSGID);			return tok_ContentID; }
	YY_BREAK
case 239:
YY_RULE_SETUP
#line 470 "MimeDecoder.l"
{ MimeDec_yylval.m_Val = CYYSType::param(yytext,""); TrimRight(MimeDec_yylval.m_Val.m_pVal.first, "\t \n\r:"); MimeDecBegin(state_FIELD);	return tok_ExtField;	}
	YY_BREAK
case 240:
YY_RULE_SETUP
#line 471 "MimeDecoder.l"
{ return YYEOF; }
	YY_BREAK
case 241:
YY_RULE_SETUP
#line 472 "MimeDecoder.l"
{ g_nMimeDecComment = 1; MimeDecBegin(state_COMMENT); }
	YY_BREAK
case 242:
YY_RULE_SETUP
#line 473 "MimeDecoder.l"
{ MimeDecBegin(state_BODY); long nResult = g_nMimeDecCurrentContentType < 0 ? tok_BEGIN_TEXT_BODY : g_nMimeDecCurrentContentType; g_nMimeDecCurrentContentType = -1; return nResult; }
	YY_BREAK
case 243:
YY_RULE_SETUP
#line 474 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 244:
YY_RULE_SETUP
#line 475 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 245:
YY_RULE_SETUP
#line 476 "MimeDecoder.l"
{ ; }
	YY_BREAK
case 246:
YY_RULE_SETUP
#line 478 "MimeDecoder.l"
ECHO;
	YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(state_COMMENT):
case YY_STATE_EOF(state_BODY):
case YY_STATE_EOF(state_ADDRESS):
case YY_STATE_EOF(state_ADDR_SPEC):
case YY_STATE_EOF(state_DOMAIN):
case YY_STATE_EOF(state_DATE):
case YY_STATE_EOF(state_QUOTED):
case YY_STATE_EOF(state_RECEIVED):
case YY_STATE_EOF(state_TEXT):
case YY_STATE_EOF(state_PHRASE):
case YY_STATE_EOF(state_MSGID):
case YY_STATE_EOF(state_IN_QUOTED):
case YY_STATE_EOF(state_FIELD):
case YY_STATE_EOF(state_VERSION):
case YY_STATE_EOF(state_CTTYPE):
case YY_STATE_EOF(state_CTTENC):
case YY_STATE_EOF(state_BOUND):
case YY_STATE_EOF(state_ATYPE):
case YY_STATE_EOF(state_CHARSET):
case YY_STATE_EOF(state_PARTIAL_MSG):
	yyterminate();

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

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

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

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

			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state();

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

			yy_next_state = yy_try_NUL_trans( yy_current_state );

			yy_bp = yytext_ptr + YY_MORE_ADJ;

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

			else
				{
				yy_cp = yy_c_buf_p;
				goto yy_find_action;
				}
			}

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

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

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

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

			case EOB_ACT_CONTINUE_SCAN:
				yy_c_buf_p =
					yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state();

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

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

				yy_current_state = yy_get_previous_state();

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

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


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

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

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

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

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

	/* Try to read more data. */

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

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

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

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

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

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

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

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

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

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

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

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

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

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

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

		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

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

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

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

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

	yytext_ptr = &yy_current_buffer->yy_ch_buf[0];

	return ret_val;
	}


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

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

	yy_current_state = yy_start;
	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 >= 1113 )
				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 >= 1113 )
			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 == 1112);

	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
#ifdef __cplusplus
extern "C"
{
extern int isatty YY_PROTO(( int ));
}
#else
extern int isatty YY_PROTO(( int ));
#endif
#endif
#endif

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


	{
	yy_flush_buffer( b );

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

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


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

	{
	if ( ! b )
		return;

	b->yy_n_chars = 0;

	/* We always need two end-of-buffer characters.  The first causes
	 * a transition to the end-of-buffer state.  The second causes
	 * a jam in that state.
	 */
	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;

	b->yy_buf_pos = &b->yy_ch_buf[0];

	b->yy_at_bol = 1;
	b->yy_buffer_status = YY_BUFFER_NEW;

	if ( b == yy_current_buffer )
		yy_load_buffer_state();
	}


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

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

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

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

	yy_switch_to_buffer( b );

	return b;
	}
#endif


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

	return yy_scan_bytes( yy_str, len );
	}
#endif


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

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

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

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

	b = yy_scan_buffer( buf, n );
	if ( ! b )
		YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );

	/* It's okay to grow etc. this buffer, and we should throw it
	 * away when we're done.
	 */
	b->yy_is_our_buffer = 1;

	return b;
	}
#endif


#ifndef YY_NO_PUSH_STATE
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
	{
	if ( yy_start_stack_ptr >= yy_start_stack_depth )
		{
		yy_size_t new_size;

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

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

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

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

	yy_start_stack[yy_start_stack_ptr++] = YY_START;

	BEGIN(new_state);
	}
#endif


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

	BEGIN(yy_start_stack[yy_start_stack_ptr]);
	}
#endif


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

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

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



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

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


/* Internal utility routines. */

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

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

	return n;
	}
#endif


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

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

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

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


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions