#line 2 "lexer.c"
/* A lexical scanner generated by flex */

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

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#include <stdio.h>


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


#ifdef __cplusplus

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

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

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

#else	/* ! __cplusplus */

#if __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

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

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

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


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

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

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

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

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

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

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

#define YY_END_OF_BUFFER_CHAR 0

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

typedef struct yy_buffer_state *YY_BUFFER_STATE;

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

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

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

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

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

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

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


struct yy_buffer_state
	{
	FILE *yy_input_file;

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

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

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

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

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

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

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

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

static YY_BUFFER_STATE yy_current_buffer = 0;

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


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

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


int yyleng;

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

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

void yyrestart YY_PROTO(( FILE *input_file ));

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

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

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

#define yy_new_buffer yy_create_buffer

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

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

#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)

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

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

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

#define YY_NUM_RULES 82
#define YY_END_OF_BUFFER 83
static yyconst short int yy_accept[724] =
    {   0,
        0,    0,    0,   80,    0,    0,   83,   81,   49,   50,
       81,   81,   81,   81,   81,   52,   52,   81,   55,   55,
       55,   55,   55,   55,   55,   55,   55,   55,   55,   55,
       55,   55,   55,   55,   81,   49,   81,   80,   49,   50,
       80,   81,   80,   80,   80,   80,   52,   52,   80,   55,
       55,   55,   55,   55,   55,   55,   55,   55,   55,   55,
       55,   55,   55,   55,   55,   80,   62,   60,   62,    0,
       57,    0,   58,    0,   52,    0,   56,   53,   59,   51,
        0,   39,   55,   55,   55,   55,   55,   55,   55,   55,
       55,   55,   55,   55,   55,   55,   55,   55,   55,   55,

       55,   55,   55,   55,   55,   55,   55,   55,   40,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,   80,   80,    0,   80,   57,    0,   80,
       58,   80,   52,   80,   56,   53,   59,   51,   80,   39,
       55,   55,   55,   55,   55,   55,   55,   55,   55,   55,
       55,   55,   55,   55,   55,   55,   55,   55,   55,   55,
       55,   55,   55,   55,   55,   55,   40,   61,   53,   56,
       51,   54,   55,   55,   55,   55,   55,   55,   55,   55,
       55,   23,   55,   55,   55,   55,   55,   55,   55,   55,
       55,   55,   55,   55,   55,   55,   55,   55,   55,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,   11,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,   53,   56,   51,   54,
       55,   55,   55,   55,   55,   55,   55,   55,   55,   23,
       55,   55,   55,   55,   55,   55,   55,   55,   55,   55,
       55,   55,   55,   55,   55,   55,   55,    0,    0,    0,
       53,   55,   21,   20,   55,   55,   55,   29,   55,   55,
       24,   55,   55,   55,   55,   55,   55,   55,   55,   55,
       55,   55,   33,   55,   55,   55,   27,    0,    0,    0,
        0,    0,   75,   12,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,   79,   80,   80,   80,   53,   55,   21,   20,
       55,   55,   55,   29,   55,   55,   24,   55,   55,   55,
       55,   55,   55,   55,   55,   55,   55,   55,   33,   55,
       55,   55,   27,   53,   55,   55,   55,   13,   31,   55,
       34,   25,   55,   55,   55,   55,   55,   22,   55,   19,
       55,   55,   38,   55,   55,   55,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,   53,   55,
       55,   55,   13,   31,   55,   34,   25,   55,   55,   55,

       55,   55,   22,   55,   19,   55,   55,   38,   55,   55,
       55,   55,   55,   55,   55,   26,   55,   55,   55,   55,
       15,   55,   32,   14,   55,   55,   55,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
       55,   55,   55,   55,   26,   55,   55,   55,   55,   15,
       55,   32,   14,   55,   55,   55,   55,   55,   55,   55,
       55,   55,   55,   55,   17,   55,   18,   35,   55,   28,
        0,    0,    0,    0,    0,    0,    0,    3,    0,    0,
        0,    0,    0,    4,    0,    0,    0,    0,    0,    0,

        0,    0,   55,   55,   55,   55,   55,   55,   55,   55,
       17,   55,   18,   35,   55,   28,   55,   55,   55,   55,
       55,   55,   55,   37,   55,   30,   70,    0,   63,    0,
        0,    7,    0,    1,    8,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,   55,   55,   55,   55,
       55,   55,   55,   37,   55,   30,   55,   55,   55,   55,
       43,   55,   36,   16,    0,    0,    0,    0,    0,   77,
        0,    0,    0,    0,    0,    0,    0,    5,    0,    0,
       55,   55,   55,   55,   43,   55,   36,   16,   55,   55,
       55,   44,   55,   55,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    6,    0,    0,    0,    0,    0,   55,
       55,   55,   44,   55,   55,   55,   42,   55,   55,   55,
       55,    0,    0,    0,    0,    0,    0,   67,   10,   71,
        0,    0,    0,   74,    0,    0,   55,   42,   55,   55,
       55,   55,   41,   55,   55,   47,   48,    0,    0,    0,
       76,    0,    0,    0,    0,    0,    0,   72,   41,   55,
       55,   47,   48,   45,   46,    0,    0,    0,    0,    0,
        0,    0,    0,   78,   45,   46,    0,    0,    0,    0,
        0,    0,    0,   73,    0,    0,    0,    0,    9,    0,
        0,    0,    0,    0,    0,    2,    0,    0,    0,    0,

        0,    0,    0,    0,   65,    0,    0,    0,    0,   68,
        0,   64,    0,    0,    0,    0,   66,    0,    0,    0,
        0,   69,    0
    } ;

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

       42,   43,   44,   45,   46,   25,   47,   48,   49,   50,
       51,   52,   25,   53,   54,   55,   56,   57,   58,   59,
       60,   25,    1,   61,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    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[62] =
    {   0,
        1,    1,    2,    1,    3,    1,    1,    1,    4,    4,
        1,    5,    5,    1,    5,    5,    5,    5,    5,    5,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    5,    5,    5,
        5,    5,    5,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        1
    } ;

static yyconst short int yy_base[737] =
    {   0,
        0,   60,    0,   65,  124,  125, 1560, 1561, 1561, 1561,
       60,  127,  124,  126,  133,  133,  137, 1545,  132,  142,
      144,  146,  148,  150,  158,  152,  154,  160,  162,  164,
      167,  171,  169,  175, 1497,  181,  215,    0,  185,    0,
      204, 1538,  198,  215,  249,  182,  254,  258, 1542,  313,
      374,  159,  195,  188,  125,  231,  224,  236,  242,  249,
      250,  252,  273,  254,  279, 1494, 1561, 1561, 1543,  226,
     1561,  275, 1561,  270,  276, 1544, 1543,  319, 1561,    0,
        0, 1561,  275,  281,  283,  299,  326,  336,  285,  333,
      339,  341,  343,  345,  330,  348,  350,  360,  353,  356,

      358,  384,  362,  393,  396,  398,  401,  404, 1561,  342,
      397,  383, 1500,  362, 1508, 1507,  382, 1502,  391, 1495,
      393, 1500,  390,    0,  438,  436,  467,    0,  388,  455,
        0,  406,  463,  476,  537,  598,    0,  483,  648,    0,
     1522,  282,  416,  451,  458,  306,  441,  445,  468,  469,
      470,  471,  475,  472,  476,  479,  477,  482,  480,  481,
      483,  486,  500,  506,  494,  253,    0, 1561,  537,  499,
        0,    0,  544,  523,  555,  549,  559,  552,  565,  567,
      557,  563,  574,  577,  579,  584,  587,  606,  616,  620,
      618,  624,  626,  629,  613,  634,  637,  639,  643,  612,

      185, 1496, 1535,  463, 1502, 1500, 1488, 1501, 1500, 1561,
     1485, 1496, 1495,  483, 1485, 1492, 1477, 1493, 1476, 1487,
     1473, 1478, 1473, 1472, 1465, 1482,  662,  684,  552,    0,
      555,  597,  649,  654,  655,  662,  601,  675,  547, 1499,
      614,  540,  672,  676,  677,  608,  682,  684,  683,  687,
      688,  689,  694,  695,  693,  690,  700,  738,  702,  715,
      740,  745,  710,  712,  747,  749,  721,  751,  753,  755,
      757,  761,  764,  769,  771,  773,  775,  778,  780,  782,
      784,  787,  789,  796,  799,  802,  808, 1469, 1468, 1502,
     1461, 1457, 1561, 1561, 1465, 1460, 1473, 1462, 1464, 1469,

     1468, 1457, 1469, 1451, 1460, 1450, 1449, 1473, 1457, 1459,
     1454, 1444, 1561,  813,  819,  823,  827,  818, 1475, 1474,
      749,  745,  804, 1473,  791,  800, 1472,  797,  806,  815,
      824,  831,  833,  834,  836,  837,  838,  839, 1471,  840,
      841,  844, 1470,  858,  865,  870,  883,  877,  885,  889,
      893,  898,  901,  903,  905,  907,  909,  911,  913,  915,
      917,  919,  923,  925,  927,  930, 1441, 1440, 1448, 1443,
      888, 1432, 1445, 1433, 1429, 1434, 1440, 1440, 1439, 1432,
     1428, 1435, 1454, 1416, 1424, 1426, 1435, 1416,  931,  853,
      422,  922, 1448, 1447,  923, 1446, 1445,  907,  915,  927,

      929,  931, 1444,  928, 1443,  932,  933, 1442,  939,  940,
      941,  974,  976,  983,  985,  987,  989,  991, 1001, 1003,
     1006, 1008, 1010, 1012, 1014, 1019, 1016, 1410, 1422, 1409,
     1411, 1405, 1417, 1405, 1404, 1401, 1414, 1400, 1407, 1411,
     1398, 1408, 1399, 1397, 1397, 1391, 1395, 1398, 1404, 1404,
     1007,  628,  861, 1008, 1418,  964,  845, 1009,  952, 1417,
      850, 1416, 1415,  966, 1010,  943, 1025, 1037, 1039, 1044,
     1050, 1035, 1056, 1060, 1064, 1066, 1068, 1070, 1073, 1075,
     1395, 1381, 1391, 1392, 1413, 1390, 1414, 1561, 1388, 1387,
     1380, 1394, 1409, 1561, 1387, 1371, 1377, 1377, 1404, 1370,

     1371, 1370,  957, 1063, 1065,  720, 1033,  557, 1064, 1048,
     1394, 1067, 1393, 1392, 1069, 1391, 1088, 1084, 1093, 1090,
     1106, 1109, 1111, 1113, 1117, 1119, 1561, 1091, 1561, 1372,
     1356, 1561, 1360, 1561, 1561, 1368, 1349, 1357, 1359, 1357,
     1350, 1353, 1352, 1360, 1359, 1383, 1107, 1376, 1109, 1119,
     1072, 1112, 1113, 1375, 1115, 1374, 1131, 1134, 1138, 1150,
     1152, 1154, 1156, 1158, 1343, 1344, 1151, 1344, 1352, 1561,
     1340, 1350, 1367, 1335, 1342, 1337, 1345, 1561, 1368, 1333,
     1151, 1122, 1154, 1131, 1360, 1161, 1359, 1358, 1171, 1173,
     1176, 1180, 1186, 1188, 1329, 1167, 1328, 1336, 1337, 1334,

     1333, 1332, 1323, 1561, 1334, 1354, 1328, 1318, 1327, 1184,
     1183, 1186, 1344, 1185, 1343, 1203, 1207, 1209, 1211, 1213,
     1215, 1316, 1308, 1303, 1322, 1323, 1305, 1561, 1561, 1561,
     1319, 1310, 1306, 1561, 1315, 1313, 1204, 1331, 1203, 1330,
     1182, 1207, 1219, 1233, 1235, 1239, 1241, 1319, 1312, 1298,
     1561, 1308, 1302, 1299, 1300, 1304, 1302, 1561, 1320, 1212,
     1223, 1319, 1318, 1243, 1247, 1280, 1322, 1296, 1295, 1285,
     1279, 1280, 1291, 1561, 1309, 1308, 1278, 1281, 1311, 1274,
     1276, 1284, 1286, 1561, 1281, 1284, 1262, 1292, 1561, 1262,
     1234, 1249, 1211, 1223, 1212, 1561, 1216, 1209, 1205, 1216,

     1213, 1182, 1190, 1170, 1561, 1110, 1087, 1064,  989, 1561,
     1021, 1561,  937,  883,  744,  502, 1561,  434,  322,  147,
      124, 1561, 1561, 1267, 1272, 1277, 1279, 1281, 1286, 1291,
     1296, 1301, 1306, 1311,  124, 1316
    } ;

static yyconst short int yy_def[737] =
    {   0,
      723,    1,    1,  723,  724,  724,  723,  723,  723,  723,
      725,  726,  723,  727,  723,  723,  723,  723,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  723,  723,  723,  729,  729,  729,
      730,   37,  731,  729,  732,  729,  729,  729,  729,  733,
      733,   51,   51,   51,   51,   51,   51,   51,   51,   51,
       51,   51,   51,   51,   51,  729,  723,  723,  723,  725,
      723,  726,  723,  723,  723,  727,  727,  727,  723,  734,
      735,  723,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,

      728,  728,  728,  728,  728,  728,  728,  728,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  729,  729,  723,  730,  729,  723,  731,
      729,  729,  729,  732,  732,  732,  729,  736,  729,  729,
       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
       51,   51,   51,   51,   51,   51,  729,  723,  723,  727,
      734,  735,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  723,

      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  729,  136,  736,  139,
       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
       51,   51,   51,   51,   51,   51,   51,  723,  723,  727,
      727,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,

      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  729,  729,  136,  136,   51,   51,   51,
       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
       51,   51,   51,  723,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  729,   51,
       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,

       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
       51,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
       51,   51,   51,   51,   51,   51,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  728,  728,  728,  728,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,

      723,  723,   51,   51,   51,   51,   51,   51,   51,   51,
       51,   51,   51,   51,   51,   51,  728,  728,  728,  728,
      728,  728,  728,  728,  728,  728,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,   51,   51,   51,   51,
       51,   51,   51,   51,   51,   51,  728,  728,  728,  728,
      728,  728,  728,  728,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
       51,   51,   51,   51,   51,   51,   51,   51,  728,  728,
      728,  728,  728,  728,  723,  723,  723,  723,  723,  723,

      723,  723,  723,  723,  723,  723,  723,  723,  723,   51,
       51,   51,   51,   51,   51,  728,  728,  728,  728,  728,
      728,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,   51,   51,   51,   51,
       51,   51,  728,  728,  728,  728,  728,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,   51,   51,
       51,   51,   51,  728,  728,  723,  723,  723,  723,  723,
      723,  723,  723,  723,   51,   51,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,

      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,    0,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723
    } ;

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

       50,   50,   50,   52,   53,   54,   55,   56,   50,   50,
       57,   50,   58,   50,   59,   60,   61,   50,   62,   63,
       64,   65,   50,   50,   50,   66,   68,   68,  172,   73,
       69,   69,   73,   74,   76,   75,   75,   78,   78,   79,
       76,   77,   74,   80,   75,   75,   74,  141,   75,   75,
       76,   77,   76,   77,   76,   77,   76,   77,   76,   77,
       76,   77,   76,   77,   84,  722,   76,   77,   76,   77,
       76,   77,   76,   77,  148,   76,   77,   76,   77,   76,
       77,  141,  110,   76,   77,  111,  125,  721,  137,  126,
       86,   81,  138,   87,   85,   91,   88,   95,   89,   90,

      131,   93,   72,  131,   94,   92,  128,  128,   70,  143,
      141,   99,  100,   96,  101,  103,   97,  141,  106,   98,
      107,  102,  289,  104,  132,  108,  133,  133,   71,   71,
      105,  112,  113,  114,  115,  216,  116,  117,  147,  144,
      118,  119,  145,  120,  121,  146,  141,  122,  123,  124,
      124,  124,  124,  141,  124,  124,  124,  134,  141,  124,
      136,  136,  124,  132,  141,  133,  133,  132,  149,  133,
      133,  141,  141,  151,  141,  141,  141,   73,  150,  153,
       73,  169,  169,   76,   77,   74,  152,   75,   75,   76,
       77,   76,   77,   76,   77,  141,  157,  158,  257,  159,

      154,  141,  155,  164,  141,  156,  160,   76,   77,  124,
      173,  231,  139,  124,  124,  124,  124,  161,  124,  124,
      124,  134,  135,  124,  165,  162,  124,   76,  141,  166,
       78,   78,  163,  174,   76,   77,  175,  170,   76,   77,
      178,   76,   77,  110,   76,   77,  111,   76,   77,   76,
       77,   76,   77,   76,   77,  235,   76,   77,   76,   77,
      170,   76,   77,  176,   76,   77,   76,   77,   76,   77,
       76,   77,  720,  124,  124,  124,  124,  124,  184,  124,
      124,  124,  134,  135,  124,  177,  180,  124,  179,  185,
      203,  181,   76,   77,  183,  186,  142,  182,  188,  190,

      187,   76,   77,  189,   76,   77,   76,   77,  191,   76,
       77,  206,   76,   77,  194,  200,  115,  227,  227,  117,
      207,  192,  118,  201,  210,  120,  202,  223,  214,  122,
      211,  212,  215,  204,  124,  224,  193,  226,  141,  125,
      218,  216,  126,  219,  141,  220,  207,  196,  195,  199,
      719,  197,  221,  198,  225,  115,  452,  131,  117,   72,
      131,  118,  201,  141,  120,  202,  232,  141,  122,  128,
      128,   70,  132,  141,  133,  133,  124,  124,  124,  124,
      141,  124,  124,  124,  134,  124,  124,  171,  233,  124,
      141,  141,  141,  141,  141,  234,  236,  141,  141,  141,

      237,  141,  141,  141,  141,  141,  259,  260,  141,  718,
      261,  261,  291,  243,  292,  238,  141,  246,  250,  239,
      241,  244,  141,  242,  240,  248,  245,  247,  141,  301,
      249,   76,   77,  251,  302,  252,  124,  124,  124,  124,
      124,  253,  124,  124,  124,  134,  256,  124,  169,  169,
      124,  254,   76,   77,  124,  258,  171,   76,   77,  255,
       76,   77,  141,   76,   77,   76,   77,   76,   77,  141,
      263,   76,   77,   76,   77,   76,   77,  141,  258,  141,
      262,  328,   76,   77,  326,   76,   77,   76,   77,  552,
      267,  318,   76,   77,  270,   76,   77,  124,  124,  124,

      124,  124,  265,  124,  124,  124,  134,  264,  124,  136,
      136,  124,  266,  268,   76,   77,  228,  271,  272,  141,
      269,   76,   77,  141,   76,   77,   76,   77,   76,   77,
      141,  273,   76,   77,   76,   77,  141,   76,   77,  228,
      274,  275,   76,   77,  319,   76,   77,   76,   77,  324,
      141,   76,   77,  276,  283,  332,  505,  327,  124,  230,
      230,  206,  230,  230,  230,  230,  230,  230,  277,  278,
      288,  141,  279,  227,  227,  284,  141,  141,  280,  282,
      314,  281,  285,  287,  141,  230,  230,  230,  230,  230,
      230,  315,  316,  286,  141,  317,  317,  141,  141,  141,

      323,  320,  135,  314,  141,  141,  141,  321,  322,  141,
      141,  141,  141,  344,  344,  141,  141,  141,   76,   77,
       76,   77,  141,   76,  329,  135,  261,  261,  325,   76,
       77,  331,  330,  334,  333,  339,  340,  335,  341,  338,
      343,  336,  141,  337,  342,  259,  259,  550,   76,  344,
      344,  261,  261,   76,   77,   76,   77,   76,   77,   76,
       77,   76,   77,   76,   77,   76,   77,  141,  350,   76,
       77,  141,   76,   77,  345,  346,  347,   76,   77,   76,
       77,   76,   77,   76,   77,  717,   76,   77,   76,   77,
       76,   77,   76,   77,  351,   76,   77,   76,   77,  394,

      348,  354,  393,  349,   76,   77,  355,   76,   77,  352,
       76,   77,  356,  141,  353,  359,   76,   77,  357,  141,
      315,  315,  141,  362,  389,  389,  141,  361,  141,  358,
      389,  389,  396,  360,  317,  317,  364,  141,  317,  317,
      141,  135,  365,  399,  363,  135,  141,  390,  391,  392,
      398,  395,  400,  141,  397,  141,  141,  366,  141,  141,
      141,  141,  141,  141,  135,  401,  141,  141,  135,  344,
      344,  404,  141,   76,   77,  141,  402,  407,   76,   77,
      409,  506,  406,  141,  410,   76,   77,  403,  451,  405,
      716,   76,   77,   76,   77,  510,  408,   76,   77,  411,

      412,   76,   77,  513,  413,  414,   76,   77,  415,   76,
       77,   76,   77,   76,   77,   76,   77,   76,   77,   76,
       77,   76,   77,   76,   77,   76,   77,   76,   77,  141,
      416,   76,   77,   76,   77,   76,   77,  141,   76,   77,
      432,  433,  389,  389,  453,  141,  420,  454,  421,  141,
      141,  141,  417,  141,  141,  141,  423,  418,  456,  419,
      422,  141,  141,  141,  455,  141,  425,  427,  459,  457,
      460,  462,  547,  424,  141,  461,  426,  715,  466,  141,
      464,  458,   76,   77,   76,   77,  141,  463,  141,  465,
      516,   76,   77,   76,   77,   76,   77,   76,   77,   76,

       77,  509,  467,  470,  469,  468,  512,  471,  514,   76,
       77,   76,   77,  472,   76,   77,   76,   77,   76,   77,
       76,   77,   76,   77,   76,   77,  473,   76,   77,  141,
      507,  141,  141,   76,   77,  503,  508,  714,  504,  713,
      517,  474,  475,   76,   77,   76,   77,   76,   77,  551,
      511,  515,   76,   77,  519,  141,  478,  476,   76,   77,
      479,  477,  518,  480,   76,   77,  521,  522,   76,   77,
      141,  520,   76,   77,   76,   77,   76,   77,   76,   77,
      549,   76,   77,   76,   77,  141,  141,  141,  548,  141,
      585,  141,   76,   77,  141,  523,   76,   77,   76,   77,

      554,   76,   77,  553,  560,  712,  558,  525,  555,  556,
      565,  557,  524,  526,   76,   77,  559,   76,   77,   76,
       77,   76,   77,  566,  561,   76,   77,   76,   77,  141,
      581,  141,  583,  584,  141,  141,  711,  141,  611,   76,
       77,  141,   76,   77,  141,  562,   76,   77,  586,  589,
      590,  710,  563,  141,  587,  588,  613,  564,   76,   77,
       76,   77,   76,   77,   76,   77,   76,   77,  597,  610,
      593,  594,  598,  141,  591,  592,  141,  614,  615,   76,
       77,   76,   77,  141,   76,   77,  709,  616,   76,   77,
      612,  617,  618,  619,   76,   77,   76,   77,  623,  624,

      637,  638,  639,  640,  141,  141,  141,  141,  141,  662,
      621,   76,   77,  641,  620,   76,   77,   76,   77,   76,
       77,   76,   77,   76,   77,  141,  141,   76,   77,  141,
      708,  660,  707,  645,  141,  643,  659,  644,  663,  675,
      646,   76,   77,   76,   77,  141,  647,   76,   77,   76,
       77,   76,   77,  706,  676,   76,   77,  705,  704,  703,
      664,  702,  701,  700,  699,  698,  665,   67,   67,   67,
       67,   67,   70,   70,   70,   70,   70,   72,   72,   72,
       72,   72,   77,   77,   83,   83,  124,  124,  697,  124,
      124,  127,  127,  127,  127,  127,  130,  130,  130,  130,

      130,  135,  135,  696,  135,  135,  141,  141,  695,  141,
      141,  171,  694,  171,  171,  171,  229,  229,  229,  229,
      229,  693,  692,  691,  690,  689,  688,  687,  686,  685,
      141,  141,  684,  683,  682,  681,  680,  679,  678,  677,
      141,  141,  141,  674,  673,  672,  671,  670,  669,  668,
      667,  666,  661,  141,  658,  657,  656,  655,  654,  653,
      652,  651,  650,  649,  648,  642,  141,  636,  635,  634,
      633,  632,  631,  630,  629,  628,  627,  626,  625,  622,
      141,  141,  141,  609,  608,  607,  606,  605,  604,  603,
      602,  601,  600,  599,  596,  595,  141,  141,  582,  580,

      579,  578,  577,  576,  575,  574,  573,  572,  571,  570,
      569,  568,  567,  141,  141,  141,  141,  546,  545,  544,
      543,  542,  541,  540,  539,  538,  537,  536,  535,  534,
      533,  532,  531,  530,  529,  528,  527,  141,  141,  141,
      141,  502,  501,  500,  499,  498,  497,  496,  495,  494,
      493,  492,  491,  490,  489,  488,  487,  486,  485,  484,
      483,  482,  481,  433,  141,  141,  141,  141,  141,  141,
      141,  450,  449,  448,  447,  446,  445,  444,  443,  442,
      441,  440,  439,  438,  437,  436,  435,  434,  431,  430,
      429,  428,  141,  141,  141,  141,  141,  141,  388,  387,

      386,  385,  384,  383,  382,  381,  380,  379,  378,  377,
      376,  375,  374,  373,  372,  371,  370,  369,  368,  302,
      367,  141,  313,  288,  312,  311,  310,  309,  308,  307,
      306,  305,  304,  303,  300,  299,  298,  297,  296,  295,
      294,  293,  290,  218,  141,  222,  217,  213,  209,  208,
      205,   76,   76,  168,  167,  140,  129,  109,   82,  723,
        7,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,

      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723
    } ;

static yyconst short int yy_chk[1623] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    2,   11,   11,    2,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    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,    6,  735,   12,
        5,    6,   12,   13,   14,   13,   13,   14,   14,   15,
       19,   19,   16,   15,   16,   16,   17,   55,   17,   17,
       20,   20,   21,   21,   22,   22,   23,   23,   24,   24,
       26,   26,   27,   27,   20,  721,   25,   25,   28,   28,
       29,   29,   30,   30,   55,   31,   31,   33,   33,   32,
       32,   52,   36,   34,   34,   36,   39,  720,   46,   39,
       22,   16,   46,   22,   21,   25,   22,   28,   23,   24,

       43,   26,   43,   43,   27,   25,   41,   41,   41,   52,
       54,   31,   31,   29,   31,   32,   30,   53,   33,   30,
       34,   31,  201,   32,   44,   34,   44,   44,   70,   70,
       32,   37,   37,   37,   37,  201,   37,   37,   54,   53,
       37,   37,   53,   37,   37,   53,   57,   37,   37,   45,
       45,   45,   45,   56,   45,   45,   45,   45,   58,   45,
       45,   45,   45,   47,   59,   47,   47,   48,   56,   48,
       48,   60,   61,   57,   62,  166,   64,   72,   56,   59,
       72,   74,   74,   83,   83,   75,   58,   75,   75,   84,
       84,   85,   85,   89,   89,   63,   62,   62,  166,   62,

       60,   65,   61,   64,  142,   61,   62,   86,   86,   45,
       84,  142,   47,   50,   50,   50,   50,   63,   50,   50,
       50,   50,   50,   50,   65,   63,   50,   78,  146,   65,
       78,   78,   63,   85,   87,   87,   86,   78,   95,   95,
       89,   90,   90,  110,   88,   88,  110,   91,   91,   92,
       92,   93,   93,   94,   94,  146,   96,   96,   97,   97,
       78,   99,   99,   87,  100,  100,  101,  101,   98,   98,
      103,  103,  719,   50,   51,   51,   51,   51,   95,   51,
       51,   51,   51,   51,   51,   88,   91,   51,   90,   96,
      112,   92,  102,  102,   94,   97,   51,   93,   98,  100,

       97,  104,  104,   99,  105,  105,  106,  106,  101,  107,
      107,  114,  108,  108,  103,  111,  111,  132,  132,  111,
      114,  102,  111,  111,  117,  111,  111,  123,  119,  111,
      117,  117,  119,  112,   51,  123,  102,  129,  143,  125,
      121,  119,  125,  121,  391,  121,  129,  105,  104,  108,
      718,  106,  121,  107,  126,  126,  391,  130,  126,  130,
      130,  126,  126,  147,  126,  126,  143,  148,  126,  127,
      127,  127,  133,  144,  133,  133,  134,  134,  134,  134,
      145,  134,  134,  134,  134,  138,  134,  138,  144,  134,
      149,  150,  151,  152,  154,  145,  147,  153,  155,  157,

      148,  156,  159,  160,  158,  161,  170,  170,  162,  716,
      170,  170,  204,  154,  204,  149,  165,  156,  160,  150,
      152,  155,  163,  153,  151,  158,  155,  157,  164,  214,
      159,  174,  174,  160,  214,  161,  134,  135,  135,  135,
      135,  162,  135,  135,  135,  135,  165,  135,  169,  169,
      135,  163,  173,  173,  229,  169,  229,  176,  176,  164,
      178,  178,  242,  175,  175,  181,  181,  177,  177,  239,
      174,  182,  182,  179,  179,  180,  180,  231,  169,  508,
      173,  242,  183,  183,  239,  184,  184,  185,  185,  508,
      178,  231,  186,  186,  181,  187,  187,  135,  136,  136,

      136,  136,  176,  136,  136,  136,  136,  175,  136,  136,
      136,  136,  177,  179,  188,  188,  136,  183,  184,  232,
      180,  195,  195,  237,  189,  189,  191,  191,  190,  190,
      246,  185,  192,  192,  193,  193,  241,  194,  194,  136,
      186,  187,  196,  196,  232,  197,  197,  198,  198,  237,
      452,  199,  199,  188,  195,  246,  452,  241,  136,  139,
      139,  200,  139,  139,  139,  139,  139,  139,  189,  190,
      200,  233,  191,  227,  227,  196,  234,  235,  192,  194,
      227,  193,  197,  199,  236,  139,  139,  139,  139,  139,
      139,  228,  228,  198,  243,  228,  228,  238,  244,  245,

      236,  233,  228,  227,  247,  249,  248,  234,  235,  250,
      251,  252,  256,  259,  259,  255,  253,  254,  263,  263,
      264,  264,  257,  260,  243,  228,  260,  260,  238,  267,
      267,  245,  244,  248,  247,  253,  254,  249,  255,  252,
      257,  250,  506,  251,  256,  258,  258,  506,  261,  258,
      258,  261,  261,  262,  262,  265,  265,  266,  266,  268,
      268,  269,  269,  270,  270,  271,  271,  322,  267,  272,
      272,  321,  273,  273,  262,  262,  262,  274,  274,  275,
      275,  276,  276,  277,  277,  715,  278,  278,  279,  279,
      280,  280,  281,  281,  269,  282,  282,  283,  283,  322,

      265,  273,  321,  266,  284,  284,  274,  285,  285,  270,
      286,  286,  275,  325,  272,  278,  287,  287,  276,  328,
      314,  314,  326,  281,  314,  314,  323,  280,  329,  277,
      315,  315,  325,  279,  316,  316,  284,  330,  317,  317,
      318,  316,  285,  329,  282,  317,  331,  318,  318,  318,
      328,  323,  330,  332,  326,  333,  334,  286,  335,  336,
      337,  338,  340,  341,  316,  331,  342,  457,  317,  344,
      344,  334,  461,  345,  345,  390,  332,  337,  346,  346,
      340,  453,  336,  453,  341,  348,  348,  333,  390,  335,
      714,  347,  347,  349,  349,  457,  338,  350,  350,  342,

      345,  351,  351,  461,  346,  347,  352,  352,  347,  353,
      353,  354,  354,  355,  355,  356,  356,  357,  357,  358,
      358,  359,  359,  360,  360,  361,  361,  362,  362,  398,
      350,  363,  363,  364,  364,  365,  365,  399,  366,  366,
      371,  371,  389,  389,  392,  395,  356,  392,  357,  400,
      404,  401,  353,  402,  406,  407,  361,  354,  398,  355,
      359,  409,  410,  411,  395,  466,  364,  366,  401,  399,
      402,  406,  503,  362,  459,  404,  365,  713,  411,  503,
      409,  400,  412,  412,  413,  413,  456,  407,  464,  410,
      466,  414,  414,  415,  415,  416,  416,  417,  417,  418,

      418,  456,  412,  414,  413,  412,  459,  415,  464,  419,
      419,  420,  420,  415,  421,  421,  422,  422,  423,  423,
      424,  424,  425,  425,  427,  427,  417,  426,  426,  451,
      454,  458,  465,  467,  467,  451,  454,  711,  451,  709,
      467,  418,  419,  472,  472,  468,  468,  469,  469,  507,
      458,  465,  470,  470,  469,  507,  425,  420,  471,  471,
      426,  422,  468,  427,  473,  473,  471,  472,  474,  474,
      510,  470,  475,  475,  476,  476,  477,  477,  478,  478,
      505,  479,  479,  480,  480,  504,  509,  505,  504,  512,
      551,  515,  518,  518,  551,  473,  517,  517,  520,  520,

      510,  519,  519,  509,  520,  708,  518,  476,  512,  515,
      528,  517,  474,  479,  521,  521,  519,  522,  522,  523,
      523,  524,  524,  528,  521,  525,  525,  526,  526,  547,
      547,  549,  549,  550,  552,  553,  707,  555,  582,  557,
      557,  550,  558,  558,  582,  522,  559,  559,  552,  557,
      558,  706,  523,  584,  553,  555,  584,  525,  560,  560,
      561,  561,  562,  562,  563,  563,  564,  564,  567,  581,
      562,  562,  567,  581,  559,  560,  583,  586,  586,  589,
      589,  590,  590,  586,  591,  591,  704,  589,  592,  592,
      583,  590,  591,  591,  593,  593,  594,  594,  596,  596,

      610,  611,  612,  612,  641,  611,  610,  614,  612,  641,
      594,  616,  616,  614,  593,  617,  617,  618,  618,  619,
      619,  620,  620,  621,  621,  639,  637,  643,  643,  642,
      703,  639,  702,  619,  660,  616,  637,  618,  642,  660,
      620,  644,  644,  645,  645,  661,  621,  646,  646,  647,
      647,  664,  664,  701,  661,  665,  665,  700,  699,  698,
      644,  697,  695,  694,  693,  692,  645,  724,  724,  724,
      724,  724,  725,  725,  725,  725,  725,  726,  726,  726,
      726,  726,  727,  727,  728,  728,  729,  729,  691,  729,
      729,  730,  730,  730,  730,  730,  731,  731,  731,  731,

      731,  732,  732,  690,  732,  732,  733,  733,  688,  733,
      733,  734,  687,  734,  734,  734,  736,  736,  736,  736,
      736,  686,  685,  683,  682,  681,  680,  679,  678,  677,
      676,  675,  673,  672,  671,  670,  669,  668,  667,  666,
      663,  662,  659,  657,  656,  655,  654,  653,  652,  650,
      649,  648,  640,  638,  636,  635,  633,  632,  631,  627,
      626,  625,  624,  623,  622,  615,  613,  609,  608,  607,
      606,  605,  603,  602,  601,  600,  599,  598,  597,  595,
      588,  587,  585,  580,  579,  577,  576,  575,  574,  573,
      572,  571,  569,  568,  566,  565,  556,  554,  548,  546,

      545,  544,  543,  542,  541,  540,  539,  538,  537,  536,
      533,  531,  530,  516,  514,  513,  511,  502,  501,  500,
      499,  498,  497,  496,  495,  493,  492,  491,  490,  489,
      487,  486,  485,  484,  483,  482,  481,  463,  462,  460,
      455,  450,  449,  448,  447,  446,  445,  444,  443,  442,
      441,  440,  439,  438,  437,  436,  435,  434,  433,  432,
      431,  430,  429,  428,  408,  405,  403,  397,  396,  394,
      393,  388,  387,  386,  385,  384,  383,  382,  381,  380,
      379,  378,  377,  376,  375,  374,  373,  372,  370,  369,
      368,  367,  343,  339,  327,  324,  320,  319,  312,  311,

      310,  309,  308,  307,  306,  305,  304,  303,  302,  301,
      300,  299,  298,  297,  296,  295,  292,  291,  290,  289,
      288,  240,  226,  225,  224,  223,  222,  221,  220,  219,
      218,  217,  216,  215,  213,  212,  211,  209,  208,  207,
      206,  205,  203,  202,  141,  122,  120,  118,  116,  115,
      113,   77,   76,   69,   66,   49,   42,   35,   18,    7,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,

      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      723,  723
    } ;

static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;

/* The intent behind this definition is that it'll catch
 * any uses of REJECT which flex missed.
 */
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "lexer.l"
#define INITIAL 0
/*
 * The SIP lexer.
 *
 * Copyright (c) 2003
 * 	Riverbank Computing Limited <info@riverbankcomputing.co.uk>
 * 
 * This file is part of SIP.
 * 
 * This copy of SIP is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2, or (at your option) any later
 * version.
 * 
 * SIP is supplied in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * SIP; see the file LICENSE.  If not, write to the Free Software Foundation,
 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
#line 25 "lexer.l"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>

#include "sip.h"
#include "parser.h"


#ifndef FLEX_SCANNER
#error "Only flex is supported at the moment"
#endif


#define	YY_FATAL_ERROR(s)	fatallex(s)

#define	MAX_INCLUDE_DEPTH	10


static struct inputFile {
	int		lineno;		/* The line number. */
	YY_BUFFER_STATE	bs;		/* The flex buffer state handle. */
	char		*name;		/* The file name. */
	parserContext	pc;		/* The parser context. */
} inputFileStack[MAX_INCLUDE_DEPTH];

static int currentFile = -1;		/* Index of the current input file. */

static FILE *openFile(char *);
static void fatallex(char *);
#define code 1

#define ccomment 2

#line 1022 "lexer.c"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#define YY_RULE_SETUP \
	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 60 "lexer.l"


#line 1179 "lexer.c"

	if ( yy_init )
		{
		yy_init = 0;

#ifdef YY_USER_INIT
		YY_USER_INIT;
#endif

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

		if ( ! yyin )
			yyin = stdin;

		if ( ! yyout )
			yyout = stdout;

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

		yy_load_buffer_state();
		}

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

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

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

		yy_current_state = yy_start;
		yy_current_state += YY_AT_BOL();
yy_match:
		do
			{
			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
			if ( yy_accept[yy_current_state] )
				{
				yy_last_accepting_state = yy_current_state;
				yy_last_accepting_cpos = yy_cp;
				}
			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
				{
				yy_current_state = (int) yy_def[yy_current_state];
				if ( yy_current_state >= 724 )
					yy_c = yy_meta[(unsigned int) yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
			++yy_cp;
			}
		while ( yy_base[yy_current_state] != 1561 );

yy_find_action:
		yy_act = yy_accept[yy_current_state];
		if ( yy_act == 0 )
			{ /* have to back up */
			yy_cp = yy_last_accepting_cpos;
			yy_current_state = yy_last_accepting_state;
			yy_act = yy_accept[yy_current_state];
			}

		YY_DO_BEFORE_ACTION;


do_action:	/* This label is used only to access EOF actions. */


		switch ( yy_act )
	{ /* beginning of action switch */
			case 0: /* must back up */
			/* undo the effects of YY_DO_BEFORE_ACTION */
			*yy_cp = yy_hold_char;
			yy_cp = yy_last_accepting_cpos;
			yy_current_state = yy_last_accepting_state;
			goto yy_find_action;

case 1:
YY_RULE_SETUP
#line 62 "lexer.l"
{return TK_INCLUDE;}
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 63 "lexer.l"
{return TK_OPTINCLUDE;}
	YY_BREAK
case 3:
YY_RULE_SETUP
#line 64 "lexer.l"
{return TK_IMPORT;}
	YY_BREAK
case 4:
YY_RULE_SETUP
#line 65 "lexer.l"
{return TK_MODULE;}
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 66 "lexer.l"
{return TK_TIMELINE;}
	YY_BREAK
case 6:
YY_RULE_SETUP
#line 67 "lexer.l"
{return TK_PLATFORMS;}
	YY_BREAK
case 7:
YY_RULE_SETUP
#line 68 "lexer.l"
{return TK_FEATURE;}
	YY_BREAK
case 8:
YY_RULE_SETUP
#line 69 "lexer.l"
{return TK_LICENSE;}
	YY_BREAK
case 9:
YY_RULE_SETUP
#line 70 "lexer.l"
{return TK_EXPOSE;}
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 71 "lexer.l"
{return TK_MAPPEDTYPE;}
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 72 "lexer.l"
{return TK_IF;}
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 73 "lexer.l"
{return TK_END;}
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 74 "lexer.l"
{return TK_CLASS;}
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 75 "lexer.l"
{return TK_STRUCT;}
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 76 "lexer.l"
{return TK_PUBLIC;}
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 77 "lexer.l"
{return TK_PROTECTED;}
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 78 "lexer.l"
{return TK_PRIVATE;}
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 79 "lexer.l"
{return TK_SIGNALS;}
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 80 "lexer.l"
{return TK_SLOTS;}
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 81 "lexer.l"
{return TK_CHAR;}
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 82 "lexer.l"
{return TK_BOOL;}
	YY_BREAK
case 22:
YY_RULE_SETUP
#line 83 "lexer.l"
{return TK_SHORT;}
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 84 "lexer.l"
{return TK_INT;}
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 85 "lexer.l"
{return TK_LONG;}
	YY_BREAK
case 25:
YY_RULE_SETUP
#line 86 "lexer.l"
{return TK_FLOAT;}
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 87 "lexer.l"
{return TK_DOUBLE;}
	YY_BREAK
case 27:
YY_RULE_SETUP
#line 88 "lexer.l"
{return TK_VOID;}
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 89 "lexer.l"
{return TK_VIRTUAL;}
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 90 "lexer.l"
{return TK_ENUM;}
	YY_BREAK
case 30:
YY_RULE_SETUP
#line 91 "lexer.l"
{return TK_UNSIGNED;}
	YY_BREAK
case 31:
YY_RULE_SETUP
#line 92 "lexer.l"
{return TK_CONST;}
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 93 "lexer.l"
{return TK_STATIC;}
	YY_BREAK
case 33:
YY_RULE_SETUP
#line 94 "lexer.l"
{return TK_TRUE;}
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 95 "lexer.l"
{return TK_FALSE;}
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 96 "lexer.l"
{return TK_TYPEDEF;}
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 97 "lexer.l"
{return TK_NAMESPACE;}
	YY_BREAK
case 37:
YY_RULE_SETUP
#line 98 "lexer.l"
{return TK_OPERATOR;}
	YY_BREAK
case 38:
YY_RULE_SETUP
#line 99 "lexer.l"
{return TK_THROW;}
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 100 "lexer.l"
{return TK_SCOPE;}
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 101 "lexer.l"
{return TK_LOGICAL_OR;}
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 102 "lexer.l"
{return TK_PYOBJECT;}
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 103 "lexer.l"
{return TK_PYSLICE;}
	YY_BREAK
case 43:
YY_RULE_SETUP
#line 104 "lexer.l"
{return TK_PYSLICE;}	/* Deprecated. */
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 105 "lexer.l"
{return TK_SIPSIGNAL;}
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 106 "lexer.l"
{return TK_SIPRXCON;}
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 107 "lexer.l"
{return TK_SIPRXDIS;}
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 108 "lexer.l"
{return TK_SIPSLOTCON;}
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 109 "lexer.l"
{return TK_SIPSLOTDIS;}
	YY_BREAK
case 49:
YY_RULE_SETUP
#line 112 "lexer.l"
{				/* Ignore whitespace. */
	;
}
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 116 "lexer.l"
{				/* Maintain the line number. */
	++inputFileStack[currentFile].lineno;
}
	YY_BREAK
case 51:
YY_RULE_SETUP
#line 120 "lexer.l"
{			/* Ignore C++ style comments. */
	;
}
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 125 "lexer.l"
{			/* A signed decimal number. */
	yylval.number = strtol(yytext,NULL,0);
	return TK_NUMBER;
}
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 131 "lexer.l"
{/* A floating point number. */
	yylval.real = strtod(yytext,NULL);
	return TK_REAL;
}
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 137 "lexer.l"
{		/* An unsigned hexadecimal number. */
	yylval.number = strtol(yytext,NULL,16);
	return TK_NUMBER;
}
	YY_BREAK
case 55:
YY_RULE_SETUP
#line 143 "lexer.l"
{	/* An identifier name. */
	yylval.text = sipStrdup(yytext);
	return TK_NAME;
}
	YY_BREAK
case 56:
YY_RULE_SETUP
#line 149 "lexer.l"
{	/* A filename. */
	yylval.text = sipStrdup(yytext);
	return TK_FILENAME;
}
	YY_BREAK
case 57:
YY_RULE_SETUP
#line 155 "lexer.l"
{		/* A double-quoted string. */
	char *dp, *sp;

	/* Copy the string without the quotes. */

	yylval.text = sipMalloc(strlen(yytext) + 1);

	dp = yylval.text;
	sp = yytext;

	while (*sp != '\0')
	{
		if (*sp != '"')
			*dp++ = *sp;

		++sp;
	}

	*dp = '\0';

	return TK_STRING;
}
	YY_BREAK
case 58:
YY_RULE_SETUP
#line 179 "lexer.l"
{		/* A single-quoted character. */
	if (strlen(yytext) != 3)
		fatallex("Exactly one character expected between single quotes");

	yylval.qchar = yytext[1];

	return TK_QCHAR;
}
	YY_BREAK
case 59:
YY_RULE_SETUP
#line 189 "lexer.l"
{				/* Ignore C-style comments. */
	BEGIN ccomment;
}
	YY_BREAK
case 60:
YY_RULE_SETUP
#line 192 "lexer.l"
{
	++inputFileStack[currentFile].lineno;
}
	YY_BREAK
case 61:
YY_RULE_SETUP
#line 195 "lexer.l"
{
	BEGIN INITIAL;
}
	YY_BREAK
case 62:
YY_RULE_SETUP
#line 198 "lexer.l"
{
	;
}
	YY_BREAK
case 63:
YY_RULE_SETUP
#line 203 "lexer.l"
{			/* The software license. */
	BEGIN code;
	return TK_COPYING;
}
	YY_BREAK
case 64:
YY_RULE_SETUP
#line 208 "lexer.l"
{		/* The start of a from-type code block. */
	BEGIN code;
	return TK_FROMTYPE;
}
	YY_BREAK
case 65:
YY_RULE_SETUP
#line 213 "lexer.l"
{		/* The start of a to-type code block. */
	BEGIN code;
	return TK_TOTYPE;
}
	YY_BREAK
case 66:
YY_RULE_SETUP
#line 218 "lexer.l"
{	/* The start of a to-sub-class code block. */
	BEGIN code;
	return TK_TOSUBCLASS;
}
	YY_BREAK
case 67:
YY_RULE_SETUP
#line 223 "lexer.l"
{			/* The start of a C++ header code block. */
	BEGIN code;
	return TK_HEADERCODE;
}
	YY_BREAK
case 68:
YY_RULE_SETUP
#line 228 "lexer.l"
{		/* The start of an exported C++ header code block. */
	BEGIN code;
	return TK_EXPHEADERCODE;
}
	YY_BREAK
case 69:
YY_RULE_SETUP
#line 233 "lexer.l"
{	/* The start of a post-initialisation C++ code block. */
	BEGIN code;
	return TK_POSTINITCODE;
}
	YY_BREAK
case 70:
YY_RULE_SETUP
#line 238 "lexer.l"
{			/* The start of a C++ code block. */
	BEGIN code;
	return TK_CPPCODE;
}
	YY_BREAK
case 71:
YY_RULE_SETUP
#line 243 "lexer.l"
{			/* The start of a C++ member code block. */
	BEGIN code;
	return TK_MEMBERCODE;
}
	YY_BREAK
case 72:
YY_RULE_SETUP
#line 248 "lexer.l"
{			/* The start of a C++ virtual code block. */
	BEGIN code;
	return TK_VIRTUALCODE;
}
	YY_BREAK
case 73:
YY_RULE_SETUP
#line 253 "lexer.l"
{		/* The start of a pre-Python code block. */
	BEGIN code;
	return TK_PREPYCODE;
}
	YY_BREAK
case 74:
YY_RULE_SETUP
#line 258 "lexer.l"
{			/* The start of a Python code block. */
	BEGIN code;
	return TK_PYCODE;
}
	YY_BREAK
case 75:
YY_RULE_SETUP
#line 263 "lexer.l"
{				/* The start of a documentation block. */
	BEGIN code;
	return TK_DOC;
}
	YY_BREAK
case 76:
YY_RULE_SETUP
#line 268 "lexer.l"
{			/* The start of an exported documentation block. */
	BEGIN code;
	return TK_EXPORTEDDOC;
}
	YY_BREAK
case 77:
YY_RULE_SETUP
#line 273 "lexer.l"
{			/* The start of a Makefile code block. */
	BEGIN code;
	return TK_MAKEFILE;
}
	YY_BREAK
case 78:
YY_RULE_SETUP
#line 278 "lexer.l"
{		/* The start of an access code block. */
	BEGIN code;
	return TK_VARCODE;
}
	YY_BREAK
case 79:
YY_RULE_SETUP
#line 283 "lexer.l"
{			/* The end of a code block. */
	BEGIN INITIAL;
	return TK_END;
}
	YY_BREAK
case 80:
YY_RULE_SETUP
#line 288 "lexer.l"
{			/* The contents of a code block. */
	char *cp;
	struct inputFile *ifp;

	ifp = &inputFileStack[currentFile];

	yylval.codeb = sipMalloc(sizeof (codeBlock));

	yylval.codeb -> frag = sipStrdup(yytext);
	yylval.codeb -> linenr = ifp -> lineno;
	yylval.codeb -> filename = sipStrdup(ifp -> name);
	yylval.codeb -> next = NULL;

	/* Bump the line count. */

	for (cp = yytext; *cp != '\0'; ++cp)
		if (*cp == '\n')
			ifp -> lineno++;

	return TK_CODEBLOCK;
}
	YY_BREAK
case 81:
YY_RULE_SETUP
#line 310 "lexer.l"
{				/* Any else is returned as is. */
	return yytext[0];
}
	YY_BREAK
case 82:
YY_RULE_SETUP
#line 314 "lexer.l"
ECHO;
	YY_BREAK
#line 1803 "lexer.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(code):
case YY_STATE_EOF(ccomment):
	yyterminate();

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

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

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

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

			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state();

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

			yy_next_state = yy_try_NUL_trans( yy_current_state );

			yy_bp = yytext_ptr + YY_MORE_ADJ;

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

			else
				{
				yy_cp = yy_c_buf_p;
				goto yy_find_action;
				}
			}

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

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

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

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

			case EOB_ACT_CONTINUE_SCAN:
				yy_c_buf_p =
					yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state();

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

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

				yy_current_state = yy_get_previous_state();

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

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


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

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

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

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

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

	/* Try to read more data. */

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

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

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

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

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

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

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

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

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

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

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

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

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

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

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

		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

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

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

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

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

	yytext_ptr = &yy_current_buffer->yy_ch_buf[0];

	return ret_val;
	}


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

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

	yy_current_state = yy_start;
	yy_current_state += YY_AT_BOL();

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

	return yy_current_state;
	}


/* yy_try_NUL_trans - try to make a transition on the NUL character
 *
 * synopsis
 *	next_state = yy_try_NUL_trans( current_state );
 */

#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
	{
	register int yy_is_jam;
	register char *yy_cp = yy_c_buf_p;

	register YY_CHAR yy_c = 1;
	if ( yy_accept[yy_current_state] )
		{
		yy_last_accepting_state = yy_current_state;
		yy_last_accepting_cpos = yy_cp;
		}
	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
		{
		yy_current_state = (int) yy_def[yy_current_state];
		if ( yy_current_state >= 724 )
			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 == 723);

	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 314 "lexer.l"


/*
 * Hook into EOF handling.  Return 0 if there is more to process.
 */

int yywrap()
{
	struct inputFile *ifp;

	ifp = &inputFileStack[currentFile--];

	/* Tell the parser if this is the end of a file. */

	parserEOF(ifp -> name,&ifp -> pc);

	/* Tidy up this file. */

	fclose(yyin);
	free(ifp -> name);

	/* See if this was the original file. */

	if (currentFile < 0)
		return 1;

	yy_delete_buffer(YY_CURRENT_BUFFER);
	yy_switch_to_buffer(ifp -> bs);

	return 0;
}


/*
 * Set up an input file to be read by the lexer, opening it if necessary.
 */

void setInputFile(FILE *fp,char *name,parserContext *pc,int optional)
{
	char *fullname;

	if (currentFile >= MAX_INCLUDE_DEPTH - 1)
		fatal("Too many nested %%Include, %%OptionalInclude or %%Import statements\n");

	if (fp != NULL || (fp = openFile(name)) != NULL)
		fullname = sipStrdup(name);
	else
	{
		stringList *sl;

		fullname = NULL;

		for (sl = includeDirList; sl != NULL; sl = sl -> next)
		{
			if (fullname != NULL)
				free(fullname);

			fullname = concat(sl -> s,"/",name,NULL);

			if ((fp = openFile(fullname)) != NULL)
				break;
		}

		if (fp == NULL && !optional)
			fatal("Unable to find file \"%s\"\n",name);
	}

	if (fp != NULL)
	{
		yyin = fp;

		++currentFile;

		inputFileStack[currentFile].lineno = 1;
		inputFileStack[currentFile].name = fullname;
		inputFileStack[currentFile].pc = *pc;

		if (currentFile > 0)
		{
			inputFileStack[currentFile].bs = YY_CURRENT_BUFFER;
			yy_switch_to_buffer(yy_create_buffer(yyin,YY_BUF_SIZE));
		}
	}
}


/*
 * Open a file for reading or return NULL if it doesn't exist.  Any other error
 * is fatal.
 */

static FILE *openFile(char *name)
{
	FILE *fp;

	if ((fp = fopen(name,"r")) == NULL && errno != ENOENT)
		fatal("Error in opening file %s\n",name);

	return fp;
}


/*
 * Handle fatal yacc errors.
 */

void yyerror(char *s)
{
	if (currentFile < 0)
		fatal("Unexpected end of input\n");

	fatal("%s:%d: %s\n",
		inputFileStack[currentFile].name,
		inputFileStack[currentFile].lineno,
		s);
}


/*
 * Handle fatal lex errors.
 */

static void fatallex(char *s)
{
	fatal("%s:%d: Lexical analyser error: %s\n",
		inputFileStack[currentFile].name,
		inputFileStack[currentFile].lineno,
		s);
}
