#define yy_create_buffer pyscanYY_create_buffer
#define yy_delete_buffer pyscanYY_delete_buffer
#define yy_scan_buffer pyscanYY_scan_buffer
#define yy_scan_string pyscanYY_scan_string
#define yy_scan_bytes pyscanYY_scan_bytes
#define yy_flex_debug pyscanYY_flex_debug
#define yy_init_buffer pyscanYY_init_buffer
#define yy_flush_buffer pyscanYY_flush_buffer
#define yy_load_buffer_state pyscanYY_load_buffer_state
#define yy_switch_to_buffer pyscanYY_switch_to_buffer
#define yyin pyscanYYin
#define yyleng pyscanYYleng
#define yylex pyscanYYlex
#define yyout pyscanYYout
#define yyrestart pyscanYYrestart
#define yytext pyscanYYtext

/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /cvs/root/flex/flex/skel.c,v 1.2 2004/05/07 00:28:17 jkh Exp $
 */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#include <stdio.h>


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


#ifdef __cplusplus

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

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

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

#else	/* ! __cplusplus */

#if __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

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

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

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


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

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

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

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

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

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

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

#define YY_END_OF_BUFFER_CHAR 0

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

typedef struct yy_buffer_state *YY_BUFFER_STATE;

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

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

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

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

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

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

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


struct yy_buffer_state
	{
	FILE *yy_input_file;

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

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

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

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

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

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

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

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

static YY_BUFFER_STATE yy_current_buffer = 0;

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


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

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


int yyleng;

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

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

void yyrestart YY_PROTO(( FILE *input_file ));

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

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

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

#define yy_new_buffer yy_create_buffer

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

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

#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)


#define YY_USES_REJECT

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

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

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

#define YY_NUM_RULES 143
#define YY_END_OF_BUFFER 144
static yyconst short int yy_acclist[688] =
    {   0,
    16474,16474,   92,   92,   23,   23,   28,   28,   32,   32,
      144,  142,  143,  141,  143,   15,  142,  143,   15,  142,
      143,   16,  141,  143,   11,   15,  142,  143,   15,  142,
      143,   10,   15,  142,  143,   13,   15,  142,  143,   13,
       15,  142,  143,   13,   15,  142,  143,   13,   15,  142,
      143,   13,   15,  142,  143,   14,   15,  142,  143,   15,
      142,  143,   13,   15,  142,  143,16393,   13,   15,  142,
      143,16393,   13,   15,  142,  143,16393,   13,   15,  142,
      143,16393,   13,   15,  142,  143,16393,   42,  142,  143,
       42,  142,  143,   41,  141,  143,   40,   42,  142,  143,

       42,  142,  143,   39,   42,  142,  143,   42,  142,  143,
       42,  142,  143,   42,  142,  143,  116,  118,  142,  143,
      118,  142,  143,  117,  141,  143,  118,  142,  143,  118,
      142,  143,  115,  118,  142,  143,  121,  123,  142,  143,
      122,  141,  143,  123,  142,  143,  121,  123,  142,  143,
      119,  123,  142,  143,  142,  143,   58,  142,  143,   57,
      142,  143,   64,  142,  143,   59,  142,  143,   62,  142,
      143,   59,   64,  142,  143,   63,  142,  143,   61,   64,
      142,  143,   60,   64,  142,  143,   49,   53,  142,  143,
       53,  142,  143,   52,  141,  143,16427,   48,   53,  142,

      143,   51,   53,  142,  143,   47,   53,  142,  143,   46,
       53,  142,  143,   51,   53,  142,  143,   68,  142,  143,
       69,  141,  143,   65,   68,  142,  143,   67,   68,  142,
      143,   66,   68,  142,  143,   82,  142,  143,   83,  142,
      143,   83,  142,  143,   84,  142,  143,   85,  142,  143,
      142,  143,   86,  141,  143, 8282,  142,  143,  142,  143,
      142,  143,   89,  142,  143,   76,   79,  142,  143,   79,
      142,  143,   77,  141,  143,   75,   79,  142,  143,   79,
      142,  143,   74,   79,  142,  143,   73,   79,  142,  143,
      104,  142,  143,   92,  104,  142,  143,  105,  141,  143,

       96,  104,  142,  143,  102,  104,  142,  143,   95,  104,
      142,  143,   99,  104,  142,  143,   93,  104,  142,  143,
       93,  104,  142,  143,   91,  104,  142,  143,  103,  104,
      142,  143,  103,  104,  142,  143,  103,  104,  142,  143,
      100,  104,  142,  143,  103,  104,  142,  143,  101,  104,
      142,  143,  112,  142,  143,  111,  141,  143,  109,  142,
      143,  110,  141,  143,  106,  109,  142,  143,  107,  109,
      142,  143,  108,  109,  142,  143,  128,  129,  142,  143,
      129,  142,  143,  127,  129,  142,  143,  129,  142,  143,
      134,  135,  142,  143,  133,  135,  142,  143,  135,  142,

      143,  135,  142,  143,  138,  140,  142,  143,  138,  139,
      141,  143,  138,  140,  142,  143,  138,  140,  142,  143,
      140,  142,  143,   24,  142,  143,   23,   24,  142,  143,
       22,  141,  143,   20,   24,  142,  143,   20,   24,  142,
      143,   29,  142,  143,   28,   29,  142,  143,   27,  141,
      143,   25,   29,  142,  143,   26,   29,  142,  143,   33,
      142,  143,   32,   33,  142,  143,   31,  141,  143,   30,
       33,  142,  143,   16,   12,   13,   13,   13,   13,   13,
       14,16393,16393,16393,16393,16393,   13,16393,   13,16393,
       13,16393,   13,16393,   13,16393,   38,  116,  115,  121,

      120,  121,  119,  119,   58,   57,   59,   63,   60,   49,
    16427,   51,   46,   45,   50,   51,   51,   82,   83,   85,
       86,   89,   76,   78,   73,   72,   92,  102,   93,   93,
       93,  103,   96,   95,  103,  108,  128,  125,  125,  124,
      134,  131,  131,  130,  138,  138,  138,   23,   20,   20,
       28,   26,   32,   30,   17,   12,   18,   13,   13,   13,
       13,16393,16393,16393,16393,16393,   19, 8201,   13,16393,
       13,16393,   13,16393,   13,16393,   35,   38,   36,   37,
      113,  114,   44, 8235,   54,   55,   50,   50,   51,   51,
       56,   56,   85,   87,   88,   71,   70,   80,   78,   81,

       97,   98,   94,   93,   93,  126,  132,  136,  137,   20,
       20,   30,   17,   18,   13,    2,   13,   13,16393,16393,
    16393,16393,   13,16393,    1,    2,   13,16393,   13,16393,
       35,   36,  113,  114,   54,   55,   50,   85,   87,   88,
       80,   81,   97,   98,   94,   93,  136,  137,   20,   20,
       30,   13,    6,   13,16393,    1,16393,16393,   13,16393,
        5,    6,   13,16393,   94,   20,    4,   13,16393,    5,
    16393,    3,    4,   13,16393,16418,   20,   21,    8,    3,
    16393,    7,    8,16418, 8226,   21,    7
    } ;

static yyconst short int yy_accept[431] =
    {   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,    2,    3,    3,    3,    4,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    6,    7,    8,    9,   10,   11,   12,   14,   16,
       19,   22,   25,   29,   32,   36,   40,   44,   48,   52,
       56,   60,   63,   68,   73,   78,   83,   88,   91,   94,
       97,  101,  104,  108,  111,  114,  117,  121,  124,  127,
      130,  133,  137,  141,  144,  147,  151,  155,  157,  160,
      163,  166,  169,  172,  176,  179,  183,  187,  191,  194,

      198,  202,  206,  210,  214,  218,  221,  224,  228,  232,
      236,  239,  242,  245,  248,  251,  253,  256,  259,  261,
      263,  266,  270,  273,  276,  280,  283,  287,  291,  294,
      298,  301,  305,  309,  313,  317,  321,  325,  329,  333,
      337,  341,  345,  349,  353,  356,  359,  362,  365,  369,
      373,  377,  381,  384,  388,  391,  395,  399,  402,  405,
      409,  413,  417,  421,  424,  427,  431,  434,  438,  442,
      445,  449,  452,  456,  460,  463,  467,  470,  474,  474,
      474,  475,  475,  476,  476,  477,  478,  479,  480,  481,
      482,  482,  483,  484,  485,  486,  487,  487,  487,  489,

      489,  491,  493,  495,  497,  497,  497,  497,  498,  498,
      498,  498,  498,  498,  499,  499,  499,  500,  501,  501,
      502,  503,  504,  505,  505,  506,  507,  508,  509,  510,
      511,  512,  512,  512,  512,  513,  513,  514,  515,  515,
      517,  518,  519,  520,  520,  521,  521,  522,  522,  522,
      523,  524,  524,  524,  524,  524,  524,  525,  525,  526,
      527,  528,  528,  529,  529,  529,  530,  531,  532,  532,
      533,  534,  535,  536,  537,  538,  538,  539,  540,  541,
      542,  542,  543,  544,  545,  546,  546,  547,  548,  549,
      549,  549,  550,  551,  552,  553,  554,  554,  554,  555,

      556,  557,  558,  559,  560,  561,  562,  563,  564,  565,
      566,  567,  568,  569,  571,  573,  575,  577,  578,  579,
      580,  580,  581,  582,  583,  584,  585,  585,  586,  587,
      588,  588,  590,  592,  593,  594,  595,  596,  597,  598,
      598,  599,  600,  601,  602,  603,  604,  605,  606,  607,
      607,  608,  608,  609,  610,  610,  611,  612,  612,  613,
      614,  615,  616,  617,  618,  619,  620,  621,  622,  623,
      625,  627,  629,  631,  632,  633,  633,  634,  635,  636,
      637,  638,  639,  640,  641,  642,  643,  644,  645,  645,
      646,  647,  648,  649,  650,  651,  652,  653,  654,  655,

      656,  657,  658,  659,  661,  663,  665,  665,  665,  666,
      667,  668,  669,  670,  671,  672,  674,  676,  677,  679,
      680,  681,  682,  684,  684,  685,  686,  687,  688,  688
    } ;

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

       35,   36,   22,   22,   37,   23,   22,   38,   39,   22,
       40,   41,   22,   42,   43,   44,   45,   22,   22,   27,
       22,   22,   46,    7,   30,    7,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

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

static yyconst int yy_meta[47] =
    {   0,
        1,    2,    3,    1,    4,    5,    1,    4,    1,    1,
        1,    1,    1,    6,    7,    7,    7,    1,    8,    9,
        9,   10,   10,   10,   10,   10,   10,    1,   11,    1,
       10,    9,    9,    9,    9,    9,   10,   10,   10,   10,
       10,   10,   10,   10,   10,    1
    } ;

static yyconst short int yy_base[503] =
    {   0,
     1490, 1489,    0,   46,   91,   98, 1488, 1484,  105,  109,
       92,  113,  141,    0,  187,    0,  118,  125,  231,  233,
      246,    0,  292,    0,  338,  346,  350,  357,  365,    0,
     1480, 1477,  411,    0,  455,  456,  462,  463,  469,  470,
      499,    0,  545,    0,  591,    0, 1479, 1579, 1579, 1579,
      103, 1475, 1469,    0, 1465,    0, 1434, 1436, 1428, 1430,
      636, 1455,  116,  637,  460,  638,  639, 1579,  123, 1579,
     1455,    0, 1443, 1415,  134, 1439,    0, 1579, 1579, 1436,
     1430, 1426,    0,  233, 1579,  355, 1417,  236, 1579,    0,
     1579, 1419, 1579, 1579, 1418, 1579,    0,    0, 1579,  474,

     1414,    0, 1410,  480, 1389, 1579, 1579, 1579, 1579, 1579,
        0, 1382, 1579, 1579, 1365,  135, 1579, 1579, 1372, 1368,
      342,    0,  487, 1369, 1369,    0, 1358,  641, 1579, 1351,
     1579, 1342,    0, 1325, 1579,  667,  633, 1579,    0,  482,
      646, 1579,  654, 1579, 1579, 1579, 1579, 1579, 1579, 1579,
        0,    0, 1319, 1579,  494,    0, 1579, 1315,  643, 1293,
     1292, 1306, 1298,  647, 1579, 1301, 1579,  467,  662, 1579,
     1300, 1579, 1579,    0, 1579, 1299, 1579,  651,  661,    0,
     1294, 1288,    0, 1282,    0, 1257, 1252, 1239, 1217,  683,
     1251,  684,  685,  690,  691,  693,    0,  695,  696,    0,

      705,  709,  711,  716,  700,    0, 1232,    0, 1228, 1193,
      720, 1221,    0,    0, 1212, 1200, 1204,    0,  725, 1579,
      732, 1195, 1194,  659, 1579,    0, 1197, 1189,    0,    0,
      734, 1184, 1187, 1183,    0, 1176,  740, 1579, 1173,    0,
      671,    0, 1167,    0, 1144,  697, 1579, 1148, 1144,  745,
        0,  747,    0, 1145, 1147, 1143,    0, 1133,  752, 1579,
     1138, 1134,    0, 1130,  744,  738,  748, 1579,    0,    0,
     1579, 1579,  736,    0,    0, 1132, 1579,  764, 1579,    0,
     1125, 1579,  766, 1579, 1100,  769, 1116, 1111, 1107,  768,
     1106,  769,  771, 1105,    0, 1097,  776, 1095,  777, 1086,

        0, 1085, 1045, 1085, 1044, 1042,  737,  778,  779,  782,
      784, 1579, 1579,  785,  786,  787,  790, 1077,    0, 1075,
     1042, 1579, 1070, 1062, 1579, 1062,  926,  923,  922,    0,
        0,    0,    0, 1579,  911,  918,  917, 1579,  912,  906,
      868,    0,  862,  859,  841,  779, 1579,  326, 1579,  805,
     1579,  814,  838,  833,  811,  797,  817,  791,  818, 1579,
     1579,  709,  748,  727,  679,  816,  819,  821,  822,  825,
      827,  831,  832, 1579, 1579,  694, 1579, 1579, 1579, 1579,
        0,  652, 1579, 1579, 1579, 1579, 1579, 1579,  837, 1579,
     1579, 1579, 1579,  834,  841,  856,  492,  486,  298,  837,

      845,  859,  863,  865,  867,  869,    0,  860,  874,  871,
      235,  120,  877,  879,  885,  890,  891,  892,  893,  100,
      897,  898,  899,  900,  901, 1579,  910,  904, 1579,  929,
      940,  951,  962,  973,  984,  995, 1006, 1017, 1028, 1039,
     1050, 1061, 1066, 1075, 1084, 1094, 1105, 1116, 1121, 1125,
     1135, 1145, 1155, 1166, 1171, 1176, 1186, 1193, 1203, 1214,
     1219, 1223, 1233, 1243, 1254, 1264, 1275, 1285, 1289, 1298,
     1308, 1318, 1328, 1339, 1350, 1361, 1371, 1381, 1392, 1403,
     1406, 1415, 1425, 1430, 1433, 1437, 1447, 1457, 1466, 1475,
     1479, 1488, 1497, 1507, 1512, 1522, 1533, 1539, 1548, 1557,

     1559, 1568
    } ;

static yyconst short int yy_def[503] =
    {   0,
      430,  430,  429,  429,  431,  431,  430,  430,  432,  432,
      433,  433,  429,   13,  429,   15,  434,  434,  435,  435,
      429,   21,  429,   23,  436,  436,  437,  437,  429,   29,
      438,  438,  429,   33,  439,  439,  440,  440,  441,  441,
      429,   41,  429,   43,  429,   45,  429,  429,  429,  429,
      429,  429,  429,  442,  429,  443,  443,  443,  443,  443,
      444,  442,  445,  445,  445,  445,  445,  429,  429,  429,
      429,  446,  429,  429,  429,  446,  447,  429,  429,  429,
      429,  429,  448,  429,  429,  448,  429,  429,  429,  449,
      429,  429,  429,  429,  429,  429,  450,  451,  429,  452,

      429,  453,  429,  429,  454,  429,  429,  429,  429,  429,
      455,  429,  429,  429,  456,  429,  429,  429,  429,  429,
      429,  457,  429,  458,  429,  459,  429,  429,  429,  429,
      429,  429,  460,  429,  429,  429,  136,  429,  461,  461,
      461,  429,  461,  429,  429,  429,  429,  429,  429,  429,
      462,  463,  429,  429,  464,  465,  429,  429,  466,  467,
      467,  429,  429,  467,  429,  429,  429,  468,  468,  429,
      429,  429,  429,  469,  429,  429,  429,  470,  429,  442,
      429,  429,  471,  429,  443,  443,  443,  443,  443,  444,
      442,  472,  472,  472,  472,  472,  473,  429,  445,  474,

      445,  445,  445,  445,  429,  446,  429,  475,  429,  429,
      429,  446,  476,  447,  429,  429,  429,  448,  429,  429,
      448,  429,  429,  429,  429,  449,  429,  429,  450,  451,
      452,  429,  477,  429,  453,  429,  429,  429,  478,  479,
      480,  455,  429,  481,  456,  429,  429,  429,  429,  429,
      457,  429,  459,  429,  482,  429,  483,  429,  429,  429,
      429,  429,  460,  429,  429,  136,  136,  429,  484,  485,
      429,  429,  485,  486,  487,  429,  429,  429,  429,  488,
      429,  429,  429,  429,  467,  467,  429,  429,  429,  429,
      489,  490,  490,  429,  491,  429,  429,  492,  493,  429,

      494,  429,  495,  495,  495,  495,  472,  472,  472,  472,
      472,  429,  429,  445,  445,  445,  445,  429,  475,  429,
      429,  429,  429,  429,  429,  429,  477,  429,  429,  496,
      497,  479,  453,  429,  498,  429,  429,  429,  429,  482,
      429,  483,  429,  429,  429,  429,  429,  484,  429,  429,
      429,  429,  429,  429,  489,  499,  490,  492,  500,  429,
      429,  495,  429,  495,  495,  472,  472,  472,  472,  445,
      429,  445,  445,  429,  429,  429,  429,  429,  429,  429,
      496,  498,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  499,  490,  500,  495,  429,  495,  472,

      429,  472,  472,  445,  429,  445,  501,  429,  429,  490,
      429,  495,  472,  429,  472,  429,  445,  502,  490,  429,
      429,  472,  429,  429,  502,  429,  429,  429,    0,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,

      429,  429
    } ;

static yyconst short int yy_nxt[1626] =
    {   0,
       50,   51,   52,   50,   53,   54,   50,   55,   50,   50,
       50,   50,   50,   50,   50,   50,   50,   50,   50,   56,
       56,   56,   56,   56,   56,   56,   56,   50,   50,   50,
       56,   56,   57,   58,   56,   59,   60,   56,   56,   56,
       56,   56,   56,   56,   56,   50,   50,   61,   52,   50,
       53,   62,   50,   55,   50,   50,   50,   50,   50,   50,
       50,   50,   50,   50,   50,   63,   63,   63,   63,   63,
       63,   63,   63,   50,   50,   50,   63,   63,   64,   65,
       63,   66,   67,   63,   63,   63,   63,   63,   63,   63,
       63,   50,   69,   70,   84,   71,   72,   85,   73,   75,

       70,  420,   71,   76,  179,   73,   78,   79,  180,   80,
       82,   79,   81,   80,   86,   84,   81,  198,   87,   99,
      100,  420,  101,  102,  205,  103,  104,  100,  206,  101,
      105,   99,  103,   74,  200,  211,  246,  247,   99,  212,
       74,   48,   88,   49,   48,   48,   48,   48,   48,   89,
       48,   48,   48,   48,   48,   48,   48,   48,   48,   48,
       90,   90,   90,   90,   90,   90,   90,   90,   48,   48,
       48,   90,   90,   90,   90,   90,   90,   90,   90,   90,
       90,   90,   90,   90,   90,   90,   48,   91,   92,   49,
       91,   91,   91,   91,   91,   48,   93,   91,   91,   94,

       91,   91,   91,   91,   95,   96,   97,   97,   97,   97,
       97,   97,   97,   97,   91,   91,   91,   97,   97,   97,
       97,   97,   97,   97,   97,   97,   97,   97,   97,   97,
       97,   97,   91,  107,  219,  107,  411,  224,  220,  108,
      109,  108,  109,  110,  225,  110,   48,   48,   49,   48,
       48,   48,   48,   48,   48,   48,   48,   48,   48,   48,
       48,   48,   48,   48,   48,  111,  111,  111,  111,  111,
      111,  111,  111,   48,   48,   48,  111,  111,  111,  111,
      111,  111,  111,  111,  111,  111,  111,  111,  111,  111,
      111,   48,   48,  112,   49,   48,   48,   48,   48,   48,

      113,  113,   48,   48,  113,   48,   48,   48,   48,  114,
       48,  115,  115,  115,  115,  115,  115,  115,  115,   48,
       48,   48,  115,  115,  115,  115,  115,  115,  115,  115,
      115,  115,  115,  115,  115,  115,  115,   48,   48,  116,
      117,  412,  119,  250,  247,  120,   48,  121,  117,  391,
      119,  123,  124,  120,  125,  126,  221,  127,  128,  124,
      222,  125,  126,  391,  127,  129,  130,  131,  129,  132,
      133,  129,  134,  135,  129,  129,  129,  129,  129,  136,
      137,  137,  129,  138,  139,  139,  139,  139,  139,  140,
      141,  139,  142,  129,  129,  139,  139,  139,  139,  139,

      139,  139,  139,  139,  139,  139,  140,  139,  139,  143,
      144,  147,  147,  148,  147,  147,  147,  147,  147,  149,
      150,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      151,  151,  151,  151,  151,  151,  151,  151,  149,  147,
      150,  151,  151,  151,  151,  151,  151,  151,  151,  151,
      151,  151,  151,  151,  151,  151,  149,   49,   49,  153,
      153,  198,  154,  154,   49,   49,  157,  157,  290,  158,
      158,  161,  161,  162,  162,  231,  163,  163,  200,  232,
      291,  237,  238,  155,  155,  239,  271,  398,  252,  272,
      159,  159,  253,  411,  202,  278,  279,  164,  164,  165,

      166,  167,  165,  165,  165,  165,  165,  165,  165,  165,
      165,  165,  165,  165,  165,  165,  165,  165,  168,  168,
      168,  168,  168,  168,  168,  168,  165,  165,  165,  168,
      168,  168,  168,  168,  168,  169,  168,  168,  168,  168,
      168,  168,  168,  168,  165,  170,  171,  172,  170,  170,
      170,  170,  170,  170,  170,  173,  170,  170,  170,  170,
      170,  170,  170,  170,  174,  174,  174,  174,  174,  174,
      174,  174,  170,  170,  170,  174,  174,  174,  174,  174,
      174,  174,  174,  174,  174,  174,  174,  174,  174,  174,
      170,  175,  176,  177,  175,  175,  175,  175,  175,  175,

      175,  175,  175,  175,  175,  175,  175,  175,  175,  175,
      178,  178,  178,  178,  178,  178,  178,  178,  175,  175,
      175,  178,  178,  178,  178,  178,  178,  178,  178,  178,
      178,  178,  178,  178,  178,  178,  175,  190,  198,  198,
      198,  191,  259,  260,  283,  284,  253,  267,  267,  429,
      271,  285,  297,  272,  285,  200,  200,  200,  271,  429,
      224,  272,  179,  290,  298,  244,  180,  225,  193,  194,
      273,  195,  196,  334,  201,  291,  235,  204,  273,  203,
      265,  266,  266,  267,  190,  198,  198,  273,  191,  268,
      268,  198,  198,  269,  198,  273,  198,  198,  246,  247,

      293,  205,  200,  200,  268,  206,  198,  407,  200,  200,
      198,  200,  198,  200,  200,  193,  194,  198,  195,  196,
      399,  211,  308,  200,  309,  212,  219,  200,  398,  200,
      220,  311,  310,  221,  200,  231,  314,  222,  198,  232,
      271,  237,  238,  272,  315,  239,  250,  247,  252,  363,
      316,  397,  253,  259,  260,  200,  317,  253,  346,  346,
      346,  347,  267,  267,  429,  350,  279,  352,  284,  290,
      290,  429,  290,  285,  429,  347,  285,  297,  297,  198,
      198,  291,  291,  198,  291,  198,  198,  371,  198,  298,
      298,  198,  358,  346,  346,  346,  200,  200,  290,  389,

      200,  390,  200,  200,  200,  200,  350,  279,  200,  366,
      291,  357,  355,  389,  367,  352,  284,  198,  290,  297,
      401,  368,  198,  198,  369,  372,  198,  370,  371,  373,
      291,  298,  405,  198,  200,  290,  393,  200,  198,  200,
      200,  392,  290,  200,  388,  200,  401,  291,  408,  200,
      200,  409,  409,  409,  291,  200,  395,  297,  400,  402,
      414,  403,  387,  200,  198,  386,  416,  404,  405,  298,
      198,  385,  290,  406,  409,  409,  409,  200,  421,  413,
      414,  200,  410,  200,  291,  200,  198,  200,  409,  409,
      409,  416,  423,  424,  427,  200,  390,  200,  421,  428,

      423,  424,  424,  200,  415,  428,  291,  339,  200,  200,
      426,  427,  417,  339,  419,  200,  200,  200,  426,  426,
      384,  383,  200,  291,  244,  380,  379,  326,  422,   48,
       48,   48,   48,   48,   48,   48,   48,   48,   48,   48,
       68,   68,   68,   68,   68,   68,   68,   68,   68,   68,
       68,   77,   77,   77,   77,   77,   77,   77,   77,   77,
       77,   77,   83,   83,   83,   83,   83,   83,   83,   83,
       83,   83,   83,   98,   98,   98,   98,   98,   98,   98,
       98,   98,   98,   98,  106,  106,  106,  106,  106,  106,
      106,  106,  106,  106,  106,  118,  118,  118,  118,  118,

      118,  118,  118,  118,  118,  118,  122,  122,  122,  122,
      122,  122,  122,  122,  122,  122,  122,  145,  145,  145,
      145,  145,  145,  145,  145,  145,  145,  145,  152,  152,
      152,  152,  152,  152,  152,  152,  152,  152,  152,  156,
      156,  156,  156,  156,  156,  156,  156,  156,  156,  156,
      160,  160,  160,  160,  160,  160,  160,  160,  160,  160,
      160,  183,  183,  326,  183,  378,  183,  183,  183,  183,
      183,  183,  185,  377,  185,  185,  192,  376,  375,  192,
      374,  365,  364,  192,  192,  199,  363,  362,  361,  360,
      199,  199,  199,  199,  208,  208,  358,  208,  296,  208,

      208,  208,  208,  208,  208,  214,  294,  355,  289,  214,
      214,  214,  214,  214,  214,  214,  218,  218,  354,  218,
      353,  218,  218,  218,  218,  218,  218,  226,  286,  226,
      226,  229,  351,  229,  229,  230,  349,  345,  344,  261,
      343,  230,  230,  230,  230,  230,  233,  341,  339,  233,
      338,  337,  336,  233,  233,  235,  235,  244,  235,  235,
      235,  235,  235,  235,  235,  235,  240,  240,  243,  240,
      240,  240,  240,  240,  240,  240,  240,  242,  331,  242,
      242,  245,  245,  329,  245,  245,  251,  328,  326,  325,
      228,  251,  251,  251,  251,  251,  251,  255,  227,  223,

      223,  255,  255,  257,  257,  217,  257,  324,  257,  257,
      257,  257,  257,  257,  263,  263,  323,  263,  263,  263,
      263,  263,  263,  263,  263,  270,  213,  270,  270,  274,
      321,  274,  274,  275,  275,  320,  318,  275,  275,  275,
      275,  275,  275,  277,  277,  277,  277,  277,  277,  277,
      277,  277,  277,  277,  280,  280,  197,  306,  280,  280,
      280,  280,  280,  280,  282,  282,  282,  282,  282,  282,
      282,  282,  282,  282,  282,  285,  285,  285,  305,  285,
      285,  285,  285,  285,  285,  285,  292,  304,  303,  302,
      292,  292,  300,  292,  292,  295,  181,  295,  295,  299,

      296,  294,  289,  299,  299,  288,  299,  299,  301,  301,
      287,  301,  301,  301,  301,  301,  301,  301,  301,  307,
      286,  286,  281,  276,  307,  307,  307,  307,  312,  312,
      312,  312,  264,  312,  312,  312,  312,  312,  312,  313,
      313,  313,  313,  313,  313,  313,  262,  313,  313,  313,
      319,  319,  261,  319,  319,  319,  319,  319,  319,  319,
      319,  322,  322,  322,  322,  258,  322,  322,  322,  322,
      322,  322,  327,  256,  254,  249,  248,  327,  244,  327,
      327,  330,  330,  243,  330,  330,  330,  330,  330,  330,
      330,  330,  332,  332,  241,  332,  332,  332,  332,  332,

      332,  332,  332,  333,  333,  333,  333,  333,  333,  333,
      333,  333,  333,  333,  335,  335,  340,  236,  234,  228,
      227,  340,  223,  340,  340,  342,  342,  217,  342,  342,
      342,  342,  342,  342,  342,  342,  348,  216,  348,  270,
      215,  270,  270,  274,  213,  274,  274,  275,  275,  210,
      209,  275,  275,  275,  275,  275,  275,  280,  280,  207,
      197,  280,  280,  280,  280,  280,  280,  356,  189,  188,
      187,  186,  184,  182,  356,  356,  292,  181,  429,  146,
      292,  292,  146,  292,  292,  295,   49,  295,  295,  359,
       49,   49,   49,  429,  429,  429,  359,  359,  299,  429,

      429,  429,  299,  299,  429,  299,  299,  301,  301,  429,
      301,  301,  301,  301,  301,  301,  301,  301,  185,  429,
      185,  185,  381,  381,  429,  381,  381,  381,  381,  381,
      381,  381,  381,  334,  334,  334,  334,  429,  334,  334,
      334,  334,  334,  334,  382,  382,  429,  382,  382,  394,
      429,  429,  429,  394,  394,  429,  394,  394,  396,  429,
      429,  429,  396,  396,  429,  396,  396,  418,  418,  425,
      429,  429,  429,  429,  425,  425,  425,  425,   47,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,

      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429
    } ;

static yyconst short int yy_chk[1626] =
    {   0,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    5,    5,   11,    5,    5,   11,    5,    6,

        6,  420,    6,    6,   51,    6,    9,    9,   51,    9,
       10,   10,    9,   10,   12,   12,   10,   63,   12,   17,
       17,  412,   17,   17,   69,   17,   18,   18,   69,   18,
       18,   17,   18,    5,   63,   75,  116,  116,   18,   75,
        6,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   15,   15,   15,
       15,   15,   15,   15,   15,   15,   15,   15,   15,   15,

       15,   15,   15,   15,   15,   15,   15,   15,   15,   15,
       15,   15,   15,   15,   15,   15,   15,   15,   15,   15,
       15,   15,   15,   15,   15,   15,   15,   15,   15,   15,
       15,   15,   15,   19,   84,   20,  411,   88,   84,   19,
       19,   20,   20,   19,   88,   20,   21,   21,   21,   21,
       21,   21,   21,   21,   21,   21,   21,   21,   21,   21,
       21,   21,   21,   21,   21,   21,   21,   21,   21,   21,
       21,   21,   21,   21,   21,   21,   21,   21,   21,   21,
       21,   21,   21,   21,   21,   21,   21,   21,   21,   21,
       21,   21,   23,   23,   23,   23,   23,   23,   23,   23,

       23,   23,   23,   23,   23,   23,   23,   23,   23,   23,
       23,   23,   23,   23,   23,   23,   23,   23,   23,   23,
       23,   23,   23,   23,   23,   23,   23,   23,   23,   23,
       23,   23,   23,   23,   23,   23,   23,   23,   25,   25,
       25,  399,   25,  121,  121,   25,   26,   26,   26,  348,
       26,   27,   27,   26,   27,   27,   86,   27,   28,   28,
       86,   28,   28,  348,   28,   29,   29,   29,   29,   29,
       29,   29,   29,   29,   29,   29,   29,   29,   29,   29,
       29,   29,   29,   29,   29,   29,   29,   29,   29,   29,
       29,   29,   29,   29,   29,   29,   29,   29,   29,   29,

       29,   29,   29,   29,   29,   29,   29,   29,   29,   29,
       29,   33,   33,   33,   33,   33,   33,   33,   33,   33,
       33,   33,   33,   33,   33,   33,   33,   33,   33,   33,
       33,   33,   33,   33,   33,   33,   33,   33,   33,   33,
       33,   33,   33,   33,   33,   33,   33,   33,   33,   33,
       33,   33,   33,   33,   33,   33,   33,   35,   36,   35,
       36,   65,   35,   36,   37,   38,   37,   38,  168,   37,
       38,   39,   40,   39,   40,  100,   39,   40,   65,  100,
      168,  104,  104,   35,   36,  104,  140,  398,  123,  140,
       37,   38,  123,  397,   65,  155,  155,   39,   40,   41,

       41,   41,   41,   41,   41,   41,   41,   41,   41,   41,
       41,   41,   41,   41,   41,   41,   41,   41,   41,   41,
       41,   41,   41,   41,   41,   41,   41,   41,   41,   41,
       41,   41,   41,   41,   41,   41,   41,   41,   41,   41,
       41,   41,   41,   41,   41,   43,   43,   43,   43,   43,
       43,   43,   43,   43,   43,   43,   43,   43,   43,   43,
       43,   43,   43,   43,   43,   43,   43,   43,   43,   43,
       43,   43,   43,   43,   43,   43,   43,   43,   43,   43,
       43,   43,   43,   43,   43,   43,   43,   43,   43,   43,
       43,   45,   45,   45,   45,   45,   45,   45,   45,   45,

       45,   45,   45,   45,   45,   45,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   45,   61,   64,   66,
       67,   61,  128,  128,  159,  159,  128,  137,  137,  164,
      141,  164,  178,  141,  164,   64,   66,   67,  143,  137,
      224,  143,  179,  169,  178,  382,  179,  224,   61,   61,
      141,   61,   61,  241,   64,  169,  241,   67,  143,   66,
      136,  136,  136,  136,  190,  192,  193,  141,  190,  136,
      136,  194,  195,  136,  196,  143,  198,  199,  246,  246,

      169,  205,  192,  193,  136,  205,  201,  376,  194,  195,
      202,  196,  203,  198,  199,  190,  190,  204,  190,  190,
      365,  211,  193,  201,  194,  211,  219,  202,  364,  203,
      219,  196,  195,  221,  204,  231,  201,  221,  307,  231,
      273,  237,  237,  273,  202,  237,  250,  250,  252,  363,
      203,  362,  252,  259,  259,  307,  204,  259,  265,  265,
      265,  266,  267,  267,  266,  278,  278,  283,  283,  290,
      292,  286,  293,  286,  267,  266,  286,  297,  299,  308,
      309,  290,  292,  310,  293,  311,  314,  315,  316,  297,
      299,  317,  358,  346,  346,  346,  308,  309,  356,  346,

      310,  346,  311,  314,  315,  316,  350,  350,  317,  308,
      356,  293,  355,  346,  309,  352,  352,  366,  357,  359,
      367,  310,  368,  369,  311,  316,  370,  314,  371,  317,
      357,  359,  372,  373,  366,  394,  354,  367,  400,  368,
      369,  353,  395,  370,  345,  371,  401,  394,  389,  372,
      373,  389,  389,  389,  395,  400,  357,  396,  366,  368,
      402,  369,  344,  401,  403,  343,  404,  370,  405,  396,
      406,  341,  410,  373,  408,  408,  408,  402,  413,  400,
      414,  403,  395,  404,  410,  405,  415,  406,  409,  409,
      409,  416,  417,  418,  419,  413,  409,  414,  421,  422,

      423,  424,  425,  415,  403,  428,  419,  340,  416,  417,
      418,  427,  406,  339,  410,  421,  422,  423,  424,  425,
      337,  336,  428,  427,  335,  329,  328,  327,  415,  430,
      430,  430,  430,  430,  430,  430,  430,  430,  430,  430,
      431,  431,  431,  431,  431,  431,  431,  431,  431,  431,
      431,  432,  432,  432,  432,  432,  432,  432,  432,  432,
      432,  432,  433,  433,  433,  433,  433,  433,  433,  433,
      433,  433,  433,  434,  434,  434,  434,  434,  434,  434,
      434,  434,  434,  434,  435,  435,  435,  435,  435,  435,
      435,  435,  435,  435,  435,  436,  436,  436,  436,  436,

      436,  436,  436,  436,  436,  436,  437,  437,  437,  437,
      437,  437,  437,  437,  437,  437,  437,  438,  438,  438,
      438,  438,  438,  438,  438,  438,  438,  438,  439,  439,
      439,  439,  439,  439,  439,  439,  439,  439,  439,  440,
      440,  440,  440,  440,  440,  440,  440,  440,  440,  440,
      441,  441,  441,  441,  441,  441,  441,  441,  441,  441,
      441,  442,  442,  326,  442,  324,  442,  442,  442,  442,
      442,  442,  443,  323,  443,  443,  444,  321,  320,  444,
      318,  306,  305,  444,  444,  445,  304,  303,  302,  300,
      445,  445,  445,  445,  446,  446,  298,  446,  296,  446,

      446,  446,  446,  446,  446,  447,  294,  291,  289,  447,
      447,  447,  447,  447,  447,  447,  448,  448,  288,  448,
      287,  448,  448,  448,  448,  448,  448,  449,  285,  449,
      449,  450,  281,  450,  450,  451,  276,  264,  262,  261,
      258,  451,  451,  451,  451,  451,  452,  256,  255,  452,
      254,  249,  248,  452,  452,  453,  453,  245,  453,  453,
      453,  453,  453,  453,  453,  453,  454,  454,  243,  454,
      454,  454,  454,  454,  454,  454,  454,  455,  239,  455,
      455,  456,  456,  236,  456,  456,  457,  234,  233,  232,
      228,  457,  457,  457,  457,  457,  457,  458,  227,  223,

      222,  458,  458,  459,  459,  217,  459,  216,  459,  459,
      459,  459,  459,  459,  460,  460,  215,  460,  460,  460,
      460,  460,  460,  460,  460,  461,  212,  461,  461,  462,
      210,  462,  462,  463,  463,  209,  207,  463,  463,  463,
      463,  463,  463,  464,  464,  464,  464,  464,  464,  464,
      464,  464,  464,  464,  465,  465,  191,  189,  465,  465,
      465,  465,  465,  465,  466,  466,  466,  466,  466,  466,
      466,  466,  466,  466,  466,  467,  467,  467,  188,  467,
      467,  467,  467,  467,  467,  467,  468,  187,  186,  184,
      468,  468,  182,  468,  468,  469,  181,  469,  469,  470,

      176,  171,  166,  470,  470,  163,  470,  470,  471,  471,
      162,  471,  471,  471,  471,  471,  471,  471,  471,  472,
      161,  160,  158,  153,  472,  472,  472,  472,  473,  473,
      473,  473,  134,  473,  473,  473,  473,  473,  473,  474,
      474,  474,  474,  474,  474,  474,  132,  474,  474,  474,
      475,  475,  130,  475,  475,  475,  475,  475,  475,  475,
      475,  476,  476,  476,  476,  127,  476,  476,  476,  476,
      476,  476,  477,  125,  124,  120,  119,  477,  115,  477,
      477,  478,  478,  112,  478,  478,  478,  478,  478,  478,
      478,  478,  479,  479,  105,  479,  479,  479,  479,  479,

      479,  479,  479,  480,  480,  480,  480,  480,  480,  480,
      480,  480,  480,  480,  481,  481,  482,  103,  101,   95,
       92,  482,   87,  482,  482,  483,  483,   82,  483,  483,
      483,  483,  483,  483,  483,  483,  484,   81,  484,  485,
       80,  485,  485,  486,   76,  486,  486,  487,  487,   74,
       73,  487,  487,  487,  487,  487,  487,  488,  488,   71,
       62,  488,  488,  488,  488,  488,  488,  489,   60,   59,
       58,   57,   55,   53,  489,  489,  490,   52,   47,   32,
      490,  490,   31,  490,  490,  491,    8,  491,  491,  492,
        7,    2,    1,    0,    0,    0,  492,  492,  493,    0,

        0,    0,  493,  493,    0,  493,  493,  494,  494,    0,
      494,  494,  494,  494,  494,  494,  494,  494,  495,    0,
      495,  495,  496,  496,    0,  496,  496,  496,  496,  496,
      496,  496,  496,  497,  497,  497,  497,    0,  497,  497,
      497,  497,  497,  497,  498,  498,    0,  498,  498,  499,
        0,    0,    0,  499,  499,    0,  499,  499,  500,    0,
        0,    0,  500,  500,    0,  500,  500,  501,  501,  502,
        0,    0,    0,    0,  502,  502,  502,  502,  429,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,

      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429,  429,  429,  429,  429,  429,
      429,  429,  429,  429,  429
    } ;

static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
static char *yy_full_match;
static int yy_lp;
static int yy_looking_for_trail_begin = 0;
static int yy_full_lp;
static int *yy_full_state;
#define YY_TRAILING_MASK 0x2000
#define YY_TRAILING_HEAD_MASK 0x4000
#define REJECT \
{ \
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
yy_cp = yy_full_match; /* restore poss. backed-over text */ \
yy_lp = yy_full_lp; /* restore orig. accepting pos. */ \
yy_state_ptr = yy_full_state; /* restore orig. state */ \
yy_current_state = *yy_state_ptr; /* restore curr. state */ \
++yy_lp; \
goto find_rule; \
}
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "pyscanner.l"
#define INITIAL 0
/******************************************************************************
 *
 * $Id: pyscanner.l,v 1.9 2001/03/19 19:27:39 root Exp $
 *
 * Copyright (C) 1997-2007 by Dimitri van Heesch.
 *
 * Permission to use, copy, modify, and distribute this software and its
 * documentation under the terms of the GNU General Public License is hereby 
 * granted. No representations are made about the suitability of this software 
 * for any purpose. It is provided "as is" without express or implied warranty.
 * See the GNU General Public License for more details.
 *
 * Documents produced by Doxygen are derivative works derived from the
 * input used in their production; they are not affected by this license.
 *
 */
/*  This code is based on the work done by the MoxyPyDoxy team
 *  (Linda Leong, Mike Rivera, Kim Truong, and Gabriel Estrada)
 *  in Spring 2005 as part of CS 179E: Compiler Design Project
 *  at the University of California, Riverside; the course was
 *  taught by Peter H. Froehlich <phf@acm.org>.
 */
#line 26 "pyscanner.l"

/*
 *	includes
 */
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>

#include "qtbc.h"
#include <qarray.h>
#include <qstack.h>
#include <qregexp.h>
#include <unistd.h>
#include <qfile.h>
#include <qfileinfo.h>
  
#include "pyscanner.h"
#include "entry.h"
#include "message.h"
#include "config.h"
#include "doxygen.h"
#include "util.h"
#include "defargs.h"
#include "language.h"
#include "commentscan.h"
#include "pycode.h"

#define YY_NEVER_INTERACTIVE 1

/* -----------------------------------------------------------------
 *
 *	statics
 */

  
static ParserInterface *g_thisParser;
static const char *     inputString;
static int		inputPosition;
static QFile            inputFile;

static Protection	protection;

static Entry*		current_root = 0 ;
static Entry*		current      = 0 ;
static Entry*		previous     = 0 ;
static Entry*		bodyEntry    = 0 ;
static int		yyLineNr     = 1 ;
static QCString		yyFileName;
static MethodTypes 	mtype;
static bool    		gstat;
static Specifier 	virt;

static int              docBlockContext;
static QCString         docBlock;
static QCString         docBlockName;
static bool             docBlockInBody;
static bool             docBlockJavaStyle;
static bool             docBrief;
static bool             docBlockSpecial;

static bool             g_doubleQuote;
static bool             g_specialBlock;
//static bool             g_expectModuleDocs;
static int              g_stringContext;
static QGString *       g_copyString;
static int              g_indent = 0;
static int              g_curIndent = 0;

static QDict<QCString>  g_packageNameCache(257);
static QCString         g_packageScope;

static char             g_atomStart;
static char             g_atomEnd;
static int              g_atomCount;

//static bool             g_insideConstructor;

static QCString         g_moduleScope;
static QCString         g_packageName;

static bool             g_hideClassDocs;

static QCString         g_defVal;
static int              g_braceCount;

static bool             g_lexInit = FALSE;

//-----------------------------------------------------------------------------


static void initParser()
{
  protection = Public;
  mtype = Method;
  gstat = FALSE;
  virt = Normal;
  previous = 0;
  g_packageNameCache.setAutoDelete(TRUE);
}

static void initEntry()
{
  //current->python = TRUE;
  current->protection = protection ;
  current->mtype      = mtype;
  current->virt       = virt;
  current->stat       = gstat;
  current->objc       = FALSE; //insideObjC;
  current->setParent(current_root);
  initGroupInfo(current);
}

static void newEntry()
{
  previous = current;
  current_root->addSubEntry(current);
  current = new Entry ;
  initEntry();
}

static void newVariable()
{
  if (!current->name.isEmpty() && current->name.at(0)=='_') // mark as private
  {
    current->protection=Private;
  }
  if (current_root->section&Entry::SCOPE_MASK) // mark as class variable
  {
    current->stat = TRUE;
  }
  newEntry();
}

static void newFunction()
{
  if (current->name.left(2)=="__" && current->name.right(2)=="__")
  {
    // special method name, see
    // http://docs.python.org/ref/specialnames.html
    current->protection=Public;
  }
  else if (current->name.at(0)=='_')
  {
    current->protection=Private;
  }
}

static inline int computeIndent(const char *s)
{
  int col=0;
  static int tabSize=Config_getInt("TAB_SIZE");
  const char *p=s;
  char c;
  while ((c=*p++))
  {
    if (c==' ') col++;
    else if (c=='\t') col+=tabSize-(col%tabSize);
    else break;
  }
  return col;
}

static QCString findPackageScopeFromPath(const QCString &path)
{
  QCString *pScope = g_packageNameCache.find(path);
  if (pScope)
  {
    return *pScope;
  }
  QFileInfo pf(path+"/__init__.py"); // found package initialization file
  if (pf.exists())
  {
    int i=path.findRev('/');
    if (i!=-1)
    {
      QCString scope = findPackageScopeFromPath(path.left(i));
      if (!scope.isEmpty())
      {
	scope+="::";
      }
      scope+=path.mid(i+1);
      g_packageNameCache.insert(path,new QCString(scope));
      return scope;
    }
  }
  return "";
}
  
static QCString findPackageScope(const char *fileName)
{
  if (fileName==0) return "";
  QFileInfo fi(fileName);
  return findPackageScopeFromPath(fi.dirPath(TRUE).data());
}

//-----------------------------------------------------------------------------

static void lineCount()
{
  for( const char* c = yytext ; *c ; ++c )
    yyLineNr += (*c == '\n') ;
}

#if 0
// Appends the current-name to current-type;
// Destroys current-name.
// Destroys current->args and current->argList
static void addType( Entry* current )
{
    uint tl=current->type.length();
    if ( tl>0 && !current->name.isEmpty() && current->type.at(tl-1)!='.') 
    {
      current->type += ' ' ;
    }
    current->type += current->name ;
    current->name.resize(0) ;
    tl=current->type.length();
    if ( tl>0 && !current->args.isEmpty() && current->type.at(tl-1)!='.') 
    {
      current->type += ' ' ;
    }
    current->type += current->args ;
    current->args.resize(0) ;
    current->argList->clear();
}

static QCString stripQuotes(const char *s)
{
  QCString name;
  if (s==0 || *s==0) return name;
  name=s;
  if (name.at(0)=='"' && name.at(name.length()-1)=='"')
  {
    name=name.mid(1,name.length()-2);
  }
  return name;
}
#endif
//-----------------------------------------------------------------

//-----------------------------------------------------------------
static void startCommentBlock(bool brief)
{
  if (brief)
  {
    current->briefFile = yyFileName;
    current->briefLine = yyLineNr;
  }
  else
  {
    current->docFile = yyFileName;
    current->docLine = yyLineNr;
  }
}

/*
static void appendDocBlock() {
  previous = current;
  current_root->addSubEntry(current);
  current = new Entry;
  initEntry();
}
*/

static void handleCommentBlock(const QCString &doc,bool brief)
{
  //printf("handleCommentBlock(doc=[%s] brief=%d docBlockInBody=%d docBlockJavaStyle=%d\n",
  //    doc.data(),brief,docBlockInBody,docBlockJavaStyle);

  // TODO: Fix me
  docBlockInBody=FALSE;
  
  if (docBlockInBody && previous && !previous->doc.isEmpty())
  {
    previous->doc=previous->doc.stripWhiteSpace()+"\n\n";
  }

  int position = 0;
  bool needsEntry;
  while (parseCommentBlock(
	g_thisParser,
	(docBlockInBody && previous) ? previous : current,
	doc,     // text
	yyFileName, // file
	brief ? current->briefLine : current->docLine,   // line of block start
	docBlockInBody ? FALSE : brief, 
	FALSE, //docBlockJavaStyle, // javadoc style
	docBlockInBody,
	protection,
        position,
        needsEntry)
     ) // need to start a new entry
  {
    if (needsEntry)
    {
      newEntry();
    }
  }
  if (needsEntry)
  {
    newEntry();
  }

}

static void endOfDef()
{
  if (bodyEntry)
  {
    bodyEntry->endBodyLine  = yyLineNr;
    bodyEntry = 0;
  }
  newEntry();
  //g_insideConstructor = FALSE;
}

static inline void addToString(const char *s)
{
  if (g_copyString) (*g_copyString)+=s;
}

static void initTriDoubleQuoteBlock()
{
  docBlockContext   = YY_START;
  docBlockInBody    = FALSE;
  docBlockJavaStyle = TRUE;
  docBlockSpecial   = yytext[3]=='!';
  docBlock.resize(0);
  g_doubleQuote = TRUE;
  startCommentBlock(FALSE);
}

static void initTriSingleQuoteBlock()
{
  docBlockContext   = YY_START;
  docBlockInBody    = FALSE;
  docBlockJavaStyle = TRUE;
  docBlockSpecial   = yytext[3]=='!';
  docBlock.resize(0);
  g_doubleQuote = FALSE;
  startCommentBlock(FALSE);
}

static void initSpecialBlock()
{
  docBlockContext   = YY_START;
  docBlockInBody    = FALSE;
  docBlockJavaStyle = TRUE;
  docBrief = TRUE;
  docBlock.resize(0);
  startCommentBlock(TRUE);
}

//-----------------------------------------------------------------------------
/* ----------------------------------------------------------------- */
#undef	YY_INPUT
#define	YY_INPUT(buf,result,max_size) result=yyread(buf,max_size);

static int yyread(char *buf,int max_size)
{
  int c=0;
  while ( c < max_size && inputString[inputPosition] )
  {
    *buf = inputString[inputPosition++] ;
    //printf("%d (%c)\n",*buf,*buf);
    c++; buf++;
  }
  return c;
}

/* start command character */
/* Main start state */
#define Search 1

#define SearchMemVars 2

/* Mid-comment states */
/* %x FuncDoubleComment */
/* %x ClassDoubleComment */
#define TryClassDocString 3

#define TripleComment 4

#define SpecialComment 5

/* Function states */
#define FunctionDec 6

#define FunctionParams 7

#define FunctionBody 8

#define FunctionParamDefVal 9

/* Class states */
#define ClassDec 10

#define ClassInheritance 11

#define ClassCaptureIndent 12

#define ClassBody 13

/* Variable states */
#define VariableDec 14

#define VariableEnd 15

#define VariableAtom 16

/* String states */
#define SingleQuoteString 17

#define DoubleQuoteString 18

#define TripleString 19

/* import */
#define FromMod 20

#define FromModItem 21

#define Import 22


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#define YY_RULE_SETUP \
	if ( yyleng > 0 ) \
		yy_current_buffer->yy_at_bol = \
				(yytext[yyleng - 1] == '\n'); \
	YY_USER_ACTION

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

#line 488 "pyscanner.l"


  /* ------------ Function recognition rules -------------- */


	if ( yy_init )
		{
		yy_init = 0;

#ifdef YY_USER_INIT
		YY_USER_INIT;
#endif

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

		if ( ! yyin )
			yyin = stdin;

		if ( ! yyout )
			yyout = stdout;

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

		yy_load_buffer_state();
		}

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

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

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

		yy_current_state = yy_start;
		yy_current_state += YY_AT_BOL();
		yy_state_ptr = yy_state_buf;
		*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 >= 430 )
					yy_c = yy_meta[(unsigned int) yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
			*yy_state_ptr++ = yy_current_state;
			++yy_cp;
			}
		while ( yy_base[yy_current_state] != 1579 );

yy_find_action:
		yy_current_state = *--yy_state_ptr;
		yy_lp = yy_accept[yy_current_state];
find_rule: /* we branch to this label when backing up */
		for ( ; ; ) /* until we find what rule we matched */
			{
			if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
				{
				yy_act = yy_acclist[yy_lp];
				if ( yy_act & YY_TRAILING_HEAD_MASK ||
				     yy_looking_for_trail_begin )
					{
					if ( yy_act == yy_looking_for_trail_begin )
						{
						yy_looking_for_trail_begin = 0;
						yy_act &= ~YY_TRAILING_HEAD_MASK;
						break;
						}
					}
				else if ( yy_act & YY_TRAILING_MASK )
					{
					yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK;
					yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK;
					}
				else
					{
					yy_full_match = yy_cp;
					yy_full_state = yy_state_ptr;
					yy_full_lp = yy_lp;
					break;
					}
				++yy_lp;
				goto find_rule;
				}
			--yy_cp;
			yy_current_state = *--yy_state_ptr;
			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:
#line 495 "pyscanner.l"
case 2:
YY_RULE_SETUP
#line 495 "pyscanner.l"
{ // start of a function/method definition
      			  g_indent=computeIndent(yytext);
                          //g_expectModuleDocs = FALSE;
			  current->fileName  = yyFileName;
			  current->startLine = yyLineNr;
			  current->bodyLine  = yyLineNr;
			  current->section = Entry::FUNCTION_SEC;
			  current->protection = protection = Public;
			  current->objc = FALSE;
			  current->virt = Normal;
			  current->stat = FALSE;
			  current->mtype = mtype = Method;
			  current->type.resize(0);
			  current->name.resize(0);
			  current->args.resize(0);
			  current->argList->clear();
			  BEGIN( FunctionDec );
                       }
	YY_BREAK
case 3:
#line 515 "pyscanner.l"
case 4:
YY_RULE_SETUP
#line 515 "pyscanner.l"
{  // start of a class definition
      			  g_indent=computeIndent(yytext);
                          //g_expectModuleDocs = FALSE;
			  current->section = Entry::CLASS_SEC;
			  current->argList->clear();
			  current->type += "class" ;
			  current->fileName  = yyFileName;
			  current->bodyLine  = yyLineNr;

			  BEGIN( ClassDec ) ;
                       }
	YY_BREAK
case 5:
#line 527 "pyscanner.l"
case 6:
YY_RULE_SETUP
#line 527 "pyscanner.l"
{ // start of an from import
                          BEGIN( FromMod );
                       }
	YY_BREAK
case 7:
#line 532 "pyscanner.l"
case 8:
YY_RULE_SETUP
#line 532 "pyscanner.l"
{ // start of an import statement
                          BEGIN( Import );
                       }
	YY_BREAK
case 9:
YY_RULE_SETUP
#line 535 "pyscanner.l"
{ // variable
      			g_indent=computeIndent(yytext);
      			current->section   = Entry::VARIABLE_SEC;
			current->name      = QCString(yytext).stripWhiteSpace();
			current->fileName  = yyFileName;
			current->startLine = yyLineNr;
			current->bodyLine  = yyLineNr;
			BEGIN(VariableDec);
      		      }
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 544 "pyscanner.l"
{ // start of a single quoted string
       			  g_stringContext=YY_START;
			  g_copyString=0;
                          BEGIN( SingleQuoteString );
                       }
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 549 "pyscanner.l"
{ // start of a double quoted string
       			  g_stringContext=YY_START;
			  g_copyString=0;
                          BEGIN( DoubleQuoteString );
                       }
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 555 "pyscanner.l"
{ // normal comment 
      		      }
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 557 "pyscanner.l"
{ // some other identifier
		      }
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 559 "pyscanner.l"
{
      			g_curIndent=computeIndent(yytext);
                      }
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 562 "pyscanner.l"
{ // any other character...
                        // This is the major default
                        // that should catch everything
                        // else in Body.
                      }
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 568 "pyscanner.l"
{ // new line
                        lineCount();
                      }
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 572 "pyscanner.l"
{ // start of a comment block
			initTriDoubleQuoteBlock();
			BEGIN(TripleComment);
                      }
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 577 "pyscanner.l"
{ // start of a comment block
			initTriSingleQuoteBlock();
			BEGIN(TripleComment);
                      }
	YY_BREAK
case 19:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 582 "pyscanner.l"
{  // start of a special comment
			initSpecialBlock();
			BEGIN(SpecialComment);
                      }
	YY_BREAK


case 20:
YY_RULE_SETUP
#line 589 "pyscanner.l"
{ // from package import 
                        g_packageName=yytext;
		      }
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 592 "pyscanner.l"
{
    			BEGIN(FromModItem);
    		      }
	YY_BREAK
case 22:
YY_RULE_SETUP
#line 595 "pyscanner.l"
{
                        yyLineNr++;
                        BEGIN(Search);
                      }
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 599 "pyscanner.l"
{
		      }
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 601 "pyscanner.l"
{
                        unput(*yytext);
                        BEGIN(Search);
                      }
	YY_BREAK


case 25:
YY_RULE_SETUP
#line 608 "pyscanner.l"
{ // import all
                  QCString item=g_packageName;
		  current->name=removeRedundantWhiteSpace(substitute(item,".","::"));
		  current->fileName = yyFileName; 
		  //printf("Adding using directive: found:%s:%d name=%s\n",yyFileName.data(),yyLineNr,current->name.data());
		  current->section=Entry::USINGDIR_SEC;
		  current_root->addSubEntry(current);
		  current = new Entry ;
		  initEntry();
                  BEGIN(Search);
    		}
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 619 "pyscanner.l"
{
                  QCString item=g_packageName+"."+yytext;
		  current->name=removeRedundantWhiteSpace(substitute(item,".","::"));
		  current->fileName = yyFileName; 
		  //printf("Adding using declaration: found:%s:%d name=%s\n",yyFileName.data(),yyLineNr,current->name.data());
		  current->section=Entry::USINGDECL_SEC;
		  current_root->addSubEntry(current);
		  current = new Entry ;
		  initEntry();
                  BEGIN(Search);
		}
	YY_BREAK
case 27:
YY_RULE_SETUP
#line 630 "pyscanner.l"
{
                  yyLineNr++;
                  BEGIN(Search);
                }
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 634 "pyscanner.l"
{
		}
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 636 "pyscanner.l"
{
                  unput(*yytext);
                  BEGIN(Search);
                }
	YY_BREAK


case 30:
YY_RULE_SETUP
#line 643 "pyscanner.l"
{
			current->name=removeRedundantWhiteSpace(substitute(yytext,".","::"));
			current->fileName = yyFileName; 
			//printf("Adding using declaration: found:%s:%d name=%s\n",yyFileName.data(),yyLineNr,current->name.data());
			current->section=Entry::USINGDECL_SEC;
			current_root->addSubEntry(current);
			current = new Entry ;
			initEntry();
			BEGIN(Search);
                      }
	YY_BREAK
case 31:
YY_RULE_SETUP
#line 653 "pyscanner.l"
{
                  yyLineNr++;
                  BEGIN(Search);
                }
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 657 "pyscanner.l"
{
		}
	YY_BREAK
case 33:
YY_RULE_SETUP
#line 659 "pyscanner.l"
{
                  unput(*yytext);
                  BEGIN(Search);
                }
	YY_BREAK


case 34:
YY_RULE_SETUP
#line 666 "pyscanner.l"
{
                        //printf("Found member variable %s in %s\n",&yytext[5],current_root->name.data());
			current->name=&yytext[5];
			current->section=Entry::VARIABLE_SEC;
			current->fileName  = yyFileName;
			current->startLine = yyLineNr;
			current->bodyLine  = yyLineNr;
			current->type.resize(0);
			if (current->name.at(0)=='_') // mark as private
			{
			  current->protection=Private;
			}
			else
			{
			  current->protection=Public;
			}
			newEntry();
                      }
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 684 "pyscanner.l"
{ // start of a comment block
			initTriDoubleQuoteBlock();
			BEGIN(TripleComment);
                      }
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 689 "pyscanner.l"
{ // start of a comment block
			initTriSingleQuoteBlock();
			BEGIN(TripleComment);
                      }
	YY_BREAK
case 37:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 694 "pyscanner.l"
{  // start of a special comment
			initSpecialBlock();
			BEGIN(SpecialComment);
                      }
	YY_BREAK
case 38:
YY_RULE_SETUP
#line 698 "pyscanner.l"
{ // #
	              }
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 700 "pyscanner.l"
{ // start of a single quoted string
       			g_stringContext=YY_START;
			g_copyString=0;
                        BEGIN( SingleQuoteString );
                      }
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 705 "pyscanner.l"
{ // start of a double quoted string
       			g_stringContext=YY_START;
			g_copyString=0;
                        BEGIN( DoubleQuoteString );
                      }
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 710 "pyscanner.l"
{ yyLineNr++; }
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 711 "pyscanner.l"
// anything else
	YY_BREAK


case 43:
YY_RULE_SETUP
#line 715 "pyscanner.l"
{
                        //fprintf(stderr,"indent %d<=%d\n",computeIndent(&yytext[1]),g_indent);
                        if (computeIndent(&yytext[1])<=g_indent) 
			{
			  int i;
			  for (i=yyleng-1;i>=0;i--)
			  {
			    unput(yytext[i]);
			  }
			  endOfDef();
			  YY_CURRENT_BUFFER->yy_at_bol=TRUE;
                          BEGIN(Search);
			}
			else
			{
                          yyLineNr++;
      		          current->program+=yytext;
			}
                      }
	YY_BREAK
case 44:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 2;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 734 "pyscanner.l"
{
                        if (computeIndent(&yytext[1])<=g_indent)
			{
			  int i;
			  for (i=yyleng-1;i>=0;i--)
			  {
			    unput(yytext[i]);
			  }
			  endOfDef();
			  YY_CURRENT_BUFFER->yy_at_bol=TRUE;
                          BEGIN(Search);
			}
			else
			{
			  yyLineNr++;
      		          current->program+=yytext;
			}
      		      }
	YY_BREAK
case YY_STATE_EOF(FunctionBody):
#line 752 "pyscanner.l"
{
			endOfDef();
			yyterminate();
      		      }
	YY_BREAK
case 45:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 756 "pyscanner.l"
{ // skip empty line
      		        current->program+=yytext;
      	              }
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 759 "pyscanner.l"
{ // something at indent >0
      		        current->program+=yytext;
			g_curIndent = computeIndent(yytext);
                        if (g_curIndent<=g_indent) 
			  // jumped out of the function
			{
			  endOfDef();
                          BEGIN(Search);
			}
      		      }
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 769 "pyscanner.l"
{ // start of a single quoted string
      		        current->program+=yytext;
       			g_stringContext=YY_START;
		        g_specialBlock = FALSE; 
			g_copyString=&current->program;
                        BEGIN( SingleQuoteString );
                      }
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 776 "pyscanner.l"
{ // start of a double quoted string
      		        current->program+=yytext;
       			g_stringContext=YY_START;
		        g_specialBlock = FALSE; 
			g_copyString=&current->program;
                        BEGIN( DoubleQuoteString );
                      }
	YY_BREAK
case 49:
YY_RULE_SETUP
#line 783 "pyscanner.l"
{ // non-special stuff
      		        current->program+=yytext;
		        g_specialBlock = FALSE; 
                      }
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 787 "pyscanner.l"
{ // normal comment 
      		        current->program+=yytext;
      		      }
	YY_BREAK
case 51:
YY_RULE_SETUP
#line 790 "pyscanner.l"
{ // comment half way
      		        current->program+=yytext;
                      }
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 793 "pyscanner.l"
{ yyLineNr++; 
      		        current->program+=yytext;
		      }
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 796 "pyscanner.l"
{ // any character
      		        current->program+=*yytext;
		        g_specialBlock = FALSE; 
                      }
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 801 "pyscanner.l"
{ // start of a comment block
			current->program+=yytext;
			initTriDoubleQuoteBlock();
			BEGIN(TripleComment);
                      }
	YY_BREAK
case 55:
YY_RULE_SETUP
#line 807 "pyscanner.l"
{ // start of a comment block
			current->program+=yytext;
			initTriSingleQuoteBlock();
			BEGIN(TripleComment);
                      }
	YY_BREAK
case 56:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 813 "pyscanner.l"
{  // start of a special comment
			initSpecialBlock();
			BEGIN(SpecialComment);
                      }
	YY_BREAK


case 57:
YY_RULE_SETUP
#line 822 "pyscanner.l"
{
			      //found function name
			      if (current->type.isEmpty()) 
			      {
				  current->type = "def";
			      }
			      current->name = yytext;
			      current->name = current->name.stripWhiteSpace();
			      newFunction();
                            }
	YY_BREAK
case 58:
YY_RULE_SETUP
#line 833 "pyscanner.l"
{
			       BEGIN( FunctionParams );
		            }
	YY_BREAK


case 59:
YY_RULE_SETUP
#line 839 "pyscanner.l"
{
                        }
	YY_BREAK
case 60:
YY_RULE_SETUP
#line 842 "pyscanner.l"
{ // Name of parameter
			  lineCount();
			  Argument *a = new Argument;
			  current->argList->append(a);
			  current->argList->getLast()->name = QCString(yytext).stripWhiteSpace();
			  current->argList->getLast()->type = "";
                        }
	YY_BREAK
case 61:
YY_RULE_SETUP
#line 849 "pyscanner.l"
{ // default value
                          // TODO: this rule is too simple, need to be able to
                          // match things like =")" as well!
      			  QCString defVal=&yytext[1];
			  g_defVal.resize(0);
			  g_braceCount=0;
			  BEGIN(FunctionParamDefVal);
      			}
	YY_BREAK
case 62:
YY_RULE_SETUP
#line 858 "pyscanner.l"
{ // end of parameter list
                        }
	YY_BREAK
case 63:
YY_RULE_SETUP
#line 861 "pyscanner.l"
{
			  g_specialBlock = TRUE; // expecting a docstring
			  bodyEntry = current;
                          BEGIN( FunctionBody );
                        }
	YY_BREAK
case 64:
YY_RULE_SETUP
#line 867 "pyscanner.l"
{ // Default rule inside arguments.
                        }
	YY_BREAK


case 65:
YY_RULE_SETUP
#line 873 "pyscanner.l"
{ // internal opening brace
       			  g_braceCount++;
			  g_defVal+=*yytext;
       			}
	YY_BREAK
case 66:
#line 878 "pyscanner.l"
case 67:
YY_RULE_SETUP
#line 878 "pyscanner.l"
{
       			  if (g_braceCount==0)  // end of default argument
			  {
			    if (current->argList->getLast())
			    {
			      current->argList->getLast()->defval=g_defVal.stripWhiteSpace();
			    }
       			    BEGIN(FunctionParams);
			  }
			  else // continue
			  {
			    g_braceCount--;
			    g_defVal+=*yytext;
			  }
       			}
	YY_BREAK
case 68:
YY_RULE_SETUP
#line 893 "pyscanner.l"
{
			    g_defVal+=*yytext;
       			}
	YY_BREAK
case 69:
YY_RULE_SETUP
#line 896 "pyscanner.l"
{
       			    g_defVal+=*yytext;
			    yyLineNr++;
       			}
	YY_BREAK


case 70:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp = yy_bp + 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 904 "pyscanner.l"
{ // new def at indent 0
                        yyLineNr++;
			endOfDef();
			g_hideClassDocs = FALSE;
			YY_CURRENT_BUFFER->yy_at_bol=TRUE;
                        BEGIN(Search);
                      }
	YY_BREAK
case 71:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp = yy_bp + 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 911 "pyscanner.l"
{  // start of a special comment at indent 0
                        yyLineNr++;
			endOfDef();
			g_hideClassDocs = FALSE;
			YY_CURRENT_BUFFER->yy_at_bol=TRUE;
                        BEGIN(Search);
                      }
	YY_BREAK
case 72:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 918 "pyscanner.l"
{ // skip empty line
      		        current->program+=yytext;
      	              }
	YY_BREAK
case YY_STATE_EOF(ClassBody):
#line 921 "pyscanner.l"
{
			endOfDef();
			yyterminate();
      		      }
	YY_BREAK
case 73:
YY_RULE_SETUP
#line 925 "pyscanner.l"
{ // something at indent >0
                        g_curIndent=computeIndent(yytext);
			//fprintf(stderr,"g_curIndent=%d g_indent=%d\n",g_curIndent,g_indent);
                        if (g_curIndent<=g_indent) 
			  // jumped out of the class
			{
			  endOfDef();
			  g_indent=g_curIndent;
			  // make sure the next rule matches ^...
			  YY_CURRENT_BUFFER->yy_at_bol=TRUE;
			  g_hideClassDocs = FALSE;
                          BEGIN(Search);
			}
			else
			{
      		          current->program+=yytext;
			}
      		      }
	YY_BREAK
case 74:
YY_RULE_SETUP
#line 943 "pyscanner.l"
{ // start of a single quoted string
      		        current->program+=*yytext;
       			g_stringContext=YY_START;
		        g_specialBlock = FALSE; 
			g_copyString=&current->program;
                        BEGIN( SingleQuoteString );
                      }
	YY_BREAK
case 75:
YY_RULE_SETUP
#line 950 "pyscanner.l"
{ // start of a double quoted string
      		        current->program+=*yytext;
       			g_stringContext=YY_START;
		        g_specialBlock = FALSE; 
			g_copyString=&current->program;
                        BEGIN( DoubleQuoteString );
                      }
	YY_BREAK
case 76:
YY_RULE_SETUP
#line 957 "pyscanner.l"
{ // non-special stuff
      		        current->program+=yytext;
		        g_specialBlock = FALSE; 
			g_hideClassDocs = FALSE;
                      }
	YY_BREAK
case 77:
YY_RULE_SETUP
#line 962 "pyscanner.l"
{ 
      		        current->program+=*yytext;
			yyLineNr++; 
		      }
	YY_BREAK
case 78:
YY_RULE_SETUP
#line 966 "pyscanner.l"
{ // normal comment
      		        current->program+=yytext;
                      }
	YY_BREAK
case 79:
YY_RULE_SETUP
#line 969 "pyscanner.l"
{ // any character
		        g_specialBlock = FALSE; 
      		        current->program+=*yytext;
                      }
	YY_BREAK
case 80:
YY_RULE_SETUP
#line 973 "pyscanner.l"
{ // start of a comment block
      		        if (!g_hideClassDocs) current->program+=yytext;
			initTriDoubleQuoteBlock();
			BEGIN(TripleComment);
                      }
	YY_BREAK
case 81:
YY_RULE_SETUP
#line 979 "pyscanner.l"
{ // start of a comment block
      		        if (!g_hideClassDocs) current->program+=yytext;
			initTriSingleQuoteBlock();
			BEGIN(TripleComment);
                      }
	YY_BREAK

case 82:
YY_RULE_SETUP
#line 986 "pyscanner.l"
{
			  if (current->type.isEmpty()) 
			  {
			      current->type = "class";
			  }

			  current->section = Entry::CLASS_SEC;
			  current->name = yytext;

			  // prepend scope in case of nested classes
			  if (current_root->section&Entry::SCOPE_MASK)
			  {
			    current->name.prepend(current_root->name+"::");
			  }
			  
			  current->name = current->name.stripWhiteSpace();
			  current->fileName = yyFileName;        
			  docBlockContext   = YY_START;
			  docBlockInBody    = FALSE;
			  docBlockJavaStyle = FALSE;
			  docBlock.resize(0);

			  BEGIN(ClassInheritance);                 
                        }
	YY_BREAK

case 83:
YY_RULE_SETUP
#line 1012 "pyscanner.l"
{ // syntactic sugar for the list
                       }
	YY_BREAK
case 84:
YY_RULE_SETUP
#line 1015 "pyscanner.l"
{ // begin of the class definition
			 g_specialBlock = TRUE; // expecting a docstring
      			 BEGIN(ClassCaptureIndent);
                       }
	YY_BREAK
case 85:
YY_RULE_SETUP
#line 1020 "pyscanner.l"
{
                         current->extends->append(
					      new BaseInfo(substitute(yytext,".","::"),Public,Normal)
					    );
                         //Has base class-do stuff
                       }
	YY_BREAK


case 86:
YY_RULE_SETUP
#line 1030 "pyscanner.l"
{
                                 // Blankline - ignore, keep looking for indentation.
				 lineCount();
                               }
	YY_BREAK
case 87:
YY_RULE_SETUP
#line 1035 "pyscanner.l"
{ // start of a comment block
				 initTriDoubleQuoteBlock();
			 	 BEGIN(TripleComment);
                      	       }
	YY_BREAK
case 88:
YY_RULE_SETUP
#line 1040 "pyscanner.l"
{ // start of a comment block
			         initTriSingleQuoteBlock();
			         BEGIN(TripleComment);
                               }
	YY_BREAK
case 89:
YY_RULE_SETUP
#line 1045 "pyscanner.l"
{
      				 current->program=yytext;
			         current->startLine = yyLineNr;
				 g_curIndent=computeIndent(yytext);
				 bodyEntry = current;
				 //fprintf(stderr,"setting indent %d\n",g_curIndent);
				 //printf("current->program=[%s]\n",current->program.data());
				 g_hideClassDocs = TRUE;
			         BEGIN(ClassBody);
                               }
	YY_BREAK
case 90:
YY_RULE_SETUP
#line 1056 "pyscanner.l"
{
				 
				 // Just pushback an empty class, and
				 // resume parsing the body.
                                 newEntry();

				 // printf("Failed to find indent - skipping!");
				 BEGIN( Search );
                               }
	YY_BREAK


case 91:
YY_RULE_SETUP
#line 1069 "pyscanner.l"
{ // the assignment operator
                        //printf("====== VariableDec at line %d\n",yyLineNr);
                      }
	YY_BREAK
case 92:
YY_RULE_SETUP
#line 1072 "pyscanner.l"
{ // spaces
	              }
	YY_BREAK
case 93:
YY_RULE_SETUP
#line 1074 "pyscanner.l"
{ // integer value
			current->type = "int";
			current->initializer = yytext;
			BEGIN(VariableEnd);
		      }
	YY_BREAK
case 94:
YY_RULE_SETUP
#line 1079 "pyscanner.l"
{ // floating point value
			current->type = "float";
			current->initializer = yytext;
			BEGIN(VariableEnd);
		      }
	YY_BREAK
case 95:
YY_RULE_SETUP
#line 1084 "pyscanner.l"
{ // string
			current->type = "string";
			current->initializer = yytext;
			g_copyString=&current->initializer;
       			g_stringContext=VariableEnd;
                        BEGIN( SingleQuoteString );
     		      }
	YY_BREAK
case 96:
YY_RULE_SETUP
#line 1091 "pyscanner.l"
{ // string
			current->type = "string";
			current->initializer = yytext;
			g_copyString=&current->initializer;
       			g_stringContext=VariableEnd;
                        BEGIN( DoubleQuoteString );
     		      }
	YY_BREAK
case 97:
YY_RULE_SETUP
#line 1098 "pyscanner.l"
{ // start of a comment block
			current->type = "string";
			g_doubleQuote=TRUE;
			g_copyString=&current->initializer;
       			g_stringContext=VariableEnd;
			BEGIN(TripleString);
                      }
	YY_BREAK
case 98:
YY_RULE_SETUP
#line 1106 "pyscanner.l"
{ // start of a comment block
			current->type = "string";
			g_doubleQuote=FALSE;
			g_copyString=&current->initializer;
       			g_stringContext=VariableEnd;
			BEGIN(TripleString);
                      }
	YY_BREAK
case 99:
YY_RULE_SETUP
#line 1113 "pyscanner.l"
{ // typle
			current->type = "tuple";
      		        current->initializer+=*yytext;
                        g_atomStart='(';
			g_atomEnd=')';
			g_atomCount=1;
			BEGIN( VariableAtom );
                      }
	YY_BREAK
case 100:
YY_RULE_SETUP
#line 1121 "pyscanner.l"
{ // list
			current->type = "list";
      		        current->initializer+=*yytext;
                        g_atomStart='[';
			g_atomEnd=']';
			g_atomCount=1;
			BEGIN( VariableAtom );
                      }
	YY_BREAK
case 101:
YY_RULE_SETUP
#line 1129 "pyscanner.l"
{ // dictionary
			current->type = "dictionary";
      		        current->initializer+=*yytext;
                        g_atomStart='{';
			g_atomEnd='}';
			g_atomCount=1;
			BEGIN( VariableAtom );
                      }
	YY_BREAK
case 102:
YY_RULE_SETUP
#line 1137 "pyscanner.l"
{ // comment
                        BEGIN( VariableEnd ); 
                      }
	YY_BREAK
case 103:
YY_RULE_SETUP
#line 1140 "pyscanner.l"
{
      		        current->initializer+=yytext;
	              }
	YY_BREAK
case 104:
YY_RULE_SETUP
#line 1143 "pyscanner.l"
{
      		        current->initializer+=*yytext;
                      }
	YY_BREAK
case 105:
YY_RULE_SETUP
#line 1146 "pyscanner.l"
{
     		        unput('\n');
     			BEGIN( VariableEnd );
     		      }
	YY_BREAK


case 106:
YY_RULE_SETUP
#line 1153 "pyscanner.l"
{
      		        current->initializer+=*yytext;
                        if (g_atomStart==*yytext)
			{
			  g_atomCount++;
			}
                      }
	YY_BREAK
case 107:
YY_RULE_SETUP
#line 1160 "pyscanner.l"
{
      		        current->initializer+=*yytext;
                        if (g_atomEnd==*yytext)
			{
			  g_atomCount--;
			}
			if (g_atomCount==0)
			{
			  BEGIN(VariableEnd);
			}
                      }
	YY_BREAK
case 108:
YY_RULE_SETUP
#line 1171 "pyscanner.l"
{
      		        current->initializer+=yytext;
	              }
	YY_BREAK
case 109:
YY_RULE_SETUP
#line 1174 "pyscanner.l"
{
      		        current->initializer+=*yytext;
                      }
	YY_BREAK
case 110:
YY_RULE_SETUP
#line 1177 "pyscanner.l"
{
      		        current->initializer+=*yytext;
     			yyLineNr++;
     		      }
	YY_BREAK


case 111:
YY_RULE_SETUP
#line 1185 "pyscanner.l"
{
                        yyLineNr++;
			newVariable();
                        BEGIN(Search);
                      }
	YY_BREAK
case 112:
YY_RULE_SETUP
#line 1190 "pyscanner.l"
{ 
                        unput(*yytext);
			newVariable();
                        BEGIN(Search);
      		      }
	YY_BREAK
case YY_STATE_EOF(VariableEnd):
#line 1195 "pyscanner.l"
{ yyterminate();
                        newEntry();
                      }
	YY_BREAK


case 113:
#line 1202 "pyscanner.l"
case 114:
YY_RULE_SETUP
#line 1202 "pyscanner.l"
{
			  // printf("Expected module block %d special=%d\n",g_expectModuleDocs,g_specialBlock);
			  if (g_doubleQuote==(yytext[0]=='"')) 
			  {
			    if (g_specialBlock)
			    {
			      QCString actualDoc=docBlock;
			      if (!docBlockSpecial) // legacy unformatted docstring
			      {
			        actualDoc.prepend("\\verbatim ");
			        actualDoc.append("\\endverbatim ");
			      }
			      //if (g_expectModuleDocs)
			      //{
			      //  actualDoc.prepend("\\namespace "+g_moduleScope+"\\_linebr ");
			      //}
			      //printf("-------> current=%p bodyEntry=%p\n",current,bodyEntry);
			      handleCommentBlock(actualDoc, FALSE);
			    }
		    	    //g_expectModuleDocs=FALSE;
			    if ((docBlockContext==ClassBody && !g_hideClassDocs) ||
				docBlockContext==FunctionBody)
			    {
			      current->program+=docBlock;
			      current->program+=yytext;
			    }
                            if (g_hideClassDocs)
                              current->startLine = yyLineNr;
			    g_hideClassDocs=FALSE;
			    BEGIN(docBlockContext);
			  }
                          else 
			  {
                            docBlock += yytext;
                          }
                        }
	YY_BREAK
case 115:
YY_RULE_SETUP
#line 1240 "pyscanner.l"
{ // leading whitespace
      			  int indent = computeIndent(yytext);
			  if (indent>=g_curIndent)
			  { // strip g_curIndent amount of whitespace
			    int i;
			    for (i=0;i<indent-g_curIndent;i++) docBlock+=' ';
			    //fprintf(stderr,"stripping indent %d\n",g_curIndent);
			  }
			  else
			  {
			    //fprintf(stderr,"not stripping: %d<%d\n",indent,g_curIndent);
			    docBlock += yytext;
			  }
      			}
	YY_BREAK
case 116:
YY_RULE_SETUP
#line 1254 "pyscanner.l"
{
			  docBlock += yytext;
                        }
	YY_BREAK
case 117:
YY_RULE_SETUP
#line 1257 "pyscanner.l"
{
      			  yyLineNr++;
			  docBlock += yytext;
      			}
	YY_BREAK
case 118:
YY_RULE_SETUP
#line 1261 "pyscanner.l"
{
			  docBlock += yytext;
      			}
	YY_BREAK


case 119:
YY_RULE_SETUP
#line 1267 "pyscanner.l"
{ // skip leading hashes
      			}
	YY_BREAK
case 120:
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */
yy_c_buf_p = yy_cp = yy_bp + 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 1269 "pyscanner.l"
{ // continuation of the comment on the next line
      			  docBlock+='\n';
			  docBrief = FALSE;
                          startCommentBlock(FALSE);
			  yyLineNr++;
      			}
	YY_BREAK
case 121:
YY_RULE_SETUP
#line 1275 "pyscanner.l"
{ // any other stuff
      			  docBlock+=yytext;
      			}
	YY_BREAK
case 122:
YY_RULE_SETUP
#line 1278 "pyscanner.l"
{ // new line that ends the comment
			  //if (g_expectModuleDocs)
			  //{
			  //  docBlock.prepend("\\namespace "+g_moduleScope+"\\_linebr ");
			  //}
		    	  //g_expectModuleDocs=FALSE;
			  handleCommentBlock(docBlock, docBrief);
      			  yyLineNr++;
			  BEGIN(docBlockContext);
      			}
	YY_BREAK
case 123:
YY_RULE_SETUP
#line 1288 "pyscanner.l"
{ // anything we missed
      			  docBlock+=*yytext;
      			}
	YY_BREAK


case 124:
YY_RULE_SETUP
#line 1294 "pyscanner.l"
{ // line continuation
      			         addToString(yytext);
      				 yyLineNr++;
                               }
	YY_BREAK
case 125:
YY_RULE_SETUP
#line 1298 "pyscanner.l"
{ // espaced char
      			         addToString(yytext);
                               }
	YY_BREAK
case 126:
YY_RULE_SETUP
#line 1301 "pyscanner.l"
{ // tripple double quotes
      			         addToString(yytext);
      			       }
	YY_BREAK
case 127:
YY_RULE_SETUP
#line 1304 "pyscanner.l"
{ // end of the string
      			         addToString(yytext);
      		                 BEGIN(g_stringContext);
                               }
	YY_BREAK
case 128:
YY_RULE_SETUP
#line 1308 "pyscanner.l"
{ // normal chars
      			         addToString(yytext);
                               }
	YY_BREAK
case 129:
YY_RULE_SETUP
#line 1311 "pyscanner.l"
{ // normal char
      			         addToString(yytext);
                               }
	YY_BREAK


case 130:
YY_RULE_SETUP
#line 1317 "pyscanner.l"
{ // line continuation
      			         addToString(yytext);
      				 yyLineNr++;
                               }
	YY_BREAK
case 131:
YY_RULE_SETUP
#line 1321 "pyscanner.l"
{ // espaced char
      			         addToString(yytext);
                               }
	YY_BREAK
case 132:
YY_RULE_SETUP
#line 1324 "pyscanner.l"
{ // tripple single quotes
      			         addToString(yytext);
      			       }
	YY_BREAK
case 133:
YY_RULE_SETUP
#line 1327 "pyscanner.l"
{ // end of the string
      			         addToString(yytext);
      		                 BEGIN(g_stringContext);
                               }
	YY_BREAK
case 134:
YY_RULE_SETUP
#line 1331 "pyscanner.l"
{ // normal chars
      			         addToString(yytext);
                               }
	YY_BREAK
case 135:
YY_RULE_SETUP
#line 1334 "pyscanner.l"
{ // normal char
      			         addToString(yytext);
                               }
	YY_BREAK


case 136:
#line 1341 "pyscanner.l"
case 137:
YY_RULE_SETUP
#line 1341 "pyscanner.l"
{
                          *g_copyString += yytext;
			  //printf("Expected module block %d special=%d\n",g_expectModuleDocs,g_specialBlock);
			  if (g_doubleQuote==(yytext[0]=='"')) 
			  {
			    BEGIN(docBlockContext);
			  }
                        }
	YY_BREAK
case 138:
YY_RULE_SETUP
#line 1351 "pyscanner.l"
{
			  lineCount();
                          *g_copyString += yytext;
                        }
	YY_BREAK
case 139:
YY_RULE_SETUP
#line 1355 "pyscanner.l"
{
      			  yyLineNr++;
                          *g_copyString += yytext;
      			}
	YY_BREAK
case 140:
YY_RULE_SETUP
#line 1359 "pyscanner.l"
{
                          *g_copyString += *yytext;
      			}
	YY_BREAK

/* ------------ End rules -------------- */
/*
<*>({NONEMPTY}|{EXPCHAR}|{BB})           { // This should go one character at a time.
				 // printf("[pyscanner] '%s' [ state %d ]  [line %d] no match\n",
				 //       yytext, YY_START, yyLineNr);

                               }
  */
case 141:
YY_RULE_SETUP
#line 1374 "pyscanner.l"
{
				 //printf("[pyscanner] %d NEWLINE [line %d] no match\n",
				 //       YY_START, yyLineNr);

                                 lineCount();
                               }
	YY_BREAK
case 142:
YY_RULE_SETUP
#line 1381 "pyscanner.l"
{
				 //printf("[pyscanner] '%s' [ state %d ]  [line %d] no match\n",
				 //       yytext, YY_START, yyLineNr);

                               }
	YY_BREAK
case 143:
YY_RULE_SETUP
#line 1388 "pyscanner.l"
ECHO;
	YY_BREAK
			case YY_STATE_EOF(INITIAL):
			case YY_STATE_EOF(Search):
			case YY_STATE_EOF(SearchMemVars):
			case YY_STATE_EOF(TryClassDocString):
			case YY_STATE_EOF(TripleComment):
			case YY_STATE_EOF(SpecialComment):
			case YY_STATE_EOF(FunctionDec):
			case YY_STATE_EOF(FunctionParams):
			case YY_STATE_EOF(FunctionParamDefVal):
			case YY_STATE_EOF(ClassDec):
			case YY_STATE_EOF(ClassInheritance):
			case YY_STATE_EOF(ClassCaptureIndent):
			case YY_STATE_EOF(VariableDec):
			case YY_STATE_EOF(VariableAtom):
			case YY_STATE_EOF(SingleQuoteString):
			case YY_STATE_EOF(DoubleQuoteString):
			case YY_STATE_EOF(TripleString):
			case YY_STATE_EOF(FromMod):
			case YY_STATE_EOF(FromModItem):
			case YY_STATE_EOF(Import):
				yyterminate();

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

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

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

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

			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state();

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

			yy_next_state = yy_try_NUL_trans( yy_current_state );

			yy_bp = yytext_ptr + YY_MORE_ADJ;

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

			else
				{
				yy_cp = yy_c_buf_p;
				goto yy_find_action;
				}
			}

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

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

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

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

			case EOB_ACT_CONTINUE_SCAN:
				yy_c_buf_p =
					yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state();

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

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

				yy_current_state = yy_get_previous_state();

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

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


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

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

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

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

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

	/* Try to read more data. */

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

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

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

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

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

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

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

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

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

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

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

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

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

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

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

		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

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

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

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

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

	yytext_ptr = &yy_current_buffer->yy_ch_buf[0];

	return ret_val;
	}


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

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

	yy_current_state = yy_start;
	yy_current_state += YY_AT_BOL();
	yy_state_ptr = yy_state_buf;
	*yy_state_ptr++ = yy_current_state;

	for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
		{
		register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
		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 >= 430 )
				yy_c = yy_meta[(unsigned int) yy_c];
			}
		yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
		*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 );
 */

#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
	{
	register int yy_is_jam;

	register 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 >= 430 )
			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 == 429);
	if ( ! yy_is_jam )
		*yy_state_ptr++ = yy_current_state;

	return yy_is_jam ? 0 : yy_current_state;
	}


#ifndef YY_NO_UNPUT
#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
	{
	register char *yy_cp = yy_c_buf_p;

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

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

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

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

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

	*--yy_cp = (char) c;


	yytext_ptr = yy_bp;
	yy_hold_char = *yy_cp;
	yy_c_buf_p = yy_cp;
	}
#endif	/* ifndef YY_NO_UNPUT */


#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
	{
	int c;

	*yy_c_buf_p = yy_hold_char;

	if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
		{
		/* yy_c_buf_p now points to the character we want to return.
		 * If this occurs *before* the EOB characters, then it's a
		 * valid NUL; if not, then we've hit the end of the buffer.
		 */
		if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			/* This was really a NUL. */
			*yy_c_buf_p = '\0';

		else
			{ /* need more input */
			int offset = yy_c_buf_p - yytext_ptr;
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
				{
				case EOB_ACT_LAST_MATCH:
					/* This happens because yy_g_n_b()
					 * sees that we've accumulated a
					 * token and flags that we need to
					 * try matching the token before
					 * proceeding.  But for input(),
					 * there's no matching to consider.
					 * So convert the EOB_ACT_LAST_MATCH
					 * to EOB_ACT_END_OF_FILE.
					 */

					/* Reset buffer status. */
					yyrestart( yyin );

					/* fall through */

				case EOB_ACT_END_OF_FILE:
					{
					if ( yywrap() )
						return EOF;

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

				case EOB_ACT_CONTINUE_SCAN:
					yy_c_buf_p = yytext_ptr + offset;
					break;
				}
			}
		}

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

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

	return c;
	}


#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
	{
	if ( ! yy_current_buffer )
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );

	yy_init_buffer( yy_current_buffer, input_file );
	yy_load_buffer_state();
	}


#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
	{
	if ( yy_current_buffer == new_buffer )
		return;

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

	yy_current_buffer = new_buffer;
	yy_load_buffer_state();

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


#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
	{
	yy_n_chars = yy_current_buffer->yy_n_chars;
	yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
	yyin = yy_current_buffer->yy_input_file;
	yy_hold_char = *yy_c_buf_p;
	}


#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
	{
	YY_BUFFER_STATE b;

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

	b->yy_buf_size = size;

	/* yy_ch_buf has to be 2 characters longer than the size given because
	 * we need to put in 2 end-of-buffer characters.
	 */
	b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
	if ( ! b->yy_ch_buf )
		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

	b->yy_is_our_buffer = 1;

	yy_init_buffer( b, file );

	return b;
	}


#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
	{
	if ( ! b )
		return;

	if ( b == yy_current_buffer )
		yy_current_buffer = (YY_BUFFER_STATE) 0;

	if ( b->yy_is_our_buffer )
		yy_flex_free( (void *) b->yy_ch_buf );

	yy_flex_free( (void *) b );
	}


#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif

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


	{
	yy_flush_buffer( b );

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

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


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

	{
	if ( ! b )
		return;

	b->yy_n_chars = 0;

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

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

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

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


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

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

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

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

	yy_switch_to_buffer( b );

	return b;
	}
#endif


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

	return yy_scan_bytes( yy_str, len );
	}
#endif


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

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

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

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

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

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

	return b;
	}
#endif


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

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

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

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

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

	yy_start_stack[yy_start_stack_ptr++] = YY_START;

	BEGIN(new_state);
	}
#endif


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

	BEGIN(yy_start_stack[yy_start_stack_ptr]);
	}
#endif


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

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

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



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

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


/* Internal utility routines. */

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

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

	return n;
	}
#endif


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

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

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

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


//----------------------------------------------------------------------------

static void parseCompounds(Entry *rt)
{
  //printf("parseCompounds(%s)\n",rt->name.data());
  EntryListIterator eli(*rt->children());
  Entry *ce;
  for (;(ce=eli.current());++eli)
  {
    if (!ce->program.isEmpty())
    {
      //printf("-- %s ---------\n%s\n---------------\n",
      //  ce->name.data(),ce->program.data());
      // init scanner state
      inputString = ce->program;
      inputPosition = 0;
      pyscanYYrestart( pyscanYYin ) ;
      if (ce->section&Entry::COMPOUND_MASK)
      {
        current_root = ce ;
        BEGIN( Search );
      }
      else if (ce->parent())
      {
        current_root = ce->parent();
	//printf("Searching for member variables in %s parent=%s\n",
	//    ce->name.data(),ce->parent->name.data());
	BEGIN( SearchMemVars );
      }
      yyFileName = ce->fileName;
      yyLineNr = ce->startLine ;
      if (current) delete current;
      current = new Entry;

      groupEnterCompound(yyFileName,yyLineNr,ce->name);
      
      pyscanYYlex() ;
      g_lexInit=TRUE;
      delete current; current=0;
      ce->program.resize(0);

      groupLeaveCompound(yyFileName,yyLineNr,ce->name);

    }
    parseCompounds(ce);
  }
}

//----------------------------------------------------------------------------


static void parseMain(const char *fileName,const char *fileBuf,Entry *rt)
{
  initParser();

  inputString = fileBuf;
  inputPosition = 0;

  protection    = Public;
  mtype         = Method;
  gstat         = FALSE;
  virt          = Normal;
  current_root  = rt;
  //g_expectModuleDocs = TRUE;
  g_specialBlock = FALSE;
  //g_insideConstructor = FALSE;


  inputFile.setName(fileName);
  if (inputFile.open(IO_ReadOnly))
  {
    yyLineNr= 1 ; 
    yyFileName = fileName;
    //setContext();
    msg("Parsing file %s...\n",yyFileName.data());

    QFileInfo fi(fileName);
    g_moduleScope = findPackageScope(fileName);
    if (!g_moduleScope.isEmpty())
    {
      g_moduleScope+="::";
    }
    g_moduleScope+=fi.baseName();

    current            = new Entry;
    current->name      = g_moduleScope;
    current->section   = Entry::NAMESPACE_SEC;
    current->type      = "namespace";
    current->fileName  = yyFileName;
    current->startLine = yyLineNr;
    current->bodyLine  = yyLineNr;

    rt->addSubEntry(current);

    current_root  = current ;
    initParser();
    current       = new Entry;

    groupEnterFile(yyFileName,yyLineNr);
    
    current->reset();
    pyscanYYrestart( pyscanYYin );
    BEGIN( Search );
    pyscanYYlex();
    g_lexInit=TRUE;

    groupLeaveFile(yyFileName,yyLineNr);

    current_root->program.resize(0);
    delete current; current=0;

    parseCompounds(current_root);

    inputFile.close();
  }
  
}

//----------------------------------------------------------------------------

static void parsePrototype(const QCString &text)
{
  //printf("**** parsePrototype(%s) begin\n",text.data());
  if (text.isEmpty()) 
  {
    warn(yyFileName,yyLineNr,"Empty prototype found!");
    return;
  }

  //g_expectModuleDocs = FALSE;
  g_specialBlock = FALSE;
  //g_insideConstructor = FALSE;

  const char *orgInputString;
  int orgInputPosition;
  YY_BUFFER_STATE orgState;
  
  // save scanner state
  orgState = YY_CURRENT_BUFFER;
  yy_switch_to_buffer(yy_create_buffer(pyscanYYin, YY_BUF_SIZE));
  orgInputString = inputString; 
  orgInputPosition = inputPosition;

  // set new string
  inputString = text;
  inputPosition = 0;
  pyscanYYrestart( pyscanYYin );

  BEGIN( FunctionDec );

  pyscanYYlex();
  g_lexInit=TRUE;

  current->name = current->name.stripWhiteSpace();
  if (current->section == Entry::MEMBERDOC_SEC && current->args.isEmpty())
    current->section = Entry::VARIABLEDOC_SEC;

  // restore original scanner state

  YY_BUFFER_STATE tmpBuf = YY_CURRENT_BUFFER;
  yy_switch_to_buffer(orgState);
  yy_delete_buffer(tmpBuf);

  inputString = orgInputString; 
  inputPosition = orgInputPosition;

  //printf("**** parsePrototype end\n");
}

void pyscanFreeScanner()
{
#if defined(YY_FLEX_SUBMINOR_VERSION) 
  if (g_lexInit)
  {
    pyscanYYlex_destroy();
  }
#endif
}

//----------------------------------------------------------------------------

void PythonLanguageScanner::parseInput(const char *fileName,const char *fileBuf,Entry *root)
{
  g_thisParser = this;
  ::parseMain(fileName,fileBuf,root);

  // May print the AST for debugging purposes
  // printAST(global_root);
}

bool PythonLanguageScanner::needsPreprocessing(const QCString &)
{
  return FALSE;
}

void PythonLanguageScanner::parseCode(CodeOutputInterface &codeOutIntf,
    const char *scopeName,
    const QCString &input,
    bool isExampleBlock,
    const char *exampleName,
    FileDef *fileDef,
    int startLine,
    int endLine,
    bool inlineFragment,
    MemberDef *memberDef
    )
{
  ::parsePythonCode(codeOutIntf,scopeName,input,isExampleBlock,exampleName,
                    fileDef,startLine,endLine,inlineFragment,memberDef);
}

void PythonLanguageScanner::parsePrototype(const char *text)
{
  ::parsePrototype(text);

}

void PythonLanguageScanner::resetCodeParserState()
{
  ::resetPythonCodeParserState();
}

//----------------------------------------------------------------------------

#if !defined(YY_FLEX_SUBMINOR_VERSION) 
//----------------------------------------------------------------------------
extern "C" { // some bogus code to keep the compiler happy
  void pyscannerYYdummy() { yy_flex_realloc(0,0); } 
}
#endif

