#line 2 "/Users/phil/hg/sip/sip-4.18/sipgen/lexer.c"

#line 4 "/Users/phil/hg/sip/sip-4.18/sipgen/lexer.c"

#define  YY_INT_ALIGNED short int

/* A lexical scanner generated by flex */

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

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

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

/* end standard C headers. */

/* flex integer type definitions */

#ifndef FLEXINT_H
#define FLEXINT_H

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

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

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

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

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

#endif /* ! FLEXINT_H */

#ifdef __cplusplus

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

#else	/* ! __cplusplus */

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

#define YY_USE_CONST

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

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

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

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

/* 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. */
#ifndef YY_BUF_SIZE
#define YY_BUF_SIZE 16384
#endif

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

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

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

extern yy_size_t yyleng;

extern FILE *yyin, *yyout;

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

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

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

#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
	{
	FILE *yy_input_file;

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

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

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

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

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

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

    int yy_bs_lineno; /**< The line count. */
    int yy_bs_column; /**< The column count. */
    
	/* Whether to try to fill the input buffer when we reach the
	 * end of it.
	 */
	int yy_fill_buffer;

	int yy_buffer_status;

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

	};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */

/* Stack of input buffers. */
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */

/* We provide macros for accessing buffer states in case in the
 * future we want to put the buffer states in a more general
 * "scanner state".
 *
 * Returns the top of the stack, or NULL.
 */
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
                          ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
                          : NULL)

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

/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;
static yy_size_t yy_n_chars;		/* number of characters read into yy_ch_buf */
yy_size_t yyleng;

/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 0;		/* 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 (FILE *input_file  );
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer  );
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size  );
void yy_delete_buffer (YY_BUFFER_STATE b  );
void yy_flush_buffer (YY_BUFFER_STATE b  );
void yypush_buffer_state (YY_BUFFER_STATE new_buffer  );
void yypop_buffer_state (void );

static void yyensure_buffer_stack (void );
static void yy_load_buffer_state (void );
static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file  );

#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )

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

void *yyalloc (yy_size_t  );
void *yyrealloc (void *,yy_size_t  );
void yyfree (void *  );

#define yy_new_buffer yy_create_buffer

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

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

#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

/* Begin user sect3 */

typedef unsigned char YY_CHAR;

FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;

typedef int yy_state_type;

extern int yylineno;

int yylineno = 1;

extern char *yytext;
#define yytext_ptr yytext

static yy_state_type yy_get_previous_state (void );
static yy_state_type yy_try_NUL_trans (yy_state_type current_state  );
static int yy_get_next_buffer (void );
static void yy_fatal_error (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 = (yy_size_t) (yy_cp - yy_bp); \
	(yy_hold_char) = *yy_cp; \
	*yy_cp = '\0'; \
	(yy_c_buf_p) = yy_cp;

#define YY_NUM_RULES 162
#define YY_END_OF_BUFFER 163
/* This struct is not used in this scanner,
   but its presence is necessary. */
struct yy_trans_info
	{
	flex_int32_t yy_verify;
	flex_int32_t yy_nxt;
	};
static yyconst flex_int16_t yy_accept[1183] =
    {   0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
      163,  161,  101,  104,  161,  161,  161,  161,  161,  106,
      106,  161,  109,  109,  109,  109,  109,  109,  109,  109,
      109,  109,  109,  109,  109,  109,  109,  109,  109,  109,
      109,  161,  101,  161,  160,  159,  160,  160,  116,  114,
      116,  103,  109,  109,  109,  109,  109,  109,  109,  109,
      109,  109,  109,  109,  109,  109,  109,  109,  109,  101,
      161,  102,  101,  161,    0,  111,    0,  112,    0,  106,
        0,  110,  107,  110,  113,  105,  107,    0,  107,  106,
        0,   60,  109,  109,  109,  109,  109,  109,  109,  109,

      109,  109,  109,  109,  109,  109,  109,  109,  109,  109,
      109,  109,  109,  109,  109,  109,  109,  109,  109,  109,
      109,  109,  109,   61,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,  115,  109,  109,  109,
      109,  109,  109,  109,   82,  109,  109,  109,  109,  109,
      109,  109,  109,  109,  109,  109,  109,  109,    0,    0,
        0,    0,    0,    0,  107,   79,  110,  107,  105,  107,
        0,  107,  108,  109,  109,  109,  109,  109,  109,  109,
      109,  109,  109,  109,  109,   40,  109,  109,  109,  109,

      109,  109,  109,  109,  109,  109,  109,  109,  109,  109,
      109,  109,  109,  109,  109,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,   14,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,  109,  109,
      109,  109,  109,  109,   81,  109,  109,  109,  109,  109,
      109,  109,   90,  109,  109,  109,  109,  109,    0,    0,
      107,   53,  109,  109,  109,   38,   36,  109,  109,  109,
       46,  109,  109,  109,   41,  109,  109,  109,  109,  109,
      109,  109,  109,  109,  109,  109,  109,   51,  109,  109,

      109,   44,  109,    1,    0,    0,    0,    0,    0,    0,
        0,    0,    0,  151,   10,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,  158,  109,   99,  109,  109,
      109,  109,  109,  109,  109,   86,  109,  109,  109,  109,
      109,   93,  109,  109,   11,  109,  109,  109,  109,  109,
      109,  109,   25,   49,  109,  109,   52,   42,  109,  109,
      109,  109,  109,   39,  109,  109,   33,  109,  109,  109,
       57,  109,  109,  109,  109,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,  100,  109,  109,
      109,  109,  109,  109,  109,  109,   88,  109,  109,  109,
      109,  109,  109,   35,  109,  109,  109,  109,  109,  109,
      109,   43,  109,  109,  109,  109,  109,   27,  109,   47,
       50,   26,  109,  109,  109,  109,  109,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,  109,  109,  109,   80,  109,  109,  109,  109,  109,
      109,  109,  109,  109,  109,   34,  109,  109,  109,  109,
      109,  109,  109,  109,  109,  109,  109,  109,  109,  109,
      109,  109,   29,  109,   30,  109,   54,  109,   45,   37,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,   15,    0,    0,    0,    0,    0,    0,
        0,   19,    0,    0,    0,   22,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,  109,
      109,  109,  109,  109,  109,  109,  109,  109,  109,  109,
       98,   32,  109,  109,  109,  109,  109,  109,  109,  109,
      109,  109,  109,  109,   71,  109,   58,  109,   56,  109,
       59,   48,    0,    0,    0,    0,    0,    0,    0,    0,
        3,    0,    0,    0,  117,    0,    0,    0,    0,  122,
       13,    0,    0,    0,  155,   16,    0,    0,   17,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,  156,    0,    0,    0,    0,    0,    0,    0,
      109,  109,  109,  109,   84,   85,   87,  109,  109,  109,

      109,   31,  109,  109,  109,  109,  109,  109,  109,  109,
      109,  109,  109,  109,  109,  109,   55,   28,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,  153,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,   23,    0,   24,  132,    0,    0,  129,
        0,    0,    0,  109,  109,  109,  109,  109,   91,   92,
      109,  109,  109,  109,   65,   64,  109,  109,  109,   68,
      109,  109,   70,  109,  109,  109,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,  150,   12,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,   21,    0,
        0,    0,  147,    0,    0,    0,    0,    0,  109,  109,
      109,  109,  109,  109,   72,  109,  109,  109,   67,   63,
       78,  109,  109,  109,  109,   77,  154,    2,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,   18,  133,  131,    0,    0,  145,    0,    0,    0,
        0,    0,    0,    0,    0,    0,  109,  109,  109,  109,
      109,  109,   69,  109,   62,  109,  109,   75,   76,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,  152,    0,    0,    0,  137,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,  109,  109,  109,  109,  109,  109,  109,
       73,   74,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,  144,    0,    0,    0,    0,    0,    0,  149,
        0,    0,    0,    0,  109,  109,  109,  109,  109,  109,
       66,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,  146,    0,    0,    0,    0,
        0,  109,  109,  109,  109,   89,  109,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,  136,    0,    0,    0,    0,
        0,  124,    0,    0,    0,    0,  109,   96,  109,  109,
      109,  138,    0,    0,    0,    0,    0,    4,    0,    0,
        0,    0,    0,    7,    8,    0,    0,    0,    0,    0,
        0,   20,    0,    0,    0,  134,    0,    0,  109,  109,
      109,  109,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    9,    0,    0,  128,    0,  123,    0,    0,

        0,    0,    0,  109,  109,   83,  109,    0,    0,  142,
        0,    0,    0,    0,    0,  119,    0,    0,    0,    0,
        0,    0,    0,    0,    0,  109,  109,   94,    0,    0,
        0,    0,    5,    0,    0,    0,  121,    0,  126,    0,
        0,    0,  135,    0,  109,  109,  143,  140,    0,  139,
      118,    0,    0,    0,    0,    0,  130,  157,  109,  109,
      141,    0,    0,  148,    0,    0,  109,  109,  120,    0,
        0,  125,   95,  109,    6,  127,  109,  109,  109,  109,
       97,    0
    } ;

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

       49,   50,   51,   52,   53,   28,   54,   55,   56,   57,
       58,   59,   28,   60,   61,   62,   63,   64,   65,   66,
       67,   28,    1,   68,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

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

static yyconst flex_int32_t yy_meta[69] =
    {   0,
        1,    1,    2,    1,    1,    1,    1,    1,    1,    1,
        1,    3,    3,    3,    4,    4,    1,    4,    4,    4,
        4,    4,    4,    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,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    1
    } ;

static yyconst flex_int16_t yy_base[1191] =
    {   0,
        0,   67, 2728,   68,   69,   72,   74,   74, 2722,   79,
     2729, 2732, 2732, 2732,   81,   85,   78,   86,   93,  126,
     2662, 2710,   92,  102,  133,  139,   96,  144,  147,  154,
      158,  166,  170,  173,  181,  194,  203,  212,  217,  220,
      223, 2658,  111,  262, 2732, 2732,  124, 2703, 2732, 2732,
     2710, 2732,  230,  233,  254,  290,  238,  294,  298,  302,
      305,  308,  311,  314,  318,  350,  357,  324,  365,  167,
     2701, 2732,  195, 2700,  115, 2732,  197, 2732,   62, 2655,
      176,  370,  378,  198, 2732,    0,  410,  404, 2732, 2732,
        0, 2732,  374,  384,  417,  422,  425,  428,  431,  434,

      437,  444,  449,  454,  457,  465,  468,  472,  475,  480,
      483,  489,  492,  498,  504,  507,  518,  522,  527,  532,
      538,  541,  545, 2732,  247,    0,  313, 2694,   65,  190,
      203,  210,  113,  284, 2666,  346, 2659,  507, 2672, 2667,
      174, 2658, 2661,  327, 2691, 2655, 2732,  556,  559,  562,
      568,  575,  578,  587,  590,  593,  596,  600,  606,  614,
      617,  621,  627,  630,  638,  642,  654,  645,  349, 2689,
     2644,  366, 2687,  205,  657,  207,  671,  440,    0,  675,
       74,  449,    0,  697,  701,  704,  657,  707,  719,  722,
      725,  728,  731,  737,  740,  743,  746,  750,  756,  760,

      763,  775,  778,  782,  788,  791,  794,  797,  800,  805,
      814,  808,  819,  822,  828, 2682, 2660, 2644,  139, 2647,
      589, 2654, 2656, 2654,  637, 2656, 2643,  338, 2637, 2732,
     2639,  776, 2650,  155, 2634, 2647, 2632, 2646,  344, 2631,
      464, 2638, 2628, 2633, 2629, 2634, 2626, 2637,  831,  834,
      852,  855,  862,  865,  872,  875,  881,  885,  888,  891,
      899,  902,  905,  910,  913,  916,  929,  933, 2636,  937,
      943,  956,  962,  965,  969,  976,  986,  994,  997, 1001,
     1004, 1007, 1012, 1015, 1018, 1021, 1024, 1027, 1030, 1033,
     1036, 1039, 1050, 1053, 1061, 1077, 1080, 1083, 1087, 1090,

     1100, 1103, 1106, 2732, 2634, 2624, 2632, 2631, 2631, 2619,
      347, 2610, 2631, 2614, 2732, 2625, 2615, 2612, 2609, 2625,
     2614, 2608, 2647, 2608, 2610, 2602, 2601, 2613, 2612, 2601,
     2607, 2595, 2604, 2602, 2593, 2603, 2591,  117, 2593, 2590,
     2630, 2600, 2599, 2585, 2584, 2732, 1109, 1112, 1115, 1124,
     1130, 1134, 1137, 1140, 1143, 1147, 1157, 1160, 1164, 1168,
     1171, 1174, 1178, 1184, 2732, 1193, 1197, 1213, 1217, 1226,
     1229, 1235, 1238, 1241, 1253, 1260, 1263, 1266, 1269, 1272,
     1275, 1278, 1282, 1285, 1291, 1296, 1299, 1302, 1305, 1308,
     1318, 1326, 1329, 1338, 1343, 2584, 2611, 2581, 2587, 2578,

     2582, 2581, 2589, 2584, 2573, 2573, 2575, 2573, 2587, 2568,
     2575, 2580, 2583, 2569, 2566, 2562, 2571, 2578, 2565, 2571,
     2571, 2561, 2563, 2559, 2561, 2565, 2561, 2587, 2555, 2544,
     2561, 2560, 2550, 2552,  517,  256, 2543, 1346, 1349, 1352,
     1356, 1359, 1364, 1367, 1376, 1379, 1383, 1386, 1389, 1392,
     1395, 1402, 1405, 1413, 1416, 1427, 1419, 1453, 1456, 1459,
     1462, 1465, 1469, 1480, 1483, 1486, 1489, 1492, 1495, 1498,
     1501, 1504, 1507, 1514, 1517, 1520, 1524, 2544, 2537, 1504,
     2554, 2547, 2540, 2545, 2539, 2541, 2542, 2536, 2533, 2532,
     2546, 2532, 2538, 2545, 2525, 2540, 2525, 2538, 2540, 2527,

     2522, 2529, 2533, 2532, 2530, 2521, 2528, 2518, 2518, 2517,
     2520, 2510, 2511, 2550, 2521, 2515, 2509,  530, 2508, 2507,
     2519, 1534, 1540, 1545, 1548, 1558, 1564, 1567, 1576, 1570,
     1579, 1582, 1585, 1588, 1596, 1599, 1605, 1610, 1616, 1625,
     1640, 1643, 1646, 1651, 1619, 1655, 1659, 1664, 1667, 1670,
     1673, 1682, 1685, 1690, 1693, 1699, 1702, 1705, 1709, 1712,
     2543, 2531, 2498, 2508, 2510, 2509, 2497, 2511, 2506, 2501,
     2500, 2490, 2500, 2488, 2496, 2495, 2498, 2482, 2472, 2459,
     2459, 2469, 2468, 2732, 2467, 2460, 2467, 2464, 2457, 2473,
     2489,  541, 2462, 2486, 2445, 2732, 2451, 2440, 2449, 2437,

     2440, 2448, 2439, 2447, 2449, 2436, 2444, 2430, 2435, 1715,
     1721, 1724, 1731, 1737, 1742, 1745, 1748, 1751, 1757, 1760,
     1765, 1769, 1775, 1783, 1780, 1802, 1805, 1812, 1816, 1819,
     1822, 1831, 1834, 1844, 1837, 1851, 1854, 1857, 1862, 1865,
     1870, 1873, 2431, 2442, 2436, 2440, 2439, 2426, 2409, 2400,
     2732, 2390, 2403,  320, 2732, 1867, 2384, 2382, 2376, 2732,
     2732, 2378, 2395, 2354, 2732, 2732, 2359, 2361, 2732, 2336,
     2317, 2322, 2314, 2299, 2288, 2283, 2280, 2261, 2269, 2262,
     2247, 2265, 2732, 2234, 2219, 2219, 2201, 2212, 2194,  673,
     1878, 1881, 1886, 1895, 1898, 1902, 1905, 1908, 1919, 1922,

     1929, 1925, 1932, 1935, 1938, 1941, 1947, 1957, 1960, 1963,
     1974, 1977, 1981, 1986, 1989, 1992, 1999, 2004, 2207, 2194,
     2198, 2181, 2173, 2193, 2143, 2141, 2140, 2142, 2122, 2118,
     2116, 2112, 2112, 2097, 2107, 2084,  667, 2071, 2074, 2069,
     2050, 2090, 2732, 2040, 2050, 2045, 2043, 2061, 2031, 2017,
     2023, 2030, 2012, 2732, 2019, 2732, 2732, 2017, 2044, 2732,
     2037, 2005, 1989, 2007, 2010, 2014, 2017, 2020, 2025, 2028,
     2031, 2034, 2040, 2043, 2046, 2060, 2069, 2072, 2078, 2083,
     2089, 2092, 2095, 2102, 2105, 2108, 1986, 1965, 1959, 1988,
     1964, 1924, 1917, 1946, 1933, 1900, 1898,  385, 1882, 1881,

     1864, 1865, 2732, 2732, 1865, 1856, 1837, 1849, 1853, 1847,
     1835, 1814, 1811, 1810, 1805, 1792, 1781, 1788, 2732, 1782,
     1766, 1800, 2732, 1752, 1752, 1751,  136, 1747, 2111, 2115,
     2123, 2126, 2130, 2134, 2137, 2140, 2143, 2151, 2154, 2159,
     2167, 2172, 2180, 2183, 2186, 2189, 2732, 2732, 1742, 1738,
     1736, 1735, 1771, 1722, 1726, 1718, 1710, 1689, 1680, 1685,
     1683, 1695, 1682, 1683, 1664, 1649, 1642, 1643, 1671, 1626,
     1622, 2732, 2732, 2732, 1612, 1603, 2732, 1594, 1594, 1586,
     1623, 1592, 1588, 1571, 1573, 1547, 2195, 2198, 2203, 2206,
     2211, 2214, 2217, 2220, 2223, 2226, 2230, 2233, 2240, 1584,

     1535, 1524, 1516, 1505, 1517, 1517, 1515, 1518, 1504, 1490,
     1483, 1495, 1480, 1430, 2732, 1441, 1438, 1429, 2732, 1426,
     1409, 1412, 1397, 1398, 1399, 1389, 1397, 1385, 1393, 1379,
     1402, 1368, 1350, 2246, 2258, 2261, 2265, 2268, 2272, 2275,
     2279, 2282, 1327, 1334, 1332, 1312, 1304, 1298, 1284, 1315,
     1269, 1315, 1284, 1267, 1273, 1257, 1261, 1257, 1276, 1280,
     1245, 1211, 2732, 1248, 1200, 1201, 1215, 1208, 1208, 2732,
     1183, 1187, 1187, 1210, 2286, 2289, 2292, 2295, 2298, 2305,
     2314, 1185, 1172, 1170, 1198, 1166, 1165, 1157, 1146, 1143,
     1146, 1179, 1141, 1132, 1108, 1098, 1104, 1109, 1082, 1090,

     1077, 1075, 1083, 1085, 1048, 2732, 1060, 1059, 1057, 1027,
     1040, 2317, 2320, 2326, 2333, 2338, 2341, 1034, 1021, 1020,
     1020, 1027, 1011, 1021, 1020, 1009, 1012,  996,  966,  971,
      963,  942,  976,  938,  944, 2732,  971,  937,  935,  918,
      919, 2732,  922,  915,  943,  904, 2344, 2347, 2351, 2354,
     2357, 2732,  936,  934,  902,  879,  918, 2732,  873,  915,
      872,  883,  869, 2732, 2732,  860,  850,  844,  842,  832,
      833, 2732,  827,  814,  851, 2732,  804,  812, 2362, 2365,
     2375, 2380,   38,   54,   95,  202,  180,  222,  232,  244,
      264,  321, 2732,  317,  360, 2732,  426, 2732,  417,  433,

      440,  466,  468, 2383, 2386, 2389, 2392,  478,  500, 2732,
      519,  536,  546,  548,  595, 2732,  558,  572,  566,  583,
      579,  617,  613,  615,  625, 2395, 2405, 2408,  626,  629,
      652,  653, 2732,  659,  664,  663, 2732,  680, 2732,  709,
      688,  698, 2732,  701, 2414, 2418, 2732, 2732,  716, 2732,
     2732,  718,  722,  730,  723,  734, 2732, 2732, 2421, 2425,
     2732,  744,  770, 2732,  801,  802, 2431, 2435, 2732,  790,
      806, 2732, 2442, 2446, 2732, 2732, 2452, 2456, 2459, 2462,
     2469, 2732, 2522, 2526, 2530, 2534, 2536, 2538, 2542,  855
    } ;

static yyconst flex_int16_t yy_def[1191] =
    {   0,
     1182,    1, 1183, 1183, 1184, 1184,    1,    7,    1,    1,
     1182, 1182, 1182, 1182, 1185, 1186, 1182, 1187, 1182, 1182,
       20, 1182, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1182,
       44, 1182, 1182,   44, 1185, 1182, 1186, 1182, 1182,   20,
     1187, 1187, 1187, 1187, 1182, 1189, 1182, 1182, 1182, 1182,
     1190, 1182, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,

     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1182, 1182,   44, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1182,   44,
     1182, 1182,   44, 1182, 1182, 1187, 1187, 1187, 1189, 1182,
     1182, 1182, 1190, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,

     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1182, 1187,
     1187, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,

     1188, 1188, 1188, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1182, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1182, 1182, 1182, 1182, 1182,

     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,

     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,

     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,

     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,

     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1188, 1188, 1188, 1188,
     1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1188, 1182,

     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1188, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1188, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1188, 1188, 1188, 1188, 1188, 1188,
     1188, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,

     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1188, 1188, 1188, 1188, 1188, 1188, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1188, 1188, 1188, 1188,
     1188, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1188, 1188,
     1188, 1188, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,

     1182, 1182, 1182, 1188, 1188, 1188, 1188, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1188, 1188, 1188, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1188, 1188, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1188, 1188,
     1182, 1182, 1182, 1182, 1182, 1182, 1188, 1188, 1182, 1182,
     1182, 1182, 1188, 1188, 1182, 1182, 1188, 1188, 1188, 1188,
     1188,    0, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182
    } ;

static yyconst flex_int16_t yy_nxt[2801] =
    {   0,
       12,   13,   14,   13,   15,   12,   16,   12,   12,   12,
       12,   17,   18,   19,   20,   21,   22,   23,   23,   23,
       23,   23,   23,   23,   23,   23,   23,   23,   23,   23,
       24,   23,   23,   25,   23,   26,   23,   23,   23,   23,
       23,   23,   23,   23,   23,   27,   28,   29,   30,   31,
       23,   23,   32,   23,   33,   23,   34,   35,   36,   23,
       37,   38,   39,   40,   41,   23,   23,   42,   43,   47,
       46,   50,   44,   48,   50,   70,  175,  175,   51,   71,
       73,   51,   52,   76,   74,   76,   72,   78,  182,  182,
       79,   78,   80,   80,  220, 1108,   53,   81,   82,   81,

       83,   83,   85,   81,   84,   81,   86,   81,   84,   81,
       54, 1109,  125,   81,   84,   81,  126,   76,   55,   76,
       56,   57,  221,   58,   59,  144,   60,   61,   62,  145,
       63,   64,  228,   65,   66,   67,   68,   69,   87,   94,
       80,   80,  429, 1110,   81,   84,   81,   88,   89,  430,
       81,   84,   81,   97,   90,   81,   84,   81,   81,   84,
       81,  229,  307,   90,   96,   81,   84,   81,  169,   81,
       84,   81,  170,  308,   88,   89,   95,   81,   84,   81,
       90,   81,   84,   81,   81,   84,   81,   81,   90,   81,
      884,   91,   81,   84,   81,   98,  172,  885,   99,   78,

      173,  100,  104,   78,  101,   81,   84,   81,  329,   81,
      102,   81,  105,  330,   81,   84,   81,  108,   81,  103,
       81, 1111,  106,   81,   84,   81,  244,  107,   81,   84,
       81,   81,   84,   81,   81,   84,   81, 1112,  222,  109,
      245,   81,   84,   81,   81,   84,   81,  223,  125,   81,
       84,   81,  126,  110,  112,  113,  111,  114,  226,  224,
      116,  269,  227,  117,  115,   81,   84,   81,  225,  123,
      225,  118,  121,  120,  148,  519, 1113,  122,  119,  127,
      128,  129,  130,  131,  132,  133,  152,  134,  520, 1114,
      135,  136,  149,  137,  138,  101,  139,  140,  141,  142,

      143,   81,   84,   81, 1115,   81,   84,   81,  150,   81,
       84,   81, 1116,   81,   84,   81,   81,   84,   81,   81,
       84,   81,   81,   84,   81,   81,   84,   81,  144,   81,
       84,   81,  145,  230,  151,   81,   84,   81,  104,  231,
      232,   98,  729, 1117,   99,  216,  154,  100,  105,  155,
      169,  153,  157,  156,  170,  159,  730,  321,  106,  217,
      158,   81,   84,   81, 1118,  107,  162,  172,   81,   84,
       81,  173,  160,  161,  322,  218,   81,   84,   81, 1119,
      120,   81,  176,   81,  167,   81,   84,   81,  335,   81,
      234,   81,   83,   83,  235,   81,   84,   81,  163,  177,

      178,  112,  164,  236,  114,  116,  336,  402,  117,  165,
      403,  115,  184,  168,  181,  181,  118,  121,  182,  182,
      858,  859,  122,  166,  180,  180,  177,  178,   81,   84,
       81,   88,   89,   81,   84,   81,   81,   84,   81,   81,
       84,   81,   81,   84,   81,   81,   84,   81,   81,   84,
       81,   81,  185,   81,  186,   81,   84,   81,   88,   89,
       81,   84,   81,  182,  182,   81,   84,   81,   81,   84,
       81,   89,  188, 1120, 1121,  189,   81,   84,   81,   81,
       84,   81,  187,   81,   84,   81,   81,   84,   81, 1122,
      190,   81,   84,   81,   81,   84,   81, 1123,   89,  191,

       81,   84,   81,   81,   84,   81,  192,  193,  194,   81,
       84,   81,  338, 1124,  195,   81,   84,   81,   81,   84,
       81,  339, 1125,  199,  197, 1129,  196,  198,  202,   81,
       84,   81,  200,   81,   84,   81,  517,  201,   81,   84,
       81,  518,  204,   81,   84,   81,  203, 1130,  206,   81,
       84,   81,   81,   84,   81,  205,   81,   84,   81,  238,
      673,  239,  208,  207,  240,  674,  241,   81,   84,   81,
       81,   84,   81,   81,   84,   81, 1131,  209,  605,   81,
       84,   81,  606, 1132,  210,  211,   81,   84,   81,   81,
       84,   81,  212,  214, 1133, 1134,  215,  213,   81,   84,

       81,   81,   84,   81,   81,   84,   81,   81,   84,   81,
      249,   81,   84,   81, 1135, 1136,  251,   81,   84,   81,
     1137,  250,  252, 1138,  253,   81,   84,   81,   81,   84,
       81, 1139,   81,   84,   81, 1140, 1141,  254,   81,   84,
       81,   81,   84,   81,  310,  311,  258,  312,  255,   81,
       84,   81,  257,   81,   84,   81,   81,   84,   81,  256,
     1142,  259,  199, 1143,  261,   81,   84,   81,   81,   84,
       81,  175,  175, 1144, 1147,  260,  262, 1148,   88,   89,
      264,  181,  270,  316,   81,  271,  271,  805,  263,  180,
      180,  806,  762,  265,  763,  317,   88,   89,  318, 1149,

      266, 1150,  267,  807,  268,   88,   89, 1151,   81,   84,
       81,  276,   81,   84,   81,   81,   84,   81,   81,   84,
       81, 1152, 1153,   88,   89,  272,  273, 1154, 1155,  274,
       81,   84,   81,   81,   84,   81,   81,   84,   81,   81,
       84,   81,   81,   84,   81, 1156, 1157,  275,   81,   84,
       81,   81,   84,   81,   81,   84,   81,   81,   84,   81,
     1158,   81,   84,   81, 1161, 1162,  277,   81,   84,   81,
      280,   81,   84,   81,   81,   84,   81, 1163, 1164,  278,
     1165, 1166,  279,  281,  284,  282,   81,   84,   81,   81,
       84,   81, 1169,   81,   84,   81,  285,  283,  286,   81,

       84,   81,   81,   84,   81,   81,   84,   81,   81,   84,
       81,   81,   84,   81, 1170,  287,   81,   84,   81,   81,
       84,   81,  325,  288,  289,   81,   84,   81,  326,  290,
       81,   84,   81,   81,   84,   81,  327,  291,  292,   81,
       84,   81,   81,   84,   81,   81,   84,   81, 1171,  293,
     1172, 1175,  294,  298, 1176,  296,  295,  297,  183, 1103,
      300, 1102,  299,   81,   84,   81,   81,   84,   81,  302,
     1101, 1100,  303,   81,   84,   81,   81,   84,   81, 1099,
      301, 1098,  348,   81,   84,   81,   81,   84,   81, 1097,
     1096,  347,   81,   84,   81,  349,   81,   84,   81,   81,

       84,   81,   81,   84,   81, 1095,  351, 1094, 1093,  350,
       81,   84,   81,   81,   84,   81,   81,   84,   81, 1092,
      352,   81,   84,   81,   81,   84,   81,   81,   84,   81,
     1091,  354, 1090,  355, 1089, 1088,  356, 1087, 1086,  353,
       81,   84,   81,  357,   81,   84,   81,  358,   81, 1085,
       81,  271,  271, 1084,   81, 1083,   81,  271,  271,  359,
     1078,  361, 1077, 1076,  362,  178,  360,   81,   84,   81,
     1075, 1074,  363,   81,   84,   81,   81,   84,   81, 1073,
       81,   84,   81, 1072, 1071,  366,  368,   81,   84,   81,
     1070, 1069,  178,  364, 1068, 1067,  367,   81,   84,   81,

     1066,  369,  370,  371,  372,   81,   84,   81,   81,   84,
       81, 1065,   81,   84,   81,   81,   84,   81,   81,   84,
       81, 1064, 1063,   81,   84,   81,   81,   84,   81,   81,
       84,   81,   81,   84,   81,   81,   84,   81,   81,   84,
       81,   81,   84,   81,   81,   84,   81,   81,   84,   81,
       81,   84,   81, 1062,  373,  375, 1061, 1060,  374,  376,
      377,   81,   84,   81,   81,   84,   81, 1059,  380, 1058,
     1057,  381,   81,   84,   81, 1056,  378, 1055,  382, 1054,
     1053,  379, 1052,  385, 1046,  383, 1045,  386,   81,   84,
       81,   81,   84,   81,   81,   84,   81,  384,   81,   84,

       81,   81,   84,   81, 1044,  388, 1043,  389, 1042, 1041,
      387,   81,   84,   81,   81,   84,   81,   81,   84,   81,
       81,   84,   81,   81,   84,   81,   81,   84,   81, 1040,
     1039,  390, 1038, 1037,  392,   81,   84,   81, 1036, 1035,
      393,   81,   84,   81,  391,   81,   84,   81,   81,   84,
       81,   81,   84,   81,   81,   84,   81,  438,   81,   84,
       81, 1034,  394, 1033, 1032,  395, 1031,  440,   81,   84,
       81,   81,   84,   81,  439,   81,   84,   81,  442,   81,
       84,   81,   81,   84,   81,   81,   84,   81, 1030,   81,
       84,   81,  441, 1029,  443,   81,   84,   81, 1028,  445,

     1027, 1026,  444, 1025,   81,   84,   81,  379,   81,   84,
       81, 1024,  449, 1023,  446, 1022,  386, 1021, 1020,  447,
     1019,  392,  451,  453,   81,   84,   81,  448,   81,   84,
       81,  450, 1018,  454, 1011, 1010,  452,   81,   84,   81,
       81,   84,   81,  455, 1009, 1008,   81,   84,   81,   81,
       84,   81,   81,   84,   81, 1007, 1006,  457,  456, 1005,
      459, 1004, 1003,  460,   81,   84,   81, 1002, 1001,  458,
      461,   81,   84,   81,   81,   84,   81,   81,   84,   81,
       81,   84,   81,   81,   84,   81,   81,   84,   81,   81,
       84,   81, 1000,   81,   84,   81,   81,   84,   81,  999,

      998,  462,   81,   84,   81,  997,  463,   81,   84,   81,
       81,   84,   81,   81,   84,   81,   81,   84,   81,   81,
       84,   81,  996,  995,  467,  994,  993,  464,  468,   81,
       84,   81,  992,  465,  991,  990,  466,   81,   84,   81,
       81,   84,   81,  470,  989,  469,  988,  987,  471,   81,
       84,   81,  473,  986,   81,   84,   81,   81,   84,   81,
       81,   84,   81,   81,   84,   81,  472,   81,   84,   81,
       81,   84,   81,  985,  474,   81,   84,   81,   81,   84,
       81,  984,  476,  983,  982,  475,  477,   81,   84,   81,
       81,   84,   81,  522,   81,   84,   81,   81,   84,   81,

       81,   84,   81,   81,   84,   81,   81,   84,   81,  974,
      524,  527,  523,   81,   84,   81,   81,   84,   81,  973,
      525,  972,  535,  526,   81,   84,   81,   81,   84,   81,
       81,   84,   81,  971,  530,  529,  528,  545,   81,   84,
       81,  970,  969,  469,  968,  538,  539,  540,  536,  967,
      531,  966,  965,  532,  533,  541,  964,  537,  542,  534,
      963,  962,  543,  544,   81,   84,   81,   81,   84,   81,
       81,   84,   81,   81,   84,   81,   81,   84,   81,  547,
       81,   84,   81,  961,  546,  960,  959,  549,  958,  957,
      548,   81,   84,   81,   81,   84,   81,   81,   84,   81,

       81,   84,   81,   81,   84,   81,   81,   84,   81,   81,
       84,   81,   81,   84,   81,   81,   84,   81,   81,   84,
       81,  550,  563,  564,  551,   81,   84,   81,   81,   84,
       81,   81,   84,   81,  553,   81,   84,   81,  565,  566,
      552,  956,  955,  567,  954,   81,   84,   81,  953,  952,
      554,   81,   84,   81,  951,  555,   81,   84,   81,   81,
       84,   81,  950,  557,  949,  558,  948,  947,  556,   81,
       84,   81,  946,  945,  559,   81,   84,   81,   81,   84,
       81,   81,   84,   81,  944,  560,  610,   81,   84,   81,
       81,   84,   81,   81,   84,   81,   81,   84,   81,   81,

       84,   81,  611,  943,  933,  613,  612,   81,   84,   81,
       81,   84,   81,  617,  614,  615,   81,   84,   81,  932,
      616,   81,   84,   81,  622,  931,  619,   81,   84,   81,
       81,   84,   81,  625,  930,  620,   81,   84,   81,  929,
      623,  618,  928,  927,  621,  632,  926,  624,  925,  924,
      626,   81,   84,   81,   81,   84,   81,   81,   84,   81,
      923,  628,   81,   84,   81,  627,   81,   84,   81,  922,
       81,   84,   81,  633,  629,   81,   84,   81,   81,   84,
       81,   81,   84,   81,   81,   84,   81,  921,  630,  634,
      920,  919,  631,   81,   84,   81,   81,   84,   81,  918,

      635,   81,   84,   81,   81,   84,   81,  917,  916,  636,
       81,   84,   81,   81,   84,   81,   81,   84,   81,  638,
       81,   84,   81,   81,   84,   81,   81,   84,   81,  915,
      914,  637,   81,   84,   81,   81,   84,   81,  640,  913,
      912,  639,   81,   84,   81,  911,  910,  641,   81,   84,
       81,  909,  642,   81,   84,   81,   81,   84,   81,   81,
       84,   81,   81,   84,   81,  908,  907,  693,   81,   84,
       81,   81,   84,   81,  694,  691,   81,   84,   81,  692,
       81,   84,   81,  906,  905,  695,   81,   84,   81,  904,
      696,   81,   84,   81,   81,   84,   81,  903,  902,  697,

      901,  900,  698,  703,  702,  704,  886,  883,  705,  882,
      699,  881,  700,   81,   84,   81,   81,   84,   81,  880,
      879,  706,  701,   81,   84,   81,  878,   81,   84,   81,
       81,   84,   81,   81,   84,   81,  877,  876,  708,  875,
      707,  709,   81,   84,   81,   81,   84,   81,   81,   84,
       81,  710,  712,  874,  711,   81,   84,   81,  873,  872,
      713,  714,   81,   84,   81,   81,   84,   81,   81,   84,
       81,  871,  716,   81,   84,   81,   81,   84,   81,  870,
      715,   81,   84,   81,   81,   84,   81,  731,  732,   81,
       84,   81,   81,   84,   81,  869,  733,   81,   84,   81,

      868,  867,  734,  866,  865,  717,   81,   84,   81,   81,
       84,   81,  718,   81,   84,   81,   81,   84,   81,   81,
       84,   81,  864,  863,  766,  862,  764,  861,  860,  765,
       81,   84,   81,   81,   84,   81,   81,   84,   81,  767,
       81,   84,   81,   81,   84,   81,   81,   84,   81,   81,
       84,   81,   81,   84,   81,  857,  768,  773,   81,   84,
       81,  856,  855,  772,  854,  853,  774,  769,   81,   84,
       81,   81,   84,   81,   81,   84,   81,  775,  777,  778,
      770,  852,  851,  776,  771,   81,   84,   81,   81,   84,
       81,  779,   81,   84,   81,  780,  781,   81,   84,   81,

       81,   84,   81,   81,   84,   81,  850,  849,  784,  785,
       81,   84,   81,  848,  783,   81,   84,   81,   81,   84,
       81,   81,   84,   81,  782,   81,   84,   81,   81,   84,
       81,   81,   84,   81,  847,  786,   81,   84,   81,   81,
       84,   81,   81,   84,   81,   81,   84,   81,  828,  827,
      829,   81,   84,   81,   81,   84,   81,   81,   84,   81,
      837,  836,  826,  825,  833,  824,  831,  823,  822,  830,
      835,   81,   84,   81,  821,  820,  832,  819,  818,  834,
       81,   84,   81,   81,   84,   81,  817,  816,  838,   81,
       84,   81,  815,  839,   81,   84,   81,  814,  813,  840,

       81,   84,   81,   81,   84,   81,   81,   84,   81,  812,
      811,  842,  843,   81,   84,   81,   81,   84,   81,   81,
       84,   81,   81,   84,   81,  841,   81,   84,   81,  810,
      845,  809,  808,  844,   81,   84,   81,   81,   84,   81,
      804,   81,   84,   81,  846,   81,   84,   81,   81,   84,
       81,   81,   84,   81,   81,   84,   81,  803,  888,  802,
      801,  894,   81,   84,   81,   81,   84,   81,  800,  887,
       81,   84,   81,  799,  893,  798,  890,  891,   81,   84,
       81,  797,  889,   81,   84,   81,  796,  895,  795,  794,
      892,   81,   84,   81,   81,   84,   81,   81,   84,   81,

       81,   84,   81,  896,  793,  897,   81,   84,   81,   81,
       84,   81,  792,  898,   81,   84,   81,   81,   84,   81,
      791,  899,   81,   84,   81,   81,   84,   81,   81,   84,
       81,   81,   84,   81,   81,   84,   81,   81,   84,   81,
      790,   81,   84,   81,   81,   84,   81,  789,  940,  788,
      935,   81,   84,   81,  787,  761,  941,   81,   84,   81,
      760,  934,  759,  938,  936,  942,  758,  757,  937,   81,
       84,   81,   81,   84,   81,  939,   81,   84,   81,   81,
       84,   81,  756,   81,   84,   81,   81,   84,   81,  975,
       81,   84,   81,   81,   84,   81,  981,   81,   84,   81,

       81,   84,   81,   81,   84,   81,   81,   84,   81,   81,
       84,   81,  755,  754,  976,  980,   81,   84,   81,  753,
      978,  752,  751,  977,  979,   81,   84,   81,   81,   84,
       81,   81,   84,   81, 1012,  750, 1014,   81,   84,   81,
      749, 1013,  748, 1015,   81,   84,   81,  747, 1016,   81,
       84,   81,   81,   84,   81,   81,   84,   81,   81,   84,
       81, 1017,   81,   84,   81,   81,   84,   81,   81,   84,
       81,  746, 1080,   81,   84,   81,   81,   84,   81,  745,
     1049, 1048, 1047,  744,  743, 1051,   81,   84,   81, 1050,
     1079,   81,   84,   81,   81,   84,   81,   81,   84,   81,

       81,   84,   81,   81,   84,   81,   81,   84,   81,  742,
     1104,  741, 1082,  740,  739, 1081,   81,   84,   81,   81,
       84,   81,  738,  737, 1105,   81,   84,   81, 1107,   81,
       84,   81,   81,   84,   81, 1106,   81,   84,   81,  736,
      735, 1126,   81,   84,   81, 1127,   81,   84,   81, 1168,
      728,  727, 1128,   81,   84,   81, 1145,   81,   84,   81,
      726,  725, 1146,   81,   84,   81, 1159,   81,   84,   81,
       81,   84,   81,   81,   84,   81,  724, 1160, 1167, 1174,
       81,   84,   81,  723,  722,  721,  720, 1173,  719,  690,
      689,  688,  687,  686,  685,  684,  683,  682,  681, 1178,

      680,  679, 1177,  678,  677,  676,  675, 1180,  672,  671,
     1179,  670,  669,  668,  667,  666,  665,  664,  663,  662,
      661, 1181,   45,   45,   45,   45,   49,   49,   49,   49,
       75,   75,   75,   75,   77,   77,   77,   77,   84,   84,
       93,   93,  179,  660,  179,  179,  659,  658,  657,  656,
      655,  654,  653,  652,  651,  650,  649,  648,  647,  646,
      645,  644,  643,  609,  608,  607,  604,  603,  602,  601,
      600,  599,  598,  597,  596,  595,  594,  593,  592,  591,
      590,  589,  588,  587,  586,  585,  584,  583,  582,  581,
      580,  579,  578,  577,  576,  575,  574,  573,  572,  571,

      570,  569,  568,  562,  561,  521,  516,  515,  514,  513,
      512,  511,  510,  509,  508,  507,  506,  505,  504,  503,
      502,  501,  500,  499,  498,  497,  496,  495,  494,  493,
      492,  491,  490,  489,  488,  487,  486,  485,  484,  483,
      482,  481,  480,  479,  478,  437,  436,  435,  434,  433,
      432,  431,  428,  427,  426,  425,  424,  423,  422,  421,
      420,  419,  418,  417,  416,  415,  414,  413,  412,  411,
      410,  409,  408,  407,  406,  405,  404,  401,  400,  399,
      398,  397,  396,  365,  346,  345,  344,  343,  342,  341,
      340,  337,  334,  333,  332,  331,  328,  324,  323,  320,

      319,  315,  314,  313,  309,  306,  305,  304,  174,  225,
      171,  248,  146,  247,  246,  243,  242,  237,  233,  219,
     1182,  174,  171,  147,  146,  124,   92, 1182, 1182,   72,
       46,   11, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182

    } ;

static yyconst flex_int16_t yy_chk[2801] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    4,
        4,    5,    2,    4,    6,    8,   79,   79,    5,    8,
       10,    6,    7,   15,   10,   15,   10,   16,  181,  181,
       17,   16,   17,   17,  129, 1083,    7,   18,   18,   18,

       18,   18,   19,   23,   23,   23,   19,   27,   27,   27,
        7, 1084,   43,   24,   24,   24,   43,   75,    7,   75,
        7,    7,  129,    7,    7,   47,    7,    7,    7,   47,
        7,    7,  133,    7,    7,    7,    7,    7,   20,   24,
       20,   20,  338, 1085,   25,   25,   25,   20,   20,  338,
       26,   26,   26,   27,   20,   28,   28,   28,   29,   29,
       29,  133,  219,   20,   26,   30,   30,   30,   70,   31,
       31,   31,   70,  219,   20,   20,   25,   32,   32,   32,
       20,   33,   33,   33,   34,   34,   34,   81,   20,   81,
      827,   20,   35,   35,   35,   28,   73,  827,   28,   77,

       73,   28,   31,   77,   29,   36,   36,   36,  234,   84,
       30,   84,   31,  234,   37,   37,   37,   34,  176,   30,
      176, 1086,   32,   38,   38,   38,  141,   33,   39,   39,
       39,   40,   40,   40,   41,   41,   41, 1087,  130,   35,
      141,   53,   53,   53,   54,   54,   54,  130,  125,   57,
       57,   57,  125,   36,   37,   37,   36,   37,  132,  131,
       38,  174,  132,   38,   37,   55,   55,   55,  131,   41,
      174,   38,   40,   39,   53,  436, 1088,   40,   38,   44,
       44,   44,   44,   44,   44,   44,   57,   44,  436, 1089,
       44,   44,   54,   44,   44,   57,   44,   44,   44,   44,

       44,   56,   56,   56, 1090,   58,   58,   58,   55,   59,
       59,   59, 1091,   60,   60,   60,   61,   61,   61,   62,
       62,   62,   63,   63,   63,   64,   64,   64,  144,   65,
       65,   65,  144,  134,   56,   68,   68,   68,   58,  134,
      134,   56,  654, 1092,   56,  127,   59,   56,   58,   60,
      169,   58,   62,   61,  169,   63,  654,  228,   60,  127,
       62,   66,   66,   66, 1094,   62,   65,  172,   67,   67,
       67,  172,   64,   64,  228,  127,   69,   69,   69, 1095,
       68,   82,   82,   82,   68,   93,   93,   93,  239,   83,
      136,   83,   83,   83,  136,   94,   94,   94,   66,   83,

       83,   66,   66,  136,   66,   67,  239,  311,   67,   67,
      311,   66,   94,   69,   88,   88,   67,   69,   88,   88,
      798,  798,   69,   67,   87,   87,   83,   83,   95,   95,
       95,   87,   87,   96,   96,   96,   97,   97,   97,   98,
       98,   98,   99,   99,   99,  100,  100,  100,  101,  101,
      101,  178,   95,  178,   96,  102,  102,  102,   87,   87,
      103,  103,  103,  182,  182,  104,  104,  104,  105,  105,
      105,  182,   98, 1097, 1099,   99,  106,  106,  106,  107,
      107,  107,   97,  108,  108,  108,  109,  109,  109, 1100,
      100,  110,  110,  110,  111,  111,  111, 1101,  182,  101,

      112,  112,  112,  113,  113,  113,  102,  103,  104,  114,
      114,  114,  241, 1102,  105,  115,  115,  115,  116,  116,
      116,  241, 1103,  109,  107, 1108,  106,  108,  111,  117,
      117,  117,  110,  118,  118,  118,  435,  110,  119,  119,
      119,  435,  113,  120,  120,  120,  112, 1109,  115,  121,
      121,  121,  122,  122,  122,  114,  123,  123,  123,  138,
      592,  138,  116,  115,  138,  592,  138,  148,  148,  148,
      149,  149,  149,  150,  150,  150, 1111,  117,  518,  151,
      151,  151,  518, 1112,  118,  119,  152,  152,  152,  153,
      153,  153,  120,  122, 1113, 1114,  123,  121,  154,  154,

      154,  155,  155,  155,  156,  156,  156,  157,  157,  157,
      148,  158,  158,  158, 1115, 1117,  150,  159,  159,  159,
     1118,  149,  151, 1119,  152,  160,  160,  160,  161,  161,
      161, 1120,  162,  162,  162, 1121, 1122,  153,  163,  163,
      163,  164,  164,  164,  221,  221,  158,  221,  154,  165,
      165,  165,  157,  166,  166,  166,  168,  168,  168,  156,
     1123,  159,  160, 1124,  161,  167,  167,  167,  187,  187,
      187,  175,  175, 1125, 1129,  160,  162, 1130,  175,  175,
      164,  177,  177,  225,  177,  177,  177,  737,  163,  180,
      180,  737,  690,  165,  690,  225,  180,  180,  225, 1131,

      166, 1132,  167,  737,  168,  175,  175, 1134,  184,  184,
      184,  187,  185,  185,  185,  186,  186,  186,  188,  188,
      188, 1135, 1136,  180,  180,  184,  185, 1138, 1140,  185,
      189,  189,  189,  190,  190,  190,  191,  191,  191,  192,
      192,  192,  193,  193,  193, 1141, 1142,  186,  194,  194,
      194,  195,  195,  195,  196,  196,  196,  197,  197,  197,
     1144,  198,  198,  198, 1149, 1152,  188,  199,  199,  199,
      191,  200,  200,  200,  201,  201,  201, 1153, 1154,  189,
     1155, 1156,  190,  192,  195,  193,  202,  202,  202,  203,
      203,  203, 1162,  204,  204,  204,  197,  194,  198,  205,

      205,  205,  206,  206,  206,  207,  207,  207,  208,  208,
      208,  209,  209,  209, 1163,  199,  210,  210,  210,  212,
      212,  212,  232,  200,  201,  211,  211,  211,  232,  202,
      213,  213,  213,  214,  214,  214,  232,  203,  204,  215,
      215,  215,  249,  249,  249,  250,  250,  250, 1165,  205,
     1166, 1170,  206,  210, 1171,  208,  207,  209, 1190, 1078,
      212, 1077,  211,  251,  251,  251,  252,  252,  252,  214,
     1075, 1074,  215,  253,  253,  253,  254,  254,  254, 1073,
      213, 1071,  250,  255,  255,  255,  256,  256,  256, 1070,
     1069,  249,  257,  257,  257,  251,  258,  258,  258,  259,

      259,  259,  260,  260,  260, 1068,  253, 1067, 1066,  252,
      261,  261,  261,  262,  262,  262,  263,  263,  263, 1063,
      254,  264,  264,  264,  265,  265,  265,  266,  266,  266,
     1062,  257, 1061,  258, 1060, 1059,  259, 1057, 1056,  256,
      267,  267,  267,  260,  268,  268,  268,  261,  270, 1055,
      270,  270,  270, 1054,  271, 1053,  271,  271,  271,  262,
     1046,  265, 1045, 1044,  266,  271,  264,  272,  272,  272,
     1043, 1041,  267,  273,  273,  273,  274,  274,  274, 1040,
      275,  275,  275, 1039, 1038,  273,  275,  276,  276,  276,
     1037, 1035,  271,  268, 1034, 1033,  274,  277,  277,  277,

     1032,  275,  275,  275,  275,  278,  278,  278,  279,  279,
      279, 1031,  280,  280,  280,  281,  281,  281,  282,  282,
      282, 1030, 1029,  283,  283,  283,  284,  284,  284,  285,
      285,  285,  286,  286,  286,  287,  287,  287,  288,  288,
      288,  289,  289,  289,  290,  290,  290,  291,  291,  291,
      292,  292,  292, 1028,  278,  280, 1027, 1026,  279,  282,
      283,  293,  293,  293,  294,  294,  294, 1025,  287, 1024,
     1023,  288,  295,  295,  295, 1022,  284, 1021,  289, 1020,
     1019,  286, 1018,  292, 1011,  290, 1010,  292,  296,  296,
      296,  297,  297,  297,  298,  298,  298,  291,  299,  299,

      299,  300,  300,  300, 1009,  294, 1008,  295, 1007, 1005,
      293,  301,  301,  301,  302,  302,  302,  303,  303,  303,
      347,  347,  347,  348,  348,  348,  349,  349,  349, 1004,
     1003,  296, 1002, 1001,  299,  350,  350,  350, 1000,  999,
      300,  351,  351,  351,  297,  352,  352,  352,  353,  353,
      353,  354,  354,  354,  355,  355,  355,  347,  356,  356,
      356,  998,  301,  997,  996,  303,  995,  350,  357,  357,
      357,  358,  358,  358,  349,  359,  359,  359,  352,  360,
      360,  360,  361,  361,  361,  362,  362,  362,  994,  363,
      363,  363,  351,  993,  353,  364,  364,  364,  992,  355,

      991,  990,  354,  989,  366,  366,  366,  356,  367,  367,
      367,  988,  360,  987,  357,  986,  360,  985,  984,  358,
      983,  362,  363,  366,  368,  368,  368,  359,  369,  369,
      369,  361,  982,  367,  974,  973,  364,  370,  370,  370,
      371,  371,  371,  368,  972,  971,  372,  372,  372,  373,
      373,  373,  374,  374,  374,  969,  968,  370,  369,  967,
      372,  966,  965,  372,  375,  375,  375,  964,  962,  371,
      372,  376,  376,  376,  377,  377,  377,  378,  378,  378,
      379,  379,  379,  380,  380,  380,  381,  381,  381,  382,
      382,  382,  961,  383,  383,  383,  384,  384,  384,  960,

      959,  375,  385,  385,  385,  958,  376,  386,  386,  386,
      387,  387,  387,  388,  388,  388,  389,  389,  389,  390,
      390,  390,  957,  956,  382,  955,  954,  379,  383,  391,
      391,  391,  953,  380,  952,  951,  381,  392,  392,  392,
      393,  393,  393,  386,  950,  385,  949,  948,  388,  394,
      394,  394,  390,  947,  395,  395,  395,  438,  438,  438,
      439,  439,  439,  440,  440,  440,  389,  441,  441,  441,
      442,  442,  442,  946,  392,  443,  443,  443,  444,  444,
      444,  945,  394,  944,  943,  393,  395,  445,  445,  445,
      446,  446,  446,  439,  447,  447,  447,  448,  448,  448,

      449,  449,  449,  450,  450,  450,  451,  451,  451,  933,
      441,  444,  440,  452,  452,  452,  453,  453,  453,  932,
      442,  931,  453,  443,  454,  454,  454,  455,  455,  455,
      457,  457,  457,  930,  448,  446,  445,  457,  456,  456,
      456,  929,  928,  449,  927,  456,  456,  456,  454,  926,
      449,  925,  924,  450,  451,  456,  923,  455,  456,  452,
      922,  921,  456,  456,  458,  458,  458,  459,  459,  459,
      460,  460,  460,  461,  461,  461,  462,  462,  462,  459,
      463,  463,  463,  920,  458,  918,  917,  461,  916,  914,
      460,  464,  464,  464,  465,  465,  465,  466,  466,  466,

      467,  467,  467,  468,  468,  468,  469,  469,  469,  470,
      470,  470,  471,  471,  471,  472,  472,  472,  473,  473,
      473,  463,  480,  480,  464,  474,  474,  474,  475,  475,
      475,  476,  476,  476,  466,  477,  477,  477,  480,  480,
      465,  913,  912,  480,  911,  522,  522,  522,  910,  909,
      467,  523,  523,  523,  908,  469,  524,  524,  524,  525,
      525,  525,  907,  474,  906,  475,  905,  904,  473,  526,
      526,  526,  903,  902,  476,  527,  527,  527,  528,  528,
      528,  530,  530,  530,  901,  477,  522,  529,  529,  529,
      531,  531,  531,  532,  532,  532,  533,  533,  533,  534,

      534,  534,  523,  900,  886,  526,  524,  535,  535,  535,
      536,  536,  536,  530,  527,  528,  537,  537,  537,  885,
      529,  538,  538,  538,  535,  884,  532,  539,  539,  539,
      545,  545,  545,  539,  883,  533,  540,  540,  540,  882,
      537,  531,  881,  880,  534,  545,  879,  538,  878,  876,
      540,  541,  541,  541,  542,  542,  542,  543,  543,  543,
      875,  542,  544,  544,  544,  541,  546,  546,  546,  871,
      547,  547,  547,  546,  543,  548,  548,  548,  549,  549,
      549,  550,  550,  550,  551,  551,  551,  870,  544,  547,
      869,  868,  544,  552,  552,  552,  553,  553,  553,  867,

      548,  554,  554,  554,  555,  555,  555,  866,  865,  549,
      556,  556,  556,  557,  557,  557,  558,  558,  558,  551,
      559,  559,  559,  560,  560,  560,  610,  610,  610,  864,
      863,  550,  611,  611,  611,  612,  612,  612,  554,  862,
      861,  552,  613,  613,  613,  860,  859,  556,  614,  614,
      614,  858,  558,  615,  615,  615,  616,  616,  616,  617,
      617,  617,  618,  618,  618,  857,  856,  612,  619,  619,
      619,  620,  620,  620,  613,  610,  621,  621,  621,  611,
      622,  622,  622,  855,  854,  614,  623,  623,  623,  853,
      615,  625,  625,  625,  624,  624,  624,  852,  851,  616,

      850,  849,  617,  623,  622,  624,  828,  826,  625,  825,
      618,  824,  619,  626,  626,  626,  627,  627,  627,  822,
      821,  626,  620,  628,  628,  628,  820,  629,  629,  629,
      630,  630,  630,  631,  631,  631,  818,  817,  628,  816,
      627,  629,  632,  632,  632,  633,  633,  633,  635,  635,
      635,  630,  632,  815,  631,  634,  634,  634,  814,  813,
      633,  634,  636,  636,  636,  637,  637,  637,  638,  638,
      638,  812,  636,  639,  639,  639,  640,  640,  640,  811,
      635,  641,  641,  641,  642,  642,  642,  656,  656,  691,
      691,  691,  692,  692,  692,  810,  656,  693,  693,  693,

      809,  808,  656,  807,  806,  638,  694,  694,  694,  695,
      695,  695,  640,  696,  696,  696,  697,  697,  697,  698,
      698,  698,  805,  802,  693,  801,  691,  800,  799,  692,
      699,  699,  699,  700,  700,  700,  702,  702,  702,  694,
      701,  701,  701,  703,  703,  703,  704,  704,  704,  705,
      705,  705,  706,  706,  706,  797,  698,  704,  707,  707,
      707,  796,  795,  703,  794,  793,  705,  699,  708,  708,
      708,  709,  709,  709,  710,  710,  710,  706,  708,  709,
      700,  792,  791,  707,  701,  711,  711,  711,  712,  712,
      712,  710,  713,  713,  713,  711,  712,  714,  714,  714,

      715,  715,  715,  716,  716,  716,  790,  789,  715,  715,
      717,  717,  717,  788,  714,  718,  718,  718,  764,  764,
      764,  765,  765,  765,  713,  766,  766,  766,  767,  767,
      767,  768,  768,  768,  787,  716,  769,  769,  769,  770,
      770,  770,  771,  771,  771,  772,  772,  772,  763,  762,
      764,  773,  773,  773,  774,  774,  774,  775,  775,  775,
      774,  773,  761,  759,  768,  758,  766,  755,  753,  765,
      772,  776,  776,  776,  752,  751,  767,  750,  749,  771,
      777,  777,  777,  778,  778,  778,  748,  747,  777,  779,
      779,  779,  746,  778,  780,  780,  780,  745,  744,  779,

      781,  781,  781,  782,  782,  782,  783,  783,  783,  742,
      741,  782,  782,  784,  784,  784,  785,  785,  785,  786,
      786,  786,  829,  829,  829,  781,  830,  830,  830,  740,
      785,  739,  738,  784,  831,  831,  831,  832,  832,  832,
      736,  833,  833,  833,  786,  834,  834,  834,  835,  835,
      835,  836,  836,  836,  837,  837,  837,  735,  830,  734,
      733,  837,  838,  838,  838,  839,  839,  839,  732,  829,
      840,  840,  840,  731,  836,  730,  832,  833,  841,  841,
      841,  729,  831,  842,  842,  842,  728,  838,  727,  726,
      834,  843,  843,  843,  844,  844,  844,  845,  845,  845,

      846,  846,  846,  842,  725,  843,  887,  887,  887,  888,
      888,  888,  724,  844,  889,  889,  889,  890,  890,  890,
      723,  845,  891,  891,  891,  892,  892,  892,  893,  893,
      893,  894,  894,  894,  895,  895,  895,  896,  896,  896,
      722,  897,  897,  897,  898,  898,  898,  721,  894,  720,
      888,  899,  899,  899,  719,  689,  896,  934,  934,  934,
      688,  887,  687,  891,  889,  897,  686,  685,  890,  935,
      935,  935,  936,  936,  936,  892,  937,  937,  937,  938,
      938,  938,  684,  939,  939,  939,  940,  940,  940,  934,
      941,  941,  941,  942,  942,  942,  940,  975,  975,  975,

      976,  976,  976,  977,  977,  977,  978,  978,  978,  979,
      979,  979,  682,  681,  935,  939,  980,  980,  980,  680,
      937,  679,  678,  936,  938,  981,  981,  981, 1012, 1012,
     1012, 1013, 1013, 1013,  975,  677,  977, 1014, 1014, 1014,
      676,  976,  675,  978, 1015, 1015, 1015,  674,  979, 1016,
     1016, 1016, 1017, 1017, 1017, 1047, 1047, 1047, 1048, 1048,
     1048,  980, 1049, 1049, 1049, 1050, 1050, 1050, 1051, 1051,
     1051,  673, 1049, 1079, 1079, 1079, 1080, 1080, 1080,  672,
     1014, 1013, 1012,  671,  670, 1017, 1081, 1081, 1081, 1015,
     1047, 1082, 1082, 1082, 1104, 1104, 1104, 1105, 1105, 1105,

     1106, 1106, 1106, 1107, 1107, 1107, 1126, 1126, 1126,  668,
     1079,  667, 1051,  664,  663, 1050, 1127, 1127, 1127, 1128,
     1128, 1128,  662,  659, 1080, 1145, 1145, 1145, 1082, 1146,
     1146, 1146, 1159, 1159, 1159, 1081, 1160, 1160, 1160,  658,
      657, 1104, 1167, 1167, 1167, 1105, 1168, 1168, 1168, 1160,
      653,  652, 1107, 1173, 1173, 1173, 1126, 1174, 1174, 1174,
      650,  649, 1127, 1177, 1177, 1177, 1145, 1178, 1178, 1178,
     1179, 1179, 1179, 1180, 1180, 1180,  648, 1146, 1159, 1168,
     1181, 1181, 1181,  647,  646,  645,  644, 1167,  643,  609,
      608,  607,  606,  605,  604,  603,  602,  601,  600, 1177,

      599,  598, 1174,  597,  595,  594,  593, 1179,  591,  590,
     1178,  589,  588,  587,  586,  585,  583,  582,  581,  580,
      579, 1180, 1183, 1183, 1183, 1183, 1184, 1184, 1184, 1184,
     1185, 1185, 1185, 1185, 1186, 1186, 1186, 1186, 1187, 1187,
     1188, 1188, 1189,  578, 1189, 1189,  577,  576,  575,  574,
      573,  572,  571,  570,  569,  568,  567,  566,  565,  564,
      563,  562,  561,  521,  520,  519,  517,  516,  515,  514,
      513,  512,  511,  510,  509,  508,  507,  506,  505,  504,
      503,  502,  501,  500,  499,  498,  497,  496,  495,  494,
      493,  492,  491,  490,  489,  488,  487,  486,  485,  484,

      483,  482,  481,  479,  478,  437,  434,  433,  432,  431,
      430,  429,  428,  427,  426,  425,  424,  423,  422,  421,
      420,  419,  418,  417,  416,  415,  414,  413,  412,  411,
      410,  409,  408,  407,  406,  405,  404,  403,  402,  401,
      400,  399,  398,  397,  396,  345,  344,  343,  342,  341,
      340,  339,  337,  336,  335,  334,  333,  332,  331,  330,
      329,  328,  327,  326,  325,  324,  323,  322,  321,  320,
      319,  318,  317,  316,  314,  313,  312,  310,  309,  308,
      307,  306,  305,  269,  248,  247,  246,  245,  244,  243,
      242,  240,  238,  237,  236,  235,  233,  231,  229,  227,

      226,  224,  223,  222,  220,  218,  217,  216,  173,  171,
      170,  146,  145,  143,  142,  140,  139,  137,  135,  128,
       80,   74,   71,   51,   48,   42,   22,   21,   11,    9,
        3, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182,
     1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182, 1182

    } ;

static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;

extern int yy_flex_debug;
int yy_flex_debug = 0;

/* 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 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
/*
 * The SIP lexer.
 *
 * Copyright (c) 2016 Riverbank Computing Limited <info@riverbankcomputing.com>
 *
 * This file is part of SIP.
 *
 * This copy of SIP is licensed for use under the terms of the SIP License
 * Agreement.  See the file LICENSE for more details.
 *
 * This copy of SIP may also used under the terms of the GNU General Public
 * License v2 or v3 as published by the Free Software Foundation which can be
 * found in the files LICENSE-GPL2 and LICENSE-GPL3 included in this package.
 *
 * SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */
#line 20 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/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


/* Windows doesn't have unistd.h so declare it here. */
extern int isatty(int);


/* These are unused. */
static int input(void) SIP_UNUSED;
static void yy_fatal_error(yyconst char *) SIP_UNUSED;
static int yy_top_state(void) SIP_UNUSED;
static void yyunput(int, char *) SIP_UNUSED;

#define YY_NO_UNISTD_H
#define YY_FATAL_ERROR(s)       fatallex(s)

#define MAX_INCLUDE_DEPTH       10
#define MAX_CODE_LINE_LENGTH    1000


static struct inputFile {
    sourceLocation sloc;                /* The source location. */
    YY_BUFFER_STATE bs;                 /* The flex buffer state handle. */
    char *cwd;                          /* The path part of the file name. */
    parserContext pc;                   /* The parser context. */
} inputFileStack[MAX_INCLUDE_DEPTH];

static int currentFile = -1;            /* Index of the current input file. */
static char codeLine[MAX_CODE_LINE_LENGTH + 2]; /* The current code line. */
static int codeIdx = -1;                /* Index of next code character. */
static int parenDepth = 0;              /* The current depth of (...). */

static FILE *openFile(const char *);
static void fatallex(char *);




#line 1525 "/Users/phil/hg/sip/sip-4.18/sipgen/lexer.c"

#define INITIAL 0
#define code 1
#define ccomment 2
#define directive 3
#define directive_start 4

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

#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif

static int yy_init_globals (void );

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

int yylex_destroy (void );

int yyget_debug (void );

void yyset_debug (int debug_flag  );

YY_EXTRA_TYPE yyget_extra (void );

void yyset_extra (YY_EXTRA_TYPE user_defined  );

FILE *yyget_in (void );

void yyset_in  (FILE * in_str  );

FILE *yyget_out (void );

void yyset_out  (FILE * out_str  );

yy_size_t yyget_leng (void );

char *yyget_text (void );

int yyget_lineno (void );

void yyset_lineno (int line_number  );

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

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

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

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

#ifndef YY_NO_INPUT

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

#endif

        static int yy_start_stack_ptr = 0;
        static int yy_start_stack_depth = 0;
        static int *yy_start_stack = NULL;
    
    static void yy_push_state (int new_state );
    
    static void yy_pop_state (void );
    
    static int yy_top_state (void );
    
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif

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

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

#endif

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

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

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

/* end tables serialization structures and prototypes */

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

extern int yylex (void);

#define YY_DECL int yylex (void)
#endif /* !YY_DECL */

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

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

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

/** The main scanner function which does all the work.
 */
YY_DECL
{
	register yy_state_type yy_current_state;
	register char *yy_cp, *yy_bp;
	register int yy_act;
    
#line 74 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"


#line 1727 "/Users/phil/hg/sip/sip-4.18/sipgen/lexer.c"

	if ( !(yy_init) )
		{
		(yy_init) = 1;

#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 ) {
			yyensure_buffer_stack ();
			YY_CURRENT_BUFFER_LVALUE =
				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 >= 1183 )
					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] != 2732 );

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 76 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_API;}
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 77 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_AUTOPYNAME;}
	YY_BREAK
case 3:
YY_RULE_SETUP
#line 78 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_CMODULE;}
	YY_BREAK
case 4:
YY_RULE_SETUP
#line 79 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_COMPOMODULE;}
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 80 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_CONSMODULE;}
	YY_BREAK
case 6:
YY_RULE_SETUP
#line 81 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_DEFDOCSTRING;}
	YY_BREAK
case 7:
YY_RULE_SETUP
#line 82 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_DEFENCODING;}
	YY_BREAK
case 8:
YY_RULE_SETUP
#line 83 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_DEFMETATYPE;}
	YY_BREAK
case 9:
YY_RULE_SETUP
#line 84 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_DEFSUPERTYPE;}
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 85 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_END;}
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 86 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN INITIAL; return TK_END;}
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 87 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_EXCEPTION;}
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 88 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_FEATURE;}
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 89 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_IF;}
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 90 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_IMPORT;}
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 91 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_INCLUDE;}
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 92 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_LICENSE;}
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 93 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_MAPPEDTYPE;}
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 94 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_MODULE;}
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 95 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_OPTINCLUDE;}
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 96 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PLATFORMS;}
	YY_BREAK
case 22:
YY_RULE_SETUP
#line 97 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_PLUGIN;}
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 98 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{BEGIN directive_start; return TK_PROPERTY;}
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 99 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_TIMELINE;}
	YY_BREAK
case 25:
YY_RULE_SETUP
#line 101 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_CLASS;}
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 102 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_STRUCT;}
	YY_BREAK
case 27:
YY_RULE_SETUP
#line 103 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PUBLIC;}
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 104 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PROTECTED;}
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 105 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PRIVATE;}
	YY_BREAK
case 30:
YY_RULE_SETUP
#line 106 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIGNALS;}
	YY_BREAK
case 31:
YY_RULE_SETUP
#line 107 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIGNALS;}
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 108 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIGNAL_METHOD;}
	YY_BREAK
case 33:
YY_RULE_SETUP
#line 109 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SLOTS;}
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 110 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SLOTS;}
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 111 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SLOT_METHOD;}
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 112 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_CHAR;}
	YY_BREAK
case 37:
YY_RULE_SETUP
#line 113 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_WCHAR_T;}
	YY_BREAK
case 38:
YY_RULE_SETUP
#line 114 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_BOOL;}
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 115 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SHORT;}
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 116 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_INT;}
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 117 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_LONG;}
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 118 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_FLOAT;}
	YY_BREAK
case 43:
YY_RULE_SETUP
#line 119 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_DOUBLE;}
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 120 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_VOID;}
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 121 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_VIRTUAL;}
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 122 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_ENUM;}
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 123 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIGNED;}
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 124 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_UNSIGNED;}
	YY_BREAK
case 49:
YY_RULE_SETUP
#line 125 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_CONST;}
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 126 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_STATIC;}
	YY_BREAK
case 51:
YY_RULE_SETUP
#line 127 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_TRUE_VALUE;}
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 128 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_FALSE_VALUE;}
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 129 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_NULL_VALUE;}
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 130 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_TYPEDEF;}
	YY_BREAK
case 55:
YY_RULE_SETUP
#line 131 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_NAMESPACE;}
	YY_BREAK
case 56:
YY_RULE_SETUP
#line 132 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_OPERATOR;}
	YY_BREAK
case 57:
YY_RULE_SETUP
#line 133 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_THROW;}
	YY_BREAK
case 58:
YY_RULE_SETUP
#line 134 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_EXPLICIT;}
	YY_BREAK
case 59:
YY_RULE_SETUP
#line 135 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_TEMPLATE;}
	YY_BREAK
case 60:
YY_RULE_SETUP
#line 136 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SCOPE;}
	YY_BREAK
case 61:
YY_RULE_SETUP
#line 137 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_LOGICAL_OR;}
	YY_BREAK
case 62:
YY_RULE_SETUP
#line 138 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PYOBJECT;}
	YY_BREAK
case 63:
YY_RULE_SETUP
#line 139 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PYTUPLE;}
	YY_BREAK
case 64:
YY_RULE_SETUP
#line 140 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PYLIST;}
	YY_BREAK
case 65:
YY_RULE_SETUP
#line 141 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PYDICT;}
	YY_BREAK
case 66:
YY_RULE_SETUP
#line 142 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PYCALLABLE;}
	YY_BREAK
case 67:
YY_RULE_SETUP
#line 143 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PYSLICE;}
	YY_BREAK
case 68:
YY_RULE_SETUP
#line 144 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PYTYPE;}
	YY_BREAK
case 69:
YY_RULE_SETUP
#line 145 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_PYBUFFER;}
	YY_BREAK
case 70:
YY_RULE_SETUP
#line 146 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIPSIGNAL;}
	YY_BREAK
case 71:
YY_RULE_SETUP
#line 147 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIPSLOT;}
	YY_BREAK
case 72:
YY_RULE_SETUP
#line 148 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIPANYSLOT;}
	YY_BREAK
case 73:
YY_RULE_SETUP
#line 149 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIPRXCON;}
	YY_BREAK
case 74:
YY_RULE_SETUP
#line 150 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIPRXDIS;}
	YY_BREAK
case 75:
YY_RULE_SETUP
#line 151 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIPSLOTCON;}
	YY_BREAK
case 76:
YY_RULE_SETUP
#line 152 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIPSLOTDIS;}
	YY_BREAK
case 77:
YY_RULE_SETUP
#line 153 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIPSSIZET;}
	YY_BREAK
case 78:
YY_RULE_SETUP
#line 154 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_QOBJECT;}
	YY_BREAK
case 79:
YY_RULE_SETUP
#line 155 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_ELLIPSIS;}
	YY_BREAK
case 80:
YY_RULE_SETUP
#line 157 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_FORMAT;}
	YY_BREAK
case 81:
YY_RULE_SETUP
#line 158 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_GET;}
	YY_BREAK
case 82:
YY_RULE_SETUP
#line 159 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_ID;}
	YY_BREAK
case 83:
YY_RULE_SETUP
#line 160 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_KWARGS;}
	YY_BREAK
case 84:
YY_RULE_SETUP
#line 161 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_LANGUAGE;}
	YY_BREAK
case 85:
YY_RULE_SETUP
#line 162 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_LICENSEE;}
	YY_BREAK
case 86:
YY_RULE_SETUP
#line 163 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_NAME;}
	YY_BREAK
case 87:
YY_RULE_SETUP
#line 164 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_OPTIONAL;}
	YY_BREAK
case 88:
YY_RULE_SETUP
#line 165 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_ORDER;}
	YY_BREAK
case 89:
YY_RULE_SETUP
#line 166 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_REMOVELEADING;}
	YY_BREAK
case 90:
YY_RULE_SETUP
#line 167 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SET;}
	YY_BREAK
case 91:
YY_RULE_SETUP
#line 168 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_SIGNATURE;}
	YY_BREAK
case 92:
YY_RULE_SETUP
#line 169 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_TIMESTAMP;}
	YY_BREAK
case 93:
YY_RULE_SETUP
#line 170 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_TYPE;}
	YY_BREAK
case 94:
YY_RULE_SETUP
#line 171 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_USEARGNAMES;}
	YY_BREAK
case 95:
YY_RULE_SETUP
#line 172 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_ALLRAISEPYEXC;}
	YY_BREAK
case 96:
YY_RULE_SETUP
#line 173 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_CALLSUPERINIT;}
	YY_BREAK
case 97:
YY_RULE_SETUP
#line 174 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_DEFERRORHANDLER;}
	YY_BREAK
case 98:
YY_RULE_SETUP
#line 175 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_VERSION;}
	YY_BREAK
case 99:
YY_RULE_SETUP
#line 177 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_TRUE_VALUE;}
	YY_BREAK
case 100:
YY_RULE_SETUP
#line 178 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{return TK_FALSE_VALUE;}
	YY_BREAK
case 101:
YY_RULE_SETUP
#line 181 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* Ignore whitespace. */
    ;
}
	YY_BREAK
case 102:
YY_RULE_SETUP
#line 186 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /*
     * Maintain the parenthesis depth so that we don't enter the 'code' state
     * until any arguments have been parsed.
     */
    ++parenDepth;

    BEGIN directive;

    return '(';
}
	YY_BREAK
case 103:
YY_RULE_SETUP
#line 198 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* Maintain the parenthesis depth. */
    --parenDepth;

    BEGIN INITIAL;

    return ')';
}
	YY_BREAK
case 104:
/* rule 104 can match eol */
YY_RULE_SETUP
#line 207 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* Maintain the line number. */
    ++inputFileStack[currentFile].sloc.linenr;

    if (codeIdx == 0 && parenDepth == 0)
    {
        BEGIN code;
    }
}
	YY_BREAK
case 105:
YY_RULE_SETUP
#line 217 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* Ignore C++ style comments. */
    ;
}
	YY_BREAK
case 106:
YY_RULE_SETUP
#line 223 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* A signed decimal number. */
    yylval.number = strtol(yytext,NULL,0);
    return TK_NUMBER_VALUE;
}
	YY_BREAK
case 107:
YY_RULE_SETUP
#line 230 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* A floating point number. */
    yylval.real = strtod(yytext,NULL);
    return TK_REAL_VALUE;
}
	YY_BREAK
case 108:
YY_RULE_SETUP
#line 237 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* An unsigned hexadecimal number. */
    yylval.number = strtol(yytext,NULL,16);
    return TK_NUMBER_VALUE;
}
	YY_BREAK
case 109:
YY_RULE_SETUP
#line 244 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* An identifier name. */
    yylval.text = sipStrdup(yytext);
    return TK_NAME_VALUE;
}
	YY_BREAK
case 110:
YY_RULE_SETUP
#line 251 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* A relative pathname. */
    yylval.text = sipStrdup(yytext);
    return TK_PATH_VALUE;
}
	YY_BREAK
case 111:
/* rule 111 can match eol */
YY_RULE_SETUP
#line 258 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/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_VALUE;
}
	YY_BREAK
case 112:
/* rule 112 can match eol */
YY_RULE_SETUP
#line 283 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/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_VALUE;
}
	YY_BREAK
case 113:
YY_RULE_SETUP
#line 294 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* Ignore C-style comments. */
    yy_push_state(ccomment);
}
	YY_BREAK
case 114:
/* rule 114 can match eol */
YY_RULE_SETUP
#line 298 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    ++inputFileStack[currentFile].sloc.linenr;
}
	YY_BREAK
case 115:
YY_RULE_SETUP
#line 301 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    yy_pop_state();
}
	YY_BREAK
case 116:
YY_RULE_SETUP
#line 304 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    ;
}
	YY_BREAK
case 117:
YY_RULE_SETUP
#line 309 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The software license. */
    codeIdx = 0;
    return TK_COPYING;
}
	YY_BREAK
case 118:
YY_RULE_SETUP
#line 315 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a from-type code block. */
    codeIdx = 0;
    return TK_FROMTYPE;
}
	YY_BREAK
case 119:
YY_RULE_SETUP
#line 321 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a to-type code block. */
    codeIdx = 0;
    return TK_TOTYPE;
}
	YY_BREAK
case 120:
YY_RULE_SETUP
#line 327 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a to-sub-class code block. */
    codeIdx = 0;
    return TK_TOSUBCLASS;
}
	YY_BREAK
case 121:
YY_RULE_SETUP
#line 333 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of an exported header code block. */
    codeIdx = 0;
    return TK_EXPHEADERCODE;
}
	YY_BREAK
case 122:
YY_RULE_SETUP
#line 339 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of part of an extract. */
    codeIdx = 0;

    BEGIN directive_start;

    return TK_EXTRACT;
}
	YY_BREAK
case 123:
YY_RULE_SETUP
#line 348 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a module header code block. */
    codeIdx = 0;
    return TK_MODHEADERCODE;
}
	YY_BREAK
case 124:
YY_RULE_SETUP
#line 354 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a type header code block. */
    codeIdx = 0;
    return TK_TYPEHEADERCODE;
}
	YY_BREAK
case 125:
YY_RULE_SETUP
#line 360 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a pre-initialisation code block. */
    codeIdx = 0;
    return TK_PREINITCODE;
}
	YY_BREAK
case 126:
YY_RULE_SETUP
#line 366 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of an initialisation code block. */
    codeIdx = 0;
    return TK_INITCODE;
}
	YY_BREAK
case 127:
YY_RULE_SETUP
#line 372 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a post-initialisation code block. */
    codeIdx = 0;
    return TK_POSTINITCODE;
}
	YY_BREAK
case 128:
YY_RULE_SETUP
#line 378 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a class finalisation code block. */
    codeIdx = 0;
    return TK_FINALCODE;
}
	YY_BREAK
case 129:
YY_RULE_SETUP
#line 384 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a unit code block. */
    codeIdx = 0;
    return TK_UNITCODE;
}
	YY_BREAK
case 130:
YY_RULE_SETUP
#line 390 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a unit post-include code block. */
    codeIdx = 0;
    return TK_UNITPOSTINCLUDECODE;
}
	YY_BREAK
case 131:
YY_RULE_SETUP
#line 396 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a module code block. */
    codeIdx = 0;
    return TK_MODCODE;
}
	YY_BREAK
case 132:
YY_RULE_SETUP
#line 402 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a type code block. */
    codeIdx = 0;
    return TK_TYPECODE;
}
	YY_BREAK
case 133:
YY_RULE_SETUP
#line 408 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a C++ method code block. */
    codeIdx = 0;
    return TK_METHODCODE;
}
	YY_BREAK
case 134:
YY_RULE_SETUP
#line 414 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a C++ virtual call code block. */
    codeIdx = 0;
    return TK_VIRTUALCALLCODE;
}
	YY_BREAK
case 135:
YY_RULE_SETUP
#line 420 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a C++ virtual code block. */
    codeIdx = 0;
    return TK_VIRTUALCATCHERCODE;
}
	YY_BREAK
case 136:
YY_RULE_SETUP
#line 426 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a traverse code block. */
    codeIdx = 0;
    return TK_TRAVERSECODE;
}
	YY_BREAK
case 137:
YY_RULE_SETUP
#line 432 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a clear code block. */
    codeIdx = 0;
    return TK_CLEARCODE;
}
	YY_BREAK
case 138:
YY_RULE_SETUP
#line 438 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a get buffer code block. */
    codeIdx = 0;
    return TK_GETBUFFERCODE;
}
	YY_BREAK
case 139:
YY_RULE_SETUP
#line 444 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a release buffer code block. */
    codeIdx = 0;
    return TK_RELEASEBUFFERCODE;
}
	YY_BREAK
case 140:
YY_RULE_SETUP
#line 450 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a read buffer code block. */
    codeIdx = 0;
    return TK_READBUFFERCODE;
}
	YY_BREAK
case 141:
YY_RULE_SETUP
#line 456 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a write buffer code block. */
    codeIdx = 0;
    return TK_WRITEBUFFERCODE;
}
	YY_BREAK
case 142:
YY_RULE_SETUP
#line 462 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a segment count code block. */
    codeIdx = 0;
    return TK_SEGCOUNTCODE;
}
	YY_BREAK
case 143:
YY_RULE_SETUP
#line 468 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a char buffer code block. */
    codeIdx = 0;
    return TK_CHARBUFFERCODE;
}
	YY_BREAK
case 144:
YY_RULE_SETUP
#line 474 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a create instance code block. */
    codeIdx = 0;
    return TK_INSTANCECODE;
}
	YY_BREAK
case 145:
YY_RULE_SETUP
#line 480 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a pickle code block. */
    codeIdx = 0;
    return TK_PICKLECODE;
}
	YY_BREAK
case 146:
YY_RULE_SETUP
#line 486 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a pre-Python code block. */
    deprecated("%PrePythonCode is deprecated");

    codeIdx = 0;
    return TK_PREPYCODE;
}
	YY_BREAK
case 147:
YY_RULE_SETUP
#line 494 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a raise Python exception code block. */
    codeIdx = 0;
    return TK_RAISECODE;
}
	YY_BREAK
case 148:
YY_RULE_SETUP
#line 500 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of an exported type hint code block. */
    codeIdx = 0;
    return TK_EXPTYPEHINTCODE;
}
	YY_BREAK
case 149:
YY_RULE_SETUP
#line 506 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a type hint code block. */
    codeIdx = 0;
    return TK_TYPEHINTCODE;
}
	YY_BREAK
case 150:
YY_RULE_SETUP
#line 512 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a docstring block. */
    codeIdx = 0;
    return TK_DOCSTRING;
}
	YY_BREAK
case 151:
YY_RULE_SETUP
#line 518 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a documentation block. */
    deprecated("%Doc is deprecated, use %Extract instead");

    codeIdx = 0;
    return TK_DOC;
}
	YY_BREAK
case 152:
YY_RULE_SETUP
#line 526 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of an exported documentation block. */
    deprecated("%ExportedDoc is deprecated, use %Extract instead");

    codeIdx = 0;
    return TK_EXPORTEDDOC;
}
	YY_BREAK
case 153:
YY_RULE_SETUP
#line 534 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a Makefile code block. */
    deprecated("%Makefile is deprecated");

    codeIdx = 0;
    return TK_MAKEFILE;
}
	YY_BREAK
case 154:
YY_RULE_SETUP
#line 542 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of an access code block. */
    codeIdx = 0;
    return TK_ACCESSCODE;
}
	YY_BREAK
case 155:
YY_RULE_SETUP
#line 548 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a get code block. */
    codeIdx = 0;
    return TK_GETCODE;
}
	YY_BREAK
case 156:
YY_RULE_SETUP
#line 554 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of a set code block. */
    codeIdx = 0;
    return TK_SETCODE;
}
	YY_BREAK
case 157:
YY_RULE_SETUP
#line 560 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The start of part of a virtual error handler. */
    codeIdx = 0;

    BEGIN directive_start;

    return TK_VIRTERRORHANDLER;
}
	YY_BREAK
case 158:
YY_RULE_SETUP
#line 569 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The end of a code block. */
    BEGIN INITIAL;
    codeIdx = -1;
    return TK_END;
}
	YY_BREAK
case 159:
/* rule 159 can match eol */
YY_RULE_SETUP
#line 576 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The end of a code line . */
    struct inputFile *ifp;

    codeLine[codeIdx] = '\n';
    codeLine[codeIdx + 1] = '\0';
    codeIdx = 0;

    ifp = &inputFileStack[currentFile];

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

    yylval.codeb->frag = sipStrdup(codeLine);
    yylval.codeb->linenr = ifp->sloc.linenr++;
    yylval.codeb->filename = ifp->sloc.name;

    return TK_CODELINE;
}
	YY_BREAK
case 160:
YY_RULE_SETUP
#line 595 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* The contents of a code line. */
    if (codeIdx == MAX_CODE_LINE_LENGTH)
        fatallex("Line is too long");

    codeLine[codeIdx++] = yytext[0];
}
	YY_BREAK
case 161:
YY_RULE_SETUP
#line 603 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
{
    /* Anything else is returned as is. */
    return yytext[0];
}
	YY_BREAK
case 162:
YY_RULE_SETUP
#line 608 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"
ECHO;
	YY_BREAK
#line 2925 "/Users/phil/hg/sip/sip-4.18/sipgen/lexer.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(code):
case YY_STATE_EOF(ccomment):
case YY_STATE_EOF(directive):
case YY_STATE_EOF(directive_start):
	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_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
			{
			/* We're scanning a new file or input source.  It's
			 * possible that this happened because the user
			 * just pointed yyin at a new source and called
			 * 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_LVALUE->yy_n_chars;
			YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
			}

		/* Note that here we test for yy_c_buf_p "<=" to the position
		 * of the first EOB in the buffer, since yy_c_buf_p will
		 * already have been incremented past the NUL character
		 * (since all states make transitions on EOB to the
		 * end-of-buffer state).  Contrast this with the test
		 * in input().
		 */
		if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->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_LVALUE->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 (void)
{
    	register char *dest = YY_CURRENT_BUFFER_LVALUE->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_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
		YY_FATAL_ERROR(
		"fatal flex scanner internal error--end of buffer missed" );

	if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
		{ /* Don't try to fill the buffer, so this is an EOF. */
		if ( (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_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
		/* don't do the read, it's not guaranteed to return an EOF,
		 * just force an EOF
		 */
		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;

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

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

			/* 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 )
				{
				yy_size_t 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. */
					yyrealloc((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_LVALUE->yy_buf_size -
						number_to_move - 1;

			}

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

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

		YY_CURRENT_BUFFER_LVALUE->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_LVALUE->yy_buffer_status =
				YY_BUFFER_EOF_PENDING;
			}
		}

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

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

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

	(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];

	return ret_val;
}

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

    static yy_state_type yy_get_previous_state (void)
{
	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 >= 1183 )
				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 );
 */
    static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state )
{
	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 >= 1183 )
			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 == 1182);

	return yy_is_jam ? 0 : yy_current_state;
}

    static void yyunput (int c, register char * yy_bp )
{
	register char *yy_cp;
    
    yy_cp = (yy_c_buf_p);

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

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

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

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

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

	*--yy_cp = (char) c;

	(yytext_ptr) = yy_bp;
	(yy_hold_char) = *yy_cp;
	(yy_c_buf_p) = yy_cp;
}

#ifndef YY_NO_INPUT
#ifdef __cplusplus
    static int yyinput (void)
#else
    static int input  (void)
#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_LVALUE->yy_ch_buf[(yy_n_chars)] )
			/* This was really a NUL. */
			*(yy_c_buf_p) = '\0';

		else
			{ /* need more input */
			yy_size_t 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 );

					/*FALLTHROUGH*/

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

					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_LVALUE->yy_at_bol = (c == '\n');

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

/** Immediately switch to a different input stream.
 * @param input_file A readable stream.
 * 
 * @note This function does not reset the start condition to @c INITIAL .
 */
    void yyrestart  (FILE * input_file )
{
    
	if ( ! YY_CURRENT_BUFFER ){
        yyensure_buffer_stack ();
		YY_CURRENT_BUFFER_LVALUE =
            yy_create_buffer(yyin,YY_BUF_SIZE );
	}

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

/** Switch to a different input buffer.
 * @param new_buffer The new input buffer.
 * 
 */
    void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer )
{
    
	/* TODO. We should be able to replace this entire function body
	 * with
	 *		yypop_buffer_state();
	 *		yypush_buffer_state(new_buffer);
     */
	yyensure_buffer_stack ();
	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_LVALUE->yy_buf_pos = (yy_c_buf_p);
		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
		}

	YY_CURRENT_BUFFER_LVALUE = 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;
}

static void yy_load_buffer_state  (void)
{
    	(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
	(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
	(yy_hold_char) = *(yy_c_buf_p);
}

/** Allocate and initialize an input buffer state.
 * @param file A readable stream.
 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
 * 
 * @return the allocated buffer state.
 */
    YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size )
{
	YY_BUFFER_STATE b;
    
	b = (YY_BUFFER_STATE) yyalloc(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 *) yyalloc(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;
}

/** Destroy the buffer.
 * @param b a buffer created with yy_create_buffer()
 * 
 */
    void yy_delete_buffer (YY_BUFFER_STATE  b )
{
    
	if ( ! b )
		return;

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

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

	yyfree((void *) b  );
}

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

{
	int oerrno = errno;
    
	yy_flush_buffer(b );

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

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

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

/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
 * 
 */
    void yy_flush_buffer (YY_BUFFER_STATE  b )
{
    	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( );
}

/** Pushes the new state onto the stack. The new state becomes
 *  the current state. This function will allocate the stack
 *  if necessary.
 *  @param new_buffer The new state.
 *  
 */
void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
{
    	if (new_buffer == NULL)
		return;

	yyensure_buffer_stack();

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

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

	/* copied from yy_switch_to_buffer. */
	yy_load_buffer_state( );
	(yy_did_buffer_switch_on_eof) = 1;
}

/** Removes and deletes the top of the stack, if present.
 *  The next element becomes the new top.
 *  
 */
void yypop_buffer_state (void)
{
    	if (!YY_CURRENT_BUFFER)
		return;

	yy_delete_buffer(YY_CURRENT_BUFFER );
	YY_CURRENT_BUFFER_LVALUE = NULL;
	if ((yy_buffer_stack_top) > 0)
		--(yy_buffer_stack_top);

	if (YY_CURRENT_BUFFER) {
		yy_load_buffer_state( );
		(yy_did_buffer_switch_on_eof) = 1;
	}
}

/* Allocates the stack if it does not exist.
 *  Guarantees space for at least one push.
 */
static void yyensure_buffer_stack (void)
{
	yy_size_t num_to_alloc;
    
	if (!(yy_buffer_stack)) {

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

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

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

		num_to_alloc = (yy_buffer_stack_max) + grow_size;
		(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
								((yy_buffer_stack),
								num_to_alloc * sizeof(struct yy_buffer_state*)
								);
		if ( ! (yy_buffer_stack) )
			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );

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

/** Setup the input buffer state to scan directly from a user-specified character buffer.
 * @param base the character buffer
 * @param size the size in bytes of the character buffer
 * 
 * @return the newly allocated buffer state object. 
 */
YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size )
{
	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) yyalloc(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;
}

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

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

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

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

	b = 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;
}

    static void yy_push_state (int  new_state )
{
    	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 *) yyalloc(new_size  );

		else
			(yy_start_stack) = (int *) yyrealloc((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);
}

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

	BEGIN((yy_start_stack)[(yy_start_stack_ptr)]);
}

    static int yy_top_state  (void)
{
    	return (yy_start_stack)[(yy_start_stack_ptr) - 1];
}

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

static void yy_fatal_error (yyconst char* msg )
{
    	(void) fprintf( stderr, "%s\n", msg );
	exit( YY_EXIT_FAILURE );
}

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

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

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

/** Get the current line number.
 * 
 */
int yyget_lineno  (void)
{
        
    return yylineno;
}

/** Get the input stream.
 * 
 */
FILE *yyget_in  (void)
{
        return yyin;
}

/** Get the output stream.
 * 
 */
FILE *yyget_out  (void)
{
        return yyout;
}

/** Get the length of the current token.
 * 
 */
yy_size_t yyget_leng  (void)
{
        return yyleng;
}

/** Get the current token.
 * 
 */

char *yyget_text  (void)
{
        return yytext;
}

/** Set the current line number.
 * @param line_number
 * 
 */
void yyset_lineno (int  line_number )
{
    
    yylineno = line_number;
}

/** Set the input stream. This does not discard the current
 * input buffer.
 * @param in_str A readable stream.
 * 
 * @see yy_switch_to_buffer
 */
void yyset_in (FILE *  in_str )
{
        yyin = in_str ;
}

void yyset_out (FILE *  out_str )
{
        yyout = out_str ;
}

int yyget_debug  (void)
{
        return yy_flex_debug;
}

void yyset_debug (int  bdebug )
{
        yy_flex_debug = bdebug ;
}

static int yy_init_globals (void)
{
        /* Initialization is the same as for the non-reentrant scanner.
     * This function is called from yylex_destroy(), so don't allocate here.
     */

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

    (yy_start_stack_ptr) = 0;
    (yy_start_stack_depth) = 0;
    (yy_start_stack) =  NULL;

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

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

/* yylex_destroy is for both reentrant and non-reentrant scanners. */
int yylex_destroy  (void)
{
    
    /* Pop the buffer stack, destroying each element. */
	while(YY_CURRENT_BUFFER){
		yy_delete_buffer(YY_CURRENT_BUFFER  );
		YY_CURRENT_BUFFER_LVALUE = NULL;
		yypop_buffer_state();
	}

	/* Destroy the stack itself. */
	yyfree((yy_buffer_stack) );
	(yy_buffer_stack) = NULL;

    /* Destroy the start condition stack. */
        yyfree((yy_start_stack)  );
        (yy_start_stack) = NULL;

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

    return 0;
}

/*
 * Internal utility routines.
 */

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

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

	return n;
}
#endif

void *yyalloc (yy_size_t  size )
{
	return (void *) malloc( size );
}

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

void yyfree (void * ptr )
{
	free( (char *) ptr );	/* see yyrealloc() for (char *) cast */
}

#define YYTABLES_NAME "yytables"

#line 608 "/Users/phil/hg/sip/sip-4.18/sipgen/metasrc/lexer.l"



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

int yywrap()
{
    char *cwd;
    struct inputFile *ifp;

    if ((cwd = inputFileStack[currentFile].cwd) != NULL)
        free(cwd);

    ifp = &inputFileStack[currentFile--];

    /* Tell the parser if this is the end of a file. */
    parserEOF(ifp->sloc.name, &ifp->pc);

    /*
     * Tidy up this file.  Note that we don't free the filename as it will
     * still be referenced for use in error messages.
     */
    fclose(yyin);

    /* 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;
}


/*
 * Get the current source location.
 */
void getSourceLocation(sourceLocation *slp)
{
    int cf;

    /*
     * Assume that we will already have gone past the newline but watch out in
     * case we have gone past the end of the file.
     */
    if ((cf = currentFile) < 0)
    {
        /* This will be valid if we have been called. */
        cf = 0;
    }

    slp->linenr = inputFileStack[cf].sloc.linenr - 1;
    slp->name = inputFileStack[cf].sloc.name;
}


/*
 * Set up an input file to be read by the lexer, opening it if necessary.  TRUE
 * is returned if the file has not already been read.
 */
int setInputFile(FILE *open_fp, parserContext *pc, int optional)
{
    static stringList *all = NULL;
    char *cwd, *fullname = NULL;
    FILE *fp = open_fp;

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

    if (fp != NULL || (fp = openFile(pc->filename)) != NULL)
        fullname = sipStrdup(pc->filename);
    else
    {
        char *cwd;

        /* Try the directory that contains the current file. */
        if (currentFile >= 0 && (cwd = inputFileStack[currentFile].cwd) != NULL)
        {
            fullname = concat(cwd, "/", pc->filename, NULL);

            if ((fp = openFile(fullname)) == NULL)
            {
                free(fullname);
                fullname = NULL;
            }
        }
    }

    /* Try the include path if we haven't found anything yet. */
    if (fullname == NULL)
    {
        stringList *sl;

        fullname = NULL;

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

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

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

        if (fp == NULL)
        {
            if (optional)
                return FALSE;

            fatal("Unable to find file \"%s\"\n", pc->filename);
        }
    }

    /*
     * If we have just opened the file, make sure that we haven't already read
     * it.  While it should never happen with normal modules (if the user
     * doesn't specify recursive %Imports or %Includes) it is likely to happen
     * with consolidated modules.
     */
    if (open_fp == NULL)
    {
        stringList *sl;

        for (sl = all; sl != NULL; sl = sl->next)
            if (strcmp(sl->s, fullname) == 0)
            {
                fclose(fp);
                return FALSE;
            }
    }

    /* Remember the filename. */
    appendString(&all, sipStrdup(fullname));

    yyin = fp;

    ++currentFile;

    /* Remember the directory containing the new file and make it "current". */
    if ((cwd = strchr(fullname, '/')) != NULL)
    {
        cwd = sipStrdup(fullname);
        *strrchr(cwd,'/') = '\0';
    }

    inputFileStack[currentFile].sloc.linenr = 1;
    inputFileStack[currentFile].sloc.name = fullname;
    inputFileStack[currentFile].pc = *pc;
    inputFileStack[currentFile].cwd = cwd;

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

    return TRUE;
}


/*
 * Open a file for reading or return NULL if it doesn't exist.  Any other error
 * is fatal.
 */
static FILE *openFile(const 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("%s\n", s);

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


/*
 * Handle warnings while parsing.
 */
void yywarning(char *s)
{
    warning(ParserWarning, "%s:%d: %s\n",
            inputFileStack[currentFile].sloc.name,
            inputFileStack[currentFile].sloc.linenr, s);
}


/*
 * Handle deprecation warnings.
 */
void deprecated(const char *msg)
{
    warning(DeprecationWarning, "%s:%d: %s\n",
            inputFileStack[currentFile].sloc.name,
            inputFileStack[currentFile].sloc.linenr, msg);
}


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


/*
 * Reset the lexer state to INITIAL.  This is used by directives that allow an
 * argument to be given without parentheses to get out of the 'directive_start'
 * state before an opening parenthesis is seen in another context.
 */
void resetLexerState()
{
    BEGIN INITIAL;
}

