#line 3 "<stdout>"

#define  YY_INT_ALIGNED short int

/* A lexical scanner generated by flex */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 35
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif

/* First, we deal with  platform-specific or compiler-specific issues. */

/* begin standard C headers. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>

/* end standard C headers. */

/* flex integer type definitions */

#ifndef FLEXINT_H
#define FLEXINT_H

/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */

#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L

/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
 * if you want the limit (max/min) macros for int types. 
 */
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif

#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
typedef unsigned char flex_uint8_t; 
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
#endif /* ! C99 */

/* Limits of integral types. */
#ifndef INT8_MIN
#define INT8_MIN               (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN              (-32767-1)
#endif
#ifndef INT32_MIN
#define INT32_MIN              (-2147483647-1)
#endif
#ifndef INT8_MAX
#define INT8_MAX               (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX              (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX              (2147483647)
#endif
#ifndef UINT8_MAX
#define UINT8_MAX              (255U)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX             (65535U)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX             (4294967295U)
#endif

#endif /* ! FLEXINT_H */

#ifdef __cplusplus

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

#else	/* ! __cplusplus */

/* C99 requires __STDC__ to be defined as 1. */
#if defined (__STDC__)

#define YY_USE_CONST

#endif	/* defined (__STDC__) */
#endif	/* ! __cplusplus */

#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#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)

/* An opaque pointer. */
#ifndef YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SCANNER_T
typedef void* yyscan_t;
#endif

/* For convenience, these vars (plus the bison vars far below)
   are macros in the reentrant scanner. */
#define yyin yyg->yyin_r
#define yyout yyg->yyout_r
#define yyextra yyg->yyextra_r
#define yyleng yyg->yyleng_r
#define yytext yyg->yytext_r
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
#define yy_flex_debug yyg->yy_flex_debug_r

/* 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 yyg->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 ((yyg->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 langscan_csharp_lex_restart(yyin ,yyscanner )

#define YY_END_OF_BUFFER_CHAR 0

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

/* The state buf must be large enough to hold one state per character in the main buffer.
 */
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif

#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif

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

    #define YY_LESS_LINENO(n)
    
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
		*yy_cp = yyg->yy_hold_char; \
		YY_RESTORE_YY_MORE_OFFSET \
		yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
		YY_DO_BEFORE_ACTION; /* set up yytext again */ \
		} \
	while ( 0 )

#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )

#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
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.
	 */
	yy_size_t 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;

    int yy_bs_lineno; /**< The line count. */
    int yy_bs_column; /**< The column count. */
    
	/* 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 langscan_csharp_lex_restart()), so that the user can continue scanning by
	 * just pointing yyin at a new input file.
	 */
#define YY_BUFFER_EOF_PENDING 2

	};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */

/* 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".
 *
 * Returns the top of the stack, or NULL.
 */
#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
                          : NULL)

/* Same as previous macro, but useful when we know that the buffer stack is not
 * NULL or when we need an lvalue. For internal use only.
 */
#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]

void langscan_csharp_lex_restart (FILE *input_file ,yyscan_t yyscanner );
void langscan_csharp_lex__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
YY_BUFFER_STATE langscan_csharp_lex__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
void langscan_csharp_lex__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
void langscan_csharp_lex__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
void langscan_csharp_lex_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
void langscan_csharp_lex_pop_buffer_state (yyscan_t yyscanner );

static void langscan_csharp_lex_ensure_buffer_stack (yyscan_t yyscanner );
static void langscan_csharp_lex__load_buffer_state (yyscan_t yyscanner );
static void langscan_csharp_lex__init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );

#define YY_FLUSH_BUFFER langscan_csharp_lex__flush_buffer(YY_CURRENT_BUFFER ,yyscanner)

YY_BUFFER_STATE langscan_csharp_lex__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
YY_BUFFER_STATE langscan_csharp_lex__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
YY_BUFFER_STATE langscan_csharp_lex__scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );

void *langscan_csharp_lex_alloc (yy_size_t ,yyscan_t yyscanner );
void *langscan_csharp_lex_realloc (void *,yy_size_t ,yyscan_t yyscanner );
void langscan_csharp_lex_free (void * ,yyscan_t yyscanner );

#define yy_new_buffer langscan_csharp_lex__create_buffer

#define yy_set_interactive(is_interactive) \
	{ \
	if ( ! YY_CURRENT_BUFFER ){ \
        langscan_csharp_lex_ensure_buffer_stack (yyscanner); \
		YY_CURRENT_BUFFER_LVALUE =    \
            langscan_csharp_lex__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
	} \
	YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
	}

#define yy_set_bol(at_bol) \
	{ \
	if ( ! YY_CURRENT_BUFFER ){\
        langscan_csharp_lex_ensure_buffer_stack (yyscanner); \
		YY_CURRENT_BUFFER_LVALUE =    \
            langscan_csharp_lex__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
	} \
	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
	}

#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

/* Begin user sect3 */

#define langscan_csharp_lex_wrap(n) 1
#define YY_SKIP_YYWRAP

typedef unsigned char YY_CHAR;

typedef int yy_state_type;

#define yytext_ptr yytext_r

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

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

#define YY_NUM_RULES 22
#define YY_END_OF_BUFFER 23
/* This struct is not used in this scanner,
   but its presence is necessary. */
struct yy_trans_info
	{
	flex_int32_t yy_verify;
	flex_int32_t yy_nxt;
	};
static yyconst flex_int16_t yy_acclist[386] =
    {   0,
       23,   21,   22,   10,   21,   22,   11,   22,   21,   22,
       21,   22,   21,   22,   21,   22,   21,   22,   21,   22,
       21,   22,   21,   22,   21,   22,   21,   22,   17,   21,
       22,   18,   21,   22,   21,   22,   21,   22,   21,   22,
       16,   21,   22,   21,   22,   16,   21,   22,   16,   21,
       22,   16,   21,   22,   16,   21,   22,   21,   22,   10,
       21,   22,   21,   22,   16,   21,   22,16390,   16,   21,
       22,16390,   16,   21,   22,16390,   16,   21,   22,16390,
       16,   21,   22,16390,    7,   21,   22,   16,   21,   22,
    16390,   16,   21,   22,16390,   16,   21,   22,16390,   16,

       21,   22,16390,   16,   21,   22,16390,   16,   21,   22,
    16393,   16,   21,   22,16393,   16,   21,   22,16393,   16,
       21,   22,16393,   16,   21,   22,16393,   10,   21,   14,
       20,   12,   20,   17,   17,   18,   18,   21,   21,   16,
       16,   16,   16,   16,   10,    1,   16,16390,    5,    5,
     8198,   16,16390,   16,16390,   16,16390,   16,16390,   16,
    16390, 8198,   16,16390,   16,16390,   16,16390,   16,16390,
     8201,   16,16393,   16,16393,   16,16393,   16,16393,   16,
    16393,   15,   20,   12,   20,   19,   16,   16,   16,   16,
        1,   16,16390,   16,16390,   16,16390,   16,16390,   16,

    16390,   16,16390,   16,16390,   16,16390,   16,16393,   16,
    16393,   16,16393,   16,16393,   20,   13,   19,   16,   16,
       16,   16,   16,16390,   16,16390,   16,16390,   16,16390,
       16,16390,   16,16390,   16,16390,   16,16390,   16,16393,
       16,16393,   16,16393,   16,16393,   16,   16,   16,   16,
       16,16390,   16,16390,   16,16390,   16,16390,   16,16390,
       16,16390,   16,16390,   16,16390,   16,16393,   16,16393,
       16,16393,   16,16393,   16,   16,   16,   16,16390,   16,
    16390,   16,16390,   16,16390,   16,16390,   16,16390,   16,
    16393,   16,16393,   16,16393,    2,   16,   16,    5,    2,

        5, 8198,   16,16390,   16,16390,    2, 8198,   16,16390,
       16,16390, 8201,   16,16393,   16,16393,    8,   16,   16,
        3,    8,   16,16390,   16,16390,    5,    3,    5, 8198,
        8,   16,16390,   16,16390,    3, 8198,    8,   16,16393,
       16,16393, 8201,   16,    2,   16,16390,    2,   16,16390,
        2,   16,16393,    2,    3,    2,    3,    2,    3,    4,
        2,    5,    4,    5, 8198,    3,    2,    4, 8198,    3,
        2, 8201,    3,    3,    3,    3,    4,    4,    4,    4,
        4,    4,    4,    4,    4
    } ;

static yyconst flex_int16_t yy_accept[425] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    2,
        4,    7,    9,   11,   13,   15,   17,   19,   21,   23,
       25,   27,   29,   32,   35,   37,   39,   41,   44,   46,
       49,   52,   55,   58,   60,   63,   65,   69,   73,   77,
       81,   85,   88,   92,   96,  100,  104,  108,  112,  116,
      120,  124,  128,  129,  130,  130,  131,  131,  131,  131,
      132,  132,  133,  134,  135,  135,  136,  136,  137,  138,
      139,  140,  141,  142,  143,  144,  145,  146,  146,  146,
      146,  147,  147,  147,  149,  150,  152,  154,  156,  158,
      160,  160,  160,  162,  163,  165,  167,  169,  171,  171,

      172,  172,  174,  176,  178,  180,  182,  183,  183,  183,
      183,  183,  183,  183,  184,  184,  184,  184,  185,  186,
      187,  188,  189,  190,  191,  191,  192,  192,  194,  196,
      198,  200,  200,  202,  204,  206,  208,  208,  210,  212,
      214,  216,  216,  216,  216,  216,  217,  217,  218,  219,
      220,  221,  222,  223,  223,  223,  223,  223,  225,  227,
      229,  231,  231,  231,  233,  235,  237,  239,  239,  239,
      241,  243,  245,  247,  247,  248,  249,  250,  251,  251,
      251,  253,  255,  257,  259,  259,  261,  263,  265,  267,
      267,  269,  271,  273,  275,  275,  275,  276,  277,  278,

      278,  278,  278,  278,  280,  282,  284,  284,  284,  284,
      286,  288,  290,  290,  290,  290,  292,  294,  296,  296,
      297,  297,  298,  299,  299,  299,  299,  299,  300,  303,
      303,  305,  307,  307,  307,  307,  307,  309,  309,  311,
      313,  313,  313,  313,  314,  314,  314,  316,  318,  318,
      318,  318,  318,  320,  321,  321,  322,  322,  322,  322,
      322,  325,  327,  327,  327,  328,  331,  331,  331,  331,
      331,  334,  336,  336,  336,  338,  338,  338,  338,  338,
      341,  343,  343,  344,  344,  344,  344,  345,  345,  345,
      345,  345,  346,  346,  348,  348,  348,  348,  348,  348,

      349,  349,  351,  351,  351,  351,  351,  351,  352,  352,
      354,  354,  354,  354,  354,  354,  354,  354,  354,  355,
      355,  355,  355,  355,  355,  356,  356,  356,  357,  357,
      357,  357,  357,  357,  358,  358,  358,  359,  359,  359,
      359,  359,  359,  360,  360,  360,  361,  361,  361,  361,
      362,  362,  362,  363,  366,  366,  366,  367,  367,  367,
      368,  368,  368,  370,  370,  370,  371,  371,  371,  372,
      372,  373,  373,  373,  373,  374,  374,  374,  374,  374,
      374,  374,  374,  375,  375,  375,  375,  375,  376,  376,
      376,  376,  376,  377,  377,  377,  377,  378,  378,  378,

      378,  379,  379,  379,  379,  380,  380,  380,  380,  381,
      381,  381,  382,  382,  382,  383,  383,  383,  384,  384,
      385,  385,  386,  386
    } ;

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

       41,   42,   43,   44,   45,   44,   44,   46,   47,   48,
       44,   44,   44,   49,   50,   51,   52,   44,   44,   53,
       44,   44,   54,   55,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

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

static yyconst flex_int32_t yy_meta[56] =
    {   0,
        1,    2,    3,    2,    1,    4,    1,    1,    1,    5,
        6,    1,    1,    1,    1,    2,    7,    7,    7,    8,
        9,   10,    1,    1,    1,    4,   11,   11,   11,   12,
       12,   12,   13,   13,    4,    1,   14,   14,   14,   14,
       14,   14,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   15,    1
    } ;

static yyconst flex_int16_t yy_base[524] =
    {   0,
        0,   54,   35,   88,   69,  121,  102,  154, 1307, 2619,
       55, 2619, 1282,  131, 1267,  148, 1236, 1246,   47,   80,
      107,  146,  158,  197,   68, 1245,  135,    0, 1244, 1221,
     1224, 1209, 1205,  114,  161,  177,  180,  204,  144,  140,
      148, 2619,  219,  229,  235,  238,  244,  253,  263,  297,
      300,  303,  193, 2619,  165, 2619, 1249, 1241,  244,  338,
     1231,    0,  303,  171,  309,  239,    0,    0,  279, 1218,
     1215,    0, 1201, 1191, 1174, 1175,  280,  330,  333, 1211,
        0,  360, 1204, 1169, 2619, 2619,  172, 1168,  152,  118,
      337, 1201,  357, 2619,  384,  390,  394,  400,  415, 2619,

     1200,  421,  431,  448,  454,  458, 2619,  333,  410,    0,
        0, 1201, 1200, 2619,  458, 1191,  278,    0,    0,  338,
     1152, 1148, 1126, 1113, 1151,    0, 1150,  322,  247,  301,
      167, 1148,  437,  477,  480,  486, 1147,  495,  506,  512,
      533,  533, 1148,    0,  507,  569, 1145, 2619,  508, 1106,
     1112, 1105, 1114, 1140,  383, 1139,  389,  362,  225,  269,
      190, 1138,  397,  553,  559,  563,  579, 1137,  451,  588,
      618,  621,  624, 1132,  568, 1105, 1099, 1087, 1123, 1121,
      639,  207,  458,  513, 1118,  642,  646,  649,  664, 1109,
      670,  673,  690,  705, 1064, 1078, 1034, 1047,  695, 1070,

     1065,  720, 1063,  522,  328,  723, 1057,  727, 1050,  731,
      742,  746, 1049,  749, 1045,  764,  786,  790,  992, 2619,
     1006,  963,  964,  943,  980,  805,  431,  936, 2619,  977,
      552,  213,  808,  972,  768,  520, 2619,  958,  815,  831,
      834,  953,  837,  909,  546,  940,  841,  861,  864,  931,
      926,  517,    0,  891,  863, 2619,  898,  593,  895,  530,
      859,  573,  890,  582,  845, 2619,  886,  666,  877,  564,
      893,  899,  917,  648, 2619,  875,  683,  864,  594,  920,
      923,  926,  819,  659,  849,  848,  946,  837,  743,  751,
      862,  830,  820,  952,  792,  813,  745,  859,  892,  804,

      801,  956,  923,  787,  771,  929,  945,  786,  765,  971,
      954,  764,  779,  752,  686,  726,  716,  957,  707,  705,
      991,  702,  966,  969,  692,  678,  974,  675,  670,  998,
      667,  993, 1005,  657,  652,  994,  647,  645, 1022,  644,
      997, 1018,  642,  627,  577, 2619,  618,  596, 1010,  584,
     1033,  700,  524, 2619,  565, 1017,  536,  518, 1019,  508,
     1040,  766, 2619,  507, 1038,  501,  500, 1041,  491, 1063,
      447,  774,  483, 1046,  480,  474,  461,  839, 1058,  454,
      842, 1066,  443, 1069,  434,  867, 1071,  418, 1074,  410,
      874, 1077,  403,  395, 1085, 1086,  377,  371, 1089, 1093,

      365,  363, 1091, 1094,  333,  332,  318, 1092,  305,  269,
     1107,  268,  215, 1110,  175,  162, 1112,   81, 1114,   58,
     1115,   46, 2619, 1169, 1184, 1193, 1206, 1219, 1233, 1247,
     1259, 1273, 1288, 1297, 1305, 1313, 1321, 1335, 1350, 1365,
     1380, 1395, 1404, 1418, 1433, 1448, 1463, 1478, 1493, 1508,
     1523, 1538, 1553, 1568, 1583, 1598, 1613, 1628, 1643, 1658,
     1673, 1688, 1703, 1718, 1733, 1748, 1763, 1778, 1793, 1808,
     1823, 1838, 1853, 1868, 1883, 1898, 1913, 1928, 1943, 1958,
     1973, 1988, 2003, 2018, 2033, 2048, 2063, 2078, 2093, 2108,
     2123, 2138, 2153, 2168, 2183, 2198, 2213, 2228, 2243, 2258,

     2273, 2288, 2303, 2318, 2333, 2348, 2363, 2378, 2393, 2408,
     2423, 2438, 2453, 2468, 2483, 2498, 2513, 2528, 2543, 2558,
     2573, 2588, 2603
    } ;

static yyconst flex_int16_t yy_def[524] =
    {   0,
      423,    1,    1,    3,    3,    5,    1,    7,  423,  423,
      423,  423,  423,  424,  423,  423,  425,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  426,  423,  426,
      426,  426,  426,  423,  423,  427,  428,  428,   38,   38,
       38,  423,  429,  429,  429,  429,  429,  430,  430,  430,
      430,  430,  423,  423,  424,  423,  424,  423,  431,  423,
      432,  433,   60,   23,  423,  423,  434,   24,  423,  423,
      423,  426,  426,  426,  426,  426,  423,  427,  427,  423,
      435,  423,  423,   38,  423,  423,   38,   38,   38,   38,
      423,  423,  429,  423,  429,  429,  429,  429,  423,  423,

      423,  430,  430,  430,  430,  430,  423,  423,  423,  436,
      437,  436,  437,  423,  423,  432,  438,  433,   63,  434,
      426,  426,  426,  426,  439,  435,  440,   38,   38,   38,
       38,  441,  429,  429,  429,  429,  442,  430,  430,  430,
      430,  423,  436,  443,  423,  423,  444,  423,  423,  426,
      426,  426,  426,  439,  445,  440,  446,   38,   38,   38,
       38,  441,  447,  429,  429,  429,  429,  442,  448,  430,
      430,  430,  430,  444,  426,  426,  426,  426,  449,  450,
       38,   38,   38,   38,  451,  429,  429,  429,  429,  452,
      430,  430,  430,  430,  453,  423,  426,  426,  426,  449,

      450,  453,  423,   38,   38,   38,  451,  453,  423,  429,
      429,  429,  452,  453,  423,  430,  430,  430,  453,  423,
      454,  426,  426,  455,  423,  453,  453,  453,  423,  456,
       38,   38,  455,  423,  453,  453,  423,  457,  429,  429,
      455,  423,  453,  453,  453,  458,  430,  430,  455,  423,
      454,  459,  426,  426,  455,  423,  460,  461,  456,  462,
       38,   38,  455,  455,  455,  423,  463,  464,  457,  465,
      429,  429,  455,  455,  423,  466,  467,  458,  468,  430,
      430,  455,  455,  455,  469,  470,  426,  460,  471,  461,
      472,  440,  473,   38,  474,  463,  475,  464,  476,  477,

      478,  429,  479,  466,  480,  467,  481,  482,  483,  430,
      484,  469,  485,  470,  486,  423,  487,  488,  489,  473,
      486,  423,  474,  490,  440,  491,  492,  493,  478,  486,
      423,  479,  494,  477,  495,  496,  497,  483,  486,  423,
      484,  498,  482,  499,  486,  423,  500,  487,  488,  489,
      486,  486,  486,  423,  501,  502,  489,  491,  492,  493,
      486,  486,  423,  503,  504,  493,  495,  496,  497,  486,
      486,  486,  505,  506,  497,  499,  500,  507,  508,  501,
      509,  502,  489,  510,  503,  511,  504,  493,  512,  505,
      513,  506,  497,  514,  508,  515,  440,  516,  510,  517,

      477,  518,  512,  519,  482,  520,  514,  521,  489,  516,
      522,  493,  518,  523,  497,  520,  521,  489,  522,  493,
      523,  497,    0,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,

      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423
    } ;

static yyconst flex_int16_t yy_nxt[2675] =
    {   0,
       10,   11,   12,   11,   13,   14,   10,   15,   16,   17,
       10,   18,   19,   20,   21,   22,   23,   24,   24,   24,
       10,   10,   25,   26,   27,   10,   28,   28,   28,   28,
       28,   28,   28,   28,   10,   29,   28,   28,   30,   31,
       28,   28,   28,   28,   32,   28,   28,   28,   28,   33,
       28,   28,   28,   10,   34,   35,   53,  169,   53,   54,
       36,   37,   37,   37,   37,   37,   37,   37,   37,  163,
       54,   37,   37,   38,   39,   37,   37,   37,   37,   40,
       37,   37,   37,   37,   41,   37,   37,   37,   42,   35,
       70,   54,  157,   54,   36,   43,   43,   43,   43,   43,

       43,   43,   43,   54,   54,   43,   43,   44,   45,   43,
       43,   43,   43,   46,   43,   43,   43,   43,   47,   43,
       43,   43,   35,   60,   60,   60,   60,   36,   48,   48,
       48,   48,   48,   48,   48,   48,   56,   54,   48,   48,
       49,   50,   48,   48,   48,   48,   51,   48,   48,   48,
       48,   52,   48,   48,   48,   35,   54,   61,   54,   71,
       36,   62,   77,   84,   53,   57,  131,   78,   54,   54,
       56,   54,   63,  391,   64,   64,   64,   65,   79,   79,
       79,   82,   82,   82,   88,   84,  169,   89,   66,   84,
       66,   67,   80,   84,   53,   83,   53,   84,   90,   57,

       85,   85,  130,   66,  423,   82,   82,   82,  128,   66,
       67,   63,   84,   68,   68,   68,   68,   84,  161,   83,
       91,   91,   91,  423,   85,   85,  386,   69,  184,   69,
       91,   91,   91,   86,   92,   84,   91,   91,   91,   91,
       91,   91,   69,  204,   92,   91,   91,   91,   69,   87,
       92,  262,   84,   92,   99,   99,   99,   86,   84,   92,
      108,  108,  109,  100,   99,   99,   99,  182,  101,   66,
       84,   66,   94,  100,   95,   96,  110,  111,  101,  163,
      381,   77,   94,   53,   66,   97,   78,  159,   94,  117,
       66,   94,   84,  148,   98,  112,  113,   94,   99,   99,

       99,   99,   99,   99,   99,   99,   99,  100,  103,   69,
      100,   69,  101,  100,   84,  101,  157,  183,  101,  119,
      119,  119,  119,   63,   69,   65,   65,   65,   65,  378,
       69,   79,   79,   79,   79,   79,   79,  104,   91,   91,
       91,  160,  107,  391,  169,   80,   84,  105,   80,  142,
      142,  142,   92,  106,   60,   60,   60,   60,   91,   91,
       91,   82,   82,   82,  232,  114,  115,   84,  149,  114,
      149,  158,   92,   84,  386,   83,  163,  114,  115,  114,
       85,   85,  381,  149,  114,   91,   91,   91,  157,  149,
       94,   91,   91,   91,  155,   91,   91,   91,   79,   92,

      157,   91,   91,   91,   82,   92,  378,   84,  163,   92,
       94,  181,   91,   86,  169,   92,   99,   99,   99,  107,
      133,  391,   99,   99,   99,  100,   58,   58,   58,  163,
      101,  100,   99,   99,   99,  134,  101,   94,   91,   91,
       91,  100,  258,   94,  135,  386,  101,   94,  136,   99,
       99,   99,   92,   94,  157,   99,   99,   99,  100,   99,
       99,   99,  169,  101,  100,  381,   99,  138,  100,  101,
      145,  145,  378,  101,  146,  146,  146,  146,   91,   91,
       91,   91,   91,   91,  220,  313,  164,   91,   91,   91,
       94,  169,   92,  139,  391,   92,   99,   99,   99,  205,

      346,   92,  169,   84,  140,  100,  141,   99,   99,   99,
      101,  305,  163,   99,   99,   99,  100,  165,  386,  163,
      166,  101,  100,  146,  146,  146,  146,  101,  252,  297,
       94,  268,  195,   94,   99,   99,   99,  167,  149,   94,
      149,  260,  107,  100,  170,  202,  171,  157,  101,   58,
       58,   58,  172,  149,   91,   91,   91,  277,   84,  149,
       91,   91,   91,  206,   91,   91,   91,   84,   92,  195,
      195,  195,  231,  220,   92,  270,  381,  346,   92,  208,
       91,   91,   91,  196,  173,  146,  146,  146,  146,   99,
       99,   99,  261,  295,   92,  157,  114,   84,  100,  220,

      114,  187,  186,  101,  291,  279,   94,  289,  114,  214,
      114,  188,   94,  294,  156,  114,   94,  189,   84,   99,
       99,   99,   99,   99,   99,   99,   99,   99,  100,  378,
      346,  100,   94,  101,  100,  256,  101,  191,  313,  101,
      202,  202,  202,  208,  208,  208,  292,   91,   91,   91,
       91,   91,   91,  169,  203,  373,  279,  209,  169,  303,
      192,   92,  194,  305,   92,   91,   91,   91,  163,  193,
      311,  214,  214,  214,   99,   99,   99,  299,  364,   92,
      100,  270,  210,  100,   84,  215,  163,  162,  101,  297,
      211,   99,   99,   99,  307,   94,  224,  224,  224,   94,

      100,  256,   94,  157,  168,  101,   99,   99,   99,  216,
      225,  379,  256,  355,  212,  100,  260,   94,  157,  300,
      101,  226,  226,  226,  233,  233,  233,  289,  235,  235,
      235,  217,   91,   91,   91,  227,  308,  347,  234,  346,
      228,   85,  236,   91,   91,   91,   92,  241,  241,  241,
      243,  243,  243,  346,  289,  218,  297,   92,  224,  244,
      233,  242,  291,  252,  245,   99,   99,   99,   84,  235,
      235,  235,  156,  229,  100,  313,  279,  384,  240,  101,
      237,  239,  305,  236,   94,  389,  241,   99,   99,   99,
      313,  249,  249,  249,  249,   94,  100,  169,  305,   94,

      100,  101,  220,  324,  292,  250,  226,  226,  226,  263,
      263,  263,  270,  156,  247,  163,   91,   91,   91,  346,
      227,  237,  248,  264,  297,  228,   85,  346,  265,   85,
       92,  260,   91,   91,   91,  273,  273,  273,  243,  243,
      243,  157,   99,   99,   99,  325,   92,  244,  289,  274,
      378,  100,  245,  381,  315,  271,  101,  321,  229,  252,
      313,  266,   99,   99,   99,  282,  282,  282,   94,  272,
      299,  100,  256,  291,  283,  279,  101,  226,  386,  284,
      162,  280,  330,  180,   94,  391,  305,  275,  270,  339,
      220,  263,  263,  263,   91,   91,   91,  297,  256,  281,

       91,   91,   91,  299,   84,  264,  260,  235,   92,  289,
      265,   85,  300,  185,   92,  319,  256,  256,  273,  273,
      273,   99,   99,   99,   99,   99,   99,  282,  282,  282,
      100,  287,  274,  100,  333,  101,  283,  252,  101,  302,
      307,  284,  285,  266,  162,  328,   94,  315,  315,  315,
      168,  279,   94,  321,  321,  321,  307,  330,  330,  330,
      243,  316,  220,  310,  276,  342,  190,  322,  291,  270,
      275,  331,  339,  339,  339,  168,  334,  324,  201,  256,
      324,  100,  308,  267,  263,  299,  340,  156,  260,  220,
      180,  257,  351,  351,  351,  207,  256,   84,  337,  361,

      361,  361,  254,  253,  333,  307,  352,  343,  342,   94,
      350,  353,   85,  362,  162,  213,  333,  252,  168,  325,
      273,  291,  357,  370,  370,  370,  185,  360,  324,  342,
      299,  201,  371,  282,  351,  351,  351,  372,  201,  190,
      207,  361,  361,  361,  354,  220,  334,  369,  352,  333,
      343,  363,  307,  353,   85,  362,  246,  342,  366,  207,
      169,  238,  213,  350,  370,  370,  370,  213,  163,  396,
      383,  375,  360,  371,  230,  346,  157,  324,  372,  156,
      400,  155,  333,  223,  222,  404,  354,  201,  342,  221,
      162,  388,  207,  363,  369,  168,  396,  396,  213,  393,

      400,  351,  404,  396,  400,  404,  156,  180,  361,  370,
      162,  397,  168,  201,  185,  190,  346,  220,  400,  383,
      169,  404,  401,  396,  388,  400,  404,  405,  207,  163,
      393,  213,  157,  201,  155,  207,  213,  199,  397,  409,
      198,  197,  401,  117,  405,  418,  412,  415,  169,  163,
      157,  155,  178,  177,  176,  175,  117,  107,  169,  163,
      420,  157,  155,  422,  153,  418,  152,  420,  422,   55,
       55,   55,   55,   55,   55,   55,   55,   55,   55,   55,
       55,   55,   55,   55,   58,   58,   58,   58,  151,   58,
       58,   58,   58,   58,   58,   58,   58,   58,   58,   72,

       72,  150,  117,   72,   72,   72,   72,   81,   81,  107,
      107,  137,  132,  129,   84,  127,   81,   81,   81,   81,
       84,   84,  125,  124,  123,   84,   84,   84,   84,   84,
       84,   84,   84,   84,   93,   93,  122,  121,   54,   93,
       93,   54,  117,   93,   93,   93,   93,   93,  102,  102,
      107,  423,  102,  102,  102,   76,   75,  102,  102,  102,
      102,   58,   58,   58,   74,   58,   73,   54,   54,   54,
       59,   58,   58,  116,  116,  116,  116,  116,  116,  116,
      116,  116,  116,  116,  116,  116,  116,  116,  118,  118,
       54,  118,  118,  118,  118,  118,  118,  118,  118,  118,

      118,  118,  118,  120,  120,   54,  423,  120,  423,  423,
      120,  126,  126,  423,  423,  126,  126,  126,  126,  143,
      143,  423,  423,  143,  423,  423,  143,  144,  144,  423,
      423,  144,  423,  423,  144,  147,  147,  147,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      154,  154,  154,  154,  154,  154,  154,  154,  154,  154,
      154,  154,  154,  154,  154,  156,  156,  156,  156,  156,
      156,  156,  156,  156,  156,  156,  156,  156,  156,  156,
      162,  162,  162,  162,  162,  162,  162,  162,  162,  162,
      162,  162,  162,  162,  162,  168,  168,  168,  168,  168,

      168,  168,  168,  168,  168,  168,  168,  168,  168,  168,
       58,   58,  423,  423,   58,  423,  423,   58,  174,  174,
      174,  174,  174,  174,  174,  174,  174,  174,  174,  174,
      174,  174,  174,  179,  179,  179,  179,  179,  179,  179,
      179,  179,  179,  179,  179,  179,  179,  179,  180,  180,
      180,  180,  180,  180,  180,  180,  180,  180,  180,  180,
      180,  180,  180,  185,  185,  185,  185,  185,  185,  185,
      185,  185,  185,  185,  185,  185,  185,  185,  190,  190,
      190,  190,  190,  190,  190,  190,  190,  190,  190,  190,
      190,  190,  190,  200,  200,  200,  200,  200,  200,  200,

      200,  200,  200,  200,  200,  200,  200,  200,  201,  201,
      201,  201,  201,  201,  201,  201,  201,  201,  201,  201,
      201,  201,  201,  207,  207,  207,  207,  207,  207,  207,
      207,  207,  207,  207,  207,  207,  207,  207,  213,  213,
      213,  213,  213,  213,  213,  213,  213,  213,  213,  213,
      213,  213,  213,  219,  219,  219,  219,  219,  219,  219,
      219,  219,  423,  219,  219,  219,  219,  219,  251,  251,
      251,  251,  251,  251,  251,  251,  251,  251,  251,  251,
      251,  251,  251,  255,  255,  255,  255,  255,  255,  255,
      255,  255,  423,  255,  255,  255,  255,  255,  259,  259,

      259,  259,  259,  259,  259,  259,  259,  259,  259,  259,
      259,  259,  259,  269,  269,  269,  269,  269,  269,  269,
      269,  269,  269,  269,  269,  269,  269,  269,  278,  278,
      278,  278,  278,  278,  278,  278,  278,  278,  278,  278,
      278,  278,  278,  286,  286,  286,  286,  286,  286,  286,
      286,  286,  286,  286,  286,  286,  286,  286,  288,  288,
      288,  288,  288,  288,  288,  288,  288,  288,  288,  288,
      288,  288,  288,  290,  290,  290,  290,  290,  290,  290,
      290,  290,  290,  290,  290,  290,  290,  290,  293,  293,
      293,  293,  293,  293,  293,  293,  293,  293,  293,  293,

      293,  293,  293,  296,  296,  296,  296,  296,  296,  296,
      296,  296,  296,  296,  296,  296,  296,  296,  298,  298,
      298,  298,  298,  298,  298,  298,  298,  298,  298,  298,
      298,  298,  298,  301,  301,  301,  301,  301,  301,  301,
      301,  301,  301,  301,  301,  301,  301,  301,  304,  304,
      304,  304,  304,  304,  304,  304,  304,  304,  304,  304,
      304,  304,  304,  306,  306,  306,  306,  306,  306,  306,
      306,  306,  306,  306,  306,  306,  306,  306,  309,  309,
      309,  309,  309,  309,  309,  309,  309,  309,  309,  309,
      309,  309,  309,  312,  312,  312,  312,  312,  312,  312,

      312,  312,  312,  312,  312,  312,  312,  312,  314,  314,
      314,  314,  314,  314,  314,  314,  314,  314,  314,  314,
      314,  314,  314,  317,  317,  317,  317,  317,  317,  317,
      317,  317,  317,  317,  317,  317,  317,  317,  318,  318,
      318,  318,  318,  318,  318,  318,  318,  318,  318,  318,
      318,  318,  318,  320,  320,  320,  320,  320,  320,  320,
      320,  320,  320,  320,  320,  320,  320,  320,  323,  323,
      323,  323,  323,  323,  323,  323,  323,  323,  323,  323,
      323,  323,  323,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  327,  327,

      327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
      327,  327,  327,  162,  162,  162,  162,  162,  162,  162,
      162,  162,  162,  162,  162,  162,  162,  162,  329,  329,
      329,  329,  329,  329,  329,  329,  329,  329,  329,  329,
      329,  329,  329,  332,  332,  332,  332,  332,  332,  332,
      332,  332,  332,  332,  332,  332,  332,  332,  335,  335,
      335,  335,  335,  335,  335,  335,  335,  335,  335,  335,
      335,  335,  335,  336,  336,  336,  336,  336,  336,  336,
      336,  336,  336,  336,  336,  336,  336,  336,  168,  168,
      168,  168,  168,  168,  168,  168,  168,  168,  168,  168,

      168,  168,  168,  338,  338,  338,  338,  338,  338,  338,
      338,  338,  338,  338,  338,  338,  338,  338,  341,  341,
      341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
      341,  341,  341,  344,  344,  344,  344,  344,  344,  344,
      344,  344,  344,  344,  344,  344,  344,  344,  345,  345,
      345,  345,  345,  345,  345,  345,  345,  423,  345,  345,
      345,  345,  345,  348,  348,  348,  348,  348,  348,  348,
      348,  348,  348,  348,  348,  348,  348,  348,  349,  349,
      349,  349,  349,  349,  349,  349,  349,  349,  349,  349,
      349,  349,  349,  201,  201,  201,  201,  201,  201,  201,

      201,  201,  201,  201,  201,  201,  201,  201,  356,  356,
      356,  356,  356,  356,  356,  356,  356,  356,  356,  356,
      356,  356,  356,  358,  358,  358,  358,  358,  358,  358,
      358,  358,  358,  358,  358,  358,  358,  358,  359,  359,
      359,  359,  359,  359,  359,  359,  359,  359,  359,  359,
      359,  359,  359,  207,  207,  207,  207,  207,  207,  207,
      207,  207,  207,  207,  207,  207,  207,  207,  365,  365,
      365,  365,  365,  365,  365,  365,  365,  365,  365,  365,
      365,  365,  365,  367,  367,  367,  367,  367,  367,  367,
      367,  367,  367,  367,  367,  367,  367,  367,  368,  368,

      368,  368,  368,  368,  368,  368,  368,  368,  368,  368,
      368,  368,  368,  213,  213,  213,  213,  213,  213,  213,
      213,  213,  213,  213,  213,  213,  213,  213,  374,  374,
      374,  374,  374,  374,  374,  374,  374,  374,  374,  374,
      374,  374,  374,  376,  376,  376,  376,  376,  376,  376,
      376,  376,  376,  376,  376,  376,  376,  376,  377,  377,
      377,  377,  377,  377,  377,  377,  377,  377,  377,  377,
      377,  377,  377,  380,  380,  380,  380,  380,  380,  380,
      380,  380,  380,  380,  380,  380,  380,  380,  382,  382,
      382,  382,  382,  382,  382,  382,  382,  382,  382,  382,

      382,  382,  382,  385,  385,  385,  385,  385,  385,  385,
      385,  385,  385,  385,  385,  385,  385,  385,  387,  387,
      387,  387,  387,  387,  387,  387,  387,  387,  387,  387,
      387,  387,  387,  390,  390,  390,  390,  390,  390,  390,
      390,  390,  390,  390,  390,  390,  390,  390,  392,  392,
      392,  392,  392,  392,  392,  392,  392,  392,  392,  392,
      392,  392,  392,  394,  394,  394,  394,  394,  394,  394,
      394,  394,  394,  394,  394,  394,  394,  394,  395,  395,
      395,  395,  395,  395,  395,  395,  395,  395,  395,  395,
      395,  395,  395,  398,  398,  398,  398,  398,  398,  398,

      398,  398,  398,  398,  398,  398,  398,  398,  399,  399,
      399,  399,  399,  399,  399,  399,  399,  399,  399,  399,
      399,  399,  399,  402,  402,  402,  402,  402,  402,  402,
      402,  402,  402,  402,  402,  402,  402,  402,  403,  403,
      403,  403,  403,  403,  403,  403,  403,  403,  403,  403,
      403,  403,  403,  406,  406,  406,  406,  406,  406,  406,
      406,  406,  406,  406,  406,  406,  406,  406,  407,  407,
      407,  407,  407,  407,  407,  407,  407,  407,  407,  407,
      407,  407,  407,  408,  408,  408,  408,  408,  408,  408,
      408,  408,  408,  408,  408,  408,  408,  408,  410,  410,

      410,  410,  410,  410,  410,  410,  410,  410,  410,  410,
      410,  410,  410,  411,  411,  411,  411,  411,  411,  411,
      411,  411,  411,  411,  411,  411,  411,  411,  413,  413,
      413,  413,  413,  413,  413,  413,  413,  413,  413,  413,
      413,  413,  413,  414,  414,  414,  414,  414,  414,  414,
      414,  414,  414,  414,  414,  414,  414,  414,  416,  416,
      416,  416,  416,  416,  416,  416,  416,  416,  416,  416,
      416,  416,  416,  417,  417,  417,  417,  417,  417,  417,
      417,  417,  417,  417,  417,  417,  417,  417,  419,  419,
      419,  419,  419,  419,  419,  419,  419,  419,  419,  419,

      419,  419,  419,  421,  421,  421,  421,  421,  421,  421,
      421,  421,  421,  421,  421,  421,  421,  421,    9,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423
    } ;

static yyconst flex_int16_t yy_chk[2675] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    2,   11,  422,   11,   19,
        2,    3,    3,    3,    3,    3,    3,    3,    3,  420,
       19,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    4,
       25,   25,  418,   20,    4,    5,    5,    5,    5,    5,

        5,    5,    5,   20,   20,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    6,   21,   21,   21,   21,    6,    7,    7,
        7,    7,    7,    7,    7,    7,   14,   34,    7,    7,
        7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
        7,    7,    7,    7,    7,    8,   16,   22,   27,   27,
        8,   22,   35,   90,   35,   14,   90,   35,   34,   22,
       55,   16,   23,  416,   23,   23,   23,   23,   36,   36,
       36,   37,   37,   37,   39,   40,  415,   40,   23,   39,
       23,   23,   36,   41,   53,   37,   53,   89,   41,   55,

       37,   37,   89,   23,   64,   38,   38,   38,   87,   23,
       23,   24,  131,   24,   24,   24,   24,   87,  131,   38,
       43,   43,   43,   64,   38,   38,  413,   24,  161,   24,
       44,   44,   44,   37,   43,  161,   45,   45,   45,   46,
       46,   46,   24,  182,   44,   47,   47,   47,   24,   38,
       45,  232,  182,   46,   48,   48,   48,   38,  232,   47,
       59,   59,   59,   48,   49,   49,   49,  159,   48,   66,
      159,   66,   43,   49,   44,   45,   59,   59,   49,  412,
      410,   77,   44,   77,   66,   46,   77,  129,   45,  117,
       66,   46,  129,  117,   47,   59,   59,   47,   50,   50,

       50,   51,   51,   51,   52,   52,   52,   50,   49,   69,
       51,   69,   50,   52,  160,   51,  409,  160,   52,   63,
       63,   63,   63,   65,   69,   65,   65,   65,   65,  407,
       69,   78,   78,   78,   79,   79,   79,   50,   91,   91,
       91,  130,  108,  406,  405,   78,  130,   51,   79,  108,
      108,  108,   91,   52,   60,   60,   60,   60,   93,   93,
       93,   82,   82,   82,  205,   60,   60,  128,  120,   60,
      120,  128,   93,  205,  402,   82,  401,   60,   60,   60,
       82,   82,  398,  120,   60,   95,   95,   95,  397,  120,
       91,   96,   96,   96,  155,   97,   97,   97,  155,   95,

      157,   98,   98,   98,  157,   96,  394,  158,  163,   97,
       93,  158,  163,   82,  393,   98,   99,   99,   99,  109,
       95,  390,  102,  102,  102,   99,  109,  109,  109,  388,
       99,  102,  103,  103,  103,   96,  102,   95,  133,  133,
      133,  103,  227,   96,   97,  385,  103,   97,   98,  104,
      104,  104,  133,   98,  383,  105,  105,  105,  104,  106,
      106,  106,  169,  104,  105,  380,  169,  103,  106,  105,
      115,  115,  377,  106,  115,  115,  115,  115,  134,  134,
      134,  135,  135,  135,  227,  376,  133,  136,  136,  136,
      133,  375,  134,  104,  373,  135,  138,  138,  138,  183,

      371,  136,  369,  183,  105,  138,  106,  139,  139,  139,
      138,  367,  366,  140,  140,  140,  139,  134,  364,  360,
      135,  139,  140,  145,  145,  145,  145,  140,  252,  358,
      134,  236,  252,  135,  141,  141,  141,  136,  149,  136,
      149,  260,  142,  141,  138,  260,  139,  357,  141,  142,
      142,  142,  140,  149,  164,  164,  164,  245,  184,  149,
      165,  165,  165,  184,  166,  166,  166,  204,  164,  175,
      175,  175,  204,  236,  165,  270,  355,  353,  166,  270,
      167,  167,  167,  175,  141,  146,  146,  146,  146,  170,
      170,  170,  231,  264,  167,  350,  146,  231,  170,  245,

      146,  165,  164,  170,  258,  279,  164,  348,  146,  279,
      146,  166,  165,  262,  258,  146,  166,  167,  262,  171,
      171,  171,  172,  172,  172,  173,  173,  173,  171,  347,
      345,  172,  167,  171,  173,  264,  172,  170,  344,  173,
      181,  181,  181,  186,  186,  186,  258,  187,  187,  187,
      188,  188,  188,  343,  181,  340,  338,  186,  337,  274,
      171,  187,  173,  335,  188,  189,  189,  189,  334,  172,
      284,  191,  191,  191,  192,  192,  192,  268,  331,  189,
      191,  329,  187,  192,  181,  191,  328,  268,  192,  326,
      188,  193,  193,  193,  277,  186,  199,  199,  199,  187,

      193,  274,  188,  325,  277,  193,  194,  194,  194,  192,
      199,  352,  284,  322,  189,  194,  320,  189,  319,  268,
      194,  202,  202,  202,  206,  206,  206,  317,  208,  208,
      208,  193,  210,  210,  210,  202,  277,  316,  206,  315,
      202,  202,  208,  211,  211,  211,  210,  212,  212,  212,
      214,  214,  214,  352,  289,  194,  297,  211,  289,  214,
      297,  212,  290,  314,  214,  216,  216,  216,  206,  235,
      235,  235,  290,  202,  216,  312,  309,  362,  211,  216,
      208,  210,  305,  235,  210,  372,  305,  217,  217,  217,
      313,  218,  218,  218,  313,  211,  217,  308,  304,  212,

      218,  217,  214,  295,  290,  218,  226,  226,  226,  233,
      233,  233,  301,  295,  216,  300,  239,  239,  239,  362,
      226,  235,  217,  233,  296,  226,  226,  372,  233,  233,
      239,  293,  240,  240,  240,  241,  241,  241,  243,  243,
      243,  292,  247,  247,  247,  295,  240,  243,  288,  241,
      378,  247,  243,  381,  378,  239,  247,  381,  226,  286,
      285,  233,  248,  248,  248,  249,  249,  249,  239,  240,
      298,  248,  283,  291,  249,  278,  248,  291,  386,  249,
      298,  247,  386,  291,  240,  391,  276,  241,  269,  391,
      243,  263,  263,  263,  271,  271,  271,  267,  265,  248,

      272,  272,  272,  299,  261,  263,  259,  299,  271,  257,
      263,  263,  298,  299,  272,  291,  255,  249,  273,  273,
      273,  280,  280,  280,  281,  281,  281,  282,  282,  282,
      280,  254,  273,  281,  303,  280,  282,  251,  281,  272,
      306,  282,  250,  263,  303,  299,  271,  287,  287,  287,
      306,  246,  272,  294,  294,  294,  307,  302,  302,  302,
      307,  287,  244,  281,  242,  311,  307,  294,  318,  238,
      273,  302,  310,  310,  310,  311,  303,  323,  318,  282,
      324,  310,  306,  234,  324,  327,  310,  323,  230,  228,
      324,  225,  321,  321,  321,  327,  224,  294,  307,  330,

      330,  330,  223,  222,  332,  336,  321,  311,  341,  302,
      318,  321,  321,  330,  332,  336,  333,  221,  341,  323,
      333,  349,  324,  339,  339,  339,  333,  327,  356,  342,
      359,  349,  339,  342,  351,  351,  351,  339,  356,  342,
      359,  361,  361,  361,  321,  219,  332,  336,  351,  365,
      341,  330,  368,  351,  351,  361,  215,  374,  333,  365,
      213,  209,  368,  349,  370,  370,  370,  374,  207,  379,
      356,  342,  359,  370,  203,  339,  201,  382,  370,  379,
      384,  200,  387,  198,  197,  389,  351,  382,  392,  196,
      384,  365,  387,  361,  368,  389,  395,  396,  392,  374,

      399,  396,  403,  408,  400,  404,  395,  396,  400,  404,
      399,  379,  403,  408,  400,  404,  370,  195,  411,  382,
      190,  414,  384,  417,  387,  419,  421,  389,  411,  185,
      392,  414,  180,  417,  179,  419,  421,  178,  395,  396,
      177,  176,  399,  174,  403,  408,  400,  404,  168,  162,
      156,  154,  153,  152,  151,  150,  147,  143,  137,  132,
      411,  127,  125,  414,  124,  417,  123,  419,  421,  424,
      424,  424,  424,  424,  424,  424,  424,  424,  424,  424,
      424,  424,  424,  424,  425,  425,  425,  425,  122,  425,
      425,  425,  425,  425,  425,  425,  425,  425,  425,  426,

      426,  121,  116,  426,  426,  426,  426,  427,  427,  113,
      112,  101,   92,   88,   84,   83,  427,  427,  427,  427,
      428,  428,   80,   76,   75,  428,  428,  428,  428,  428,
      428,  428,  428,  428,  429,  429,   74,   73,   71,  429,
      429,   70,   61,  429,  429,  429,  429,  429,  430,  430,
       58,   57,  430,  430,  430,   33,   32,  430,  430,  430,
      430,  431,  431,  431,   31,  431,   30,   29,   26,   18,
       17,  431,  431,  432,  432,  432,  432,  432,  432,  432,
      432,  432,  432,  432,  432,  432,  432,  432,  433,  433,
       15,  433,  433,  433,  433,  433,  433,  433,  433,  433,

      433,  433,  433,  434,  434,   13,    9,  434,    0,    0,
      434,  435,  435,    0,    0,  435,  435,  435,  435,  436,
      436,    0,    0,  436,    0,    0,  436,  437,  437,    0,
        0,  437,    0,    0,  437,  438,  438,  438,  438,  438,
      438,  438,  438,  438,  438,  438,  438,  438,  438,  438,
      439,  439,  439,  439,  439,  439,  439,  439,  439,  439,
      439,  439,  439,  439,  439,  440,  440,  440,  440,  440,
      440,  440,  440,  440,  440,  440,  440,  440,  440,  440,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  441,  441,  441,  441,  442,  442,  442,  442,  442,

      442,  442,  442,  442,  442,  442,  442,  442,  442,  442,
      443,  443,    0,    0,  443,    0,    0,  443,  444,  444,
      444,  444,  444,  444,  444,  444,  444,  444,  444,  444,
      444,  444,  444,  445,  445,  445,  445,  445,  445,  445,
      445,  445,  445,  445,  445,  445,  445,  445,  446,  446,
      446,  446,  446,  446,  446,  446,  446,  446,  446,  446,
      446,  446,  446,  447,  447,  447,  447,  447,  447,  447,
      447,  447,  447,  447,  447,  447,  447,  447,  448,  448,
      448,  448,  448,  448,  448,  448,  448,  448,  448,  448,
      448,  448,  448,  449,  449,  449,  449,  449,  449,  449,

      449,  449,  449,  449,  449,  449,  449,  449,  450,  450,
      450,  450,  450,  450,  450,  450,  450,  450,  450,  450,
      450,  450,  450,  451,  451,  451,  451,  451,  451,  451,
      451,  451,  451,  451,  451,  451,  451,  451,  452,  452,
      452,  452,  452,  452,  452,  452,  452,  452,  452,  452,
      452,  452,  452,  453,  453,  453,  453,  453,  453,  453,
      453,  453,    0,  453,  453,  453,  453,  453,  454,  454,
      454,  454,  454,  454,  454,  454,  454,  454,  454,  454,
      454,  454,  454,  455,  455,  455,  455,  455,  455,  455,
      455,  455,    0,  455,  455,  455,  455,  455,  456,  456,

      456,  456,  456,  456,  456,  456,  456,  456,  456,  456,
      456,  456,  456,  457,  457,  457,  457,  457,  457,  457,
      457,  457,  457,  457,  457,  457,  457,  457,  458,  458,
      458,  458,  458,  458,  458,  458,  458,  458,  458,  458,
      458,  458,  458,  459,  459,  459,  459,  459,  459,  459,
      459,  459,  459,  459,  459,  459,  459,  459,  460,  460,
      460,  460,  460,  460,  460,  460,  460,  460,  460,  460,
      460,  460,  460,  461,  461,  461,  461,  461,  461,  461,
      461,  461,  461,  461,  461,  461,  461,  461,  462,  462,
      462,  462,  462,  462,  462,  462,  462,  462,  462,  462,

      462,  462,  462,  463,  463,  463,  463,  463,  463,  463,
      463,  463,  463,  463,  463,  463,  463,  463,  464,  464,
      464,  464,  464,  464,  464,  464,  464,  464,  464,  464,
      464,  464,  464,  465,  465,  465,  465,  465,  465,  465,
      465,  465,  465,  465,  465,  465,  465,  465,  466,  466,
      466,  466,  466,  466,  466,  466,  466,  466,  466,  466,
      466,  466,  466,  467,  467,  467,  467,  467,  467,  467,
      467,  467,  467,  467,  467,  467,  467,  467,  468,  468,
      468,  468,  468,  468,  468,  468,  468,  468,  468,  468,
      468,  468,  468,  469,  469,  469,  469,  469,  469,  469,

      469,  469,  469,  469,  469,  469,  469,  469,  470,  470,
      470,  470,  470,  470,  470,  470,  470,  470,  470,  470,
      470,  470,  470,  471,  471,  471,  471,  471,  471,  471,
      471,  471,  471,  471,  471,  471,  471,  471,  472,  472,
      472,  472,  472,  472,  472,  472,  472,  472,  472,  472,
      472,  472,  472,  473,  473,  473,  473,  473,  473,  473,
      473,  473,  473,  473,  473,  473,  473,  473,  474,  474,
      474,  474,  474,  474,  474,  474,  474,  474,  474,  474,
      474,  474,  474,  475,  475,  475,  475,  475,  475,  475,
      475,  475,  475,  475,  475,  475,  475,  475,  476,  476,

      476,  476,  476,  476,  476,  476,  476,  476,  476,  476,
      476,  476,  476,  477,  477,  477,  477,  477,  477,  477,
      477,  477,  477,  477,  477,  477,  477,  477,  478,  478,
      478,  478,  478,  478,  478,  478,  478,  478,  478,  478,
      478,  478,  478,  479,  479,  479,  479,  479,  479,  479,
      479,  479,  479,  479,  479,  479,  479,  479,  480,  480,
      480,  480,  480,  480,  480,  480,  480,  480,  480,  480,
      480,  480,  480,  481,  481,  481,  481,  481,  481,  481,
      481,  481,  481,  481,  481,  481,  481,  481,  482,  482,
      482,  482,  482,  482,  482,  482,  482,  482,  482,  482,

      482,  482,  482,  483,  483,  483,  483,  483,  483,  483,
      483,  483,  483,  483,  483,  483,  483,  483,  484,  484,
      484,  484,  484,  484,  484,  484,  484,  484,  484,  484,
      484,  484,  484,  485,  485,  485,  485,  485,  485,  485,
      485,  485,  485,  485,  485,  485,  485,  485,  486,  486,
      486,  486,  486,  486,  486,  486,  486,    0,  486,  486,
      486,  486,  486,  487,  487,  487,  487,  487,  487,  487,
      487,  487,  487,  487,  487,  487,  487,  487,  488,  488,
      488,  488,  488,  488,  488,  488,  488,  488,  488,  488,
      488,  488,  488,  489,  489,  489,  489,  489,  489,  489,

      489,  489,  489,  489,  489,  489,  489,  489,  490,  490,
      490,  490,  490,  490,  490,  490,  490,  490,  490,  490,
      490,  490,  490,  491,  491,  491,  491,  491,  491,  491,
      491,  491,  491,  491,  491,  491,  491,  491,  492,  492,
      492,  492,  492,  492,  492,  492,  492,  492,  492,  492,
      492,  492,  492,  493,  493,  493,  493,  493,  493,  493,
      493,  493,  493,  493,  493,  493,  493,  493,  494,  494,
      494,  494,  494,  494,  494,  494,  494,  494,  494,  494,
      494,  494,  494,  495,  495,  495,  495,  495,  495,  495,
      495,  495,  495,  495,  495,  495,  495,  495,  496,  496,

      496,  496,  496,  496,  496,  496,  496,  496,  496,  496,
      496,  496,  496,  497,  497,  497,  497,  497,  497,  497,
      497,  497,  497,  497,  497,  497,  497,  497,  498,  498,
      498,  498,  498,  498,  498,  498,  498,  498,  498,  498,
      498,  498,  498,  499,  499,  499,  499,  499,  499,  499,
      499,  499,  499,  499,  499,  499,  499,  499,  500,  500,
      500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
      500,  500,  500,  501,  501,  501,  501,  501,  501,  501,
      501,  501,  501,  501,  501,  501,  501,  501,  502,  502,
      502,  502,  502,  502,  502,  502,  502,  502,  502,  502,

      502,  502,  502,  503,  503,  503,  503,  503,  503,  503,
      503,  503,  503,  503,  503,  503,  503,  503,  504,  504,
      504,  504,  504,  504,  504,  504,  504,  504,  504,  504,
      504,  504,  504,  505,  505,  505,  505,  505,  505,  505,
      505,  505,  505,  505,  505,  505,  505,  505,  506,  506,
      506,  506,  506,  506,  506,  506,  506,  506,  506,  506,
      506,  506,  506,  507,  507,  507,  507,  507,  507,  507,
      507,  507,  507,  507,  507,  507,  507,  507,  508,  508,
      508,  508,  508,  508,  508,  508,  508,  508,  508,  508,
      508,  508,  508,  509,  509,  509,  509,  509,  509,  509,

      509,  509,  509,  509,  509,  509,  509,  509,  510,  510,
      510,  510,  510,  510,  510,  510,  510,  510,  510,  510,
      510,  510,  510,  511,  511,  511,  511,  511,  511,  511,
      511,  511,  511,  511,  511,  511,  511,  511,  512,  512,
      512,  512,  512,  512,  512,  512,  512,  512,  512,  512,
      512,  512,  512,  513,  513,  513,  513,  513,  513,  513,
      513,  513,  513,  513,  513,  513,  513,  513,  514,  514,
      514,  514,  514,  514,  514,  514,  514,  514,  514,  514,
      514,  514,  514,  515,  515,  515,  515,  515,  515,  515,
      515,  515,  515,  515,  515,  515,  515,  515,  516,  516,

      516,  516,  516,  516,  516,  516,  516,  516,  516,  516,
      516,  516,  516,  517,  517,  517,  517,  517,  517,  517,
      517,  517,  517,  517,  517,  517,  517,  517,  518,  518,
      518,  518,  518,  518,  518,  518,  518,  518,  518,  518,
      518,  518,  518,  519,  519,  519,  519,  519,  519,  519,
      519,  519,  519,  519,  519,  519,  519,  519,  520,  520,
      520,  520,  520,  520,  520,  520,  520,  520,  520,  520,
      520,  520,  520,  521,  521,  521,  521,  521,  521,  521,
      521,  521,  521,  521,  521,  521,  521,  521,  522,  522,
      522,  522,  522,  522,  522,  522,  522,  522,  522,  522,

      522,  522,  522,  523,  523,  523,  523,  523,  523,  523,
      523,  523,  523,  523,  523,  523,  523,  523,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423,  423,  423,  423,  423,  423,  423,
      423,  423,  423,  423
    } ;

#define YY_TRAILING_MASK 0x2000
#define YY_TRAILING_HEAD_MASK 0x4000
#define REJECT \
{ \
*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ \
yy_cp = yyg->yy_full_match; /* restore poss. backed-over text */ \
yyg->yy_lp = yyg->yy_full_lp; /* restore orig. accepting pos. */ \
yyg->yy_state_ptr = yyg->yy_full_state; /* restore orig. state */ \
yy_current_state = *yyg->yy_state_ptr; /* restore curr. state */ \
++yyg->yy_lp; \
goto find_rule; \
}

#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
/*
 * java.l - a lex rule for C#
 * 
 * Copyright (C) 2005 Kenichi Ishibashi <bashi at dream.ie.ariake-nct.ac.jp>
 *     All rights reserved.
 *     This is free software with ABSOLUTELY NO WARRANTY.
 * 
 * You can redistribute it and/or modify it under the terms of 
 * the GNU General Public License version 2.
 */

#include "csharp.h"

#define YY_EXTRA_TYPE langscan_csharp_lex_extra_t *

#if YY_NULL != 0
#error "YY_NULL is not 0."
#endif

#define YY_DECL langscan_csharp_token_t langscan_csharp_lex_lex(yyscan_t yyscanner)

#define YY_INPUT(buf,result,max_size) \
  if (!yyextra->eof) { \
    result = yyextra->user_read(&(yyextra->user_data), (buf), (max_size)); \
    if (result == 0) \
      yyextra->eof = 1; \
  }

#define UPD update_pos(yyextra, yytext, yyleng)
static void update_pos(langscan_csharp_lex_extra_t *, char *, int);

#define report(token) \
  do { \
    yyextra->text = yytext; \
    yyextra->leng = yyleng; \
    return langscan_csharp_##token; \
  } while (0)

static int ident_length(unsigned char *ptr, int max);

#define INITIAL 0
#define CLASSHEAD 1
#define CLASSHEAD_TRAILER 2
#define DELEGATE 3

#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
 * down here because we want the user's section 1 to have been scanned first.
 * The user has a chance to override it with an option.
 */
#include <unistd.h>
#endif

#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif

/* Holds the entire state of the reentrant scanner. */
struct yyguts_t
    {

    /* User-defined. Not touched by flex. */
    YY_EXTRA_TYPE yyextra_r;

    /* The rest are the same as the globals declared in the non-reentrant scanner. */
    FILE *yyin_r, *yyout_r;
    size_t yy_buffer_stack_top; /**< index of top of stack. */
    size_t yy_buffer_stack_max; /**< capacity of stack. */
    YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
    char yy_hold_char;
    yy_size_t yy_n_chars;
    yy_size_t yyleng_r;
    char *yy_c_buf_p;
    int yy_init;
    int yy_start;
    int yy_did_buffer_switch_on_eof;
    int yy_start_stack_ptr;
    int yy_start_stack_depth;
    int *yy_start_stack;
    yy_state_type yy_last_accepting_state;
    char* yy_last_accepting_cpos;

    int yylineno_r;
    int yy_flex_debug_r;

    yy_state_type *yy_state_buf;
    yy_state_type *yy_state_ptr;
    char *yy_full_match;
    int yy_lp;

    /* These are only needed for trailing context rules,
     * but there's no conditional variable for that yet. */
    int yy_looking_for_trail_begin;
    int yy_full_lp;
    int *yy_full_state;

    char *yytext_r;
    int yy_more_flag;
    int yy_more_len;

    }; /* end struct yyguts_t */

static int yy_init_globals (yyscan_t yyscanner );

int langscan_csharp_lex_lex_init (yyscan_t* scanner);

int langscan_csharp_lex_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);

/* Accessor methods to globals.
   These are made visible to non-reentrant scanners for convenience. */

int langscan_csharp_lex_lex_destroy (yyscan_t yyscanner );

int langscan_csharp_lex_get_debug (yyscan_t yyscanner );

void langscan_csharp_lex_set_debug (int debug_flag ,yyscan_t yyscanner );

YY_EXTRA_TYPE langscan_csharp_lex_get_extra (yyscan_t yyscanner );

void langscan_csharp_lex_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );

FILE *langscan_csharp_lex_get_in (yyscan_t yyscanner );

void langscan_csharp_lex_set_in  (FILE * in_str ,yyscan_t yyscanner );

FILE *langscan_csharp_lex_get_out (yyscan_t yyscanner );

void langscan_csharp_lex_set_out  (FILE * out_str ,yyscan_t yyscanner );

yy_size_t langscan_csharp_lex_get_leng (yyscan_t yyscanner );

char *langscan_csharp_lex_get_text (yyscan_t yyscanner );

int langscan_csharp_lex_get_lineno (yyscan_t yyscanner );

void langscan_csharp_lex_set_lineno (int line_number ,yyscan_t yyscanner );

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

#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int langscan_csharp_lex_wrap (yyscan_t yyscanner );
#else
extern int langscan_csharp_lex_wrap (yyscan_t yyscanner );
#endif
#endif

    static void yyunput (int c,char *buf_ptr  ,yyscan_t yyscanner);
    
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
#endif

#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
#endif

#ifndef YY_NO_INPUT

#ifdef __cplusplus
static int yyinput (yyscan_t yyscanner );
#else
static int input (yyscan_t yyscanner );
#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 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_LVALUE->yy_is_interactive ) \
		{ \
		int c = '*'; \
		yy_size_t 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 \
		{ \
		errno=0; \
		while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
			{ \
			if( errno != EINTR) \
				{ \
				YY_FATAL_ERROR( "input in flex scanner failed" ); \
				break; \
				} \
			errno=0; \
			clearerr(yyin); \
			} \
		}\
\

#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 , yyscanner)
#endif

/* end tables serialization structures and prototypes */

/* Default declaration of generated scanner - a define so the user can
 * easily add parameters.
 */
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1

extern int langscan_csharp_lex_lex (yyscan_t yyscanner);

#define YY_DECL int langscan_csharp_lex_lex (yyscan_t yyscanner)
#endif /* !YY_DECL */

/* 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_LVALUE->yy_at_bol = \
				(yytext[yyleng - 1] == '\n'); \
	YY_USER_ACTION

/** The main scanner function which does all the work.
 */
YY_DECL
{
	register yy_state_type yy_current_state;
	register char *yy_cp, *yy_bp;
	register int yy_act;
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

	if ( !yyg->yy_init )
		{
		yyg->yy_init = 1;

#ifdef YY_USER_INIT
		YY_USER_INIT;
#endif

        /* Create the reject buffer large enough to save one state per allowed character. */
        if ( ! yyg->yy_state_buf )
            yyg->yy_state_buf = (yy_state_type *)langscan_csharp_lex_alloc(YY_STATE_BUF_SIZE  ,yyscanner);
            if ( ! yyg->yy_state_buf )
                YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex_lex()" );

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

		if ( ! yyin )
			yyin = stdin;

		if ( ! yyout )
			yyout = stdout;

		if ( ! YY_CURRENT_BUFFER ) {
			langscan_csharp_lex_ensure_buffer_stack (yyscanner);
			YY_CURRENT_BUFFER_LVALUE =
				langscan_csharp_lex__create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
		}

		langscan_csharp_lex__load_buffer_state(yyscanner );
		}

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

		/* Support of yytext. */
		*yy_cp = yyg->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 = yyg->yy_start;
		yy_current_state += YY_AT_BOL();

		yyg->yy_state_ptr = yyg->yy_state_buf;
		*yyg->yy_state_ptr++ = yy_current_state;

yy_match:
		do
			{
			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
				{
				yy_current_state = (int) yy_def[yy_current_state];
				if ( yy_current_state >= 424 )
					yy_c = yy_meta[(unsigned int) yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
			*yyg->yy_state_ptr++ = yy_current_state;
			++yy_cp;
			}
		while ( yy_base[yy_current_state] != 2619 );

yy_find_action:
		yy_current_state = *--yyg->yy_state_ptr;
		yyg->yy_lp = yy_accept[yy_current_state];
goto find_rule; /* Shut up GCC warning -Wall */
find_rule: /* we branch to this label when backing up */
		for ( ; ; ) /* until we find what rule we matched */
			{
			if ( yyg->yy_lp && yyg->yy_lp < yy_accept[yy_current_state + 1] )
				{
				yy_act = yy_acclist[yyg->yy_lp];
				if ( yy_act & YY_TRAILING_HEAD_MASK ||
				     yyg->yy_looking_for_trail_begin )
					{
					if ( yy_act == yyg->yy_looking_for_trail_begin )
						{
						yyg->yy_looking_for_trail_begin = 0;
						yy_act &= ~YY_TRAILING_HEAD_MASK;
						break;
						}
					}
				else if ( yy_act & YY_TRAILING_MASK )
					{
					yyg->yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK;
					yyg->yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK;
					}
				else
					{
					yyg->yy_full_match = yy_cp;
					yyg->yy_full_state = yyg->yy_state_ptr;
					yyg->yy_full_lp = yyg->yy_lp;
					break;
					}
				++yyg->yy_lp;
				goto find_rule;
				}
			--yy_cp;
			yy_current_state = *--yyg->yy_state_ptr;
			yyg->yy_lp = 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 1:
/* rule 1 can match eol */
YY_RULE_SETUP
{ UPD; report(preproc); }
	YY_BREAK
case 2:
/* rule 2 can match eol */
*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
yyg->yy_c_buf_p = yy_cp = yy_bp + 5;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
{ UPD; BEGIN(CLASSHEAD); report(ident); }
	YY_BREAK
case 3:
/* rule 3 can match eol */
*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
yyg->yy_c_buf_p = yy_cp = yy_bp + 6;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
{ UPD; BEGIN(CLASSHEAD); report(ident); }
	YY_BREAK
case 4:
/* rule 4 can match eol */
*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
yyg->yy_c_buf_p = yy_cp = yy_bp + 9;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
{ UPD; BEGIN(CLASSHEAD); report(ident); }
	YY_BREAK
case 5:
/* rule 5 can match eol */
YY_RULE_SETUP
{
  yyless(ident_length(yytext, yyleng));
  UPD; BEGIN(CLASSHEAD_TRAILER);
  report(classdef);
}
	YY_BREAK
case 6:
/* rule 6 can match eol */
YY_RULE_SETUP
{ UPD; report(classref); }
	YY_BREAK
case 7:
YY_RULE_SETUP
{ UPD; BEGIN(INITIAL); report(punct); }
	YY_BREAK
case 8:
YY_RULE_SETUP
{ UPD; BEGIN(DELEGATE); report(ident); }
	YY_BREAK
case 9:
/* rule 9 can match eol */
YY_RULE_SETUP
{UPD; BEGIN(INITIAL); report(delegate); }
	YY_BREAK
case 10:
YY_RULE_SETUP
{ UPD; report(space); }
	YY_BREAK
case 11:
/* rule 11 can match eol */
YY_RULE_SETUP
{ UPD; report(space); }
	YY_BREAK
case 12:
YY_RULE_SETUP
{ UPD; report(comment); }
	YY_BREAK
case 13:
/* rule 13 can match eol */
YY_RULE_SETUP
{ UPD; report(comment); }
	YY_BREAK
case 14:
/* rule 14 can match eol */
YY_RULE_SETUP
{ UPD; report(string); }
	YY_BREAK
case 15:
/* rule 15 can match eol */
YY_RULE_SETUP
{ UPD; report(character); }
	YY_BREAK
case 16:
YY_RULE_SETUP
{ UPD; report(ident); }
	YY_BREAK
case 17:
YY_RULE_SETUP
{ UPD; report(integer); }
	YY_BREAK
case 18:
YY_RULE_SETUP
{ UPD; report(integer); }
	YY_BREAK
case 19:
YY_RULE_SETUP
{ UPD; report(integer); }
	YY_BREAK
case 20:
YY_RULE_SETUP
{ UPD; report(floating); }
	YY_BREAK
case 21:
YY_RULE_SETUP
{ UPD; report(punct); }
	YY_BREAK
case 22:
YY_RULE_SETUP
YY_FATAL_ERROR( "flex scanner jammed" );
	YY_BREAK
			case YY_STATE_EOF(INITIAL):
			case YY_STATE_EOF(CLASSHEAD):
			case YY_STATE_EOF(CLASSHEAD_TRAILER):
			case YY_STATE_EOF(DELEGATE):
				yyterminate();

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

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

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

			yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state( yyscanner );

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

			yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;

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

			else
				{
				yy_cp = yyg->yy_c_buf_p;
				goto yy_find_action;
				}
			}

		else switch ( yy_get_next_buffer( yyscanner ) )
			{
			case EOB_ACT_END_OF_FILE:
				{
				yyg->yy_did_buffer_switch_on_eof = 0;

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

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

				else
					{
					if ( ! yyg->yy_did_buffer_switch_on_eof )
						YY_NEW_FILE;
					}
				break;
				}

			case EOB_ACT_CONTINUE_SCAN:
				yyg->yy_c_buf_p =
					yyg->yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state( yyscanner );

				yy_cp = yyg->yy_c_buf_p;
				yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
				goto yy_match;

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

				yy_current_state = yy_get_previous_state( yyscanner );

				yy_cp = yyg->yy_c_buf_p;
				yy_bp = yyg->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 langscan_csharp_lex_lex */

/* 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 (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
	register char *source = yyg->yytext_ptr;
	register int number_to_move, i;
	int ret_val;

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

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

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

	if ( YY_CURRENT_BUFFER_LVALUE->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_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;

	else
		{
			yy_size_t num_to_read =
			YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;

		while ( num_to_read <= 0 )
			{ /* Not enough room in the buffer - grow it. */

			YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );

			}

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

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

		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
		}

	if ( yyg->yy_n_chars == 0 )
		{
		if ( number_to_move == YY_MORE_ADJ )
			{
			ret_val = EOB_ACT_END_OF_FILE;
			langscan_csharp_lex_restart(yyin  ,yyscanner);
			}

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

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

	if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
		/* Extend the array by 50%, plus the number we really need. */
		yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) langscan_csharp_lex_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
			YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
	}

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

	yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->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 (yyscan_t yyscanner)
{
	register yy_state_type yy_current_state;
	register char *yy_cp;
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

	yy_current_state = yyg->yy_start;
	yy_current_state += YY_AT_BOL();

	yyg->yy_state_ptr = yyg->yy_state_buf;
	*yyg->yy_state_ptr++ = yy_current_state;

	for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
		{
		register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
		while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
			{
			yy_current_state = (int) yy_def[yy_current_state];
			if ( yy_current_state >= 424 )
				yy_c = yy_meta[(unsigned int) yy_c];
			}
		yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
		*yyg->yy_state_ptr++ = yy_current_state;
		}

	return yy_current_state;
}

/* yy_try_NUL_trans - try to make a transition on the NUL character
 *
 * synopsis
 *	next_state = yy_try_NUL_trans( current_state );
 */
    static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state , yyscan_t yyscanner)
{
	register int yy_is_jam;
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */

	register YY_CHAR yy_c = 1;
	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
		{
		yy_current_state = (int) yy_def[yy_current_state];
		if ( yy_current_state >= 424 )
			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 == 423);
	if ( ! yy_is_jam )
		*yyg->yy_state_ptr++ = yy_current_state;

	return yy_is_jam ? 0 : yy_current_state;
}

    static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner)
{
	register char *yy_cp;
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

    yy_cp = yyg->yy_c_buf_p;

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

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

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

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

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

	*--yy_cp = (char) c;

	yyg->yytext_ptr = yy_bp;
	yyg->yy_hold_char = *yy_cp;
	yyg->yy_c_buf_p = yy_cp;
}

#ifndef YY_NO_INPUT
#ifdef __cplusplus
    static int yyinput (yyscan_t yyscanner)
#else
    static int input  (yyscan_t yyscanner)
#endif

{
	int c;
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

	*yyg->yy_c_buf_p = yyg->yy_hold_char;

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

		else
			{ /* need more input */
			yy_size_t offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
			++yyg->yy_c_buf_p;

			switch ( yy_get_next_buffer( yyscanner ) )
				{
				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. */
					langscan_csharp_lex_restart(yyin ,yyscanner);

					/*FALLTHROUGH*/

				case EOB_ACT_END_OF_FILE:
					{
					if ( langscan_csharp_lex_wrap(yyscanner ) )
						return 0;

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

				case EOB_ACT_CONTINUE_SCAN:
					yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
					break;
				}
			}
		}

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

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

	return c;
}
#endif	/* ifndef YY_NO_INPUT */

/** Immediately switch to a different input stream.
 * @param input_file A readable stream.
 * @param yyscanner The scanner object.
 * @note This function does not reset the start condition to @c INITIAL .
 */
    void langscan_csharp_lex_restart  (FILE * input_file , yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

	if ( ! YY_CURRENT_BUFFER ){
        langscan_csharp_lex_ensure_buffer_stack (yyscanner);
		YY_CURRENT_BUFFER_LVALUE =
            langscan_csharp_lex__create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
	}

	langscan_csharp_lex__init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
	langscan_csharp_lex__load_buffer_state(yyscanner );
}

/** Switch to a different input buffer.
 * @param new_buffer The new input buffer.
 * @param yyscanner The scanner object.
 */
    void langscan_csharp_lex__switch_to_buffer  (YY_BUFFER_STATE  new_buffer , yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

	/* TODO. We should be able to replace this entire function body
	 * with
	 *		langscan_csharp_lex_pop_buffer_state();
	 *		langscan_csharp_lex_push_buffer_state(new_buffer);
     */
	langscan_csharp_lex_ensure_buffer_stack (yyscanner);
	if ( YY_CURRENT_BUFFER == new_buffer )
		return;

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

	YY_CURRENT_BUFFER_LVALUE = new_buffer;
	langscan_csharp_lex__load_buffer_state(yyscanner );

	/* We don't actually know whether we did this switch during
	 * EOF (langscan_csharp_lex_wrap()) processing, but the only time this flag
	 * is looked at is after langscan_csharp_lex_wrap() is called, so it's safe
	 * to go ahead and always set it.
	 */
	yyg->yy_did_buffer_switch_on_eof = 1;
}

static void langscan_csharp_lex__load_buffer_state  (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
	yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
	yyg->yy_hold_char = *yyg->yy_c_buf_p;
}

/** Allocate and initialize an input buffer state.
 * @param file A readable stream.
 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
 * @param yyscanner The scanner object.
 * @return the allocated buffer state.
 */
    YY_BUFFER_STATE langscan_csharp_lex__create_buffer  (FILE * file, int  size , yyscan_t yyscanner)
{
	YY_BUFFER_STATE b;
    
	b = (YY_BUFFER_STATE) langscan_csharp_lex_alloc(sizeof( struct yy_buffer_state ) ,yyscanner );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex__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 *) langscan_csharp_lex_alloc(b->yy_buf_size + 2 ,yyscanner );
	if ( ! b->yy_ch_buf )
		YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex__create_buffer()" );

	b->yy_is_our_buffer = 1;

	langscan_csharp_lex__init_buffer(b,file ,yyscanner);

	return b;
}

/** Destroy the buffer.
 * @param b a buffer created with langscan_csharp_lex__create_buffer()
 * @param yyscanner The scanner object.
 */
    void langscan_csharp_lex__delete_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

	if ( ! b )
		return;

	if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
		YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;

	if ( b->yy_is_our_buffer )
		langscan_csharp_lex_free((void *) b->yy_ch_buf ,yyscanner );

	langscan_csharp_lex_free((void *) b ,yyscanner );
}

#ifndef __cplusplus
extern int isatty (int );
#endif /* __cplusplus */
    
/* Initializes or reinitializes a buffer.
 * This function is sometimes called more than once on the same buffer,
 * such as during a langscan_csharp_lex_restart() or at EOF.
 */
    static void langscan_csharp_lex__init_buffer  (YY_BUFFER_STATE  b, FILE * file , yyscan_t yyscanner)

{
	int oerrno = errno;
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

	langscan_csharp_lex__flush_buffer(b ,yyscanner);

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

    /* If b is the current buffer, then langscan_csharp_lex__init_buffer was _probably_
     * called from langscan_csharp_lex_restart() or through yy_get_next_buffer.
     * In that case, we don't want to reset the lineno or column.
     */
    if (b != YY_CURRENT_BUFFER){
        b->yy_bs_lineno = 1;
        b->yy_bs_column = 0;
    }

        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
    
	errno = oerrno;
}

/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
 * @param yyscanner The scanner object.
 */
    void langscan_csharp_lex__flush_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	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 )
		langscan_csharp_lex__load_buffer_state(yyscanner );
}

/** Pushes the new state onto the stack. The new state becomes
 *  the current state. This function will allocate the stack
 *  if necessary.
 *  @param new_buffer The new state.
 *  @param yyscanner The scanner object.
 */
void langscan_csharp_lex_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	if (new_buffer == NULL)
		return;

	langscan_csharp_lex_ensure_buffer_stack(yyscanner);

	/* This block is copied from langscan_csharp_lex__switch_to_buffer. */
	if ( YY_CURRENT_BUFFER )
		{
		/* Flush out information for old buffer. */
		*yyg->yy_c_buf_p = yyg->yy_hold_char;
		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
		}

	/* Only push if top exists. Otherwise, replace top. */
	if (YY_CURRENT_BUFFER)
		yyg->yy_buffer_stack_top++;
	YY_CURRENT_BUFFER_LVALUE = new_buffer;

	/* copied from langscan_csharp_lex__switch_to_buffer. */
	langscan_csharp_lex__load_buffer_state(yyscanner );
	yyg->yy_did_buffer_switch_on_eof = 1;
}

/** Removes and deletes the top of the stack, if present.
 *  The next element becomes the new top.
 *  @param yyscanner The scanner object.
 */
void langscan_csharp_lex_pop_buffer_state (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
	if (!YY_CURRENT_BUFFER)
		return;

	langscan_csharp_lex__delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
	YY_CURRENT_BUFFER_LVALUE = NULL;
	if (yyg->yy_buffer_stack_top > 0)
		--yyg->yy_buffer_stack_top;

	if (YY_CURRENT_BUFFER) {
		langscan_csharp_lex__load_buffer_state(yyscanner );
		yyg->yy_did_buffer_switch_on_eof = 1;
	}
}

/* Allocates the stack if it does not exist.
 *  Guarantees space for at least one push.
 */
static void langscan_csharp_lex_ensure_buffer_stack (yyscan_t yyscanner)
{
	yy_size_t num_to_alloc;
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

	if (!yyg->yy_buffer_stack) {

		/* First allocation is just for 2 elements, since we don't know if this
		 * scanner will even need a stack. We use 2 instead of 1 to avoid an
		 * immediate realloc on the next call.
         */
		num_to_alloc = 1;
		yyg->yy_buffer_stack = (struct yy_buffer_state**)langscan_csharp_lex_alloc
								(num_to_alloc * sizeof(struct yy_buffer_state*)
								, yyscanner);
		if ( ! yyg->yy_buffer_stack )
			YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex_ensure_buffer_stack()" );
								  
		memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
				
		yyg->yy_buffer_stack_max = num_to_alloc;
		yyg->yy_buffer_stack_top = 0;
		return;
	}

	if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){

		/* Increase the buffer to prepare for a possible push. */
		int grow_size = 8 /* arbitrary grow size */;

		num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
		yyg->yy_buffer_stack = (struct yy_buffer_state**)langscan_csharp_lex_realloc
								(yyg->yy_buffer_stack,
								num_to_alloc * sizeof(struct yy_buffer_state*)
								, yyscanner);
		if ( ! yyg->yy_buffer_stack )
			YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex_ensure_buffer_stack()" );

		/* zero only the new slots.*/
		memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
		yyg->yy_buffer_stack_max = num_to_alloc;
	}
}

/** Setup the input buffer state to scan directly from a user-specified character buffer.
 * @param base the character buffer
 * @param size the size in bytes of the character buffer
 * @param yyscanner The scanner object.
 * @return the newly allocated buffer state object. 
 */
YY_BUFFER_STATE langscan_csharp_lex__scan_buffer  (char * base, yy_size_t  size , yyscan_t yyscanner)
{
	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) langscan_csharp_lex_alloc(sizeof( struct yy_buffer_state ) ,yyscanner );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex__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;

	langscan_csharp_lex__switch_to_buffer(b ,yyscanner );

	return b;
}

/** Setup the input buffer state to scan a string. The next call to langscan_csharp_lex_lex() will
 * scan from a @e copy of @a str.
 * @param yystr a NUL-terminated string to scan
 * @param yyscanner The scanner object.
 * @return the newly allocated buffer state object.
 * @note If you want to scan bytes that may contain NUL values, then use
 *       langscan_csharp_lex__scan_bytes() instead.
 */
YY_BUFFER_STATE langscan_csharp_lex__scan_string (yyconst char * yystr , yyscan_t yyscanner)
{
    
	return langscan_csharp_lex__scan_bytes(yystr,strlen(yystr) ,yyscanner);
}

/** Setup the input buffer state to scan the given bytes. The next call to langscan_csharp_lex_lex() will
 * scan from a @e copy of @a bytes.
 * @param bytes the byte buffer to scan
 * @param len the number of bytes in the buffer pointed to by @a bytes.
 * @param yyscanner The scanner object.
 * @return the newly allocated buffer state object.
 */
YY_BUFFER_STATE langscan_csharp_lex__scan_bytes  (yyconst char * yybytes, yy_size_t  _yybytes_len , yyscan_t yyscanner)
{
	YY_BUFFER_STATE b;
	char *buf;
	yy_size_t n, i;
    
	/* Get memory for full buffer, including space for trailing EOB's. */
	n = _yybytes_len + 2;
	buf = (char *) langscan_csharp_lex_alloc(n ,yyscanner );
	if ( ! buf )
		YY_FATAL_ERROR( "out of dynamic memory in langscan_csharp_lex__scan_bytes()" );

	for ( i = 0; i < _yybytes_len; ++i )
		buf[i] = yybytes[i];

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

	b = langscan_csharp_lex__scan_buffer(buf,n ,yyscanner);
	if ( ! b )
		YY_FATAL_ERROR( "bad buffer in langscan_csharp_lex__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;
}

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
{
    	(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. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
		yytext[yyleng] = yyg->yy_hold_char; \
		yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
		yyg->yy_hold_char = *yyg->yy_c_buf_p; \
		*yyg->yy_c_buf_p = '\0'; \
		yyleng = yyless_macro_arg; \
		} \
	while ( 0 )

/* Accessor  methods (get/set functions) to struct members. */

/** Get the user-defined data for this scanner.
 * @param yyscanner The scanner object.
 */
YY_EXTRA_TYPE langscan_csharp_lex_get_extra  (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    return yyextra;
}

/** Get the current line number.
 * @param yyscanner The scanner object.
 */
int langscan_csharp_lex_get_lineno  (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    
        if (! YY_CURRENT_BUFFER)
            return 0;
    
    return yylineno;
}

/** Get the current column number.
 * @param yyscanner The scanner object.
 */
int langscan_csharp_lex_get_column  (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    
        if (! YY_CURRENT_BUFFER)
            return 0;
    
    return yycolumn;
}

/** Get the input stream.
 * @param yyscanner The scanner object.
 */
FILE *langscan_csharp_lex_get_in  (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    return yyin;
}

/** Get the output stream.
 * @param yyscanner The scanner object.
 */
FILE *langscan_csharp_lex_get_out  (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    return yyout;
}

/** Get the length of the current token.
 * @param yyscanner The scanner object.
 */
yy_size_t langscan_csharp_lex_get_leng  (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    return yyleng;
}

/** Get the current token.
 * @param yyscanner The scanner object.
 */

char *langscan_csharp_lex_get_text  (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    return yytext;
}

/** Set the user-defined data. This data is never touched by the scanner.
 * @param user_defined The data to be associated with this scanner.
 * @param yyscanner The scanner object.
 */
void langscan_csharp_lex_set_extra (YY_EXTRA_TYPE  user_defined , yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    yyextra = user_defined ;
}

/** Set the current line number.
 * @param line_number
 * @param yyscanner The scanner object.
 */
void langscan_csharp_lex_set_lineno (int  line_number , yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

        /* lineno is only valid if an input buffer exists. */
        if (! YY_CURRENT_BUFFER )
           yy_fatal_error( "langscan_csharp_lex_set_lineno called with no buffer" , yyscanner); 
    
    yylineno = line_number;
}

/** Set the current column.
 * @param line_number
 * @param yyscanner The scanner object.
 */
void langscan_csharp_lex_set_column (int  column_no , yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

        /* column is only valid if an input buffer exists. */
        if (! YY_CURRENT_BUFFER )
           yy_fatal_error( "langscan_csharp_lex_set_column called with no buffer" , yyscanner); 
    
    yycolumn = column_no;
}

/** Set the input stream. This does not discard the current
 * input buffer.
 * @param in_str A readable stream.
 * @param yyscanner The scanner object.
 * @see langscan_csharp_lex__switch_to_buffer
 */
void langscan_csharp_lex_set_in (FILE *  in_str , yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    yyin = in_str ;
}

void langscan_csharp_lex_set_out (FILE *  out_str , yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    yyout = out_str ;
}

int langscan_csharp_lex_get_debug  (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    return yy_flex_debug;
}

void langscan_csharp_lex_set_debug (int  bdebug , yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    yy_flex_debug = bdebug ;
}

/* Accessor methods for yylval and yylloc */

/* User-visible API */

/* langscan_csharp_lex_lex_init is special because it creates the scanner itself, so it is
 * the ONLY reentrant function that doesn't take the scanner as the last argument.
 * That's why we explicitly handle the declaration, instead of using our macros.
 */

int langscan_csharp_lex_lex_init(yyscan_t* ptr_yy_globals)

{
    if (ptr_yy_globals == NULL){
        errno = EINVAL;
        return 1;
    }

    *ptr_yy_globals = (yyscan_t) langscan_csharp_lex_alloc ( sizeof( struct yyguts_t ), NULL );

    if (*ptr_yy_globals == NULL){
        errno = ENOMEM;
        return 1;
    }

    /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));

    return yy_init_globals ( *ptr_yy_globals );
}

/* langscan_csharp_lex_lex_init_extra has the same functionality as langscan_csharp_lex_lex_init, but follows the
 * convention of taking the scanner as the last argument. Note however, that
 * this is a *pointer* to a scanner, as it will be allocated by this call (and
 * is the reason, too, why this function also must handle its own declaration).
 * The user defined value in the first argument will be available to langscan_csharp_lex_alloc in
 * the yyextra field.
 */

int langscan_csharp_lex_lex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )

{
    struct yyguts_t dummy_yyguts;

    langscan_csharp_lex_set_extra (yy_user_defined, &dummy_yyguts);

    if (ptr_yy_globals == NULL){
        errno = EINVAL;
        return 1;
    }
	
    *ptr_yy_globals = (yyscan_t) langscan_csharp_lex_alloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
	
    if (*ptr_yy_globals == NULL){
        errno = ENOMEM;
        return 1;
    }
    
    /* By setting to 0xAA, we expose bugs in
    yy_init_globals. Leave at 0x00 for releases. */
    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
    
    langscan_csharp_lex_set_extra (yy_user_defined, *ptr_yy_globals);
    
    return yy_init_globals ( *ptr_yy_globals );
}

static int yy_init_globals (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
    /* Initialization is the same as for the non-reentrant scanner.
     * This function is called from langscan_csharp_lex_lex_destroy(), so don't allocate here.
     */

    yyg->yy_buffer_stack = 0;
    yyg->yy_buffer_stack_top = 0;
    yyg->yy_buffer_stack_max = 0;
    yyg->yy_c_buf_p = (char *) 0;
    yyg->yy_init = 0;
    yyg->yy_start = 0;

    yyg->yy_start_stack_ptr = 0;
    yyg->yy_start_stack_depth = 0;
    yyg->yy_start_stack =  NULL;

    yyg->yy_state_buf = 0;
    yyg->yy_state_ptr = 0;
    yyg->yy_full_match = 0;
    yyg->yy_lp = 0;

/* Defined in main.c */
#ifdef YY_STDINIT
    yyin = stdin;
    yyout = stdout;
#else
    yyin = (FILE *) 0;
    yyout = (FILE *) 0;
#endif

    /* For future reference: Set errno on error, since we are called by
     * langscan_csharp_lex_lex_init()
     */
    return 0;
}

/* langscan_csharp_lex_lex_destroy is for both reentrant and non-reentrant scanners. */
int langscan_csharp_lex_lex_destroy  (yyscan_t yyscanner)
{
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;

    /* Pop the buffer stack, destroying each element. */
	while(YY_CURRENT_BUFFER){
		langscan_csharp_lex__delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
		YY_CURRENT_BUFFER_LVALUE = NULL;
		langscan_csharp_lex_pop_buffer_state(yyscanner);
	}

	/* Destroy the stack itself. */
	langscan_csharp_lex_free(yyg->yy_buffer_stack ,yyscanner);
	yyg->yy_buffer_stack = NULL;

    /* Destroy the start condition stack. */
        langscan_csharp_lex_free(yyg->yy_start_stack ,yyscanner );
        yyg->yy_start_stack = NULL;

    langscan_csharp_lex_free ( yyg->yy_state_buf , yyscanner);
    yyg->yy_state_buf  = NULL;

    /* Reset the globals. This is important in a non-reentrant scanner so the next time
     * langscan_csharp_lex_lex() is called, initialization will occur. */
    yy_init_globals( yyscanner);

    /* Destroy the main struct (reentrant only). */
    langscan_csharp_lex_free ( yyscanner , yyscanner );
    yyscanner = NULL;
    return 0;
}

/*
 * Internal utility routines.
 */

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

#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
{
	register int n;
	for ( n = 0; s[n]; ++n )
		;

	return n;
}
#endif

void *langscan_csharp_lex_alloc (yy_size_t  size , yyscan_t yyscanner)
{
	return (void *) malloc( size );
}

void *langscan_csharp_lex_realloc  (void * ptr, yy_size_t  size , yyscan_t yyscanner)
{
	/* 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 );
}

void langscan_csharp_lex_free (void * ptr , yyscan_t yyscanner)
{
	free( (char *) ptr );	/* see langscan_csharp_lex_realloc() for (char *) cast */
}

#define YYTABLES_NAME "yytables"

static void update_pos(
  langscan_csharp_lex_extra_t *extra,
  char *text,
  int leng)
{
  int i, j;
  extra->beg_byteno = extra->end_byteno;
  extra->beg_lineno = extra->end_lineno;
  extra->beg_columnno = extra->end_columnno;
  j = 0;
  for (i = 0; i < leng; i++) {
    if (text[i] == '\n') {
      extra->end_lineno++;
      j = i + 1;
      extra->end_columnno = 0;
    }
  }
  extra->end_columnno += leng - j;
  extra->end_byteno += leng;
}

static int ident_length(unsigned char *ptr, int max)
{
  int len = 0;
  while (0 < max &&
         (('0' <= *ptr && *ptr <= '9') ||
          ('A' <= *ptr && *ptr <= 'Z') ||
          ('a' <= *ptr && *ptr <= 'z') ||
          *ptr == '_')) {
    ptr++;
    len++;
    max--;
  }
  return len;
}

langscan_csharp_tokenizer_t *langscan_csharp_make_tokenizer(
  size_t (*user_read)(void **user_data_p, char *buf, size_t maxlen),
  void *user_data)
{
  langscan_csharp_tokenizer_t *tokenizer;
  langscan_csharp_lex_extra_t *extra;
  tokenizer = (langscan_csharp_tokenizer_t *)malloc(sizeof(langscan_csharp_tokenizer_t));
  if (tokenizer == NULL)
    return NULL;
  extra = (langscan_csharp_lex_extra_t *)malloc(sizeof(langscan_csharp_lex_extra_t));
  if (extra == NULL)
    return NULL;
  extra->user_read = user_read;
  extra->user_data = user_data;
  extra->beg_lineno = 1;
  extra->beg_columnno = 0;
  extra->beg_byteno = 0;
  extra->end_lineno = 1;
  extra->end_columnno = 0;
  extra->end_byteno = 0;
  extra->eof = 0;
  tokenizer->extra = extra;
  langscan_csharp_lex_lex_init(&tokenizer->scanner);
  langscan_csharp_lex_set_extra(extra, tokenizer->scanner);
  return tokenizer;
}

langscan_csharp_token_t langscan_csharp_get_token(langscan_csharp_tokenizer_t *tokenizer) 
{
  return langscan_csharp_lex_lex(tokenizer->scanner);
}

void langscan_csharp_free_tokenizer(langscan_csharp_tokenizer_t *tokenizer) 
{
  langscan_csharp_lex_extra_t *extra = langscan_csharp_lex_get_extra(tokenizer->scanner);
  free((void *)extra);
  langscan_csharp_lex_lex_destroy(tokenizer->scanner);
  free((void *)tokenizer);
}

user_read_t langscan_csharp_tokenizer_get_user_read(langscan_csharp_tokenizer_t *tokenizer)
{
  return tokenizer->extra->user_read;
}

void *langscan_csharp_tokenizer_get_user_data(langscan_csharp_tokenizer_t *tokenizer)
{
  return tokenizer->extra->user_data;
}

const char *langscan_csharp_token_name(langscan_csharp_token_t token)
{
  static char *token_names[] = {
    "*eof*",
#define LANGSCAN_CSHARP_TOKEN(name) #name,
    LANGSCAN_CSHARP_TOKEN_LIST
#undef LANGSCAN_CSHARP_TOKEN
  };

  return token_names[token];
}