#line 2 "scanner.c"

#line 4 "scanner.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 6
#define YY_FLEX_SUBMINOR_VERSION 4
#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 &&(!defined(_MSC_VER) || _MSC_VER >= 1800)

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

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

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

#ifndef SIZE_MAX
#define SIZE_MAX               (~(size_t)0)
#endif

#endif /* ! C99 */

#endif /* ! FLEXINT_H */

/* begin standard C++ headers. */

/* TODO: this is always defined, so inline it */
#define yyconst const

#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__((__noreturn__))
#else
#define yynoreturn
#endif

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

/* Promotes a possibly negative, possibly signed char to an
 *   integer in range [0..255] for use as an array index.
 */
#define YY_SC_TO_UI(c) ((YY_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
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k.
 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
 * Ditto for the __ia64__ case accordingly.
 */
#define YY_BUF_SIZE 32768
#else
#define YY_BUF_SIZE 16384
#endif /* __ia64__ */
#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 int yyleng;

extern FILE *yyin, *yyout;

#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
    
    #define YY_LESS_LINENO(n)
    #define YY_LINENO_REWIND_TO(ptr)
    
/* 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.
	 */
	int yy_buf_size;

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

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

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

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

    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 = NULL; /**< 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 int yy_n_chars;		/* number of characters read into yy_ch_buf */
int yyleng;

/* Points to current character in buffer. */
static char *yy_c_buf_p = NULL;
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 ( const char *yy_str  );
YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int 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 flex_uint8_t YY_CHAR;

FILE *yyin = NULL, *yyout = NULL;

typedef int yy_state_type;

extern int yylineno;
int yylineno = 1;

extern char *yytext;
#ifdef yytext_ptr
#undef yytext_ptr
#endif
#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 yynoreturn yy_fatal_error ( const char* msg  );

/* Done after the current pattern has been matched and before the
 * corresponding action - sets up yytext.
 */
#define YY_DO_BEFORE_ACTION \
	(yytext_ptr) = yy_bp; \
	yyleng = (int) (yy_cp - yy_bp); \
	(yy_hold_char) = *yy_cp; \
	*yy_cp = '\0'; \
	(yy_c_buf_p) = yy_cp;
#define YY_NUM_RULES 139
#define YY_END_OF_BUFFER 140
/* 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 const flex_int16_t yy_accept[1112] =
    {   0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
      140,  134,   19,   55,   25,  134,  125,   50,   51,  129,
      130,  131,  124,  128,   52,  126,   56,  132,  127,  133,
      118,  118,  118,  118,  118,  118,  118,  118,  118,  118,
      118,  118,  118,  118,  118,  118,  118,  118,  118,   55,
       21,  130,   60,  131,  124,   52,  130,   66,  131,   52,
      136,   55,   56,  136,   55,  136,  138,   55,   56,  137,
       55,  138,   55,   47,  122,   54,    0,  123,    0,   52,
      118,   56,   56,  119,  121,  120,  118,  118,  118,    0,
        0,    0,  118,  118,  118,  118,  118,  118,  118,  118,

        0,    0,    0,  118,    0,    0,  118,  118,   28,  118,
      118,  118,  118,    0,  118,  118,  118,  118,  118,  118,
      118,  118,  118,   32,  118,  118,  118,  118,    0,    0,
        0,    0,    0,    0,   21,   21,   21,   21,   21,   21,
       21,   21,   21,   21,    0,   54,   60,   60,   59,    0,
       52,    0,   54,   65,   64,   63,    0,   52,  136,  135,
      136,  136,  136,  136,  136,  136,  136,  136,  136,  137,
        0,    0,    0,    0,    0,    0,    0,    0,    0,   53,
      118,  118,    0,    0,   42,   45,    0,   41,    0,    0,
      118,  118,  118,  118,  118,  118,  118,    0,   40,   49,

        0,   39,  118,    0,   38,    0,   37,  118,  118,  118,
       29,  118,    0,  118,    0,    0,   46,    0,   22,  118,
      118,  118,  118,  118,  118,  118,  118,  118,    0,    0,
      118,  118,    0,   27,   48,    0,   26,    0,   36,    0,
       35,    0,   21,   21,   21,   21,   21,   21,   21,   21,
       21,   21,   21,   21,    0,    0,   57,   53,   64,    0,
        0,   61,   53,  136,  136,  136,  136,  136,  136,  136,
      136,  136,  136,  136,  136,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,  118,  118,    0,
        0,    0,    0,   44,    0,   43,    0,  118,  118,  118,

      118,  118,  118,  118,  118,  118,  118,  118,    0,    0,
        0,    0,   31,    0,   30,    0,    0,    0,    0,  118,
      118,  118,  118,  118,  118,  118,  118,  118,  118,    0,
       34,    0,   33,  118,  118,    0,   21,   21,   21,   21,
       21,   21,   21,   21,   21,   21,   21,   21,   21,   58,
       62,  136,  136,  136,  136,  136,  136,  136,  136,  136,
      136,  136,  136,  136,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,  118,  118,    0,
        0,    0,    0,    0,    0,  118,  118,  118,    0,  118,
      118,  118,  118,    0,    0,  118,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,  118,
      118,  118,  118,  113,    0,  118,  118,    0,    0,  114,
        0,    0,   21,   21,   21,   21,   21,   21,   21,   21,
       21,   21,   21,   21,   21,   21,  136,  136,  136,  136,
      136,  136,  136,  136,  136,  136,  136,  136,  136,  136,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,  118,    0,    0,    0,    0,
        0,    0,    0,  118,    0,  118,    0,  118,  118,  118,
      118,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,  118,    0,    0,  118,    0,  118,  118,
        0,    0,    0,    0,    0,    0,    0,   21,   21,   21,
       21,   21,   21,   21,   21,   21,   21,   21,   21,   21,
       21,   21,   21,   14,  136,  136,  136,  136,  136,  136,
      136,    0,  136,  136,  136,  136,  136,  136,  136,  136,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,  118,    0,   97,    0,
      100,   82,    0,    0,    0,    0,  118,    0,  118,  118,
      103,    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,   23,    0,    0,    0,
        0,  118,    0,    0,    0,    0,    0,    0,    0,   21,
       21,   21,   21,   21,   21,   21,   20,   21,   21,   21,
       21,   21,   21,  136,  136,  136,  136,  136,  136,  136,
       20,  136,  136,  136,  136,  136,  136,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,  118,    0,    0,    0,    0,    0,    0,  118,
        0,   24,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,  104,    0,   96,    0,   99,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,  118,    0,    0,    0,    0,
        0,    0,    0,    0,   21,    3,   21,    5,   21,   21,
       18,   21,   21,    1,   21,    2,   20,   21,   21,   21,
       21,   21,   21,   10,   21,  136,    0,  136,    0,  136,
      136,    0,  136,    0,  136,    0,   20,  136,  136,  136,
      136,  136,  136,    0,  136,    0,    0,    0,    0,    0,
        0,    0,    0,  111,    0,  118,    0,    0,    0,    0,
       79,    0,  118,   70,    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,  112,  116,    0,    0,    0,    0,    0,   21,   21,
       18,   17,   21,   21,    6,   21,   21,   21,   21,   21,
      136,  136,    0,  136,    0,  136,  136,  136,  136,  136,
        0,    0,    0,    0,    0,    0,    0,    0,    0,   84,
        0,    0,    0,    0,    0,    0,    0,    0,  117,    0,
       78,   78,    0,    0,   81,    0,   87,    0,    0,    0,
        0,    0,    0,    0,   93,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,  105,   21,   21,   13,
       21,   21,   21,    8,   21,   21,   21,  136,  136,  136,
        0,  136,    0,  136,  136,  136,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,   85,    0,   88,    0,    0,   91,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
       90,    0,    0,    0,    0,   21,   15,   21,   21,   21,
       21,   21,  136,  136,    0,  136,  136,  136,    0,    0,
        0,    0,    0,    0,    0,    0,    0,   67,    0,    0,
        0,    0,  102,    0,    0,    0,    0,    0,  101,  101,
        0,    0,    0,   98,    0,   73,   74,    0,    0,    0,
        0,    0,   21,    4,   21,   12,   21,   21,   21,    9,
      136,    0,  136,  136,  136,  136,    0,    0,    0,    0,

        0,    0,    0,   68,   72,    0,    0,   76,   76,    0,
       83,   86,    0,    0,    0,    0,   95,    0,   94,    0,
        0,    0,    0,    0,    0,   16,   21,   21,  136,    0,
        0,    0,    0,    0,    0,    0,    0,   77,   77,    0,
        0,   92,    0,    0,    0,    0,    0,    0,    0,    0,
       21,    7,   21,  136,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,   89,   69,   71,   80,    0,    0,
        0,   11,    0,    0,    0,    0,    0,    0,    0,    0,
        0,   75,   75,    0,    0,    0,    0,  115,    0,    0,
        0,    0,  109,    0,    0,    0,    0,    0,    0,    0,

      110,    0,    0,    0,  108,    0,    0,  106,    0,  107,
        0
    } ;

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

       55,   56,   57,   58,   59,   33,   60,   61,   62,   63,
       64,   65,   66,   67,   68,   69,   70,   71,   72,   73,
       74,   75,    1,    1,    1,    1,    1,   76,   76,   76,
       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,

       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   76,   76,   76,   76,   76,   76,
       76,   76,   76,   76,   76
    } ;

static const YY_CHAR yy_meta[77] =
    {   0,
        1,    2,    3,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    4,    1,    1,    5,    5,    1,    6,
        1,    1,    1,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    7,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    7
    } ;

static const flex_int16_t yy_base[1172] =
    {   0,
        0,   74,   68,   84,   91,  107,   91,  111,  170,  246,
     2120, 3535, 3535, 2100, 3535,   73, 3535, 3535, 3535, 2087,
       89,  100,  124, 3535,  115, 3535,   75,  112, 3535, 2069,
      256,  148,   78,  257,  155,  101,  150,  180,  301,  357,
      274,  183,  190,  417,  258,  327,  322,  223,  153,  133,
      466,  129,  127,  191,  361,  260,  194,  329,  206,  269,
        0, 2053,  146,   80,  211,  512, 3535, 2040,  273,    0,
      229,  558, 2019,  142, 3535,  184,  298,  324,  230,  341,
      284, 1988,  318, 3535, 3535, 3535,  300,  353,  385, 1986,
      218, 1941,  405,  379,  376,  387,  388,  394,  397,  425,

     1940,    0, 1931,  414, 1930, 1925,  463,  434, 3535,  448,
      464,  557,  465,  221,  538,  468,  566,  548,  555,  553,
      460,  436,  528, 3535,  592,  583,  596,  600, 1927,    0,
     1888, 1883, 1875,  430,    0,  611,  294,  320,  338,  400,
       99,  586,  468,  324,  619,  528, 1879,  349,  627,  646,
      653,  631,  659, 1782, 1759,  663,  671,  679,    0,    0,
      660,  510,  607,  607,  649,  402,  663,  666,  413,    0,
      668,  674,  671,  672,  681,  468,  679,  683,  669,  698,
      709,  716,  740, 1759, 3535,  400, 1746, 3535, 1715, 1706,
      738,  731,  735,  747,  743,  760,  749, 1708, 3535,    0,

     1696, 3535,  753, 1640, 3535, 1630, 3535,  764,  766,  756,
     3535,  775,  825,  817, 1600, 1558,  702,  878,  793,  815,
      762,  818,  821,  827,  801,  840,  847,  849, 1528, 1518,
      850,  843, 1520, 3535,    0, 1513, 3535, 1509, 3535, 1463,
     3535,  876,  742,  795,  791,  835,  797,  841,  851,  868,
      850,  866,  866,  864,  908,  729,  917,  922, 1457,  932,
      890,  934,  940,  902,  910,  906,  920,  930,  924,  928,
      940,  925,  938,  939,  929,  940,  943,  931,  941,  948,
      942,  946,  958,  946,  957,  971,  951,  989,  994,  959,
      977,  973, 1451, 3535, 1413, 3535, 1018,  999, 1002, 1003,

     1052, 1008, 1032, 1029, 1045, 1067, 1083, 1091, 1009, 1038,
     1150, 1414, 3535, 1388, 3535, 1066, 1045,  979, 1059, 1062,
     1095, 1078, 1109, 1147, 1152, 1143, 1130, 1193, 1209, 1359,
     3535, 1330, 3535, 1213, 1217, 1071, 1157, 1091, 1087, 1049,
     1063, 1103, 1120, 1127, 1135, 1150, 1172, 1183, 1195, 1008,
     1011, 1194, 1149, 1206, 1205, 1207, 1216, 1217, 1207, 1207,
     1209, 1215, 1214, 1216, 1213, 1222, 1224, 1225, 1229, 1229,
     1241, 1241, 1243, 1246, 1252, 1251, 1254, 1290, 1281, 1251,
     1243, 1259, 1260, 1256, 1260, 1319, 1332, 1293, 1303, 1298,
     1323, 1327, 1333, 1347, 1368, 1352, 1392, 1257, 1299, 1310,

     1362, 1321, 1352, 1342, 1354, 1366, 1351, 1365, 1357, 1396,
     1425, 1438, 1419, 3535, 1440, 1422, 1433, 1476, 1484, 3535,
     1496, 1393, 1366, 1400, 1440, 1424, 1436, 1435, 1168, 1417,
     1445, 1441, 1439, 1463, 1458, 1317, 1463, 1466, 1492, 1454,
     1478, 1487, 1535, 1473, 1492, 1487, 1484, 1490, 1485, 1555,
     1494, 1496, 1523, 1525, 1531, 1529, 1560, 1522, 1537, 1532,
     1527, 1531, 1526, 1307, 1578, 1560, 1536, 1599, 1605, 1614,
     1546, 1551, 1583, 1628, 1619, 1614, 1582, 1586, 1621, 1626,
     1652, 1596, 1541, 1611, 1666, 1610, 1623, 1632, 1633, 1679,
     1631, 1628, 1663, 1668, 1630, 1693, 1669, 1651, 1674, 1675,

     1662, 1666, 1682, 1694, 1725, 1737, 1739, 1679, 1701,  554,
     1701, 1691, 1696, 1699, 1723, 1717, 1722, 1716, 1727, 1734,
     1742, 1733, 1740, 1730, 1112, 1642, 1728, 1753, 1746, 1750,
     1756, 1756, 1239, 3535, 1741, 1751, 1760, 1771, 1760, 1769,
     1760, 1118, 1798, 1759, 1784, 1781, 1785, 1792, 1792, 1822,
     1237, 1781, 1791, 1790, 1806, 1795, 1803, 1793, 1838, 1789,
     1814, 1807, 1811, 1818, 1821, 1824, 1817, 1815, 3535, 1821,
     3535, 3535, 1825, 1834, 1830, 1826, 1860, 1830, 1866, 1887,
     1906, 1902, 1910, 1851, 1852, 1849, 1868, 1879, 1883, 1854,
     1888, 1933, 1939, 1955, 1958, 1903, 1900, 1914, 1961, 1909,

     1917, 1923, 1940, 1980, 1948, 1982, 1994, 1939, 1945, 2007,
     1946, 1984, 2014, 1953, 1971, 1975, 1970, 1976, 2033, 1202,
       86, 1993, 1185, 1178, 1177, 1174,    0, 1986, 1998, 2003,
     2011, 1090,  227, 2052, 2056, 2011, 1136, 1124, 2059, 2061,
        0, 2005, 2014, 2020, 2023, 1072, 2080, 1118,  510, 2041,
     1114, 1104, 1076, 1065, 2034, 2049, 2051, 2053,  998,  627,
     2086, 2058, 2059, 2050, 2061, 2049, 2052, 2113, 2071, 2071,
     2122,  494, 2127, 2141, 2075, 2143, 2073, 2091, 2146, 2070,
     2088, 2088, 2113, 2125, 3535, 2136, 3535, 2100, 3535, 2116,
     2118, 2125, 2120, 2124, 2123, 2174, 2152, 2139, 2200, 2149,

     2202, 2161, 2165, 2154, 2159, 2222, 2228, 2247, 2171, 2170,
     2185, 2158, 2187, 2251, 1030, 3535, 1017, 3535, 2217, 2202,
      857, 1172,  981, 3535,  976, 3535,    0,  967, 2198, 2206,
     2223, 2177,  958, 3535, 2231, 2266,  925, 2274,  922, 2277,
     2231, 1358, 2280,  887, 2285,  856,    0, 2287, 2235, 2246,
     2253, 2242, 2293,  854, 2301, 2256, 2280,  845, 2278, 2282,
     2283, 2243, 2310, 3535, 2286, 2326, 2329,  825, 2288, 2299,
     3535, 2279, 2351, 3535, 2284, 2299, 2306, 2353, 2318, 2357,
     2319, 2372, 2320, 2378, 2340, 2393, 2335, 2353, 2355, 2343,
     2355, 2355, 2415, 2417, 2367, 2365, 2359, 2374, 2378, 2384,

     2381, 3535, 3535, 2387, 2387, 2401, 2393, 2442, 2434, 2405,
     1708, 3535,  822,  820, 3535, 2412,  798, 1765, 2414, 2444,
     2448, 2419,  789, 2456,  785, 2426,  759, 2469, 2433, 2472,
     2454, 2430, 2438,  753, 1879, 2445, 2461, 2441, 2482, 3535,
     2447, 2456, 2460, 2454, 2508, 2516, 2454, 2451, 3535, 2457,
     2529, 3535, 2535, 2469, 3535, 2543, 3535, 2477,  740, 2549,
     2450, 2489, 2501, 2503, 3535, 2509, 2507, 2518, 2529, 2531,
     2523, 2574, 2542, 2543, 2537, 2537, 3535, 2558,  705, 3535,
     2546,  658,  652, 3535, 2576, 2540, 2581, 2594,  630, 2556,
      606, 2600,  584, 2603, 2549, 2622, 2586,  570, 2578, 2609,

     2550, 2620, 2567, 2577, 2595, 2589, 2652, 2585, 2592, 2630,
     2597, 2660, 2613, 2666, 3535, 2621, 3535, 2609, 2622, 3535,
     2632, 2679, 2638, 2647, 2652, 2688, 2653, 2704, 2718, 2656,
     3535, 2663, 2663, 2671, 2665,  562, 3535, 2675,  552, 2691,
     2673,  520, 2737, 2682,  514, 2741, 2689, 2743,  486, 2695,
     2711, 2694,  434, 2709, 2699, 2717, 2762, 3535, 2768, 2713,
     2712, 2783, 3535, 2731, 2787, 2791, 2748, 2732, 2806, 3535,
     2810, 2741, 2814, 3535, 2777, 3535, 3535, 2780, 2783, 2778,
      413, 2786,  423, 3535,  421, 3535, 2822,  383,  380, 3535,
     2830,  371,  347, 2833,  341, 2835,  338,  301, 2829,  292,

     2790, 2797, 2759, 3535, 3535, 2815, 2801, 2855, 3535, 2859,
     3535, 3535, 2813, 2875, 2878, 2831, 3535, 2822, 3535, 2838,
     2847, 2837,  278, 2849, 2868, 3535,  288, 1396, 2900, 1444,
      282, 2848, 2854, 2902, 2865, 2882, 2923, 2926, 3535, 2929,
     2879, 3535, 2861, 2938, 2952, 2960, 2968, 2884, 2898, 2911,
      279, 3535,  224, 2957,  211,  208, 2976, 2915, 2913, 2929,
     2989, 2930, 2995, 2998, 3535, 3535, 3535, 3535, 2942, 2956,
     2956, 3535, 2975, 2972, 3014, 3020, 2984, 2986,  131, 3034,
     2986, 3040, 3535, 3042, 2996, 3061, 3014, 3535, 2989, 3067,
     3001, 3033, 3535, 3042, 3043, 3076, 3098, 3030, 3036, 3038,

     3535, 3101, 3040, 3042, 3535, 3104, 3047, 3535, 3120, 3535,
     3535, 3140, 3147, 3151, 3158, 3165, 3169, 3174, 3181, 3188,
      136, 3195, 3202, 3209, 3216,   79, 3223, 3230, 3237, 3244,
     3251, 3258, 3265, 3272, 3279, 3286, 3293, 3300, 3305, 3310,
     3317, 3324, 3331, 3338, 3345, 3352, 3359, 3366, 3373, 3380,
     3387, 3394, 3401, 3408, 3415, 3422, 3429, 3436, 3443, 3450,
     3457, 3464, 3471, 3478, 3485, 3492, 3499, 3506, 3513, 3520,
     3527
    } ;

static const flex_int16_t yy_def[1172] =
    {   0,
     1111,    1,    1,    1,    1,    1, 1112, 1112, 1113, 1113,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1114, 1111, 1111, 1111, 1111, 1111,
     1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114,
     1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1111,
     1115, 1111, 1111, 1111, 1111, 1114, 1111, 1111, 1111, 1114,
     1116, 1111, 1111, 1116, 1111, 1116, 1111, 1111, 1111, 1117,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1114, 1114,
     1114, 1111, 1111, 1111, 1111, 1111, 1114, 1114, 1114, 1118,
     1111, 1119, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114,

     1120, 1121, 1122, 1114, 1123, 1124, 1114, 1114, 1111, 1114,
     1114, 1114, 1114, 1111, 1114, 1114, 1114, 1114, 1114, 1114,
     1114, 1114, 1114, 1111, 1114, 1114, 1114, 1114, 1125, 1126,
     1127, 1128, 1129,   72, 1115, 1115, 1115, 1115, 1115, 1115,
     1115, 1115, 1115, 1115, 1111, 1111, 1111, 1111, 1111, 1111,
     1114, 1111, 1111, 1111, 1111, 1111, 1111, 1114, 1116, 1116,
     1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1117,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1114,
     1114, 1114, 1111, 1118, 1111, 1111, 1119, 1111, 1130, 1131,
     1114, 1114, 1114, 1114, 1114, 1114, 1114, 1120, 1111, 1121,

     1122, 1111, 1114, 1123, 1111, 1124, 1111, 1114, 1114, 1114,
     1111, 1114, 1111, 1114, 1132, 1133, 1111, 1111, 1114, 1114,
     1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1134, 1135,
     1114, 1114, 1125, 1111, 1126, 1127, 1111, 1128, 1111, 1129,
     1111, 1111, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115,
     1115, 1115, 1115, 1115, 1111, 1111, 1111, 1114, 1111, 1111,
     1111, 1111, 1114, 1116, 1116, 1116, 1116, 1116, 1116, 1116,
     1116, 1116, 1116, 1116, 1116, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1114, 1114, 1111,
     1111, 1111, 1130, 1111, 1131, 1111, 1111, 1114, 1114, 1114,

     1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1111, 1111,
     1111, 1132, 1111, 1133, 1111, 1111, 1111, 1111, 1111, 1114,
     1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1114, 1134,
     1111, 1135, 1111, 1114, 1114, 1111, 1115, 1115, 1115, 1115,
     1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1111,
     1111, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116,
     1116, 1116, 1116, 1116, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1114, 1114, 1111,
     1111, 1111, 1111, 1111, 1111, 1114, 1114, 1114, 1111, 1114,
     1114, 1114, 1114, 1111, 1111, 1114, 1111, 1111, 1111, 1111,

     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1114,
     1114, 1114, 1114, 1111, 1111, 1114, 1114, 1111, 1111, 1111,
     1111, 1111, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115,
     1115, 1115, 1115, 1115, 1115, 1136, 1116, 1116, 1116, 1116,
     1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1137,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1138, 1111, 1114, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1114, 1111, 1114, 1111, 1114, 1114, 1114,
     1114, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,

     1111, 1111, 1111, 1114, 1111, 1111, 1114, 1111, 1114, 1114,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1115, 1115, 1115,
     1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115,
     1115, 1115, 1136, 1111, 1116, 1116, 1116, 1116, 1116, 1116,
     1116, 1111, 1116, 1116, 1116, 1116, 1116, 1116, 1116, 1137,
     1138, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1114, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1114, 1111, 1114, 1114,
     1114, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,

     1111, 1111, 1111, 1111, 1111, 1111, 1114, 1111, 1111, 1111,
     1111, 1114, 1139, 1111, 1111, 1111, 1111, 1111, 1111, 1140,
     1141, 1115, 1115, 1115, 1142, 1143, 1144, 1115, 1115, 1115,
     1115, 1115, 1145, 1146, 1147, 1116, 1116, 1116, 1148, 1149,
     1150, 1116, 1116, 1116, 1116, 1116, 1151, 1152, 1153, 1111,
     1111, 1111, 1154, 1155, 1111, 1111, 1111, 1111, 1111, 1156,
     1111, 1111, 1114, 1111, 1111, 1111, 1111, 1111, 1111, 1114,
     1111, 1114, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,

     1111, 1111, 1111, 1111, 1111, 1114, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1140, 1111, 1141, 1111, 1141, 1115,
     1111, 1115, 1142, 1111, 1143, 1111, 1144, 1157, 1115, 1115,
     1115, 1115, 1145, 1111, 1145, 1146, 1152, 1147, 1153, 1147,
     1116, 1111, 1148, 1154, 1149, 1155, 1150, 1158, 1116, 1116,
     1116, 1116, 1151, 1156, 1151, 1153, 1111, 1159, 1111, 1111,
     1111, 1111, 1156, 1111, 1111, 1114, 1111, 1111, 1111, 1111,
     1111, 1111, 1114, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,

     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1141, 1115,
     1111, 1111, 1115, 1157, 1111, 1115, 1115, 1160, 1115, 1145,
     1147, 1116, 1111, 1158, 1159, 1116, 1116, 1161, 1116, 1151,
     1153, 1111, 1111, 1111, 1162, 1111, 1156, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1141, 1115, 1111,
     1115, 1115, 1160, 1111, 1160, 1115, 1145, 1147, 1116, 1116,
     1111, 1161, 1162, 1161, 1116, 1151, 1153, 1111, 1111, 1162,

     1111, 1156, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1163, 1111, 1115, 1115, 1160,
     1115, 1164, 1165, 1116, 1111, 1161, 1116, 1166, 1167, 1111,
     1162, 1111, 1168, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1163, 1111, 1115, 1111, 1160, 1115, 1164, 1111,
     1165, 1167, 1116, 1161, 1116, 1166, 1168, 1111, 1162, 1111,

     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1169, 1115, 1170, 1111,
     1171, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1169, 1111, 1115, 1170, 1171, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,

     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
        0, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111
    } ;

static const flex_int16_t yy_nxt[3612] =
    {   0,
       12,   13,   14,   15,   12,   16,   17,   15,   18,   19,
       20,   21,   12,   22,   23,   24,   25,   25,   26,   27,
       28,   29,   30,   31,   32,   33,   33,   34,   35,   36,
       37,   38,   33,   33,   39,   33,   40,   41,   42,   33,
       43,   44,   45,   46,   33,   47,   48,   33,   49,   12,
       31,   32,   33,   33,   34,   35,   36,   37,   38,   33,
       39,   33,   40,   41,   42,   33,   43,   44,   45,   46,
       33,   47,   48,   33,   49,   33,   50,   82,   51,   52,
       53,   54,   55,  235,   56,   56,   50,  718,   51,   74,
       74,   79,   13,   62,   83,   52,   53,   54,   55,  719,

       56,   56,   57,   58,   59,   76,   76,   60,   60,   50,
       63,   51,   13,   65,   79,   66,   76,   76,   57,   58,
       59,  160,   64,   60,   60,   77,   77,   79,   79,  147,
       63,   80,   80,   84,   85,   73,  250,  134,   78,  148,
      200,  100,   64,  145, 1087,  146,  146,  160,   82,   64,
       79,   90,   91,  101,  102,   92,  132,  103,   74,   74,
      133,   79,  250,   79,   79,   83,   79,  100,   79,   64,
       67,   13,   68,   67,   67,   67,   67,   67,   67,   67,
       67,   67,   67,   67,   67,   67,   67,   67,   67,   69,
       67,   67,   67,   79,   93,   98,   79,   79,   99,   79,

       76,   76,   79,   79,   79,  145,  152,  146,  146, 1072,
      153,  153, 1052,   73,  116,  134,  104,  117,  152,   67,
       93,   98,  153,  153,   99, 1072,  129,  130,  734,   79,
      131,   73,   79,  134,  186,  186,   79,  217,  217,   79,
      735,  116,  104,   79,  117,   67,   67,   13,   71,   67,
       72,   67,   67,   67,   67,   67,   67,   67,   67,   67,
       67,   67,   67,   67,   67,   69,   67,   67,   67,   79,
       79,   79,   79,   79,  145,   82,  151,  151,  114,   79,
     1052,  152,   79, 1052,   87,  158,  158,   79,  123, 1052,
       88, 1048,   83,   94, 1030,   67,   95,   79,   89,   77,

       77,   96, 1026,   97,  105,   79,   79,   79,  106,   79,
      115,   87,   78,   79,   79,  123,   88,  246,   79,   94,
       82,   67,   95,   79,   89,   77,   77,   96,  107,   97,
      124,  154,  108,   79,  124,   79,  115,   83,   78,  990,
       79,  155,  181, 1030,  246,  156,  156,  247, 1026,   79,
       79,  147,  127,  128,   79,  107,  157,  180,  180,  108,
      109,  148,   77,   77,  109,  125,   79,  254,  181,  248,
       79,   79,  984,  126,  247,   78,   79,  149,  149,  127,
      128,  990,  110,  157,  111, 1028,  183,  183,  150,   79,
       79,  125,   79,  254,  112,  182,  248,  183,   79,  126,

       79,   79,   79,  113,  183,  191,   79,   79,  189,  110,
       79,  111,  190,  194,  193,  150,  186,  186,   79,  192,
      112,  182, 1026,  249,  984,   79, 1024,   79,   79,  113,
       79,  195,  191,  196,   79,  990,   79,   79,   79,  271,
      194,  193,  118,   79,  119,  192,   79,   79,  120,   79,
      249,  211,  197,  242,   79,  211,  275,  195,  203,  196,
      121,   79,  122,   79, 1111,  271,   79,  226,  215,  118,
      210,  119,  216,   79,   79,  120,   79,   79,   79,  197,
      242,   79,  275,   79,  203,   79,  121,  984,  122,  136,
     1111,  137,  138,  219,  226,  253,  210,   79,  225,  208,

      139,  140,  141,  142,  209,  283,  143,   79,  144,   79,
      212,  718,   79,   79,   79,  986,  136,   79,  137,  138,
      219,  990,  253,  756,  225,  208,  139,  140,  141,  142,
      209,  283,  143,  267,  144,  161,  212,  162,  163,  218,
      218,   79,  145,   79,  146,  146,  164,  165,  166,  167,
      218,   79,  168,  986,  169,  227,  613,  218,  213,  213,
      267,   79,  161,  984,  162,  163,   79,   79,   79,  213,
       79,  937,  164,  165,  166,  167,  213,   79,  168,   79,
      169,  171,  227,  172,  173,  884,  229,   79,  222,  220,
      230,  223,  174,  175,  176,  177,   79,   79,  178,  214,

      179,  224,   79,   79,   79,   79,   79,  221,  171,   79,
      172,  173,  251,   79,  222,   79,  220,  223,  174,  175,
      176,  177,  945,  231,  178,  214,  179,  224,  734,  228,
      252,  937,   79,  221,  268,  149,  149,  243,  269,  251,
      763,   79,  232,  149,  149,   79,  150,  156,  156,   79,
      231,  244,  245,  884,  150,  228,  252,  255,  157,  255,
      256,  268,  257,  257,  243,  269,   79,  145,  232,  258,
      258,  152,  270,  150,  939,  153,  153,  244,  245,  156,
      156,  150,  260,  261,  260,  157,  264,  262,  262,  272,
      157,  152,   79,  274,  276,  263,  263,  279,  280,  270,

      265,  266,   79,  281,  282,  284,  937,  273,  277,  278,
      286,   79,  287,  264,  180,  180,  272,  157,  217,  217,
      274,  276,   79,  285,  279,  280,  265,  266,   79,   79,
      281,  282,  284,  273,  277,  278,  288,  286,  287,  297,
      297,  183,  183,  289,   79,  350,  350,   79,   79,  285,
      297,   79,  183,  919,  298,  891,   79,  297,   79,  183,
       79,  891,   79,  288,  290,   79,   79,  291,  337,   79,
      289,  299,  303,   79,  300,   79,  304,   79,  301,   79,
       79,  298,  292,  307,   79,  302,  815,   79,   79,  322,
      880,  290,   79,  305,  291,  337,   79,  299,   79,  303,

      882,  300,   79,  304,  301,   79,   79,  306,  292,   79,
      307,   79,  302,   79,   79,   79,  322,  308,  311,  311,
      305,  815,  338,  880,   79,  341,  213,  213,   79,  311,
       79,   79,  339,  306,   79,  320,  311,  213,  841,  326,
       79,  321,   79,  308,  213,  323,  815,  324,  309,  338,
       79,  310,  341,   79,  325,  734,   79,  726,  339,  811,
       79,  320,   79,   79,   79,  326,   79,   79,  321,  340,
       79,  812,  323,  335,  324,  309,   79,  342,  310,  218,
      218,  325,  327,  328,  343,  329,  334,  345,  724,   79,
      218,  344,   79,  346,  347,  340,   79,  218,   79,   79,

      335,  348,  276,  342,  349,  316,  351,  351,  327,  328,
      343,  329,  334,  345,  317,  318,  336,  278,  344,  319,
      346,  347,  256,  718,  257,  257,  716,  348,  352,  276,
      349,  256,  316,  257,  257,   79,  145,  353,  258,  258,
      317,  318,  336,  278,  261,  319,  261,  354,  262,  262,
      262,  262,  152,   79,  355,  352,  263,  263,  356,  734,
      357,  358,  360,  359,  353,  361,  365,  362,  815,  364,
      366,   79,  367,  354,  363,  368,  369,  726,  370,  371,
      355,  372,  724,  373,  374,  356,  357,  358,  360,   79,
      359,  377,  361,  365,  362,  364,  380,  366,  367,  375,

      363,  368,   79,  369,  370,  371,  376,   79,  372,  373,
      383,  374,   79,  381,  382,   79,   79,  377,  718,  297,
      297,   79,  380,  408,  350,  350,  375,  351,  351,  378,
      297,  716,  376,  386,  379,  398,  383,  297,   79,  381,
      382,  388,   79,   79,  387,   79,  384,  762,   79,  408,
      390,   79,   79,  389,  389,  378,  385,   79,   79,  386,
      379,  399,  398,  392,  389,   79,  726,  388,  394,  394,
      387,  389,  407,  384,  391,   79,  390,  724,   79,  394,
       79,   79,  385,  427,  395,  395,  394,  393,  399,  392,
      409,   79,  397,  397,   79,  395,   79,  428,  422,  407,

      391,   79,  395,  397,   79,  410,  742,  405,   79,  427,
      397,   79,  406,  393,  425,  721,   79,  409,  426,  716,
      412,  752,   79,  428,  396,  422,  742,   79,  526,  526,
      429,  410,   79,  405,  559,  559,  413,  721,  406,  732,
       79,  425,  411,   79,   79,  426,  412,  430,  414,  414,
      396,  311,  311,  415,  415,  417,   79,  429,   79,  414,
       79,  414,  311,  413,  415,   79,  414,  431,  411,  311,
      525,  415,  439,  400,  430,  726,  432,  401,  724,   79,
      722,  402,  417,  416,  526,  526,  721,  403,  813,  813,
      433,  404,   79,  431,  418,  418,   79,  423,  424,  439,

      400,   79,  432,  716,  401,  418,   79,  434,  402,  416,
      419,  419,  418,  403,  420,  420,  433,  404,  421,  421,
      435,  419,   79,  423,  424,  420,   79,  420,  419,  421,
       79,  436,  420,  434,  437,  438,  421,  440,  534,  441,
      534,  442,   79,  443,  444,  453,  435,  445,  446,  447,
      448,  449,  450,  451,  452,  454,  457,  436,   79,  455,
      437,  438,   79,  456,  440,  441,   79,  442,  458,  468,
      443,  444,  453,  445,  446,  447,  448,  449,  450,  451,
      452,  459,  454,  457,  460,  455,  461,  462,  463,  456,
      464,  465,  465,  467,   79,  458,  468,  469,  470,  471,

      472,  488,  465,   79,  389,  389,   79,  459,  534,  465,
      460,   79,  461,  462,  463,  389,  464,  466,  534,  467,
      473,  473,  389,  469,  470,  471,  472,  488,  477,  478,
       79,  473,   79,  475,  475,  476,   79,  333,  473,   79,
       79,  489,   79,  466,  475,   79,   79,   79,  394,  394,
      479,  475,  490,  485,  485,  477,  478,  495,  480,  394,
      474,  476,  331,  481,  485,   79,  394,  489,   79,  395,
      395,  485,   79,  498,  823,  823,   79,  479,  490,  499,
      395,   79,   79,  495,  482,  480,  474,  395,  496,  483,
      481,  500,  502,  397,  397,  315,  497,  501,  491,  492,

      498,   79,  484,  493,  397,  503,  499,  518,  494,   79,
      482,  397, 1053, 1053,  496,  483,  517,  313,  500,  502,
      296,  486,  497,  501,  491,  492,  505,  505,  484,  493,
      487,  503,   79,  518,  494,   79,  504,  505,   79,  506,
      506,  415,  415,  517,  505,   79,   79,  519,  486,  509,
      506,   79,  415,  522,  294,  507,  487,  506,  527,  415,
     1056, 1056,  504,  510,  523,  520,  524,  508,   79,  259,
      241,   79,  528,  519,   79,  529,  509,  418,  418,  530,
      522,  507,   79,  539,  527,  419,  419,   79,  418,  521,
      510,  523,  520,  524,  508,  418,  419,  421,  421,  528,

      531,  529,  532,  419,  535,  530,  540,  512,  421,  513,
      539,  514,  239,  536,  544,  421,  511,  537,  541,  545,
      237,  546,  515,  234,  547,  333,  531,  548,  532,  549,
      535,  331,  516,  540,  512,  552,  513,  542,  514,  536,
      544,  538,  511,  553,  537,  541,  545,  546,  554,  515,
      547,  543,  543,  548,  556,  549,  534,  551,  516,  557,
      558,  552,  542,  560,  561,  315,  562,  563,  564,  553,
      565,  584,  555,   79,  551,  554,  559,  559,  568,  465,
      465,  556,  573,  567,  473,  473,  557,  558,  574,  560,
      465,  561,  562,  563,  564,  473,  565,  465,  584,   79,

      569,  569,  473,  313,  568,  566,  571,  571,  573,   79,
      567,  569,  570,  569,  574,  572,  572,  571,  569,  571,
      475,  475,  578,  579,  571,  575,  572,   79,  572,  473,
      473,  475,  566,  572,   79,   79,  583,  207,  475,   79,
      473,   79,  585,  205,  627,  577,  590,  473,  578,  579,
      589,  575,  581,  582,  582,  591,  592,  594,  526,  526,
      576,  580,  583,   79,  582,   79,  595,  485,  485,  585,
       79,  582,  577,  590,  598,   79,  589,   79,  485,  581,
      593,  593,  591,  592,  594,  485,  576,  580,  596,  586,
      587,  593,  595,  597,  599,  599,  600,  602,  593,  601,

      598,   79,  603,  202,  604,  599,  605,   79,  588,  606,
      811,  199,  599,  296,   79,  596,  586,  587,  294,  611,
      597,  607,  812,  600,  602,  601,  505,  505,  614,  603,
      604,  615,  605,  616,  588,  617,  606,  505,  506,  506,
      610,  610,  612,   79,  505,  611,  618,  554,  607,  506,
       79,  610,   79,  188,  619,  614,  506,  615,  610,  616,
      620,  617,  185,  621,  622,  623,  884,  608,  612,  624,
      625,  259,  626,  618,  554,  628,  629,  630,  885,  609,
      619,  631,  632,  633,  154,  634,  620,  635,   79,  621,
      636,  622,  623,  608,  637,  624,  638,  625,  626,  639,

      641,  628,  640,  629,  630,  609,  642,  643,  631,  632,
      633,  634,  644,  635,  543,  543,  645,  636,  646,  647,
      650,  637,  638,  534,  551,  648,  639,  649,  640,  651,
       79,  652,  642,  653,  643,  654,  655,  656,  657,  644,
      641,  551,  658,  645,  659,  646,  647,  650,  660,  661,
      666,  648,  664,  649,  559,  559,  651,  652,  665,  663,
      653,  654,  655,  667,  656,  657,   79,  668,  669,  658,
      662,  659,  671,   79,  677,  660,  661,  666,  664,   79,
      884,  147,  241,  683,  665,  663,  239,  678,  673,  673,
      667,  679,  900,  668,  669,  237,  662,  670,  671,  673,

       79,  677,  672,  582,  582,  680,  673,  674,  674,   79,
      683,  676,  676,  678,  582,   79,  681,  679,  674,   79,
      682,  582,  676,  670,  684,  674,  690,  691,  672,  676,
      234,  680,  207,  205,  685,  685,   79,  692,  202,  675,
      593,  593,  681,  199,  696,  685,  682,  685,  188,  695,
      684,  593,  685,  690,  691,   79,  687,  687,  593,  689,
      689,  697,  599,  599,  692,  675,  686,  687,  688,  687,
      689,  696,  689,  599,  687,  695,  700,  689,  698,  702,
      599,  699,  699,  415,  415,  703,  705,  697,  693,  185,
       82,  709,  699,  686,  415,  701,  701,   79,  694,  699,

      710,  415,  404,  700,  698,  702,  701,   79,  610,  610,
      711,  703,  705,  701,  712,  693,  613,  709,  713,  610,
      720,   73,  728,  729,  694,  706,  610,  710,  404,  730,
      707,  707,  704,   79,  714,  714,  711,  731,  741,  749,
      712,  748,   73,   79,  713,  714,  750,  720,  728,  751,
      729,  706,  714,  716,  737,   73,  730,  718,  739,  704,
      724,  744,  726,  746,  731,  741,  749,  748,  757,  740,
      758,  737,   79,  750,  759,  739,  751,  760,  744,  761,
      746,  734,  754,  765,   79,  767,  766,  764,  764,  768,
       86,  769,  770,  755,  772,  757,  758,   75,  764,  754,

      764,  759,   73,  778,  760,  764,  761,  773,   79,  780,
      765,  767,  783,  766,  771,  771,  768,  769,  770, 1111,
       79,  772,  781,  774,  774,  771,  784,  771,  673,  673,
      778,  785,  771,  773,  774,  780,  774,  788,  783,  673,
      786,  774,  674,  674,  676,  676,  673,  782,  782,  781,
      787,  792,  784,  674,  789,  676,  790,  785,  782,  791,
      674,  493,  676,  788,  775,  782,  494,  786,  497,  776,
      779, 1111,  491,  492,  777,  793,  793,  787,  792,  794,
      789,  795,  790,  796,  798,  791,  793,  493,  799,  807,
      775,  800,  494,  793,  497,  776,  801,  779,  491,  492,

      777,  699,  699,  701,  701,  804,  794,  795, 1111,  796,
      808,  798,  699,  805,  701,  799,  807,  800,  718,  699,
      806,  701,  801,  802,  802,  819, 1111,  810,  816,  803,
      803,  804,  734,  817,  802,   79,  802,  808,  487,  805,
      803,  802,  803,  797,  708,  708,  806,  803,  803,  803,
      818,  819,  714,  714,  810,  816,  822,  718,  809,  803,
      817,  803, 1111,  714,  487,  826,  803,  716,  737,  797,
      714,   79,  820,  827,  309,  718,  739,  818,  718,  739,
      828,  724,  744,  822,  809,  737,  726,  746,  815,  825,
      829,  836,  826,  739,  734,  754,  739,  831,  820,  744,

      827,  309,  734,  754,  746,  832,  825,  828,  833,  834,
      835,  734,  754,  838, 1111, 1111,  829,  836,  821,  842,
      754,  844,  843,  831,  846, 1111, 1111,  839,  839,  847,
      840,  840,  832,  848, 1111,  833,  834,  835,  839,   79,
      838,  840,  830,  840,  821,  839,  842,  844,  840,  843,
      846,  837,  845,  845,  849,  849,  847,  850,  851,  851,
      848,  853,  854,  845,   79,  849,  858,  849,  830,  851,
      845,  852,  849,  782,  782,   79,  851,  837,  856,  855,
      855,  859,  860,  850,  782,  861,  862,  853,  854,  863,
      855,  782,  855,  858,  857,  857,  587,  855,  866,  869,

       79, 1111,  867,  870,  856,  857,  868,  857,  859,  860,
      873,  861,  857,  862,  588,  863,  793,  793,  865,  865,
      871,  872,  874,  587,  875,  866,  869,  793,  867,  865,
      870,  865,  868,  876,  793,  718,  865,  873,  879,  881,
      588,  886,  864,  877,  877,  734,  871,  872,  874,  718,
      739,  875,  889,  890,  877,  718,  877,  815,  825,  876,
      895,  877,  734,  898,  879,  899,  881,  739,  886,  864,
      884,  893,  901,  734,  754,  825,  878,  911,  889,  903,
      890,  921,  894,  839,  839,  905,  887,  895,  893,  898,
      888,  754,  899,  906,  839,  907,  897,  908,  912,  901,

      913,  839,  878,  902,  911,  903,  916,  904,  921,  845,
      845,  905,  887,  918,  896,  922,  888,  910,  910,  906,
      845,  907,  897,  908,  912, 1111,  913,  845,  910,  902,
      914,  914,  916,  909,  904,  910,  915,  915,  923,  918,
      896,  914,  922,  924,  917,  917,  925,  915,  914,  915,
      920,  920,  926,  927,  915,  917,  928,  917,  929,  718,
      909,  920,  917,  920,  923,  930,  482,  932,  920,  924,
      933,  938,  925,  934,  935,  931,  931,  884,  926,  927,
      941,  944,  734,  928,  936,  929,  931,  718,  931,  947,
      952,  930,  482,  931,  932,  718,  739,  933,  938,  934,

      935,  884,  893,  950,  884,  893,  941,  942,  944,  954,
      884,  936,  949,  739,  955,  947,  952,  940,  956,  893,
      943,  734,  893,  734,  754,  957,  959, 1111, 1111,  960,
      950,  910,  910,  962,  942,  954,  964, 1111,  966,  949,
      955,  754,  910,  940,  946,  956,  953,  943,  948,  910,
      951,  957,  959,  958,  958,  960,  965,  961, 1111,  962,
      967,  963,  963,  964,  958,  966,  958,  914,  914,  968,
      946,  958,  963,  953,  963,  948,  951,  975,  914,  963,
      969,  969,  965,  971,  961,  914,  967,  972,  973,  974,
      974,  969,  884,  970,  979,  968,  978,  981,  969,  980,

      974,  982,  974,  482,  975,  976,  976,  974,  985,  971,
      988, 1111,  884,  972,  973,  993,  976, 1111,  976,  977,
      977,  979,  978,  976,  981,  980,  995,  982,  998,  482,
      977, 1000,  977,  987,  985, 1002,  988,  977,  984,  992,
     1001,  993,  884,  893,  990,  997, 1003, 1111, 1111, 1006,
     1111, 1007,  995,  999,  998, 1111,  992, 1000, 1111,  987,
      893, 1002,  997, 1004, 1004, 1010, 1111, 1001, 1014, 1005,
     1005, 1013, 1111, 1003, 1004, 1006, 1004, 1007, 1018,  999,
     1005, 1004, 1005,  994, 1008, 1008, 1034, 1005, 1011, 1011,
     1111, 1010, 1012, 1012, 1014, 1008, 1111, 1009, 1013, 1011,

     1111, 1011, 1008, 1012, 1018, 1012, 1011, 1015, 1015,  994,
     1012, 1017, 1017, 1034, 1020, 1019, 1019, 1021, 1015, 1022,
     1023, 1025, 1017,  884, 1017, 1015, 1019, 1032, 1019, 1017,
      884,  984,  992, 1019,  884,  893,  990,  997, 1033, 1016,
     1020, 1035, 1041, 1021, 1036, 1022, 1023, 1025, 1027,  992,
     1111, 1111,  893, 1032,  997, 1031, 1037, 1037, 1043, 1029,
     1038, 1038, 1044, 1111, 1033, 1016, 1047, 1037, 1035, 1041,
     1036, 1038, 1045, 1039, 1037, 1027, 1042, 1042, 1038, 1015,
     1015, 1046, 1031, 1049, 1057, 1043, 1029, 1042, 1044, 1042,
     1015, 1058,  775, 1047, 1042, 1050, 1059, 1015, 1045, 1111,

     1040, 1052, 1055,  571,  571, 1060, 1063, 1046, 1064, 1049,
     1057, 1016, 1111, 1111,  571, 1111,  571, 1058,  775, 1055,
     1069,  571, 1050, 1059, 1037, 1037, 1040, 1061, 1061, 1070,
     1038, 1038, 1060, 1063, 1064, 1037, 1111, 1016, 1061, 1065,
     1065, 1038, 1037, 1039, 1111, 1061, 1069, 1071, 1038, 1073,
     1065, 1111, 1065, 1066, 1066, 1074, 1070, 1065, 1052, 1055,
      775, 1067, 1067, 1075, 1066, 1111, 1066, 1076, 1062, 1068,
     1068, 1066, 1067, 1071, 1067, 1073, 1055,  845,  845, 1067,
     1068, 1074, 1068, 1111, 1111, 1077,  775, 1068,  845, 1075,
     1061, 1061, 1078, 1076, 1062,  845,  689,  689, 1079,  970,

      970, 1061, 1080, 1081, 1111, 1111, 1111,  689, 1061,  689,
      970, 1077,  970, 1086,  689, 1082, 1082,  970, 1078, 1085,
     1092, 1039, 1039, 1089, 1079, 1096, 1082, 1111, 1083, 1080,
     1081, 1062, 1039, 1082, 1039, 1088, 1088, 1111, 1097, 1039,
     1086, 1090, 1090, 1082, 1082, 1085, 1088, 1092, 1088, 1089,
     1094, 1096, 1090, 1088, 1082, 1084, 1083, 1062, 1095, 1090,
     1098, 1082, 1093, 1093, 1097, 1099, 1100, 1106, 1090, 1090,
     1102, 1103, 1104, 1093, 1109, 1093, 1094, 1101, 1101, 1090,
     1093, 1084, 1091, 1111, 1095, 1107, 1090, 1098, 1101, 1111,
     1101, 1111, 1099, 1100, 1106, 1101, 1102, 1103, 1104, 1083,

     1083, 1109, 1105, 1105, 1111, 1108, 1108, 1111, 1091, 1091,
     1083, 1107, 1083, 1105, 1111, 1105, 1108, 1083, 1108, 1111,
     1105, 1110, 1110, 1108, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1110, 1111, 1110, 1091, 1111, 1111, 1111, 1110,
       61,   61,   61,   61,   61,   61,   61,   70,   70,   70,
       70,   70,   70,   70,   81,   81, 1111,   81,  135, 1111,
      135,  135,  135,  135,  135,  159, 1111, 1111,  159,  159,
     1111,  159,  170,  170,  184, 1111,  184,  184,  184,  184,
      184,  187, 1111,  187,  187,  187,  187,  187,  198, 1111,
      198,  198,  198,  198,  198,  201, 1111,  201,  201,  201,

      201,  201,  204, 1111,  204,  204,  204,  204,  204,  206,
     1111,  206,  206,  206,  206,  206,  233, 1111,  233,  233,
      233,  233,  233,  236, 1111,  236,  236,  236,  236,  236,
      238, 1111,  238,  238,  238,  238,  238,  240, 1111,  240,
      240,  240,  240,  240,  293, 1111,  293,  293,  293,  293,
      293,  295, 1111,  295,  295,  295,  295,  295,  312, 1111,
      312,  312,  312,  312,  312,  314, 1111,  314,  314,  314,
      314,  314,  330, 1111,  330,  330,  330,  330,  330,  332,
     1111,  332,  332,  332,  332,  332,  533,  533,  533,  533,
      533,  533,  533,  550,  550,  550,  550,  550,  550,  550,

      551,  551,  551,  551,  551,  551,  551,  708, 1111,  708,
      715,  715,  715,  715,  715,  715,  715,  717,  717,  717,
      717,  717,  717,  717,  723,  723,  723,  723,  723,  723,
      723,  725,  725,  725,  725,  725,  725,  725,  727, 1111,
      727,  727,  727,  727,  727,  733,  733,  733,  733,  733,
      733,  733,  736,  736,  736,  736,  736,  736,  736,  738,
      738,  738,  738,  738,  738,  738,  743,  743,  743,  743,
      743,  743,  743,  745,  745,  745,  745,  745,  745,  745,
      747, 1111,  747,  747,  747,  747,  747,  753,  753,  753,
      753,  753,  753,  753,  737,  737,  737,  737,  737,  737,

      737,  739,  739,  739,  739,  739,  739,  739,  744,  744,
      744,  744,  744,  744,  744,  746,  746,  746,  746,  746,
      746,  746,  754,  754,  754,  754,  754,  754,  754,  814,
      814,  814,  814,  814,  814,  814,  824,  824,  824,  824,
      824,  824,  824,  825,  825,  825,  825,  825,  825,  825,
      883,  883,  883,  883,  883,  883,  883,  892,  892,  892,
      892,  892,  892,  892,  893,  893,  893,  893,  893,  893,
      893,  983,  983,  983,  983,  983,  983,  983,  989,  989,
      989,  989,  989,  989,  989,  991,  991,  991,  991,  991,
      991,  991,  996,  996,  996,  996,  996,  996,  996,  992,

      992,  992,  992,  992,  992,  992,  997,  997,  997,  997,
      997,  997,  997, 1051, 1051, 1051, 1051, 1051, 1051, 1051,
     1054, 1054, 1054, 1054, 1054, 1054, 1054, 1055, 1055, 1055,
     1055, 1055, 1055, 1055,   11, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,

     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111
    } ;

static const flex_int16_t yy_chk[3612] =
    {   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,    1,    1,
        1,    1,    1,    1,    1,    1,    2,   27,    2,    3,
        3,    3,    3, 1126,    3,    3,    4,  621,    4,   16,
       16,   33,    7,    7,   27,    4,    4,    4,    4,  621,

        4,    4,    5,    5,    5,   21,   21,    5,    5,    6,
        7,    6,    8,    8,   36,    8,   22,   22,    6,    6,
        6,   64,    7,    6,    6,   23,   23,   33,   25,   53,
        8,   25,   25,   28,   28,   50,  141,   50,   23,   53,
     1121,   36,    8,   52, 1079,   52,   52,   64,   63,    7,
       36,   32,   32,   37,   37,   32,   49,   37,   74,   74,
       49,   32,  141,   37,   25,   63,   49,   36,   35,    8,
        9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
        9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
        9,    9,    9,   38,   32,   35,   42,   32,   35,   37,

       76,   76,   49,   43,   35,   54,   57,   54,   54, 1056,
       57,   57, 1055,   65,   42,   65,   38,   43,   59,    9,
       32,   35,   59,   59,   35, 1053,   48,   48,  633,   38,
       48,   71,   42,   71,   91,   91,   48,  114,  114,   43,
      633,   42,   38,   79,   43,    9,   10,   10,   10,   10,
       10,   10,   10,   10,   10,   10,   10,   10,   10,   10,
       10,   10,   10,   10,   10,   10,   10,   10,   10,   31,
       34,   45,   48,   56,   56,   69,   56,   56,   41,   79,
     1051,   60,   60, 1031,   31,   60,   60,   41,   45, 1027,
       31, 1023,   69,   34, 1000,   10,   34,   81,   31,   77,

       77,   34,  998,   34,   39,   31,   34,   45,   39,   56,
       41,   31,   77,   87,   39,   45,   31,  137,   60,   34,
       83,   10,   34,   41,   31,   78,   78,   34,   39,   34,
       46,   58,   39,   81,   46,   47,   41,   83,   78,  997,
       46,   58,   87,  995,  137,   58,   58,  138,  993,   87,
       39,  148,   47,   47,   80,   39,   58,   80,   80,   39,
       40,  148,   55,   55,   40,   46,   88,  144,   87,  139,
       40,   47,  992,   46,  138,   55,   46,   55,   55,   47,
       47,  989,   40,   58,   40,  988,   89,   89,   55,   95,
       80,   46,   94,  144,   40,   88,  139,   89,   89,   46,

       96,   97,   88,   40,   89,   94,   40,   98,   93,   40,
       99,   40,   93,   97,   96,   55,  186,  186,   93,   95,
       40,   88,  985,  140,  983,   95,  981,  104,   94,   40,
       44,   98,   94,   99,   89,  953,   96,   97,  100,  166,
       97,   96,   44,   98,   44,   95,   99,  108,   44,  122,
      140,  110,  100,  134,   93,  110,  169,   98,  104,   99,
       44,  110,   44,  104,  134,  166,   44,  122,  113,   44,
      108,   44,  113,  121,  100,   44,  107,  111,  113,  100,
      134,  116,  169,  108,  104,  122,   44,  949,   44,   51,
      134,   51,   51,  116,  122,  143,  108,  110,  121,  107,

       51,   51,   51,   51,  107,  176,   51,  672,   51,  121,
      111,  649,  107,  111,  113,  945,   51,  116,   51,   51,
      116,  942,  143,  649,  121,  107,   51,   51,   51,   51,
      107,  176,   51,  162,   51,   66,  111,   66,   66,  115,
      115,  123,  146,  672,  146,  146,   66,   66,   66,   66,
      115,  115,   66,  939,   66,  123,  510,  115,  112,  112,
      162,  118,   66,  936,   66,   66,  120,  510,  119,  112,
      112,  898,   66,   66,   66,   66,  112,  123,   66,  117,
       66,   72,  123,   72,   72,  893,  126,  115,  118,  117,
      126,  119,   72,   72,   72,   72,  126,  118,   72,  112,

       72,  120,  120,  510,  119,  125,  112,  117,   72,  127,
       72,   72,  142,  128,  118,  117,  117,  119,   72,   72,
       72,   72,  891,  127,   72,  112,   72,  120,  660,  125,
      142,  889,  126,  117,  163,  145,  145,  136,  164,  142,
      660,  125,  128,  149,  149,  127,  145,  152,  152,  128,
      127,  136,  136,  883,  149,  125,  142,  150,  152,  150,
      150,  163,  150,  150,  136,  164,  151,  151,  128,  151,
      151,  153,  165,  145,  882,  153,  153,  136,  136,  156,
      156,  149,  157,  157,  157,  152,  161,  157,  157,  167,
      156,  158,  158,  168,  171,  158,  158,  172,  173,  165,

      161,  161,  151,  174,  175,  177,  879,  167,  171,  171,
      178,  180,  179,  161,  180,  180,  167,  156,  217,  217,
      168,  171,  181,  177,  172,  173,  161,  161,  158,  182,
      174,  175,  177,  167,  171,  171,  181,  178,  179,  191,
      191,  183,  183,  182,  192,  256,  256,  180,  193,  177,
      191,  191,  183,  859,  192,  834,  195,  191,  181,  183,
      194,  827,  197,  181,  183,  182,  203,  183,  243,  210,
      182,  193,  197,  196,  194,  221,  203,  208,  195,  209,
      192,  192,  183,  210,  193,  196,  825,  191,  212,  221,
      823,  183,  195,  208,  183,  243,  194,  193,  197,  197,

      817,  194,  203,  203,  195,  210,  219,  209,  183,  196,
      210,  221,  196,  208,  225,  209,  221,  212,  214,  214,
      208,  814,  244,  813,  212,  247,  213,  213,  220,  214,
      214,  222,  245,  209,  223,  219,  214,  213,  768,  225,
      224,  220,  219,  212,  213,  222,  758,  223,  213,  244,
      225,  213,  247,  226,  224,  754,  232,  746,  245,  721,
      227,  219,  228,  231,  220,  225,  214,  222,  220,  246,
      223,  721,  222,  232,  223,  213,  224,  248,  213,  218,
      218,  224,  226,  227,  249,  228,  231,  251,  744,  226,
      218,  250,  232,  252,  253,  246,  227,  218,  228,  231,

      232,  253,  242,  248,  254,  218,  261,  261,  226,  227,
      249,  228,  231,  251,  218,  218,  242,  242,  250,  218,
      252,  253,  255,  739,  255,  255,  737,  253,  264,  242,
      254,  257,  218,  257,  257,  258,  258,  265,  258,  258,
      218,  218,  242,  242,  260,  218,  262,  266,  260,  260,
      262,  262,  263,  263,  267,  264,  263,  263,  268,  733,
      269,  270,  272,  271,  265,  273,  276,  274,  728,  275,
      277,  258,  278,  266,  274,  279,  280,  725,  281,  282,
      267,  283,  723,  284,  285,  268,  269,  270,  272,  263,
      271,  287,  273,  276,  274,  275,  290,  277,  278,  286,

      274,  279,  288,  280,  281,  282,  286,  289,  283,  284,
      292,  285,  298,  291,  291,  299,  300,  287,  717,  297,
      297,  302,  290,  318,  350,  350,  286,  351,  351,  288,
      297,  715,  286,  298,  289,  309,  292,  297,  288,  291,
      291,  300,  304,  289,  299,  303,  297,  659,  298,  318,
      302,  299,  300,  301,  301,  288,  297,  302,  305,  298,
      289,  310,  309,  304,  301,  301,  654,  300,  306,  306,
      299,  301,  317,  297,  303,  320,  302,  653,  304,  306,
      306,  303,  297,  340,  307,  307,  306,  305,  310,  304,
      319,  322,  308,  308,  305,  307,  307,  341,  336,  317,

      303,  301,  307,  308,  308,  320,  652,  316,  321,  340,
      308,  320,  316,  305,  338,  651,  306,  319,  339,  648,
      322,  646,  323,  341,  307,  336,  638,  322,  525,  525,
      342,  320,  307,  316,  542,  542,  323,  637,  316,  632,
      308,  338,  321,  327,  321,  339,  322,  343,  324,  324,
      307,  311,  311,  325,  325,  327,  326,  342,  323,  324,
      324,  324,  311,  323,  325,  325,  324,  344,  321,  311,
      429,  325,  353,  311,  343,  626,  345,  311,  625,  327,
      624,  311,  327,  326,  429,  429,  623,  311,  722,  722,
      346,  311,  326,  344,  328,  328,  324,  337,  337,  353,

      311,  325,  345,  620,  311,  328,  328,  347,  311,  326,
      329,  329,  328,  311,  334,  334,  346,  311,  335,  335,
      348,  329,  329,  337,  337,  334,  334,  334,  329,  335,
      335,  349,  334,  347,  352,  352,  335,  354,  551,  355,
      533,  356,  328,  357,  358,  366,  348,  359,  360,  361,
      362,  363,  364,  365,  365,  367,  370,  349,  329,  368,
      352,  352,  334,  369,  354,  355,  335,  356,  371,  381,
      357,  358,  366,  359,  360,  361,  362,  363,  364,  365,
      365,  372,  367,  370,  373,  368,  374,  375,  376,  369,
      377,  378,  378,  380,  379,  371,  381,  382,  383,  384,

      385,  398,  378,  378,  389,  389,  388,  372,  464,  378,
      373,  390,  374,  375,  376,  389,  377,  379,  436,  380,
      386,  386,  389,  382,  383,  384,  385,  398,  389,  390,
      379,  386,  386,  387,  387,  388,  391,  332,  386,  378,
      392,  399,  388,  379,  387,  387,  393,  390,  394,  394,
      391,  387,  400,  396,  396,  389,  390,  402,  392,  394,
      386,  388,  330,  393,  396,  396,  394,  399,  386,  395,
      395,  396,  391,  404,  742,  742,  392,  391,  400,  405,
      395,  387,  393,  402,  394,  392,  386,  395,  403,  394,
      393,  406,  408,  397,  397,  314,  403,  407,  401,  401,

      404,  396,  395,  401,  397,  409,  405,  423,  401,  410,
      394,  397, 1028, 1028,  403,  394,  422,  312,  406,  408,
      295,  397,  403,  407,  401,  401,  411,  411,  395,  401,
      397,  409,  413,  423,  401,  416,  410,  411,  411,  412,
      412,  415,  415,  422,  411,  410,  417,  424,  397,  416,
      412,  412,  415,  426,  293,  413,  397,  412,  430,  415,
     1030, 1030,  410,  417,  427,  425,  428,  415,  413,  259,
      240,  416,  431,  424,  411,  432,  416,  418,  418,  433,
      426,  413,  417,  440,  430,  419,  419,  412,  418,  425,
      417,  427,  425,  428,  415,  418,  419,  421,  421,  431,

      434,  432,  435,  419,  437,  433,  441,  419,  421,  419,
      440,  419,  238,  438,  444,  421,  418,  439,  442,  445,
      236,  446,  421,  233,  447,  230,  434,  448,  435,  449,
      437,  229,  421,  441,  419,  451,  419,  443,  419,  438,
      444,  439,  418,  452,  439,  442,  445,  446,  453,  421,
      447,  443,  443,  448,  454,  449,  450,  450,  421,  455,
      456,  451,  457,  458,  459,  216,  460,  461,  462,  452,
      463,  483,  453,  466,  450,  453,  457,  457,  467,  465,
      465,  454,  471,  466,  473,  473,  455,  456,  472,  458,
      465,  459,  460,  461,  462,  473,  463,  465,  483,  478,

      468,  468,  473,  215,  467,  465,  469,  469,  471,  466,
      466,  468,  468,  468,  472,  470,  470,  469,  468,  469,
      475,  475,  477,  478,  469,  473,  470,  476,  470,  474,
      474,  475,  465,  470,  479,  478,  482,  206,  475,  480,
      474,  474,  484,  204,  526,  476,  487,  474,  477,  478,
      486,  473,  480,  481,  481,  488,  489,  491,  526,  526,
      475,  479,  482,  476,  481,  481,  492,  485,  485,  484,
      479,  481,  476,  487,  495,  480,  486,  474,  485,  480,
      490,  490,  488,  489,  491,  485,  475,  479,  493,  485,
      485,  490,  492,  494,  496,  496,  497,  499,  490,  498,

      495,  481,  500,  201,  501,  496,  502,  504,  485,  503,
      811,  198,  496,  190,  509,  493,  485,  485,  189,  508,
      494,  504,  811,  497,  499,  498,  505,  505,  511,  500,
      501,  512,  502,  513,  485,  514,  503,  505,  506,  506,
      507,  507,  509,  504,  505,  508,  515,  517,  504,  506,
      509,  507,  507,  187,  516,  511,  506,  512,  507,  513,
      518,  514,  184,  519,  520,  521,  818,  505,  509,  522,
      523,  155,  524,  515,  517,  527,  528,  529,  818,  506,
      516,  530,  531,  532,  154,  535,  518,  536,  507,  519,
      537,  520,  521,  505,  538,  522,  539,  523,  524,  540,

      543,  527,  541,  528,  529,  506,  544,  545,  530,  531,
      532,  535,  546,  536,  543,  543,  547,  537,  548,  549,
      554,  538,  539,  550,  550,  552,  540,  553,  541,  555,
      567,  556,  544,  557,  545,  558,  560,  561,  562,  546,
      559,  550,  563,  547,  564,  548,  549,  554,  565,  566,
      573,  552,  568,  553,  559,  559,  555,  556,  570,  567,
      557,  558,  560,  574,  561,  562,  567,  575,  576,  563,
      566,  564,  578,  577,  584,  565,  566,  573,  568,  579,
      835,  147,  133,  590,  570,  567,  132,  585,  580,  580,
      574,  586,  835,  575,  576,  131,  566,  577,  578,  580,

      580,  584,  579,  582,  582,  587,  580,  581,  581,  577,
      590,  583,  583,  585,  582,  579,  588,  586,  581,  581,
      589,  582,  583,  577,  591,  581,  596,  597,  579,  583,
      129,  587,  106,  105,  592,  592,  580,  598,  103,  582,
      593,  593,  588,  101,  601,  592,  589,  592,   92,  600,
      591,  593,  592,  596,  597,  581,  594,  594,  593,  595,
      595,  602,  599,  599,  598,  582,  593,  594,  594,  594,
      595,  601,  595,  599,  594,  600,  605,  595,  603,  608,
      599,  604,  604,  606,  606,  609,  611,  602,  599,   90,
       82,  614,  604,  593,  606,  607,  607,  612,  599,  604,

      615,  606,  599,  605,  603,  608,  607,  607,  610,  610,
      616,  609,  611,  607,  617,  599,  613,  614,  618,  610,
      622,   73,  628,  629,  599,  612,  610,  615,  599,  630,
      613,  613,  610,  612,  619,  619,  616,  631,  636,  643,
      617,  642,   68,  607,  618,  619,  644,  622,  628,  645,
      629,  612,  619,  634,  634,   62,  630,  635,  635,  610,
      639,  639,  640,  640,  631,  636,  643,  642,  650,  635,
      655,  634,  663,  644,  656,  635,  645,  657,  639,  658,
      640,  647,  647,  662,  670,  664,  663,  661,  661,  665,
       30,  666,  667,  647,  669,  650,  655,   20,  661,  647,

      661,  656,   14,  675,  657,  661,  658,  670,  663,  677,
      662,  664,  680,  663,  668,  668,  665,  666,  667,   11,
      670,  669,  678,  671,  671,  668,  681,  668,  673,  673,
      675,  682,  668,  670,  671,  677,  671,  688,  680,  673,
      683,  671,  674,  674,  676,  676,  673,  679,  679,  678,
      684,  695,  681,  674,  690,  676,  691,  682,  679,  692,
      674,  693,  676,  688,  673,  679,  693,  683,  694,  673,
      676,    0,  686,  686,  674,  696,  696,  684,  695,  697,
      690,  698,  691,  700,  702,  692,  696,  693,  703,  712,
      673,  704,  693,  696,  694,  673,  705,  676,  686,  686,

      674,  699,  699,  701,  701,  709,  697,  698,    0,  700,
      713,  702,  699,  710,  701,  703,  712,  704,  719,  699,
      711,  701,  705,  706,  706,  732,    0,  720,  729,  707,
      707,  709,  735,  730,  706,  706,  706,  713,  699,  710,
      707,  706,  707,  701,  707,  707,  711,  707,  708,  708,
      731,  732,  714,  714,  720,  729,  741,  756,  719,  708,
      730,  708,    0,  714,  699,  749,  708,  736,  736,  701,
      714,  706,  735,  750,  714,  738,  738,  731,  740,  740,
      751,  743,  743,  741,  719,  736,  745,  745,  748,  748,
      752,  762,  749,  738,  753,  753,  740,  756,  735,  743,

      750,  714,  755,  755,  745,  757,  748,  751,  759,  760,
      761,  763,  753,  765,    0,    0,  752,  762,  740,  769,
      755,  772,  770,  756,  775,    0,    0,  766,  766,  776,
      767,  767,  757,  777,    0,  759,  760,  761,  766,  766,
      765,  767,  755,  767,  740,  766,  769,  772,  767,  770,
      775,  763,  773,  773,  778,  778,  776,  779,  780,  780,
      777,  781,  783,  773,  773,  778,  787,  778,  755,  780,
      773,  780,  778,  782,  782,  766,  780,  763,  785,  784,
      784,  788,  789,  779,  782,  790,  791,  781,  783,  792,
      784,  782,  784,  787,  786,  786,  782,  784,  795,  798,

      773,    0,  796,  799,  785,  786,  797,  786,  788,  789,
      804,  790,  786,  791,  782,  792,  793,  793,  794,  794,
      800,  801,  805,  782,  806,  795,  798,  793,  796,  794,
      799,  794,  797,  807,  793,  809,  794,  804,  810,  816,
      782,  819,  793,  808,  808,  820,  800,  801,  805,  821,
      821,  806,  822,  826,  808,  831,  808,  824,  824,  807,
      829,  808,  837,  832,  810,  833,  816,  821,  819,  793,
      828,  828,  836,  830,  830,  824,  809,  847,  822,  838,
      826,  861,  828,  839,  839,  841,  820,  829,  828,  832,
      821,  830,  833,  842,  839,  843,  831,  844,  848,  836,

      850,  839,  809,  837,  847,  838,  854,  839,  861,  845,
      845,  841,  820,  858,  830,  862,  821,  846,  846,  842,
      845,  843,  831,  844,  848,    0,  850,  845,  846,  837,
      851,  851,  854,  845,  839,  846,  853,  853,  863,  858,
      830,  851,  862,  864,  856,  856,  866,  853,  851,  853,
      860,  860,  867,  868,  853,  856,  869,  856,  870,  878,
      845,  860,  856,  860,  863,  871,  851,  873,  860,  864,
      874,  881,  866,  875,  876,  872,  872,  885,  867,  868,
      886,  890,  887,  869,  878,  870,  872,  897,  872,  895,
      901,  871,  851,  872,  873,  888,  888,  874,  881,  875,

      876,  892,  892,  899,  894,  894,  886,  887,  890,  903,
      900,  878,  897,  888,  904,  895,  901,  885,  905,  892,
      888,  902,  894,  896,  896,  906,  908,    0,    0,  909,
      899,  910,  910,  911,  887,  903,  913,    0,  918,  897,
      904,  896,  910,  885,  894,  905,  902,  888,  896,  910,
      900,  906,  908,  907,  907,  909,  916,  910,    0,  911,
      919,  912,  912,  913,  907,  918,  907,  914,  914,  921,
      894,  907,  912,  902,  912,  896,  900,  927,  914,  912,
      922,  922,  916,  923,  910,  914,  919,  924,  925,  926,
      926,  922,  940,  922,  932,  921,  930,  934,  922,  933,

      926,  935,  926,  914,  927,  928,  928,  926,  938,  923,
      941,    0,  951,  924,  925,  944,  928,    0,  928,  929,
      929,  932,  930,  928,  934,  933,  947,  935,  950,  914,
      929,  952,  929,  940,  938,  955,  941,  929,  943,  943,
      954,  944,  946,  946,  948,  948,  956,    0,    0,  960,
        0,  961,  947,  951,  950,    0,  943,  952,    0,  940,
      946,  955,  948,  957,  957,  964,    0,  954,  968,  959,
      959,  967,    0,  956,  957,  960,  957,  961,  972,  951,
      959,  957,  959,  946,  962,  962, 1003,  959,  965,  965,
        0,  964,  966,  966,  968,  962,    0,  962,  967,  965,

        0,  965,  962,  966,  972,  966,  965,  969,  969,  946,
      966,  971,  971, 1003,  975,  973,  973,  978,  969,  979,
      980,  982,  971,  987,  971,  969,  973, 1001,  973,  971,
      999,  991,  991,  973,  994,  994,  996,  996, 1002,  969,
      975, 1006, 1013,  978, 1007,  979,  980,  982,  987,  991,
        0,    0,  994, 1001,  996,  999, 1008, 1008, 1016,  994,
     1010, 1010, 1018,    0, 1002,  969, 1022, 1008, 1006, 1013,
     1007, 1010, 1020, 1010, 1008,  987, 1014, 1014, 1010, 1015,
     1015, 1021,  999, 1024, 1032, 1016,  994, 1014, 1018, 1014,
     1015, 1033, 1008, 1022, 1014, 1025, 1035, 1015, 1020,    0,

     1010, 1029, 1029, 1034, 1034, 1036, 1041, 1021, 1043, 1024,
     1032, 1015,    0,    0, 1034,    0, 1034, 1033, 1008, 1029,
     1048, 1034, 1025, 1035, 1037, 1037, 1010, 1038, 1038, 1049,
     1040, 1040, 1036, 1041, 1043, 1037,    0, 1015, 1038, 1044,
     1044, 1040, 1037, 1040,    0, 1038, 1048, 1050, 1040, 1058,
     1044,    0, 1044, 1045, 1045, 1059, 1049, 1044, 1054, 1054,
     1037, 1046, 1046, 1060, 1045,    0, 1045, 1062, 1038, 1047,
     1047, 1045, 1046, 1050, 1046, 1058, 1054, 1057, 1057, 1046,
     1047, 1059, 1047,    0,    0, 1069, 1037, 1047, 1057, 1060,
     1061, 1061, 1070, 1062, 1038, 1057, 1063, 1063, 1071, 1064,

     1064, 1061, 1073, 1074,    0,    0,    0, 1063, 1061, 1063,
     1064, 1069, 1064, 1078, 1063, 1075, 1075, 1064, 1070, 1077,
     1085, 1076, 1076, 1081, 1071, 1089, 1075,    0, 1075, 1073,
     1074, 1061, 1076, 1075, 1076, 1080, 1080,    0, 1091, 1076,
     1078, 1082, 1082, 1084, 1084, 1077, 1080, 1085, 1080, 1081,
     1087, 1089, 1082, 1080, 1084, 1075, 1084, 1061, 1087, 1082,
     1092, 1084, 1086, 1086, 1091, 1094, 1095, 1103, 1090, 1090,
     1098, 1099, 1100, 1086, 1107, 1086, 1087, 1096, 1096, 1090,
     1086, 1075, 1082,    0, 1087, 1104, 1090, 1092, 1096,    0,
     1096,    0, 1094, 1095, 1103, 1096, 1098, 1099, 1100, 1097,

     1097, 1107, 1102, 1102,    0, 1106, 1106,    0, 1082, 1090,
     1097, 1104, 1097, 1102,    0, 1102, 1106, 1097, 1106,    0,
     1102, 1109, 1109, 1106,    0,    0,    0,    0,    0,    0,
        0,    0, 1109,    0, 1109, 1090,    0,    0,    0, 1109,
     1112, 1112, 1112, 1112, 1112, 1112, 1112, 1113, 1113, 1113,
     1113, 1113, 1113, 1113, 1114, 1114,    0, 1114, 1115,    0,
     1115, 1115, 1115, 1115, 1115, 1116,    0,    0, 1116, 1116,
        0, 1116, 1117, 1117, 1118,    0, 1118, 1118, 1118, 1118,
     1118, 1119,    0, 1119, 1119, 1119, 1119, 1119, 1120,    0,
     1120, 1120, 1120, 1120, 1120, 1122,    0, 1122, 1122, 1122,

     1122, 1122, 1123,    0, 1123, 1123, 1123, 1123, 1123, 1124,
        0, 1124, 1124, 1124, 1124, 1124, 1125,    0, 1125, 1125,
     1125, 1125, 1125, 1127,    0, 1127, 1127, 1127, 1127, 1127,
     1128,    0, 1128, 1128, 1128, 1128, 1128, 1129,    0, 1129,
     1129, 1129, 1129, 1129, 1130,    0, 1130, 1130, 1130, 1130,
     1130, 1131,    0, 1131, 1131, 1131, 1131, 1131, 1132,    0,
     1132, 1132, 1132, 1132, 1132, 1133,    0, 1133, 1133, 1133,
     1133, 1133, 1134,    0, 1134, 1134, 1134, 1134, 1134, 1135,
        0, 1135, 1135, 1135, 1135, 1135, 1136, 1136, 1136, 1136,
     1136, 1136, 1136, 1137, 1137, 1137, 1137, 1137, 1137, 1137,

     1138, 1138, 1138, 1138, 1138, 1138, 1138, 1139,    0, 1139,
     1140, 1140, 1140, 1140, 1140, 1140, 1140, 1141, 1141, 1141,
     1141, 1141, 1141, 1141, 1142, 1142, 1142, 1142, 1142, 1142,
     1142, 1143, 1143, 1143, 1143, 1143, 1143, 1143, 1144,    0,
     1144, 1144, 1144, 1144, 1144, 1145, 1145, 1145, 1145, 1145,
     1145, 1145, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1147,
     1147, 1147, 1147, 1147, 1147, 1147, 1148, 1148, 1148, 1148,
     1148, 1148, 1148, 1149, 1149, 1149, 1149, 1149, 1149, 1149,
     1150,    0, 1150, 1150, 1150, 1150, 1150, 1151, 1151, 1151,
     1151, 1151, 1151, 1151, 1152, 1152, 1152, 1152, 1152, 1152,

     1152, 1153, 1153, 1153, 1153, 1153, 1153, 1153, 1154, 1154,
     1154, 1154, 1154, 1154, 1154, 1155, 1155, 1155, 1155, 1155,
     1155, 1155, 1156, 1156, 1156, 1156, 1156, 1156, 1156, 1157,
     1157, 1157, 1157, 1157, 1157, 1157, 1158, 1158, 1158, 1158,
     1158, 1158, 1158, 1159, 1159, 1159, 1159, 1159, 1159, 1159,
     1160, 1160, 1160, 1160, 1160, 1160, 1160, 1161, 1161, 1161,
     1161, 1161, 1161, 1161, 1162, 1162, 1162, 1162, 1162, 1162,
     1162, 1163, 1163, 1163, 1163, 1163, 1163, 1163, 1164, 1164,
     1164, 1164, 1164, 1164, 1164, 1165, 1165, 1165, 1165, 1165,
     1165, 1165, 1166, 1166, 1166, 1166, 1166, 1166, 1166, 1167,

     1167, 1167, 1167, 1167, 1167, 1167, 1168, 1168, 1168, 1168,
     1168, 1168, 1168, 1169, 1169, 1169, 1169, 1169, 1169, 1169,
     1170, 1170, 1170, 1170, 1170, 1170, 1170, 1171, 1171, 1171,
     1171, 1171, 1171, 1171, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,

     1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111, 1111,
     1111
    } ;

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 "scanner.l"
/*
   Copyright (C) 2001-2012, 2014-2023 Free Software Foundation, Inc.
   Written by Keisuke Nishida, Roger While, Simon Sobisch, Edwart Hart,
   Ron Norman

   This file is part of GnuCOBOL.

   The GnuCOBOL compiler is free software: you can redistribute it
   and/or modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation, either version 3 of the
   License, or (at your option) any later version.

   GnuCOBOL is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with GnuCOBOL.  If not, see <https://www.gnu.org/licenses/>.
*/
#line 49 "scanner.l"

#undef	YY_READ_BUF_SIZE
#define	YY_READ_BUF_SIZE	32768
#undef	YY_BUF_SIZE
#define	YY_BUF_SIZE		32768

#define	YY_SKIP_YYWRAP
static int yywrap (void) {
    return 1;
}

#define YY_INPUT(buf,result,max_size)				\
	{							\
		if (fgets (buf, (int)max_size, yyin) == NULL) { \
			result = YY_NULL;			\
		} else {					\
			result = strlen (buf);			\
		}						\
	}

#define	YY_USER_INIT						\
	if (!plex_buff) {					\
		plex_size = COB_MINI_BUFF;			\
		plex_buff = cobc_malloc (plex_size);		\
	}							\
	if (!pic_buff1) {					\
		pic1_size = COB_MINI_BUFF;			\
		pic_buff1 = cobc_malloc (pic1_size);		\
	}							\
	if (!pic_buff2) {					\
		pic2_size = COB_MINI_BUFF;			\
		pic_buff2 = cobc_malloc (pic2_size);		\
	}

#include "config.h"

#include <ctype.h>
#include <limits.h>

#include <string.h>
#ifdef	HAVE_STRINGS_H
#include <strings.h>
#endif

#ifdef	HAVE_UNISTD_H
#include <unistd.h>
#else
#define	YY_NO_UNISTD_H	1
#endif

#define	COB_IN_SCANNER	1
#include "cobc.h"
#include "tree.h"

/* ignore unused functions here as flex generates unused ones */
#ifdef	__GNUC__
#if	defined (__clang__) || __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
#endif

#define YYSTYPE			cb_tree
#define _PARSER_H	/* work around bad Windows SDK header */
#include "parser.h"

#define RETURN_TOK(expr)			\
	do {					\
		last_yylval = yylval;		\
		second_last_token = last_token;		\
		last_token = (expr);		\
		return last_token;		\
	} ONCE_COB

#define SET_LOCATION(x)                         \
	do {					\
		(x)->source_file = cb_source_file;		\
		(x)->source_line = cb_source_line;		\
	} ONCE_COB

/* CONSTANT (78 level) structure */
struct cb_level_78 {
	struct cb_level_78	*next;		/* Next in chain */
	struct cb_level_78	*glob_next;	/* Continued next in chain */
	struct cb_level_78	*last;		/* Last in chain */
	struct cb_field		*fld_78;		/* Pointer to field */
	struct cb_program	*prog;		/* Program where defined */
	cob_u32_t		name_len;	/* Length of name */
	cob_u32_t		not_const;	/* Invalid usage check */
	cob_u32_t		chk_const;	/* Check global level use */
};

struct cb_top_level_78 {
	struct cb_top_level_78	*next;
	struct cb_level_78	*lev_78_ptr;
};

enum cb_literal_type {
	CB_LITERAL_DEFAULT,
	CB_LITERAL_U,  /* UTF-8, work-in-progress */
	CB_LITERAL_N,
	CB_LITERAL_NC,
};

enum cb_sym_ebcdic_state {
	CB_SYM_EBCDIC_INACTIVE, /* Outside */
	CB_SYM_EBCDIC_ACTIVE,   /* Inside, before or after number */
	CB_SYM_EBCDIC_AFTER_SEP /* Inside, just after a separator */
};

/* Local variables */

/* local history */
static cb_tree			last_yylval;	/* for repeating the last token*/
static enum yytokentype			last_token;
static enum yytokentype			second_last_token;	/* for history purposes */

static struct cb_level_78	*top_78_ptr = NULL;
static struct cb_level_78	*const_78_ptr = NULL;
static struct cb_level_78	*lev_78_ptr = NULL;
static struct cb_level_78	*glob_lev_78_ptr = NULL;
static char			*plex_buff = NULL;
static char			*pic_buff1 = NULL;
static char			*pic_buff2 = NULL;
static size_t			plex_size;
static size_t			pic1_size;
static size_t			pic2_size;
static unsigned int		inside_bracket = 0;
static char			err_msg[COB_MINI_BUFF];

/* Function declarations */
static void	read_literal (const char, const enum cb_literal_type);
static int	scan_x (const char *, const char *);
static int	scan_z (const char *, const char *);
static int	scan_h (const char *, const char *);
static int	scan_b (const char *, const char *);
static int	scan_o (const char *, const char *);
static int	scan_numeric (const char *);
static int	scan_floating_numeric (const char *);
static void	scan_picture (const char *);
static void	count_lines (const char *);
static void	scan_define_options (const char *);
static void	copy_word_in_quotes (char ** const);
static void	copy_two_words_in_quotes (char ** const, char ** const);
static void	add_synonym (const int, const int);
static void	make_synonym (void);
static void clear_constants (void);

#line 1789 "scanner.c"

#line 1791 "scanner.c"

#define INITIAL 0
#define DECIMAL_IS_PERIOD 1
#define DECIMAL_IS_COMMA 2
#define PICTURE_STATE 3
#define FUNCTION_STATE 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 );

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

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

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

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

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

#endif

/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192
#endif /* __ia64__ */
#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 do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
#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 = '*'; \
		int 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 = (int) fread(buf, 1, (yy_size_t) 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 /*LINTED*/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
{
	yy_state_type yy_current_state;
	char *yy_cp, *yy_bp;
	int yy_act;
    
	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(  );
		}

	{
#line 203 "scanner.l"



#line 207 "scanner.l"
	if (likely (current_program)) {
		if (current_program->decimal_point == '.') {
			BEGIN DECIMAL_IS_PERIOD;
		} else {
			BEGIN DECIMAL_IS_COMMA;
		}
	}

	if (cobc_repeat_last_token) {
		cobc_repeat_last_token = 0;
		yylval = last_yylval;
		return last_token;
	}

	cobc_in_area_a = 0;


#line 2013 "scanner.c"

	while ( /*CONSTCOND*/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
			{
			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 >= 1112 )
					yy_c = yy_meta[yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
			++yy_cp;
			}
		while ( yy_current_state != 1111 );
		yy_cp = (yy_last_accepting_cpos);
		yy_current_state = (yy_last_accepting_state);

yy_find_action:
		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:
/* rule 1 can match eol */
YY_RULE_SETUP
#line 224 "scanner.l"
{
	if (current_program) {
		const char	*p1;
		char		*p2;
		if (current_program->extfh) {
			cobc_parse_free ((void *)current_program->extfh);
			current_program->extfh = NULL;
		}
		p1 = strchr (yytext, '"');
		if (p1) {
			++p1;
			p2 = strrchr (p1, '"');
			if (p2) {
				*p2 = 0;
				if (strcmp (p1, "EXTFH")) {
					current_program->extfh = cobc_parse_strdup (p1);
				}
			}
		}
	}
}
	YY_BREAK
case 2:
/* rule 2 can match eol */
YY_RULE_SETUP
#line 247 "scanner.l"
{
	scan_define_options (yytext);
}
	YY_BREAK
case 3:
/* rule 3 can match eol */
YY_RULE_SETUP
#line 251 "scanner.l"
{
	char	*word;

	copy_word_in_quotes (&word);
	add_reserved_word_now (word, NULL);
	cobc_free (word);
}
	YY_BREAK
case 4:
/* rule 4 can match eol */
YY_RULE_SETUP
#line 259 "scanner.l"
{
	add_synonym (1, 0);
}
	YY_BREAK
case 5:
/* rule 5 can match eol */
YY_RULE_SETUP
#line 262 "scanner.l"
{
	add_synonym (0, 0);
}
	YY_BREAK
case 6:
/* rule 6 can match eol */
YY_RULE_SETUP
#line 266 "scanner.l"
{
	make_synonym ();
 }
	YY_BREAK
case 7:
/* rule 7 can match eol */
YY_RULE_SETUP
#line 270 "scanner.l"
{
	add_synonym (1, 1);
}
	YY_BREAK
case 8:
/* rule 8 can match eol */
YY_RULE_SETUP
#line 273 "scanner.l"
{
	add_synonym (0, 1);
}
	YY_BREAK
case 9:
/* rule 9 can match eol */
YY_RULE_SETUP
#line 277 "scanner.l"
{
	char	*word;

	copy_word_in_quotes (&word);
	if (!is_reserved_word (word)) {
		cb_error (_("'%s' is not a reserved word, so cannot be removed"),
			word);
	} else {
		remove_reserved_word_now (word);
	}
	cobc_free (word);
}
	YY_BREAK
case 10:
/* rule 10 can match eol */
YY_RULE_SETUP
#line 290 "scanner.l"
{
	char	*word;

	copy_word_in_quotes (&word);
	remove_reserved_word_now (word);
	cobc_free (word);
}
	YY_BREAK
case 11:
/* rule 11 can match eol */
YY_RULE_SETUP
#line 298 "scanner.l"
{
	cb_ref_mod_zero_length = (yytext[13] - '0');
}
	YY_BREAK
case 12:
/* rule 12 can match eol */
YY_RULE_SETUP
#line 302 "scanner.l"
{
	cb_odoslide = (yytext[10] - '0');
}
	YY_BREAK
case 13:
/* rule 13 can match eol */
YY_RULE_SETUP
#line 306 "scanner.l"
{
	cb_assign_type_default = (enum cb_assign_type)(yytext[8] - '0');
}
	YY_BREAK
case 14:
/* rule 14 can match eol */
YY_RULE_SETUP
#line 310 "scanner.l"
{
	struct cb_turn_list	*l;

	for (l = cb_turn_list; l && l->line != -1; l = l->next);
	if (l) {
		l->line = cb_source_line;
	}
}
	YY_BREAK
case 15:
/* rule 15 can match eol */
YY_RULE_SETUP
#line 319 "scanner.l"
{
	cobc_areacheck = 1;
}
	YY_BREAK
case 16:
/* rule 16 can match eol */
YY_RULE_SETUP
#line 323 "scanner.l"
{
	cobc_areacheck = 0;
}
	YY_BREAK
case 17:
/* rule 17 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 327 "scanner.l"
{
	count_lines (yytext + 9); /* skip "\n#area_a\n" */
	if (cobc_in_procedure && cobc_areacheck) {
		(void) cb_syntax_check (_("separator period in Area A"));
	}
}
	YY_BREAK
case 18:
/* rule 18 can match eol */
YY_RULE_SETUP
#line 334 "scanner.l"
{
	cobc_in_area_a = 1;
}
	YY_BREAK
case 19:
/* rule 19 can match eol */
YY_RULE_SETUP
#line 338 "scanner.l"
{
	cb_source_line++;
}
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 342 "scanner.l"
{
	/* Line directive */
	char		*p1;
	char		*p2;

	p1 = strchr (yytext, '"');
	if (p1) {
		p2 = p1 + 1;
		p1 = strrchr (p2, '"');
		if (p1) {
			*p1 = 0;
			cb_source_file = cobc_parse_strdup (p2);
			/* FIXME: only place where strol is used, replace by cobc internal
			          function for base 10 (found in cobc.c already) and base 16,
			          remove from configure.ac */
			cb_source_line = (int)strtol (yytext + 5, NULL, 10) - 1;
		}
	}
}
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 362 "scanner.l"
{
	/* Ignore */
}
	YY_BREAK
case 22:
#line 367 "scanner.l"
case 23:
YY_RULE_SETUP
#line 367 "scanner.l"
{
	BEGIN PICTURE_STATE;
}
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 371 "scanner.l"
{
	if (!lookup_reserved_word ("FUNCTION")) {
		/* FIXME: FUNCTION is always reserved, even when explicit
		   disabled via -fnot-reserved=FUNCTION ?!? */
		yylval = cb_build_reference (yytext);
		if (cobc_in_area_a) {
			RETURN_TOK (WORD_IN_AREA_A);
		} else {
			RETURN_TOK (WORD);
		}
	}
	if (cobc_in_repository || cobc_cs_check == CB_CS_EXIT) {
		yylval = NULL;
		RETURN_TOK (FUNCTION);
	}
	BEGIN FUNCTION_STATE;
}
	YY_BREAK
case 25:
YY_RULE_SETUP
#line 389 "scanner.l"
{
	/* String literal */
	read_literal (yytext[0], CB_LITERAL_DEFAULT);
	RETURN_TOK (LITERAL);
}
	YY_BREAK
case 26:
#line 396 "scanner.l"
case 27:
YY_RULE_SETUP
#line 396 "scanner.l"
{
	/* X string literal */
	RETURN_TOK (scan_x (yytext + 2, "X"));
}
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 401 "scanner.l"
{
	/* N national string (UTF16) literal */
	/* TODO: national string - needs different handling */
	read_literal (yytext [1], CB_LITERAL_N);
	RETURN_TOK (LITERAL);
}
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 408 "scanner.l"
{
	/* NC national character string literal (extension, but
	   same handling as COBOL 2002 national string literal) */
	/* TODO: national string - needs different handling */
	read_literal (yytext [2], CB_LITERAL_NC);
	RETURN_TOK (LITERAL);
}
	YY_BREAK
case 30:
#line 417 "scanner.l"
case 31:
YY_RULE_SETUP
#line 417 "scanner.l"
{
	/* NX string literal */
	RETURN_TOK (scan_x (yytext + 3, "NX"));
}
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 422 "scanner.l"
{
	/* UTF8 string literal */
	/* TODO: utf8 string - needs different handling */
	read_literal (yytext [1], CB_LITERAL_U);
	RETURN_TOK (LITERAL);
}
	YY_BREAK
case 33:
#line 430 "scanner.l"
case 34:
YY_RULE_SETUP
#line 430 "scanner.l"
{
	/* UX string literal */
	RETURN_TOK (scan_x (yytext + 3, "UX"));
}
	YY_BREAK
case 35:
#line 436 "scanner.l"
case 36:
YY_RULE_SETUP
#line 436 "scanner.l"
{
	/* Z string literal */
	RETURN_TOK (scan_z (yytext + 2, "Z"));
}
	YY_BREAK
case 37:
#line 442 "scanner.l"
case 38:
YY_RULE_SETUP
#line 442 "scanner.l"
{
	/* L string literal */
	RETURN_TOK (scan_z (yytext + 2, "L"));
}
	YY_BREAK
case 39:
#line 448 "scanner.l"
case 40:
YY_RULE_SETUP
#line 448 "scanner.l"
{
	/* H hexadecimal/numeric literal */
	RETURN_TOK (scan_h (yytext + 2, "H"));
}
	YY_BREAK
case 41:
#line 454 "scanner.l"
case 42:
YY_RULE_SETUP
#line 454 "scanner.l"
{
	/* B boolean/numeric literal */
	RETURN_TOK (scan_b (yytext + 2, "B"));
}
	YY_BREAK
case 43:
#line 460 "scanner.l"
case 44:
YY_RULE_SETUP
#line 460 "scanner.l"
{
	/* BX boolean hexadecimal string literal */
	RETURN_TOK (scan_x (yytext + 3, "BX"));
}
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 465 "scanner.l"
{
	/*
	  To avoid subtle silent errors, such as B#021, this rule (and the ones
	  following) here admit some invalid literals which emit errors when
	  they are processed.
	*/
	/* ACUCOBOL binary numeric literal */
	RETURN_TOK (scan_b (yytext + 2, "B#"));
}
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 475 "scanner.l"
{
	/* ACUCOBOL octal numeric literal */
	RETURN_TOK (scan_o (yytext + 2, "O#"));
}
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 480 "scanner.l"
{
	/* HP-COBOL octal numeric literal */
	RETURN_TOK (scan_o (yytext + 1, "%"));
}
	YY_BREAK
case 48:
#line 486 "scanner.l"
case 49:
YY_RULE_SETUP
#line 486 "scanner.l"
{
	/* ACUCOBOL hexadecimal numeric literal */
	char type[3] = "x#";
	type[0] = yytext [0];
	RETURN_TOK (scan_h (yytext + 2, type));
}
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 493 "scanner.l"
{
	inside_bracket++;
	RETURN_TOK (TOK_OPEN_PAREN);
}
	YY_BREAK
case 51:
YY_RULE_SETUP
#line 498 "scanner.l"
{
	if (inside_bracket) {
		inside_bracket--;
	}
	RETURN_TOK (TOK_CLOSE_PAREN);
}
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 505 "scanner.l"
{
	int	value;

	/* We treat integer literals immediately after '.' as labels;
	   that is, they must be level numbers or section names. */
	if (last_token == TOK_DOT || cobc_in_area_a) {
		yylval = cb_build_reference (yytext);

		if (!cobc_in_procedure) {
			value = atoi (yytext);
			if (value == 66) {
				/* level number 66 */
				RETURN_TOK (SIXTY_SIX);
			} else if (value == 78) {
				/* level number 78 */
				RETURN_TOK (SEVENTY_EIGHT);
			} else if (value == 88) {
				/* level number 88 */
				RETURN_TOK (EIGHTY_EIGHT);
			} else if ((value >= 1 && value <= 49) || value == 77) {
				/* level number (1 through 49, 77) */
				if (cobc_in_area_a) {
					RETURN_TOK (LEVEL_NUMBER_IN_AREA_A);
				} else {
					RETURN_TOK (LEVEL_NUMBER);
				}
			}
		}

		/* Integer label */
		if (cobc_in_area_a) {
			RETURN_TOK (WORD_IN_AREA_A);
		} else {
			RETURN_TOK (WORD);
		}
	}
	/* Numeric literal or referenced integer label
	   remark: all transformations/checks are postponed:
	   literals to tree.c,
	   integer label to typeck.c (cb_build_section_name)
	*/
	yylval = cb_build_numeric_literal (0, yytext, 0);
	RETURN_TOK (LITERAL);
}
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 550 "scanner.l"
{

	/* We treat integer literals immediately after '.' as labels;
	   that is, they must be level numbers or section names. */
	if (last_token == TOK_DOT || cobc_in_area_a) {
		/* Integer label */
		yylval = cb_build_reference (yytext);
		if (cobc_in_area_a) {
			RETURN_TOK (WORD_IN_AREA_A);
		} else {
			RETURN_TOK (WORD);
		}
	}
	/* Numeric literal or referenced integer label
	   remark: all transformations/checks are postponed:
	   literals to tree.c,
	   integer label to typeck.c (cb_build_section_name)
	*/
	yylval = cb_build_numeric_literal (0, yytext, 0);
	RETURN_TOK (LITERAL);
}
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 572 "scanner.l"
{
	/* Numeric literal (signed) */
	RETURN_TOK (scan_numeric (yytext));
}
	YY_BREAK
case 55:
YY_RULE_SETUP
#line 577 "scanner.l"
{
	/* Ignore */
}
	YY_BREAK
case 56:
YY_RULE_SETUP
#line 581 "scanner.l"
{
	if (inside_bracket) {
		RETURN_TOK (SEMI_COLON);
	}
	/* Ignore */
}
	YY_BREAK
case 57:
YY_RULE_SETUP
#line 588 "scanner.l"
{
	/* Numeric floating point literal */
	RETURN_TOK (scan_floating_numeric (yytext));
}
	YY_BREAK
case 58:
YY_RULE_SETUP
#line 593 "scanner.l"
{
	/* Invalid numeric floating point literal */
	RETURN_TOK (scan_floating_numeric (yytext));
}
	YY_BREAK
case 59:
YY_RULE_SETUP
#line 598 "scanner.l"
{
	/* Numeric literal */
	RETURN_TOK (scan_numeric (yytext));
}
	YY_BREAK
case 60:
YY_RULE_SETUP
#line 603 "scanner.l"
{
	if (inside_bracket) {
		RETURN_TOK (COMMA_DELIM);
	}
	/* Ignore */
}
	YY_BREAK
case 61:
YY_RULE_SETUP
#line 610 "scanner.l"
{
	/* Numeric floating point literal */
	RETURN_TOK (scan_floating_numeric (yytext));
}
	YY_BREAK
case 62:
YY_RULE_SETUP
#line 615 "scanner.l"
{
	/* Invalid numeric floating point literal */
	RETURN_TOK (scan_floating_numeric (yytext));
}
	YY_BREAK
case 63:
YY_RULE_SETUP
#line 620 "scanner.l"
{
	/* Numeric literal */
	RETURN_TOK (scan_numeric (yytext));
}
	YY_BREAK
case 64:
YY_RULE_SETUP
#line 625 "scanner.l"
{
	unput (',');
}
	YY_BREAK
case 65:
YY_RULE_SETUP
#line 629 "scanner.l"
{
	if (inside_bracket) {
		RETURN_TOK (COMMA_DELIM);
	}
	/* Ignore */
}
	YY_BREAK
case 66:
YY_RULE_SETUP
#line 636 "scanner.l"
{
	if (inside_bracket) {
		RETURN_TOK (COMMA_DELIM);
	}
	/* Ignore */
}
	YY_BREAK
case 67:
/* rule 67 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 643 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (END_PROGRAM);
}
	YY_BREAK
case 68:
/* rule 68 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 648 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (END_FUNCTION);
}
	YY_BREAK
case 69:
/* rule 69 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 653 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (PICTURE_SYMBOL);
}
	YY_BREAK
case 70:
/* rule 70 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 658 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (FROM_CRT);
}
	YY_BREAK
case 71:
/* rule 71 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 663 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (SCREEN_CONTROL);
}
	YY_BREAK
case 72:
/* rule 72 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 668 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (EVENT_STATUS);
}
	YY_BREAK
case 73:
/* rule 73 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 673 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (READY_TRACE);
}
	YY_BREAK
case 74:
/* rule 74 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 678 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (RESET_TRACE);
}
	YY_BREAK
case 75:
/* rule 75 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 683 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (GREATER_OR_EQUAL);
}
	YY_BREAK
case 76:
/* rule 76 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 688 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (GREATER);
}
	YY_BREAK
case 77:
/* rule 77 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 693 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (LESS_OR_EQUAL);
}
	YY_BREAK
case 78:
/* rule 78 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 698 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (LESS);
}
	YY_BREAK
case 79:
/* rule 79 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 703 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (EQUAL);
}
	YY_BREAK
case 80:
/* rule 80 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 708 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (REPLACING);
}
	YY_BREAK
case 81:
/* rule 81 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 713 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (TOP);
}
	YY_BREAK
case 82:
/* rule 82 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 717 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (TOP);
}
	YY_BREAK
case 83:
/* rule 83 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 722 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (BOTTOM);
}
	YY_BREAK
case 84:
/* rule 84 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 726 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (BOTTOM);
}
	YY_BREAK
case 85:
/* rule 85 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 731 "scanner.l"
{
	count_lines (yytext);
	return LINE_LIMIT;
}
	YY_BREAK
case 86:
/* rule 86 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 736 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NO_ADVANCING);
}
	YY_BREAK
case 87:
/* rule 87 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 741 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NEXT_PAGE);
}
	YY_BREAK
case 88:
/* rule 88 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 746 "scanner.l"
{
	count_lines (yytext);
	return NEXT_GROUP;
}
	YY_BREAK
case 89:
/* rule 89 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 751 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_SIZE_ERROR);
}
	YY_BREAK
case 90:
/* rule 90 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 756 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (SIZE_ERROR);
}
	YY_BREAK
case 91:
/* rule 91 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 761 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_ON_ESCAPE);
}
	YY_BREAK
case 92:
/* rule 92 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 766 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_ON_EXCEPTION);
}
	YY_BREAK
case 93:
/* rule 93 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 771 "scanner.l"
{
	/* Note: plain ESCAPE is directly matched via registered words */
	count_lines (yytext);
	RETURN_TOK (ON_ESCAPE);
}
	YY_BREAK
case 94:
/* rule 94 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 777 "scanner.l"
{
	/* Note: plain EXCEPTION is directly matched via registered words */
	count_lines (yytext);
	RETURN_TOK (ON_EXCEPTION);
}
	YY_BREAK
case 95:
/* rule 95 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 783 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_ON_OVERFLOW);
}
	YY_BREAK
case 96:
/* rule 96 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 788 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_AT_END);
}
	YY_BREAK
case 97:
/* rule 97 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 793 "scanner.l"
{
	/* Note: plain END is directly matched via registered words */
	count_lines (yytext);
	RETURN_TOK (AT_END);
}
	YY_BREAK
case 98:
/* rule 98 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 799 "scanner.l"
{
	/* Note: plain OVERFLOW is directly matched via registered words */
	count_lines (yytext);
	RETURN_TOK (TOK_OVERFLOW);
}
	YY_BREAK
case 99:
/* rule 99 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 805 "scanner.l"
{
	/* Note: plain END-OF-PAGE / EOP is directly matched via registered words */
	/* TODO: if END-OF-PAGE/EOP are not reserved -> directly return */
	count_lines (yytext);
	RETURN_TOK (NOT_EOP);
}
	YY_BREAK
case 100:
/* rule 100 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 812 "scanner.l"
{
	/* Note: plain END-OF-PAGE / EOP is directly matched via registered words */
	/* TODO: if END-OF-PAGE/EOP are not reserved -> directly return */
	count_lines (yytext);
	RETURN_TOK (EOP);
}
	YY_BREAK
case 101:
/* rule 101 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 819 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_INVALID_KEY);
}
	YY_BREAK
case 102:
/* rule 102 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 824 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (INVALID_KEY);
}
	YY_BREAK
case 103:
YY_RULE_SETUP
#line 829 "scanner.l"
{
	if (cobc_in_procedure) {
		RETURN_TOK (INVALID_KEY);
	} else {
		/* note: INVALID is a reserved word in all dialects,
		         otherwise we'd lookup and return WORD as necessary */
		RETURN_TOK (INVALID);
	}
}
	YY_BREAK
case 104:
/* rule 104 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 839 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NO_DATA);
}
	YY_BREAK
case 105:
/* rule 105 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 844 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (DATA);
}
	YY_BREAK
case 106:
/* rule 106 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 849 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (UPON_ENVIRONMENT_NAME);
}
	YY_BREAK
case 107:
/* rule 107 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 854 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (UPON_ENVIRONMENT_VALUE);
}
	YY_BREAK
case 108:
/* rule 108 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 859 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (UPON_ARGUMENT_NUMBER);
}
	YY_BREAK
case 109:
/* rule 109 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 864 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (UPON_COMMAND_LINE);
}
	YY_BREAK
case 110:
/* rule 110 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 869 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (EXCEPTION_CONDITION);
}
	YY_BREAK
case 111:
/* rule 111 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 874 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (EC);
}
	YY_BREAK
case 112:
/* rule 112 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_bp + 8);
(yy_c_buf_p) = yy_cp = yy_bp + 8;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 879 "scanner.l"
{
	count_lines (yytext);
	if (!lookup_reserved_word ("SUPPRESS")) {
		yylval = cb_build_reference (yytext);
		RETURN_TOK (WORD);
	}
	if (cobc_in_xml_generate_body || cobc_in_json_generate_body) {
		/*
		  Using the standard SUPPRESS token in JSON/XML GENERATE causes
                  a shift/reduce error - the SUPPRESS could be the start of the
		  SUPPRESS clause or the start of a SUPPRESS statement. While we
		  could alter shift precedence to get the result we implement
		  here (viz. assuming the SUPPRESS belongs to JSON/XML GENERATE),
                  our current style is for bison to run with no errors.
		*/
		RETURN_TOK (SUPPRESS_XML);
	} else {
		RETURN_TOK (SUPPRESS);
	}
}
	YY_BREAK
case 113:
/* rule 113 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_bp + 4);
(yy_c_buf_p) = yy_cp = yy_bp + 4;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 900 "scanner.l"
{
	/* FIXME: seems to work fine with SUPPRESS, but not here ... */
	count_lines (yytext);
	if (!lookup_reserved_word ("SEND")) {
		yylval = cb_build_reference (yytext);
		RETURN_TOK (WORD);
	}
#if 0
	if (current_program->cd_list) {
		/*
		  Using the standard SEND token in causes shift/reduce errors
		  as it could either be SEND cd-name (COBOL until 85) or
		  SEND (in MCS context COBOL 202x).
		*/
		RETURN_TOK (SEND);
	} else {
		RETURN_TOK (SEND_CD);
	}
#else
	RETURN_TOK (SEND);
#endif
}
	YY_BREAK
case 114:
/* rule 114 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_bp + 4);
(yy_c_buf_p) = yy_cp = yy_bp + 4;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 923 "scanner.l"
{
	count_lines (yytext);
	if (cobc_in_xml_generate_body) {
		/*
		  Using the standard WHEN token in XML GENERATE causes a
		  shift/reduce error - the WHEN could be the start of the
		  WHEN clause or the start of a WHEN statement. While we
		  could alter shift precedence to get the result we implement
		  here (viz. assuming the WHEN belongs to XML GENERATE), our
		  current style is for bison to run with no errors.
		*/
		RETURN_TOK (WHEN_XML);
	} else {
		RETURN_TOK (WHEN);
	}
}
	YY_BREAK
case 115:
/* rule 115 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 940 "scanner.l"
{
	count_lines (yytext);
	yylval = cb_build_reference ("ALTERNATE CONSOLE");
	RETURN_TOK (WORD);
}
	YY_BREAK
case 116:
/* rule 116 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 946 "scanner.l"
{
	/* ACUCOBOL extension: switch-names with space and with letter */
	char name[10];

	/* FIXME: move the code for filling "name" here and first
	          check with "lookup_system_name (name) != NULL"
	          if we actually want to do this,
	          otherwise return 2 (!) WORD tokens (by adding a queue
	          of tokens to be returned)
	*/
	if (cobc_in_procedure) {
		 /* unput characters */
		yylval = cb_build_reference ("SWITCH");
		if (isdigit((unsigned char)yytext[yyleng-2])) {
			unput (yytext[yyleng-1]);
			unput (yytext[yyleng-2]);
		} else {
			unput (yytext[yyleng-1]);
		}
	} else {
		 /* we need to return a single word, reverted later in parser.y */
		strcpy (name, yytext);
		name[6] = '_';
		yylval = cb_build_reference (name);
	}
	RETURN_TOK (WORD);
}
	YY_BREAK
case 117:
/* rule 117 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
YY_LINENO_REWIND_TO(yy_cp - 1);
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 974 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (LENGTH_OF);
}
	YY_BREAK
case 118:
YY_RULE_SETUP
#line 979 "scanner.l"
{
	struct cb_level_78		*p78;
	struct cb_intrinsic_table	*cbp;
	struct cobc_reserved		*resptr;
	struct cb_text_list		*tlp;
	cb_tree				x;
	cb_tree				l;

	cb_check_word_length ((unsigned int)yyleng, yytext);

	/* Check Intrinsic FUNCTION name without keyword */
	if ((cobc_in_procedure && (functions_are_all || cb_intrinsic_list ||
	     current_program->function_spec_list)) || cobc_in_repository) {
		cbp = lookup_intrinsic (yytext, 0);
		if (cbp) {
			if (cobc_in_repository) {
				yylval = cb_build_alphanumeric_literal (yytext, (size_t)yyleng);
				RETURN_TOK (FUNCTION_NAME);
			}
			if (functions_are_all) {
				yylval = cb_build_reference (yytext);
				RETURN_TOK ((enum yytokentype)(cbp->token));
			}
			for (tlp = cb_intrinsic_list; tlp; tlp = tlp->next) {
				if (!strcasecmp (yytext, tlp->text)) {
					yylval = cb_build_reference (yytext);
					RETURN_TOK ((enum yytokentype)(cbp->token));
				}
			}
			l = current_program->function_spec_list;
			for (; l; l = CB_CHAIN(l)) {
				x = CB_VALUE (l);
				if (!strcasecmp (yytext,
						 (char *)(CB_LITERAL(x)->data))) {
					yylval = cb_build_reference (yytext);
					RETURN_TOK ((enum yytokentype)(cbp->token));
				}
			}
		}
	}

	/* Bail early for (END) PROGRAM-ID when not a literal */
	if  ((second_last_token == PROGRAM_ID  && last_token == TOK_DOT)
	  || (second_last_token == FUNCTION_ID && last_token == TOK_DOT)
	  ||  last_token == END_PROGRAM
	  ||  last_token == END_FUNCTION) {
		/* Force PROGRAM-ID / END PROGRAM */
		if (cb_fold_call) {
			yylval = cb_build_reference (yytext);
			RETURN_TOK (PROGRAM_NAME);
		} else {
			yylval = cb_build_alphanumeric_literal (yytext, (size_t)yyleng);
			RETURN_TOK (LITERAL);
		}
	}

	/* Check reserved word */
	resptr = lookup_reserved_word (yytext);
	if (resptr != NULL) {
		if (resptr->nodegen) {
			/* Save location for terminator checking */
			/* Misuse comment tree to mark statement */
			yylval = cb_build_comment (NULL);
		} else {
			yylval = NULL;
		}
		RETURN_TOK (resptr->token);
	}

	/* New user-defined word in REPOSITORY entry */
	if (cobc_in_repository) {
		yylval = cb_build_reference (yytext);
		RETURN_TOK (WORD);
	}

	/* Direct recursive reference in function */
	if (current_program->prog_type == COB_MODULE_TYPE_FUNCTION
	 && !functions_are_all
	 && !strcasecmp (yytext, current_program->orig_program_id)) {
		yylval = cb_build_reference (yytext);
		RETURN_TOK (USER_FUNCTION_NAME);
	}

	/* Check prototype names */
	for (l = current_program->user_spec_list; l; l = CB_CHAIN (l)) {
		x = CB_VALUE (l);
		if (!strcasecmp (yytext, CB_PROTOTYPE (x)->name)) {
			yylval = cb_build_reference (yytext);
			RETURN_TOK (USER_FUNCTION_NAME);
		}
	}
	if (cobc_allow_program_name) {
		for (l = current_program->program_spec_list; l; l = CB_CHAIN (l)) {
			x = CB_VALUE (l);
			if (!strcasecmp (yytext, CB_PROTOTYPE (x)->name)) {
				yylval = cb_build_reference (yytext);
				RETURN_TOK (PROGRAM_NAME);
			}
		}
	}

	/* Check user programs */
	if (cobc_in_id) {
		const struct cb_program	*program = cb_find_defined_program_by_name (yytext);
		if (program) {
			yylval = cb_build_reference (yytext);
			RETURN_TOK (PROGRAM_NAME);
		}
	}

	/* User word */

	/* Check local, global and source global CONSTANT (78) items */

	for (p78 = top_78_ptr; p78; p78 = p78->glob_next) {
		if (strcasecmp (yytext, p78->fld_78->name) == 0) {
			if (unlikely (non_const_word)) {
				if (p78->prog == current_program) {
					cb_error (_("a constant may not be used here - '%s'"), yytext);
					yylval = cb_error_node;
					RETURN_TOK (WORD);
				}
				if (p78->chk_const) {
					p78->not_const = 1;
				}
				break;
			}
			if (p78->chk_const && p78->not_const) {
				break;
			}
			x = p78->fld_78->values;
			if (CB_LITERAL_P (x)) {
				/* duplicate the constant literal
				   to assign current source location */
				yylval = cobc_parse_malloc (sizeof (struct cb_literal));
				memcpy (yylval, x, sizeof (struct cb_literal));
				SET_LOCATION (yylval);
			} else {
				/* Note: we cannot do this for cb_zero and friends,
				         as those have sepcial meanings and are checked
						 by tree comparision only */
				yylval = x;
			}
			RETURN_TOK (LITERAL);
		}
	}

	yylval = cb_build_reference (yytext);

	/* Special name handling */
	if (CB_WORD_COUNT (yylval) > 0 && CB_WORD_ITEMS (yylval)) {
		x = CB_VALUE (CB_WORD_ITEMS (yylval));
		if (CB_SYSTEM_NAME_P (x)) {
			RETURN_TOK (MNEMONIC_NAME);
		} else if (CB_CLASS_NAME_P (x)) {
			RETURN_TOK (CLASS_NAME);
		}
	}

	if (cobc_in_area_a) {
		RETURN_TOK (WORD_IN_AREA_A);
	} else {
		RETURN_TOK (WORD);
	}
}
	YY_BREAK
case 119:
YY_RULE_SETUP
#line 1145 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (LESS_OR_EQUAL);
}
	YY_BREAK
case 120:
YY_RULE_SETUP
#line 1150 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (GREATER_OR_EQUAL);
}
	YY_BREAK
case 121:
YY_RULE_SETUP
#line 1155 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (NOT_EQUAL);
}
	YY_BREAK
case 122:
YY_RULE_SETUP
#line 1160 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (EXPONENTIATION);
}
	YY_BREAK
case 123:
/* rule 123 can match eol */
YY_RULE_SETUP
#line 1165 "scanner.l"
{
	/* note: according to the COBOL standard that is wrong as
	   a dot is only TOK_DOT if it is followed by [ \n] or EOF
	   CHECKME: switching to this would make parsing of decimals
	   easier - how do other compilers handle this? */
	/* note: we explicit consume multiple . here to get the right position */
	cb_warning (COBC_WARN_FILLER, _("ignoring redundant ."));

#if 0 /* it seems there is no case because of the consume above where
         the last token would be a dot */
	if (last_token != TOK_DOT) {
		yylval = NULL;
		RETURN_TOK (TOK_DOT);
	}
#else
	yylval = NULL;
	RETURN_TOK (TOK_DOT);
#endif
}
	YY_BREAK
case 124:
YY_RULE_SETUP
#line 1185 "scanner.l"
{
	/* note: according to the COBOL standard that is wrong as
	   a dot is only TOK_DOT if it is followed by [ \n] or EOF
	   CHECKME: switching to this would make parsing of decimals
	   easier - how do other compilers handle this? */
#if 0 /* it seems there is no case because of the consume above where
         the last token would be a dot, _possibly_ EOF? */
	if (last_token != TOK_DOT) {
		yylval = NULL;
		RETURN_TOK (TOK_DOT);
	}
#else
	yylval = NULL;
	RETURN_TOK (TOK_DOT);
#endif
}
	YY_BREAK
case 125:
YY_RULE_SETUP
#line 1202 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_AMPER);
}
	YY_BREAK
case 126:
YY_RULE_SETUP
#line 1207 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_COLON);
}
	YY_BREAK
case 127:
YY_RULE_SETUP
#line 1212 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_EQUAL);
}
	YY_BREAK
case 128:
YY_RULE_SETUP
#line 1217 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_DIV);
}
	YY_BREAK
case 129:
YY_RULE_SETUP
#line 1222 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_MUL);
}
	YY_BREAK
case 130:
YY_RULE_SETUP
#line 1227 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_PLUS);
}
	YY_BREAK
case 131:
YY_RULE_SETUP
#line 1232 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_MINUS);
}
	YY_BREAK
case 132:
YY_RULE_SETUP
#line 1237 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_LESS);
}
	YY_BREAK
case 133:
YY_RULE_SETUP
#line 1242 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_GREATER);
}
	YY_BREAK
case 134:
YY_RULE_SETUP
#line 1247 "scanner.l"
{
	int	c;

	cb_error (_("invalid symbol '%s' - skipping word"), yytext);
	while ((c = input ()) != EOF) {
		if (c == '\n' || c == ' ') {
			break;
		}
	}
	if (c != EOF) {
		unput (c);
	}
}
	YY_BREAK

case 135:
YY_RULE_SETUP
#line 1263 "scanner.l"
{
	/* Ignore */
  }
	YY_BREAK
case 136:
YY_RULE_SETUP
#line 1266 "scanner.l"
{
	BEGIN INITIAL;
	scan_picture (yytext);
	RETURN_TOK (PICTURE);
  }
	YY_BREAK


case 137:
YY_RULE_SETUP
#line 1274 "scanner.l"
{
	struct cb_intrinsic_table	*cbp;
	cb_tree				l;

	BEGIN INITIAL;

	/* TODO: check for cb_word_length, if too long,
	   then only handle up to max and error */
	yylval = cb_build_reference (yytext);
	for (l = current_program->user_spec_list; l; l = CB_CHAIN(l)) {
		cb_tree	x = CB_VALUE (l);
		if (!strcasecmp (yytext, CB_PROTOTYPE (x)->name)) {
			RETURN_TOK (USER_FUNCTION_NAME);
		}
	}
	cbp = lookup_intrinsic (yytext, 0);
	if (cbp) {
		RETURN_TOK ((enum yytokentype)(cbp->token));
	}
	RETURN_TOK (FUNCTION_NAME);
  }
	YY_BREAK
case 138:
YY_RULE_SETUP
#line 1295 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (yytext[0]);	/* is that correct? */
  }
	YY_BREAK

case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(DECIMAL_IS_PERIOD):
case YY_STATE_EOF(DECIMAL_IS_COMMA):
case YY_STATE_EOF(PICTURE_STATE):
case YY_STATE_EOF(FUNCTION_STATE):
#line 1301 "scanner.l"
{
	/* At EOF - Clear variables */
	clear_constants ();
	last_token = second_last_token = 0;
	cobc_in_area_a = 0;
	inside_bracket = 0;
	yyterminate ();
}
	YY_BREAK
case 139:
YY_RULE_SETUP
#line 1310 "scanner.l"
YY_FATAL_ERROR( "flex scanner jammed" );
	YY_BREAK
#line 3836 "scanner.c"

	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_last_accepting_cpos);
				yy_current_state = (yy_last_accepting_state);
				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 user's declarations */
} /* 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)
{
    	char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
	char *source = (yytext_ptr);
	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
		{
			int 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_LVALUE;

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

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

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

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

			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_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
		/* Extend the array by 50%, plus the number we really need. */
		int 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, (yy_size_t) new_size  );
		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
			YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
		/* "- 2" to take care of EOB's */
		YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
	}

	(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)
{
	yy_state_type yy_current_state;
	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 )
		{
		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 >= 1112 )
				yy_c = yy_meta[yy_c];
			}
		yy_current_state = yy_nxt[yy_base[yy_current_state] + 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 )
{
	int yy_is_jam;
    	char *yy_cp = (yy_c_buf_p);

	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 >= 1112 )
			yy_c = yy_meta[yy_c];
		}
	yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
	yy_is_jam = (yy_current_state == 1111);

		return yy_is_jam ? 0 : yy_current_state;
}

#ifndef YY_NO_UNPUT

    static void yyunput (int c, char * yy_bp )
{
	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. */
		int number_to_move = (yy_n_chars) + 2;
		char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
					YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
		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) = (int) 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;
}

#endif

#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 */
			int offset = (int) ((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( (yy_size_t) (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  );
}

/* 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 = 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; /* After all that talk, this was set to 1 anyways... */
		(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. */
		yy_size_t 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;
	}
}

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

static void yynoreturn yy_fatal_error (const char* msg )
{
			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 token.
 * 
 */

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) = NULL;
    (yy_buffer_stack_top) = 0;
    (yy_buffer_stack_max) = 0;
    (yy_c_buf_p) = NULL;
    (yy_init) = 0;
    (yy_start) = 0;

/* Defined in main.c */
#ifdef YY_STDINIT
    yyin = stdin;
    yyout = stdout;
#else
    yyin = NULL;
    yyout = NULL;
#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;

    /* 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, const char * s2, int n )
{
		
	int i;
	for ( i = 0; i < n; ++i )
		s1[i] = s2[i];
}
#endif

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

	return n;
}
#endif

void *yyalloc (yy_size_t  size )
{
			return 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 realloc(ptr, size);
}

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

#define YYTABLES_NAME "yytables"

#line 1310 "scanner.l"


static void
error_literal (const char *type, const char *literal, int literal_error)
{
	if (literal_error < 1) {
		char		lit_out[CB_ERR_LITMAX + 1] = { 0 };
		/* snip literal for output, if too long or,
			unlikely error case, has a line break */
		literal_for_diagnostic (lit_out, literal);

#if 0 /* national literal, check for different truncation and wcslen
		 or not show it at all */
		if (strcmp (type, "national") == 0) {
			cb_error (_("invalid national literal"), lit_out);
		} else {
#endif
			if (strcmp (type, "") == 0) {
				cb_error (_("invalid literal: '%s'"), lit_out);
			} else if (strcmp (type, "hex") == 0) {
				cb_error (_("invalid hexadecimal literal: '%s'"), lit_out);
			} else if (strcmp (type, "num") == 0) {
				cb_error (_("invalid numeric literal: '%s'"), lit_out);
			} else if (strcmp (type, "float") == 0) {
				cb_error (_("invalid floating-point literal: '%s'"), lit_out);
			} else if (literal_error < 0) {
				cb_warning (COBC_WARN_FILLER, _("invalid %s literal: '%s'"), type, lit_out);
			} else {
				cb_error (_("invalid %s literal: '%s'"), type, lit_out);
			}
#if 0 /* national literal */
		}
#endif
	}
	cb_note (COB_WARNOPT_NONE, 0, "%s", err_msg);
}

/* Scans a symbolic EBCDIC character given as a sequence of decimal digits
   starting with `c`, and returns the corresponding code as per the machine
   character set (ASCII or EBCDIC).  */
static cob_u8_t
scan_ebcdic_char (int c)
{
	char buff[10];	       /* Arbitrary limit, mostly for error-reporting */
#ifndef COB_EBCDIC_MACHINE
	static  cob_u8_t ebcdic_to_ascii[256] ;
	static  int ebcdic_to_ascii_initialized = 0 ;
#endif
	unsigned int j = 0;
	do {
		buff[j++] = (char)c;
	} while ((c = input ()) != EOF && '0' <= c && c <= '9' && j < 10);
	unput (c);
	buff[j++] = 0;
	c = atoi (buff);
	if (c < 1 || c > 256) {
		cb_error (_("character code %s out of encoding range %s"),
			  buff, "(1..256)");
		return '?';
	}
        c--; // in ordinal, i.e. 1..256 -> 0..255
#ifdef COB_EBCDIC_MACHINE
	return (cob_u8_t) c;
#else
	if (!ebcdic_to_ascii_initialized ) {
		if (cob_load_collation (cb_ebcdic_table, ebcdic_to_ascii, NULL) < 0) {
			cb_error (_("invalid parameter: %s"), "-febcdic-table");
			ebcdic_to_ascii_initialized = -1;
		} else {
			ebcdic_to_ascii_initialized = 1;
		}
	}

	if (ebcdic_to_ascii_initialized > 0) {
		return ebcdic_to_ascii[c];
	} else {
		return '?';
	}
#endif
}

static void
read_literal (const char mark, const enum cb_literal_type type)
{
	size_t		i;
	int			c;
	int			literal_error = 0;
	enum cb_sym_ebcdic_state	ebcdic_flag = CB_SYM_EBCDIC_INACTIVE;

	i = 0;
	/* read until a not-escaped mark is found (see break)
	   or (unlikely) we reach EOF */
	/* NO early exit possible as the literal has to be consumed */
	while ((c = input ()) != EOF) {
#if EOF != 0
		if (unlikely (c == 0)) break;	/* fixes unexpected error case */
#endif
		if (!literal_error) {
			if (unlikely (i + 1 == plex_size)) {
				plex_size *= 2;
				if (unlikely (plex_size > (cb_lit_length + 1))) {
					plex_size = (size_t)cb_lit_length + 1;
				}
				plex_buff = cobc_realloc (plex_buff, plex_size);
			}
			plex_buff[i] = (cob_u8_t)c;
		}

		if (ebcdic_flag != CB_SYM_EBCDIC_INACTIVE) {
			/* While scanning symbolic EBCDIC character: */
			if (c == mark) {
				if (ebcdic_flag == CB_SYM_EBCDIC_AFTER_SEP) {
					cb_error (
						    _("extraneous separator ',' at end "
						      "of symbolic EBCDIC characters"));
				}
				ebcdic_flag = CB_SYM_EBCDIC_INACTIVE;
			} else if ('0' <= c && c <= '9') {
				plex_buff[i++] = scan_ebcdic_char (c);
				ebcdic_flag = CB_SYM_EBCDIC_ACTIVE;
			} else if (c == ' ') {
				/* spaces are ok everywhere */
			} else if (c == ',') {
				/* extra commas are not allowed */
				if (ebcdic_flag == CB_SYM_EBCDIC_AFTER_SEP)
					cb_error (
					    _("extraneous character ',' in sequence "
					      "of symbolic EBCDIC characters"));
				ebcdic_flag = CB_SYM_EBCDIC_AFTER_SEP;
			} else {
				/* other chars are invalid */
				cb_error (_("invalid character '%c' in sequence "
					    "of symbolic EBCDIC characters"), c);
				ebcdic_flag = CB_SYM_EBCDIC_ACTIVE;
			} 
			continue;
		}

		if (c == mark && (c = input ()) != (int)mark) {
			if (c == '-') {
				/* Free format continuation ("a"- 'b'- ) */
				/* Hack it as concatenation */
				unput ('&');
			} else if (type == CB_LITERAL_DEFAULT &&
				   cb_gcos_ebcdic_literals &&
				   '0' <= c && c <= '9') {
				/* GCOS 7: symbolic EBCDIC character in
				   literals */
				unput (c);
				ebcdic_flag = CB_SYM_EBCDIC_ACTIVE;
				continue;
			} else {
				if (c == EOF || c == 0) break;
				unput (c);
			}
			break;
		}
		/* check literal size here as we have to adjust and check
		   for (escaped) mark before checking the max length */
		if (unlikely (i++ == cb_lit_length)) {
			snprintf (err_msg, COB_MINI_MAX,
				_("literal length exceeds %u characters"),
				cb_lit_length);
			plex_buff[cb_lit_length] = 0; /* ensure valid C-string for error message */
			error_literal ("", plex_buff, literal_error);
			if (!literal_error) {
				literal_error = cb_lit_length;
			}
		}
	}
	if (c == EOF
#if EOF != 0
	 || c == 0 /* fixes unexpected error case */
#endif
		) {
			snprintf (err_msg, COB_MINI_MAX,
				_("missing terminating %c character"), mark);
			plex_buff[i] = 0; /* ensure valid C-string for error message */
			error_literal ("", plex_buff, literal_error);
			if (!literal_error) {
				literal_error = i;
			}
	}

	/* FIXME: Exact behavior should depend on level of support:
	    * "OK"      => standard behavior, e.g. normal items filled with spaces/
	                   zeros, DYNAMIC LENGTH items made empty
	    * "warning" => current implementation, interpret '' as SPACE/ZERO
	    * "ignore"  => assume a space without warning; make sure zero length
	                   items work everywhere (should do as we support zero
	                   lengths via ODO items already)
	*/
	if (!i) {
		cb_verify (cb_zero_length_lit, _("zero-length literal"));
		cb_warning (COBC_WARN_FILLER,
 			    ( type == CB_LITERAL_N || type == CB_LITERAL_NC ) ?
			    _("national literal has zero length; a SPACE will be assumed") :
			    _("alphanumeric literal has zero length; a SPACE will be assumed")
			);
		/* note: space gets UTF-16 converted down below */
		plex_buff[i++] = ' ';
	} else if (i > cb_lit_length) {
		i = cb_lit_length;
	}

	/* build literal with given size */
	plex_buff[i] = 0;
	if ( type != CB_LITERAL_N && type != CB_LITERAL_NC ) {
		yylval = cb_build_alphanumeric_literal (plex_buff, i);
		if (type == CB_LITERAL_U) {
			CB_UNFINISHED (_("UTF-8 literal"));
		}
	} else {
		/* poor-man's conversion iso-8859 -> utf-16 */
		/* "!a0" = x'21613000' -> nx'00210061003000' */
		size_t new_size = i * COB_NATIONAL_SIZE;
		if (new_size + 1 > plex_size) {
			plex_size = new_size + 1;
			plex_buff = cobc_realloc (plex_buff, plex_size);
		}
		plex_buff[new_size] = 0;
		while (i) {
			i--;
			plex_buff[i * 2 + 1] = plex_buff [i];
			plex_buff[i * 2] = 0;
		}
		if (type != CB_LITERAL_NC) {
			if (cb_verify (cb_national_literals, _("national literal"))) {
				CB_UNFINISHED (_("national literal"));
			}
		} else {
			if (cb_verify (cb_nationalc_literals, _("national-character literal"))) {
				CB_UNFINISHED (_("national literal"));
			}
		}
		yylval = cb_build_national_literal (plex_buff, new_size);
	}
}

static int
scan_x (const char *text, const char *type)
{
	char		*p;
	char		*e;
	char		*dst;
	size_t		curr_len;
	size_t		result_len;
	char		c;
	int			literal_error = 0;

	/* Remark:
	   The standard allows for 8,191 (normal/national/boolean) character positions */

	/* curr_len includes the terminating quote
	   and has to be adjusted according to type */

	curr_len = strlen (text);
	curr_len--;
	if (curr_len == 0) {
		/* CHECKME: should this always be active or only with x"" ? */
		(void)cb_verify (cb_zero_length_lit, _("zero-length literal"));
		cb_warning (COBC_WARN_FILLER,
				_("hexadecimal literal has zero length; X'00' will be assumed"));
		memset (plex_buff, 0, 5);
		if (type[0] == 'B') {
			yylval = cb_build_numeric_literal (0, "0", 0);
			(void)cb_verify (cb_hexadecimal_boolean, _("hexadecimal-boolean literal"));
		} else if (type[0] != 'N') {
			yylval = cb_build_alphanumeric_literal (plex_buff, 1);
		} else /* type N */ {
			(void)cb_verify (cb_national_hex_literals, _("hexadecimal-national literal"));
			yylval = cb_build_national_literal (plex_buff, COB_NATIONAL_SIZE);
		}
		RETURN_TOK (LITERAL);
	}

	/* ensure buffers don't get too big */
	if (curr_len > (size_t)cb_lit_length + 1) {
		curr_len = cb_lit_length + 1;
	}
	if (unlikely (curr_len + 1 > plex_size)) {
		plex_size = curr_len + 1;
		cobc_free (plex_buff);
		plex_buff = cobc_malloc (plex_size);
	}
	memcpy (plex_buff, text, curr_len);
	if (type[0] == 'X' || type [0] == 'U') {
		/* characters, two half-bytes (hex) = 1 byte, add 1 halfbyte to round up
		   to full bytes in case of odd digits */
		result_len = (curr_len + 1) / 2;
	} else if (type[0] == 'B') {
		result_len = curr_len * 4; /* boolean characters B -> 1110 */
		if (!cb_verify (cb_hexadecimal_boolean, _("hexadecimal-boolean literal"))) {
			yylval = cb_build_numeric_literal (0, "0", 0);
			RETURN_TOK (LITERAL);
		}

		/* GnuCOBOL currently only support 64 bit booleans */
		if (unlikely (result_len > 64)) {
			snprintf (err_msg, COB_MINI_MAX,
				_("literal length %lu exceeds %u characters"),
				  (unsigned long) result_len, 64);
			error_literal (type, plex_buff, literal_error++);
			/* we'll get an overflow below, but that's no problem,
			   an alternative would be to increment *text to only parse 64 / 4
			   characters but that leads to not verified data, which is
			   more important as the compilation will error-exit in any case */
		}
	} else /* type N */ {
		result_len = curr_len / (2 * COB_NATIONAL_SIZE);
		if (!cb_verify (cb_national_hex_literals, _("hexadecimal-national literal"))) {
			memset (plex_buff, 0, 5);
			yylval = cb_build_national_literal (plex_buff, COB_NATIONAL_SIZE);
			RETURN_TOK (LITERAL);
		} else {
			CB_UNFINISHED (_("national literal"));
		}
	}
	if (unlikely (result_len > cb_lit_length)) {
		snprintf (err_msg, COB_MINI_MAX,
			_("literal length %lu exceeds %u characters"),
			  (unsigned long) result_len, cb_lit_length);
		error_literal (type, plex_buff, literal_error++);
	}

	p = (char *)text;
	e = (char *)p + curr_len;
	dst = plex_buff;

	if (unlikely(type[0] == 'B')) {
		/* hexadecimal-boolean */
		cob_u64_t	val = 0;
		for (; *p != *e; p++) {
			c = *p;
			if ('0' <= c && c <= '9') {
				c = c - '0';
			} else if ('A' <= c && c <= 'F') {
				c = c - 'A' + 10;
			} else if ('a' <= c && c <= 'f') {
				c = c - 'a' + 10;
			} else {
				snprintf (err_msg, COB_MINI_MAX,
					_("literal contains invalid character '%c'"), c);
				if (likely (literal_error == 0)) {
					memcpy (plex_buff, text, curr_len + 1);
					plex_buff[curr_len] = 0;
				}
				error_literal (type, plex_buff, literal_error++);
				/* Note: by not breaking immediately, we detect any following
				   invalid chars */
				c = 0;
			}
			val = (val << 4) + c;
		}
		sprintf ((char *)plex_buff, CB_FMT_LLU, val);
		yylval = cb_build_numeric_literal (0, (const void *)plex_buff, 0);

	} else {

		/* hexadecimal */
		int		high = 1;
		for (; *p != *e; p++) {
			c = (int) *p;
			if ('0' <= c && c <= '9') {
				c = c - '0';
			} else if ('A' <= c && c <= 'F') {
				c = c - 'A' + 10;
			} else if ('a' <= c && c <= 'f') {
				c = c - 'a' + 10;
			} else {
				snprintf (err_msg, COB_MINI_MAX,
					_("literal contains invalid character '%c'"), c);
				if (likely (literal_error == 0)) {
					memcpy (plex_buff, text, curr_len + 1);
					plex_buff[curr_len] = 0;
				}
				error_literal (type, plex_buff, literal_error++);
				/* Note: by not breaking immediately, we detect any following
				   invalid chars
				*/
				c = 0;
			}
			if (high) {
				*dst = (cob_u8_t)(c << 4);
			} else {
				*dst++ += (cob_u8_t)c;
			}
			high = 1 - high;
		}

		if (!high) {
			/* This is non-standard behaviour */
			*dst = (*dst >> 4);
			dst++;
			snprintf (err_msg, COB_MINI_MAX,
				_("literal does not have an even number of digits"));
			if (likely (literal_error == 0)) {
				memcpy (plex_buff, text, curr_len + 1);
				plex_buff[curr_len] = 0;
			}
			if (cb_relaxed_syntax_checks && result_len == 1) {
				error_literal (type, plex_buff, literal_error++ == 0 ? -1 : 1);
			} else {
				error_literal (type, plex_buff, literal_error++);
			}
		}
		/* TODO: for type U needs additional checks */
		if (type[0] != 'N') {
			yylval = cb_build_alphanumeric_literal (plex_buff, (size_t)(dst - plex_buff));
		} else {
			yylval = cb_build_national_literal (plex_buff, (size_t)(dst - plex_buff));
		}
	}

	RETURN_TOK (LITERAL);
}

static int
scan_z (const char *text, const char *type)
{
	/* curr_len includes the terminating quote */
	size_t		curr_len = strlen (text);

	if (curr_len == 1) {
		curr_len--;
		snprintf (err_msg, COB_MINI_MAX,
			_("%s literals must contain at least one character"),
			type);
		error_literal (type, "", 0);
		yylval = cb_build_alphanumeric_literal ("", 1);
		RETURN_TOK (LITERAL);
	}
	if ((unsigned long)(curr_len - 1) > cb_lit_length) {
		curr_len--;
		snprintf (err_msg, COB_MINI_MAX,
			_("literal length %lu exceeds %u characters"),
			  (unsigned long) curr_len, cb_lit_length);
		error_literal (type, text, 0);
		curr_len = cb_lit_length + 1; /* ensure buffers don't get too big */
	}
	if (curr_len > plex_size) {
		plex_size = curr_len;
		cobc_free (plex_buff);
		plex_buff = cobc_malloc (plex_size);
	}
	memcpy (plex_buff, text, curr_len);
	plex_buff[curr_len - 1] = 0;

	/* Count is correct here as the trailing quote is now a null */
	yylval = cb_build_alphanumeric_literal (plex_buff, curr_len);
	if (type[0] == 'L') {
		CB_LITERAL(yylval)->llit = 1;
	}
	RETURN_TOK (LITERAL);
}

static int
scan_h (const char *text, const char *type)
{
	size_t		curr_len;
	char		*p;
	cob_u64_t	val = 0;
	int 		c;
	int			literal_error = 0;

	if (type[1] == '#'
	 && !cb_verify (cb_acu_literals, _("ACUCOBOL numeric literal"))) {
		/* note: early exit with valid literal */
		yylval = cb_build_numeric_literal (0, "0", 0);
		RETURN_TOK (LITERAL);
	}

	/* curr_len can include the terminating quote */
	curr_len = strlen (text);
	memcpy (plex_buff, text, curr_len + 1);
	if (type[1] != '#') {
		curr_len--;
		if (curr_len == 0) {
			snprintf (err_msg, COB_MINI_MAX,
				_("%s literals must contain at least one character"),
				"H");
			error_literal ("H", "", 0);
			yylval = cb_build_numeric_literal (0, "0", 0);
			RETURN_TOK (LITERAL);
		}
		plex_buff[curr_len] = 0;
	}
	if (unlikely (curr_len > 16)) {
		snprintf (err_msg, COB_MINI_MAX,
			_("literal length %lu exceeds %u characters"),
			  (unsigned long) curr_len,  16);
		error_literal ("hex", plex_buff, literal_error++);
	}

	for (p = plex_buff; *p != 0; p++) {
		c = (int) *p;
		if ('0' <= c && c <= '9') {
			c = c - '0';
		} else if ('A' <= c && c <= 'F') {
			c = c - 'A' + 10;
		} else if ('a' <= c && c <= 'f') {
			c = c - 'a' + 10;
		} else {
			snprintf (err_msg, COB_MINI_MAX,
				_("literal contains invalid character '%c'"), c);
			error_literal (type, plex_buff, literal_error++);
			/* By not breaking immediately, we detect any following
				invalid chars
			*/
			c = 0;
		}

		val = (val << 4) + c;
	}

	if (type[1] == '#') {
		/* limit for ACUCOBOL literals: UINT_MAX */
		if (val > UINT_MAX) {
			if (curr_len <= 16) {
				snprintf (err_msg, COB_MINI_MAX,
					_("literal exceeds limit %u"), UINT_MAX);
				error_literal (type, plex_buff, literal_error++);
			}
			val = UINT_MAX;
		}
	}

	/* Duplication? */
	sprintf ((char *)plex_buff, CB_FMT_LLU, val);
	yylval = cb_build_numeric_literal (0, (const void *)plex_buff, 0);

	RETURN_TOK (LITERAL);
}

static int
scan_b (const char *text, const char *type)
{
	/* FIXME: COBOL 2014 allows up to 8,192 boolean characters
	          COBOL 2002 allows up to   160 boolean characters
	          --> both identical to "literal-length" maximum
	          GnuCOBOL currently only supports 64 boolean characters,
			  more need a different storage
	*/

	size_t		curr_len;
	char		*p;
	cob_u64_t	val = 0;
	int			c;
	int			literal_error = 0;

	/* curr_len can include the terminating quote */
	curr_len = strlen (text);

	if (type[1] == 0) {
		if (!cb_verify (cb_numeric_boolean, _("numeric boolean literal"))) {
			/* early exit possible as complete literal is consumed */
			curr_len = 0;
		}
		if (curr_len == 1) {
			cb_verify (cb_zero_length_lit, _("zero-length literal"));
			cb_warning (COBC_WARN_FILLER,
				    _("boolean literal has zero length; B'0' will be assumed"));
		}
		if (curr_len <= 1) {
			/* FIXME: we should really build a boolean literal... */
			yylval = cb_build_numeric_literal (0, "0", 0);
			RETURN_TOK (LITERAL);
		}
	} else {
		if (!cb_verify (cb_acu_literals, _("ACUCOBOL numeric literal"))) {
			yylval = cb_build_numeric_literal (0, "0", 0);
			RETURN_TOK (LITERAL);
		}
	};
	if (unlikely (curr_len >= plex_size)) {
		curr_len = plex_size - 1;
	}
	memcpy (plex_buff, text, curr_len + 1);
	if (type[1] == 0) {
		curr_len--;
	}
	plex_buff[curr_len] = 0;
	if (unlikely (curr_len > 64)) {
		snprintf (err_msg, COB_MINI_MAX,
			_("literal length %lu exceeds %u characters"),
			  (unsigned long) curr_len, 64);
		error_literal (type, plex_buff, literal_error++);
		/* we'll get an overflow below, but that's no problem,
		   an alternative would be to increment *text to only parse 64 / 4
		   characters but that leads to not verified data, which is
		   more important as the compilation will error-exit in any case */
	}

	for (p = plex_buff; *p != 0; p++) {
		c = (int) *p;
		if (c == '0') {
			c = 0;
		} else if (c == '1') {
			c = 1;
		} else {
			snprintf (err_msg, COB_MINI_MAX,
				_("literal contains invalid character '%c'"), c);
			error_literal (type, plex_buff, literal_error++);
			c = 0;
		}

		val = (val << 1) + c;
	}
	if (type[1] == '#') {
		/* limit for ACUCOBOL literals: UINT_MAX */
		if (val > UINT_MAX) {
			if (curr_len <= 64) {
				snprintf (err_msg, COB_MINI_MAX,
					_("literal exceeds limit %u"), UINT_MAX);
				error_literal (type, plex_buff, literal_error);
			}
			val = UINT_MAX;
		}
	}

	sprintf ((char *)plex_buff, CB_FMT_LLU, val);
	/* FIXME: we should likely build a boolean literal ... */
	yylval = cb_build_numeric_literal (0, (const void *)plex_buff, 0);

	RETURN_TOK (LITERAL);
}

static int
scan_o (const char *text, const char *type)
{
	size_t		curr_len;
	cob_u64_t	val = 0;
	char		*p;
	char		c;
	int 		literal_error = 0;

	if (type[0] == '%') {
		if (!cb_verify (cb_hp_octal_literals, _("HP COBOL octal literal"))) {
			/* early exit possible as complete literal is consumed */
			yylval = cb_build_numeric_literal (0, "0", 0);
			RETURN_TOK (LITERAL);
		}
	} else {
		if (!cb_verify (cb_acu_literals, _("ACUCOBOL numeric literal"))) {
			/* early exit possible as complete literal is consumed */
			yylval = cb_build_numeric_literal (0, "0", 0);
			RETURN_TOK (LITERAL);
		}
	}

	curr_len = strlen (text);
	memcpy (plex_buff, text, curr_len + 1);
	if (unlikely (curr_len > 22)) {
		snprintf (err_msg, COB_MINI_MAX,
			  _("literal length %lu exceeds %u characters"),
			  (unsigned long) curr_len, 22);
		error_literal (type, plex_buff, literal_error++);
	}

	for (p = plex_buff; *p != 0; p++) {
		c = *p;
		if ('0' <= c && c <= '7') {
			c = c - '0';
		} else {
			snprintf (err_msg, COB_MINI_MAX,
				_("literal contains invalid character '%c'"), c);
			error_literal (type, plex_buff, literal_error++);
			c = 0;
		}

		val = (val << 3) + c;
	}
	/* limit for ACUCOBOL literals: UINT_MAX */
	if (val > UINT_MAX) {
		if (curr_len <= 22) {
			snprintf (err_msg, COB_MINI_MAX,
				_("literal exceeds limit %u"), UINT_MAX);
			error_literal (type, plex_buff, literal_error++);
		}
		val = UINT_MAX;
	}

	if (type[0] == '%') {
		/* actually the rules specify that the literal type is context-sensitive
		   and for alphanumeric right-filled with NULL, therefore we'd need
		   a special type of literal here */
		CB_UNFINISHED ("HP COBOL octal literals");
#if 0	/* activate to have all %literals to be alphanumeric */
		char xbuff[19];
		sprintf ((char *)&xbuff, "'%X'", (unsigned int)val);
		RETURN_TOK (scan_x ((const char *)&xbuff + 1, "X"));
#endif
	}

	sprintf ((char *)plex_buff, CB_FMT_LLU, val);
	yylval = cb_build_numeric_literal (0, (const void *)plex_buff, 0);

	RETURN_TOK (LITERAL);
}

static int
get_sign (const char sign)
{
	if (sign == '+') {
		return 1;
	} else if (sign == '-') {
		return -1;
	} else {
		return 0;
	}
}

#define INCREMENT_IF_SIGNED(text, sign) \
	do {				\
		if (sign) {		\
			(text)++;	\
		}			\
	} ONCE_COB

static int
scan_numeric (const char *text)
{
	char		*p = (char *)text;
	char		*s;
	int 		sign;
	int 		scale;
	size_t	curr_len;

	/* Get sign */
	sign = get_sign (*p);
	INCREMENT_IF_SIGNED (p, sign);

	/* Get decimal point */
	s = strchr (p, current_program->decimal_point);
	if (s) {
		scale = (int)strlen (s) - 1;
		/* Remove decimal point */
		/* Moves trailing null */
		memmove (s, s + 1, (size_t)scale + 1);
	} else {
		scale = 0;
	}

	/* Note that leading zeroes are not removed from the literal. */

	curr_len = strlen (p);

	if (curr_len > COB_MAX_DIGITS) {
		/* Absolute limit */
		snprintf (err_msg, COB_MINI_MAX,
			  _("literal length %lu exceeds maximum of %u digits"),
			  (unsigned long) curr_len, COB_MAX_DIGITS);
		error_literal ("num", text, 0);
		p[COB_MAX_DIGITS] = 0;
	} else if (curr_len > cb_numlit_length) {
		snprintf (err_msg, COB_MINI_MAX,
			  _("literal length %lu exceeds %u digits"),
			  (unsigned long) curr_len, cb_numlit_length);
		error_literal ("num", text, 0);
	}
	yylval = cb_build_numeric_literal (sign, p, scale);
	RETURN_TOK (LITERAL);
}

static int
all_zeroes (const char *str)
{
	int	i;

	for (i = 0; str[i] != '\0'; ++i) {
		if (str[i] != '0') {
			return 0;
		}
	}

	return 1;
}

static int
significand_is_zero (const char *int_part, const char *dec_part)
{
	return all_zeroes (int_part)
		&& all_zeroes (dec_part);
}

/* Note: Exponent *digits* in literals according to COBOL 202x: 36 */
/* Note: Exponent *digits* in literals according to COBOL 202x: 36 */
#if COB_FLOAT_DIGITS_MAX != 36
#error COB_FLOAT_DIGITS_MAX adjustment needed, common.h must match scanner.l
#endif
#define COB_FLOAT_DIGITS_CHCK_MAX    38 /* incl. sign and comma */
#define COB_FLOAT_DIGITS_STR_WIDTH   39
#define COB_FLOAT_DIGITS_STR_MAX     40

#define COB_FLOAT_DIGITS_WIDTH	"%" CB_XSTRINGIFY(COB_FLOAT_DIGITS_STR_WIDTH)

static int
scan_floating_numeric (const char *text)
{
	size_t		sig_int_len;
	size_t		sig_dec_len;
	int		sig_sign;
	int		exp_sign;
	int		scale;
	int		exponent;
	int		n;
	char		significand_str[COB_FLOAT_DIGITS_STR_MAX] = { '\0' };
	char		*significand_pos;
	char		significand_dec[COB_FLOAT_DIGITS_STR_MAX] = { '\0' };
	char		significand_int[COB_FLOAT_DIGITS_STR_MAX] = { '\0' };
	char		exponent_str[8] = { '\0' };
	char		*exponent_pos;

	char		result[128] = { '\0' };
	unsigned int	literal_error = 0;

	/* Separate into significand and exponent */
	n = sscanf (text, COB_FLOAT_DIGITS_WIDTH "[0-9.,+-]%*1[Ee]%7[0-9.,+-]",
		  significand_str, exponent_str);
	/* We check the return for silencing warnings, but
	   this should actually never happen as the flex rule ensures this */
	/* LCOV_EXCL_START */
	if (n == 0) {
#if 1
		/* This should never happen (and therefore doesn't get a translation) */
		cb_error ("flex rule for scan_floating_numeric is wrong");
		COBC_ABORT();
#else
		yylval = cb_error_node;
		RETURN_TOK (LITERAL);
#endif
	}
	/* LCOV_EXCL_STOP */

	/* Get signs and adjust string positions accordingly */
	significand_pos = &significand_str[0];
	sig_sign = get_sign (*significand_pos);
	INCREMENT_IF_SIGNED (significand_pos, sig_sign);

	exponent_pos = &exponent_str[0];
	exp_sign = get_sign (*exponent_pos);
	INCREMENT_IF_SIGNED (exponent_pos, exp_sign);

	/* Separate significand into integer and decimal */
	n = sscanf (significand_pos,
		  COB_FLOAT_DIGITS_WIDTH "[0-9]%*1[.,]" COB_FLOAT_DIGITS_WIDTH "[0-9]",
		  significand_int, significand_dec);
	if (n == 0) { /* no integer part, copy after decimal-point */
		significand_int[0] = 0;
		strcpy (significand_dec, significand_pos + 1);
#if 0 /* note: we ignore compiler warnings for possible "missing NULL-terminator 
               here as we know that sscanf handles the correct with */
		significand_dec[COB_FLOAT_DIGITS_STR_MAX - 1] = 0;
	} else {
	/* silencing some warnings */
		significand_int[COB_FLOAT_DIGITS_STR_MAX - 1] = 0;
		significand_dec[COB_FLOAT_DIGITS_STR_MAX - 1] = 0;
#endif
	}

	/* Validation and exponent handling */
	sig_int_len = strlen (significand_int);
	sig_dec_len = strlen (significand_dec);
	exponent = 0;

	if (sig_int_len + sig_dec_len > COB_FLOAT_DIGITS_MAX) {
		/* note: same message in tree.c for floating-point numeric-edited item */
		snprintf (err_msg, COB_MINI_MAX,
			_("significand has more than %d digits"), COB_FLOAT_DIGITS_MAX);
		error_literal ("float", text, literal_error++);
	} else {
		if (strchr (exponent_pos, current_program->decimal_point)) {
			snprintf (err_msg, COB_MINI_MAX,
				_("exponent has decimal point"));
			error_literal ("float", text, literal_error++);
		} else {
			if (strlen (exponent_pos) > 4) {
				/* note: same message in tree.c for floating-point numeric-edited item */
				snprintf (err_msg, COB_MINI_MAX,
					_("exponent has more than 4 digits"));
				error_literal ("float", text, literal_error++);
			} else {
				n = sscanf (exponent_pos, "%d", &exponent);
				/* We check the return for silencing warnings, but
				   this should actually never happen as the flex rule ensures this */
				/* LCOV_EXCL_START */
				if (n == 0) {
#if 1
					/* This should never happen (and therefore doesn't get a translation) */
					cb_error ("flex rule for scan_floating_numeric is wrong");
					COBC_ABORT();
#else
					yylval = cb_error_node;
					RETURN_TOK (LITERAL);
#endif
				}
				/* LCOV_EXCL_STOP */
			}

			if (exp_sign == -1) {
				exponent = -exponent;
			}

			/* "The maximum permitted value and minimum permitted value of
			    the exponent is implementor-defined" */
			/* Exponent range -383  thru +384  for FLOAT-DECIMAL-16 */
			/* Exponent range -6143 thru +6144 for FLOAT-DECIMAL-34 */
			if (!(-6143 <= exponent && exponent <= 6144)) {
				snprintf (err_msg, COB_MINI_MAX,
					_("exponent not between -6143 and 6144"));
				error_literal ("float", text, literal_error++);
			}
		}
	}

	if (significand_is_zero (significand_int, significand_dec)) {
		if (sig_sign == -1) {
			snprintf (err_msg, COB_MINI_MAX,
				_("significand of 0 must be positive"));
			error_literal ("float", text, literal_error++);
		}
		if (exponent != 0) {
			snprintf (err_msg, COB_MINI_MAX,
				_("exponent of 0 must be 0"));
			error_literal ("float", text, literal_error++);
		}
		if (exp_sign == -1) {
			snprintf (err_msg, COB_MINI_MAX,
				_("exponent of 0 must be positive"));
			error_literal ("float", text, literal_error++);
		}
	}

	if (literal_error) {
		yylval = cb_build_numeric_literal (0, "0", 0);
		RETURN_TOK (LITERAL);
	}

	/* Literal data */
	strcpy (result, significand_int);
	strcat (result, significand_dec);

	/* Determine scale */
	/* Base scale is decimal part of the significant */
	scale = (int)sig_dec_len;
	if (exponent < 0) {
		/* Decimals; power down by scale difference */
		scale = - (exponent - scale);
	} else if (exponent > 0) {
		/* No decimals; power up by scale difference */
		if (exponent >= scale) {
			scale = - (exponent - scale);
		} else {
			scale -= exponent;
		}
	}

	yylval = cb_build_numeric_literal (sig_sign, result,
					   scale);
	RETURN_TOK (LITERAL);
}

static void
scan_picture (const char *text)
{
	unsigned char			*p;

	/* Scan a PICTURE clause */
	/* Normalize the input */
	for (p = (unsigned char *)text; *p; p++) {
		/* unput trailing '.' or ',' */
		if (p[1] == 0 && (*p == '.' || *p == ',')) {
			unput (*p);
			*p = 0;
			break;
		}
		*p = cb_toupper (*p);
	}

	yylval = CB_TREE (cb_build_picture (text));
}

static void
count_lines (const char *text)
{
	register const char	*p;

	/* Count newlines in text */
	for (p = text; *p; p++) {
		if (*p == '\n') {
			cb_source_line++;
		}
	}
}

static void
cb_add_const_var (const char *name, cb_tree value)
{
	cb_tree			x;
	struct cb_level_78	*p78;
	struct cb_field		*f;

	/* Add an inline constant */
	x = cb_build_constant (cb_build_reference (name), value);
	f = CB_FIELD (x);
	f->flag_item_78 = 1;
	f->flag_is_global = 1;
	f->flag_internal_constant = 1;
	f->level = 1;
	(void)cb_validate_78_item (f, 1);

	/* Add constant item */
	p78 = cobc_malloc (sizeof(struct cb_level_78));
	p78->fld_78 = f;
	p78->prog = NULL;
	p78->name_len = (cob_u32_t)strlen (f->name);
	/* RXWRXW - Check this */
	p78->chk_const = 0;
	if (!const_78_ptr) {
		p78->last = p78;
	} else {
		p78->last = const_78_ptr->last;
	}
	p78->next = const_78_ptr;
	p78->glob_next = const_78_ptr;
	const_78_ptr = p78;
	if (glob_lev_78_ptr) {
		glob_lev_78_ptr->last->glob_next = const_78_ptr;
	} else if (lev_78_ptr) {
		lev_78_ptr->last->glob_next = const_78_ptr;
	} else {
		top_78_ptr = const_78_ptr;
	}
}

static void
scan_define_options (const char *text)
{
	char				*p;
	char				*s;
	char				*var;
	const struct cb_level_78	*p78;
	char				*q;
	unsigned char			*t;
	cb_tree				x;
	size_t				size;
	int				scale;
	int				sign, override;

	/* Scan a source inline define */
	p = cobc_strdup (text);

	q = &p [strlen (p)-1];
	while(q != p
	   && (isspace ((unsigned char)(*q)) || *q == '\n' || *q == '\r'))
		q--;
	q = q - 7;
	if (memcmp (q, "OVERRIDE", 8) == 0) {
		override = 1;
		while (isspace((unsigned char)(q[-1]))) q--;
		strcpy (q,"\n");
	} else {
		override = 0;
	}

	/* Ignore first part */
	s = strtok (p, " ");

	/* Variable name */
	s = strtok (NULL, " \n");
	if (!s) {
		cobc_free (p);
		return;
	}

	/* Check for already defined constant */
	if (!override) {
		for (p78 = top_78_ptr; p78; p78 = p78->glob_next) {
			if (strcasecmp (s, p78->fld_78->name) == 0) {
				cobc_free (p);
				return;
			}
		}
	}

	var = cobc_strdup (s);

	/* Value */
	s = strtok (NULL, "\n");
	if (!s) {
		cb_error (_("invalid CONSTANT: %s"), var);
		goto freevar;
	}

	if (*s == '"' || *s == '\'') {
		/* Alphanumeric literal */
		sign = *s;
		size = strlen (s);
		q = s + size - 1;
		if (q == s || *q != sign) {
			cb_error (_("invalid alphanumeric CONSTANT: %s"), s);
			goto freevar;
		}
		if (size < 3) {
			cb_error (_("empty alphanumeric CONSTANT: %s"), s);
			goto freevar;
		}
		*q = 0;
		size -= 2;
		x = cb_build_alphanumeric_literal (s + 1, size);
	} else {
		/* Get sign */
		sign = get_sign (*s);
		INCREMENT_IF_SIGNED (s, sign);

		/* Get decimal point */
		scale = 0;
		q = strchr (s, '.');
		if (q) {
			scale = (int)strlen (q) - 1;
			if (scale < 1) {
				cb_error (_("invalid numeric CONSTANT: %s"), s);
				goto freevar;
			}
			/* Remove decimal point */
			memmove (q, q + 1, (size_t)scale + 1);
		}
		for (t = (unsigned char *)s; *t; ++t) {
			if (*t < '0' || *t  > '9') {
				cb_error (_("invalid numeric CONSTANT: %s"), s);
				goto freevar;
			}
		}
		if (strlen (s) > COB_MAX_DIGITS) {
			cb_error (_("invalid numeric CONSTANT: %s"), s);
			goto freevar;
		}

		x = cb_build_numeric_literal (sign, s, scale);
	}
	/* Add to constant list */
	cb_add_const_var (var, x);

freevar:
	cobc_free (p);
	cobc_free (var);
}

#undef INCREMENT_IF_SIGNED

/*
  For yytext of the form '#directive "a-word"' or '#directive
  (a-word)', copy a-word into word, converting it to upper-case.
*/
static void
copy_word_in_quotes (char ** const word)
{
	char	*text = cobc_strdup (yytext);
	char	*word_str;
	size_t	word_len;

	/* Skip directive */
	word_str = strtok (text, " ");

	/* Get word and remove quotes */
	word_str = strtok (NULL, "\n");
	word_len = strlen (word_str) - 2;
	*word = cobc_malloc (word_len + 1);
	cb_memcpy_upper (*word, word_str + 1, word_len);

	cobc_free (text);
}

/*
   For yytext of the form '#directive "first-word" "second-word"' or '#directive
   (first-word) (second-word)', allocate copies of first-word for word1 and
   second-word for word2, converting them to upper-case.
*/
static void
copy_two_words_in_quotes (char ** const word1, char ** const word2)
{
	char	*text = cobc_strdup (yytext);
	char	*word1_str;
	char	*word2_str;
	size_t	word_len;

	/* Skip directive. */
	word1_str = strtok (text, " ");

	/* Get words and remove surrounding quotes. */

	word1_str = strtok (NULL, " ");
	word_len = strlen (word1_str) - 2;
	*word1 = cobc_malloc (word_len + 1);
	cb_memcpy_upper (*word1, word1_str + 1, word_len);

	word2_str = strtok (NULL, "\n");
	word_len = strlen (word2_str) - 2;
	*word2 = cobc_malloc (word_len + 1);
	cb_memcpy_upper (*word2, word2_str + 1, word_len);

	cobc_free (text);
}

static void
add_synonym (const int std, const int synonym_replaces_original)
{
	char	*word;
	char	*synonym;

	copy_two_words_in_quotes (&word, &synonym);

	if (!is_default_reserved_word (word)) {
		cb_error (_("'%s' is not a default reserved word, so cannot be aliased"),
			  word);
	} else if (is_reserved_word (synonym)) {
		cb_error (_("'%s' is already reserved"), synonym);
		if (!std) {
			cb_note (COB_WARNOPT_NONE, 0, _("you may want MAKESYN instead"));
		}
	} else {
		if (synonym_replaces_original) {
			remove_reserved_word_now (word);
		}
		add_reserved_word_now (synonym, word);
	}

	cobc_free (word);
	cobc_free (synonym);
}

static void
make_synonym (void)
{
	char* new_meaning;
	char* word_to_change;

	copy_two_words_in_quotes (&new_meaning, &word_to_change);

	if (!is_default_reserved_word (new_meaning)) {
		cb_error (_("'%s' is not a default reserved word, so cannot be aliased"),
			new_meaning);
	} else if (!is_reserved_word (word_to_change)) {
		cb_error (_("'%s' is not a reserved word"), word_to_change);
		cb_note (COB_WARNOPT_NONE, 0, _("you may want ADDSYN or OVERRIDE instead"));
	} else {
		remove_reserved_word_now (word_to_change);
		add_reserved_word_now (word_to_change, new_meaning);
	}

	cobc_free (new_meaning);
	cobc_free (word_to_change);
}

static void
clear_constants (void)
{
	struct cb_level_78	*p78;

	while (lev_78_ptr) {
		p78 = lev_78_ptr;
		lev_78_ptr = lev_78_ptr->next;
		cobc_free (p78);
	}
	while (glob_lev_78_ptr) {
		p78 = glob_lev_78_ptr;
		glob_lev_78_ptr = glob_lev_78_ptr->next;
		cobc_free (p78);
	}
	while (const_78_ptr) {
		p78 = const_78_ptr;
		const_78_ptr = const_78_ptr->next;
		cobc_free (p78);
	}
	top_78_ptr = NULL;
}

/* Global functions */

void
ylex_clear_all (void)
{
	/* Clear buffers after parsing all source elements */
	if (pic_buff2) {
		cobc_free (pic_buff2);
		pic_buff2 = NULL;
	}
	if (pic_buff1) {
		cobc_free (pic_buff1);
		pic_buff1 = NULL;
	}
	if (plex_buff) {
		cobc_free (plex_buff);
		plex_buff = NULL;
	}
	plex_size = 0;
	pic1_size = 0;
	pic2_size = 0;

#if 1
	clear_constants ();
#else
	cb_reset_78 ();
	cb_reset_global_78 ();
#endif
}

void
ylex_call_destroy (void)
{
	/* Release flex buffers */
	(void)yylex_destroy ();
#if 0
	const_78_ptr = NULL;
#endif
}

void
cb_unput_dot (void)
{
	unput ('.');
}

/* Remove constant (78 level) items for current program */
void
cb_reset_78 (void)
{
	struct cb_level_78	*p78;

	while (lev_78_ptr) {
		p78 = lev_78_ptr;
		lev_78_ptr = lev_78_ptr->next;
		cobc_free (p78);
	}

	if (glob_lev_78_ptr) {
		top_78_ptr = p78 = glob_lev_78_ptr;
		while (p78) {
			p78->not_const = 0;
			p78 = p78->next;
		}
	} else {
		top_78_ptr = const_78_ptr;
	}
}

/* Remove constant (78 level) items for top program */
void
cb_reset_global_78 (void)
{
	struct cb_level_78* p78;

	while (glob_lev_78_ptr) {
		p78 = glob_lev_78_ptr;
		glob_lev_78_ptr = glob_lev_78_ptr->next;
		cobc_free (p78);
	}
	top_78_ptr = const_78_ptr;
}

/* Add a constant (78 level) item */
void
cb_add_78 (struct cb_field *f)
{
	struct cb_level_78	*p78;

	p78	= cobc_malloc (sizeof(struct cb_level_78));
	p78->fld_78 = f;
	p78->prog = current_program;
	p78->name_len = (cob_u32_t)strlen (f->name);
	if (f->flag_is_global) {
		if (!glob_lev_78_ptr) {
			p78->last = p78;
		} else {
			p78->last = glob_lev_78_ptr->last;
		}
		p78->last->glob_next = const_78_ptr;
		p78->next = glob_lev_78_ptr;
		p78->glob_next = glob_lev_78_ptr;
		p78->chk_const = 1;
		glob_lev_78_ptr = p78;
		if (lev_78_ptr) {
			lev_78_ptr->last->glob_next = glob_lev_78_ptr;
		} else {
			top_78_ptr = glob_lev_78_ptr;
		}
	} else {
		if (!lev_78_ptr) {
			p78->last = p78;
		} else {
			p78->last = lev_78_ptr->last;
		}
		if (glob_lev_78_ptr) {
			p78->last->glob_next = glob_lev_78_ptr;
		} else {
			p78->last->glob_next = const_78_ptr;
		}
		p78->next = lev_78_ptr;
		p78->glob_next = lev_78_ptr;
		lev_78_ptr = p78;
		top_78_ptr = lev_78_ptr;
	}
}

struct cb_field *
check_level_78 (const char *name)
{
	const struct cb_level_78	*p78;

	/* Check against a current constant (78 level) */
	for (p78 = lev_78_ptr; p78; p78 = p78->next) {
		if (strcasecmp (name, p78->fld_78->name) == 0) {
			return p78->fld_78;
		}
	}
	/* Check against a global constant (78 level) */
	for (p78 = glob_lev_78_ptr; p78; p78 = p78->next) {
		if (strcasecmp (name, p78->fld_78->name) == 0) {
			return p78->fld_78;
		}
	}
	return NULL;
}

/*
  Find program with the program-name name in defined_prog_list. If it is not
  there, return NULL.
*/
struct cb_program *
cb_find_defined_program_by_name (const char *name)
{
	int	(*cmp_func)(const char *, const char *);
	cb_tree	l;
	cb_tree	x;

	if (cb_fold_call) {
		cmp_func = &strcasecmp;
	} else {
		cmp_func = &strcmp;
	}

	for (l = defined_prog_list; l; l = CB_CHAIN (l)) {
		x = CB_VALUE (l);
		if ((*cmp_func)(name, CB_PROGRAM (x)->program_name) == 0) {
			return CB_PROGRAM (x);
		}
	}

	return NULL;
}

struct cb_program *
cb_find_defined_program_by_id (const char *orig_id)
{
	cb_tree	l;
	cb_tree	x;

	for (l = defined_prog_list; l; l = CB_CHAIN (l)) {
		x = CB_VALUE (l);
		if (strcmp (orig_id, CB_PROGRAM (x)->orig_program_id) == 0) {
			return CB_PROGRAM (x);
		}
	}

	return NULL;
}

