#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 123
#define YY_END_OF_BUFFER 124
/* 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[939] =
    {   0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
      124,  118,   11,   44,   17,  118,  109,   39,   40,  113,
      114,  115,  108,  112,   41,  110,   45,  116,  111,  117,
      103,  103,  103,  103,  103,  103,  103,  103,  103,  103,
      103,  103,  103,  103,  103,  103,  103,  103,  103,   44,
       13,  114,   49,  115,  108,   41,  114,   54,  115,   41,
      120,   44,   45,  120,   44,  120,  122,   44,  121,   45,
       44,  122,   44,   36,  107,   43,    0,  108,    0,   41,
      103,   45,  104,  106,  105,  103,  103,    0,    0,    0,
      103,  103,  103,  103,  103,  103,  103,  103,  103,    0,

        0,    0,  103,    0,    0,  103,  103,   20,  103,  103,
      103,  103,    0,  103,  103,  103,  103,  103,  103,  103,
      103,  103,  103,  103,  103,    0,    0,    0,    0,    0,
        0,   13,   13,   13,   13,   13,   13,   13,   13,   13,
        0,   43,   49,   48,    0,   41,    0,   43,   53,   52,
        0,   41,  120,  119,  120,  120,  120,  120,  120,  120,
      120,  121,    0,    0,    0,    0,    0,    0,    0,   42,
      103,    0,    0,   31,   34,    0,   30,    0,    0,  103,
      103,  103,  103,  103,  103,  103,  103,    0,   29,   38,
        0,   28,  103,    0,   27,    0,   26,  103,  103,  103,

       21,  103,    0,  103,    0,    0,   35,    0,  103,   14,
      103,  103,  103,  103,  103,  103,  103,  103,  103,  103,
        0,   19,   37,    0,   18,    0,   25,    0,   24,   13,
       13,   13,   13,   13,   13,   13,   13,   13,    0,    0,
       46,   42,   53,    0,    0,   50,   42,  120,  120,  120,
      120,  120,  120,  120,  120,    0,    0,    0,    0,    0,
        0,    0,    0,  103,    0,    0,    0,    0,   33,    0,
       32,    0,    0,   88,  103,  103,  103,  103,  103,  103,
      103,  103,  103,  103,  103,    0,    0,    0,    0,   23,
        0,   22,    0,    0,    0,    0,  103,  103,  103,  103,

      103,  103,  103,  103,  103,  103,  103,  103,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   47,   51,
      120,  120,  120,  120,  120,  120,  120,  120,  120,    0,
        0,    0,    0,    0,    0,    0,    0,    0,  103,    0,
        0,    0,    0,    0,    0,  103,  103,  103,  103,    0,
      103,  103,  103,  103,    0,    0,  103,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
      103,  103,  103,  103,  103,    0,  103,  103,    0,    0,
      100,    0,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,  120,  120,  120,  120,  120,  120,  120,

      120,  120,  120,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
      103,    0,  103,    0,  103,    0,  103,  103,  103,  103,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,  103,  103,    0,    0,  103,    0,  103,  103,
        0,    0,    0,    0,    0,    0,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   10,  120,
      120,  120,  120,  120,  120,  120,  120,  120,  120,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,   85,    0,   70,    0,    0,    0,    0,    0,  103,
        0,  103,  103,  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,  103,
       15,    0,    0,    0,    0,  103,    0,    0,    0,    0,
        0,    0,    0,   13,   13,   13,   13,   13,   12,   13,
       13,   13,   13,  120,  120,  120,  120,  120,  120,  120,
      120,  120,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,  103,    0,    0,
      103,    0,   16,    0,   90,   90,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,   91,    0,   84,    0,
       87,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,  103,    0,    0,    0,    0,    0,  103,    0,
        0,    0,    0,    0,    0,    0,    0,   13,    3,   13,
        4,   13,   13,    1,   13,    2,   12,   13,   13,   13,
       13,    7,  120,    0,  120,    0,    0,  120,    0,  120,
        0,  120,  120,  120,  120,    0,    0,    0,    0,   98,
        0,    0,    0,    0,    0,  103,   67,    0,  103,   58,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,    0,   86,    0,    0,    0,    0,    0,   99,
      101,    0,    0,    0,    0,    0,   13,   13,    5,   13,
       13,    0,  120,    0,  120,  120,    0,    0,    0,   72,
        0,    0,    0,  103,    0,    0,    0,    0,    0,  102,
        0,   66,   66,    0,    0,   69,    0,   75,    0,    0,
        0,    0,    0,    0,    0,   81,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,   92,    9,   13,
        6,   13,  120,    0,  120,    0,    0,    0,    0,    0,
      103,    0,    0,    0,    0,    0,    0,    0,   73,    0,
       76,    0,    0,   79,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,   78,    0,    0,    0,    0,   13,
      120,    0,    0,    0,    0,   55,    0,    0,    0,    0,
        0,    0,    0,    0,    0,   89,   89,    0,    0,    0,
        0,   61,   62,    0,    0,    0,    0,    0,   13,  120,
        0,    0,    0,   56,   60,    0,    0,   64,   64,    0,
       71,   74,    0,    0,    0,    0,   83,    0,   82,    0,
        0,    0,    0,    0,    0,   13,    0,    0,    0,    0,
        0,    0,   65,   65,    0,    0,   80,    0,    0,    0,
        0,    0,    0,    0,    0,   13,    0,    0,    0,    0,
        0,    0,    0,    0,   77,   57,   59,   68,    0,    0,

        0,    8,    0,    0,    0,    0,    0,    0,    0,   63,
       63,    0,    0,    0,    0,    0,    0,    0,    0,   96,
        0,    0,    0,    0,    0,    0,    0,   97,    0,    0,
        0,   95,    0,    0,   93,    0,   94,    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,   17,
       17,   17,   17,   17,   17,   17,   17,   18,   19,   20,
       21,   22,    1,    1,   23,   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,
        1,    1,    1,    1,   49,    1,   50,   51,   52,   53,

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

       75,   75,   75,   75,   75,   75,   75,   75,   75,   75,
       75,   75,   75,   75,   75,   75,   75,   75,   75,   75,
       75,   75,   75,   75,   75,   75,   75,   75,   75,   75,
       75,   75,   75,   75,   75,   75,   75,   75,   75,   75,
       75,   75,   75,   75,   75,   75,   75,   75,   75,   75,
       75,   75,   75,   75,   75
    } ;

static const YY_CHAR yy_meta[76] =
    {   0,
        1,    2,    3,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    4,    1,    1,    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[987] =
    {   0,
        0,   73,   67,   80,   74,   93,   97,   99,  157,  232,
     1673, 3041, 3041, 1634, 3041, 1610, 3041, 3041, 3041, 1614,
     1570, 1548,  106, 3041,   97, 3041, 1498,   68, 3041, 1491,
      160,  135,   63,  294,  142,  105,  182,   89,  251,  363,
      213,  215,   99,  246,  244,  247,  288,  320,  272,  112,
      413,  105, 1493,  112,  324,  207,  118,  176,  119,  299,
        0, 1464, 1428,   83,  139,  459, 3041, 1398,    0, 1381,
      189,  505, 1387, 1372, 3041, 1366,  195,  197,  254,  273,
      265, 1361, 3041, 3041, 3041,  321,  372, 1368, 1353, 1361,
      280,  346,  309,  338,  365,  379,  347,  306,  391, 1300,

        0, 1284,  362, 1278, 1244,  384,  380, 3041,  448,  388,
      456,  453, 1228,  504,  489,  507,  537,  486,  440,  499,
      530,  527,  535,  548,  466, 1240,    0, 1234, 1234, 1228,
        0,    0,  524,  247,  245,  322,  374,  222,  376,  263,
      547,  199, 1195,  553,  478,  568,  572,  120, 1190,  573,
      596,  579,    0,    0,  577,  399,  414,  421,  266,  437,
      339,    0,  579,  454,  456,  496,  357,  540,  526,  598,
      602,  621, 1198, 3041, 1170, 1176, 3041, 1179, 1162,  636,
      639,  643,  629,  646,  645,  656,  648, 1165, 3041,    0,
     1160, 3041,  653, 1161, 3041, 1123, 3041,  655,  660,  663,

     3041,  619,  711,  719, 1126, 1121, 1110,  767,  696,  704,
      702,  693,  717,  725,  711,  734,  705,  729,  749,  743,
     1122, 3041,    0, 1113, 3041, 1078, 3041, 1069, 3041,  611,
      715,  724,  668,  745,  754,  672,  761,  748,  202, 1022,
      208,  795, 1022,  188, 1012,  250,  806,  724,  758,  767,
      762,  772,  770,  798,  766,  789,  787,  801,  790,  803,
      810,  811,  801,  829,  810,  812,  813, 1019, 3041, 1003,
     3041,  868,  842, 3041,  843,  844,  851,  895,  868,  869,
      870,  871,  932,  939,  946,  837,  857, 1005, 1006, 3041,
      992, 3041,  883,  867,  855,  870,  912,  913,  917,  929,

      949,  970,  956,  960, 1012, 1031, 1038, 1035, 1024,  944,
      934,  953,  950,  966,  951,  966,  984,  994,  982,  975,
     1026,  985, 1026, 1028, 1031, 1029, 1035, 1034, 1037, 1034,
     1045, 1044, 1045, 1054, 1043, 1054, 1057, 1062, 1104, 1060,
     1084, 1074, 1075, 1071, 1076, 1097, 1130, 1145, 1108, 1153,
     1105, 1146, 1131, 1147, 1172, 1179, 1204, 1208, 1097, 1144,
     1148, 1188, 1157, 1186, 1157, 1174, 1176, 1185, 1193, 1184,
     1227, 1219, 1260, 1264, 1235, 1267, 1261, 1251, 1288, 1293,
     3041, 1320, 1252, 1251, 1270, 1274, 1272,  469, 1264, 1271,
     1277, 1281,  984, 1286, 1285, 1288, 1306, 1304, 1297, 1301,

     1305, 1304,  849, 1308, 1303, 1307, 1324, 1326, 1314, 1319,
     1323, 1321,  977, 1375, 1324, 1393, 1396, 1401, 1335, 1350,
      429, 1415, 1419, 1422, 1396, 1353, 1409, 1412, 1416, 1437,
     1365, 1407, 1412, 1471, 1396, 1421, 1425, 1426, 1478, 1429,
     1415, 1435, 1441, 1415, 1496, 1450, 1440, 1469, 1469, 1458,
     1461, 1475, 1491, 1489, 1505, 1529, 1531, 1470, 1511, 1240,
     1503, 1471, 1483, 1499, 1518, 1512, 1507, 1517, 1519, 1526,
     1516,  952,  608, 1512, 1531, 1537, 1537,  952, 3041, 1522,
     1531, 1533, 1542, 1528, 1527, 1545, 1556, 1559, 1132,  945,
     1544, 1558, 1562, 1571, 1562, 1558, 1571, 1580, 1580, 1586,

     1573, 3041, 1578, 3041, 1583, 1583, 1602, 1580, 1576, 1605,
     1579, 1612, 1643, 1650, 1657, 1669, 1599, 1620, 1625, 1638,
     1640, 1641, 1594, 1643, 1683, 1687, 1708, 1713, 1657, 1664,
     1674, 1706, 1647, 1685, 1691, 1692, 1732, 1689, 1735, 1717,
     1761, 1702, 1706, 1768, 1710, 1745,  618, 1714, 1711, 1718,
     1713, 1716, 1787,  936,  931,  913,  900,  886,    0, 1729,
     1751,  811,  838, 1794, 1796,  835, 1799, 1805, 1749, 1756,
      746, 1814,  791,  757,  737,  733,  727, 1759, 1766,  666,
      684, 1823, 1778, 1770, 1786, 1780, 1783, 1814, 1832, 1804,
     1825, 1853,  908, 1856, 1875, 3041, 1812, 1877, 1808, 1815,

     1882, 1808, 1819, 1817, 1835, 1840, 3041, 1863, 3041, 1834,
     3041, 1843, 1853, 1868, 1865, 1859, 1854, 1920, 1886, 1868,
     1939, 1878, 1941, 1944, 1895, 1898, 1890, 1898, 1965, 1979,
     1986, 1915, 1907, 1930, 1928, 1943, 2004,  681, 3041,  680,
     3041,  662,  634, 3041,  629, 3041,    0,  620, 1943, 1921,
      617, 3041, 2006,  612, 2010,  604,  522, 2013,  534, 2016,
      531, 2018, 1946, 1954, 2028,  527,  485, 1956, 1974, 3041,
     1997, 2031,  409, 1995, 2013, 2026, 3041, 1996, 2054, 3041,
     1999, 2012, 2057, 2018, 2076, 2019, 2083, 2019, 2091, 2020,
     2098, 2028, 2105, 2068, 2077, 2082, 2029, 2081, 2046, 2125,

     2128, 2088, 2077, 3041, 2075, 2098, 2104, 2089, 2094, 3041,
     3041, 2112, 2102, 2122, 2109, 2151,  411,  381, 3041,  363,
     2128,  360, 2155,  352, 2165, 2134,  348, 2138, 2131, 3041,
     2133, 2136, 2141, 2163, 2135, 2203, 2205, 2160, 2138, 3041,
     2144, 2212, 3041, 2217, 2163, 3041, 2231, 3041, 2165,  335,
     2238, 2163, 2170, 2166, 2169, 3041, 2200, 2193, 2204, 2215,
     2216, 2203, 2259, 2227, 2227, 2211, 2219, 3041, 3041,  342,
     3041, 2218, 2257,  267, 2226, 2227, 2226, 2254, 2244, 2283,
     2286, 2242, 2250, 2305, 2254, 2308, 2272, 2312, 3041, 2256,
     3041, 2274, 2274, 3041, 2282, 2331, 2281, 2288, 2293, 2338,

     2296, 2358, 2361, 2296, 3041, 2308, 2306, 2317, 2320, 2321,
     2328, 2330, 2338, 2343, 2385, 3041, 2392, 2347, 2347, 2400,
     2356, 2415, 2418, 2356, 2361, 2422, 3041, 2437, 2364, 2444,
     2373, 3041, 3041, 2385, 2396, 2396,  212, 2407,  217,  210,
      201, 2406, 2354, 3041, 3041, 2400, 2401, 2458, 3041, 2463,
     3041, 3041, 2416, 2471, 2486, 2440, 3041, 2409, 3041, 2420,
     2449, 2450,  181, 2451, 2460,  166,  163, 2455, 2505, 2465,
     2475, 2513, 2525, 3041, 2533, 2475, 3041, 2466, 2538, 2553,
     2556, 2571, 2498, 2479, 2518,  150,  145, 2575, 2519, 2529,
     2579, 2528, 2593, 2598, 3041, 3041, 3041, 3041, 2536, 2547,

     2555, 3041, 2491, 2601, 2616, 2564, 2516,  127, 2565, 2624,
     3041, 2631, 2598, 2638, 2594, 2574, 2652, 2595, 2618, 3041,
     2625, 2629, 2667, 2674, 2619, 2627, 2639, 3041, 2688, 2651,
     2631, 3041, 2693, 2656, 3041, 2711, 3041, 3041, 2730, 2737,
     2741, 2748, 2755, 2759, 2764, 2771, 2778,  129, 2785, 2792,
     2799, 2806,  118, 2813, 2820, 2827, 2834, 2841, 2848, 2855,
     2862, 2869, 2876, 2881, 2886, 2893, 2900, 2907, 2914, 2921,
     2928, 2935, 2942, 2949, 2956, 2963, 2970, 2977, 2984, 2991,
     2998, 3005, 3012, 3019, 3026, 3033
    } ;

static const flex_int16_t yy_def[987] =
    {   0,
      938,    1,    1,    1,    1,    1,  939,  939,  940,  940,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  941,  938,  938,  938,  938,  938,
      941,  941,  941,  941,  941,  941,  941,  941,  941,  941,
      941,  941,  941,  941,  941,  941,  941,  941,  941,  938,
      942,  938,  938,  938,  938,  941,  938,  938,  938,  941,
      943,  938,  938,  943,  938,  943,  938,  938,  944,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  941,  941,
      941,  938,  938,  938,  938,  941,  941,  945,  938,  946,
      941,  941,  941,  941,  941,  941,  941,  941,  941,  947,

      948,  949,  941,  950,  951,  941,  941,  938,  941,  941,
      941,  941,  938,  941,  941,  941,  941,  941,  941,  941,
      941,  941,  941,  941,  941,  952,  953,  954,  955,  956,
       72,  942,  942,  942,  942,  942,  942,  942,  942,  942,
      938,  938,  938,  938,  938,  941,  938,  938,  938,  938,
      938,  941,  943,  943,  943,  943,  943,  943,  943,  943,
      943,  944,  938,  938,  938,  938,  938,  938,  938,  941,
      941,  938,  945,  938,  938,  946,  938,  957,  958,  941,
      941,  941,  941,  941,  941,  941,  941,  947,  938,  948,
      949,  938,  941,  950,  938,  951,  938,  941,  941,  941,

      938,  941,  938,  941,  959,  960,  938,  938,  941,  941,
      941,  941,  941,  941,  941,  941,  941,  941,  941,  941,
      952,  938,  953,  954,  938,  955,  938,  956,  938,  942,
      942,  942,  942,  942,  942,  942,  942,  942,  938,  938,
      938,  941,  938,  938,  938,  938,  941,  943,  943,  943,
      943,  943,  943,  943,  943,  938,  938,  938,  938,  938,
      938,  938,  938,  941,  938,  938,  938,  957,  938,  958,
      938,  938,  941,  938,  941,  941,  941,  941,  941,  941,
      941,  941,  941,  941,  941,  938,  938,  938,  959,  938,
      960,  938,  938,  938,  938,  938,  941,  941,  941,  941,

      941,  941,  941,  941,  941,  941,  941,  941,  942,  942,
      942,  942,  942,  942,  942,  942,  942,  942,  938,  938,
      943,  943,  943,  943,  943,  943,  943,  943,  943,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  941,  938,
      938,  938,  938,  938,  938,  941,  941,  941,  941,  938,
      941,  941,  941,  941,  938,  938,  941,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      941,  941,  941,  941,  941,  938,  941,  941,  938,  938,
      938,  938,  942,  942,  942,  942,  942,  942,  942,  942,
      942,  942,  961,  943,  943,  943,  943,  943,  943,  943,

      943,  943,  962,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  963,  938,  938,  938,  938,  938,  938,  938,
      941,  938,  941,  938,  941,  938,  941,  941,  941,  941,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  941,  941,  938,  938,  941,  938,  941,  941,
      938,  938,  938,  938,  938,  938,  942,  942,  942,  942,
      942,  942,  942,  942,  942,  942,  942,  961,  938,  943,
      943,  943,  943,  943,  943,  943,  943,  943,  962,  963,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,

      938,  938,  938,  938,  938,  938,  941,  938,  938,  941,
      938,  941,  941,  941,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  941,
      941,  938,  938,  938,  938,  941,  964,  938,  938,  938,
      938,  938,  938,  965,  966,  942,  967,  968,  969,  942,
      942,  942,  970,  971,  972,  943,  973,  974,  943,  943,
      943,  975,  976,  977,  938,  978,  979,  938,  938,  938,
      980,  938,  938,  938,  938,  938,  938,  941,  938,  938,
      941,  938,  941,  938,  938,  938,  938,  938,  938,  938,

      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  941,  938,  938,  938,  938,  938,  941,  938,
      938,  938,  938,  938,  938,  938,  938,  965,  938,  966,
      938,  942,  967,  938,  968,  938,  969,  981,  942,  942,
      970,  938,  971,  976,  972,  977,  938,  973,  978,  974,
      979,  982,  943,  943,  975,  980,  983,  938,  938,  938,
      938,  938,  938,  938,  938,  941,  938,  938,  941,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,

      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  942,  981,  938,  984,
      942,  938,  982,  983,  985,  943,  986,  938,  938,  938,
      938,  938,  938,  941,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  984,
      938,  942,  985,  986,  943,  938,  938,  938,  938,  938,
      941,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,

      938,  938,  938,  938,  938,  938,  938,  938,  938,  942,
      943,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  942,  943,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  942,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  942,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,

      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,    0,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938
    } ;

static const flex_int16_t yy_nxt[3117] =
    {   0,
       12,   13,   14,   15,   12,   16,   17,   15,   18,   19,
       20,   21,   12,   22,   23,   24,   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,   79,   51,   52,   53,
       54,   55,   50,   56,   51,   57,   58,   59,   83,   84,
       60,   52,   53,   54,   55,   50,   56,   51,   13,   62,

       13,   65,   79,   66,   57,   58,   59,   77,   77,   60,
       79,   79,   79,   80,   73,   63,  131,   63,   79,  141,
       78,  142,  223,  154,  103,  117,  141,   64,  142,   64,
      147,  147,  147,  190,  148,  148,  148,   79,   88,   89,
      915,   73,   90,  131,   99,   79,  902,   79,   79,  154,
      103,  902,  117,   79,   64,   79,   64,   67,   13,   68,
       67,   67,   67,   67,   67,   67,   67,   67,   67,   67,
       99,   67,   67,   79,   67,   70,   67,   67,   67,  887,
       91,   97,  886,   79,   98,  100,  101,   86,  149,  102,
       79,   73,  150,  131,  883,   79,   77,   77,   77,   77,

      245,   87,  151,  867,  246,   67,   91,   97,   79,   78,
       98,   78,  867,  141,   86,  142,  240,  113,  241,  866,
       79,  141,  240,  146,  241,  864,   79,   87,   79,  151,
       79,   67,   67,   13,   71,   67,   72,   67,   67,   67,
       67,   67,   67,   67,   67,  116,   67,   67,  114,   67,
       70,   67,   67,   67,  104,   79,  115,   79,  105,   79,
       79,   79,  245,   79,   79,  236,  246,   79,  771,  232,
      118,  233,  116,  122,  114,  129,  119,  106,   79,  130,
       67,  107,  115,  178,  123,   79,   79,  179,  120,  170,
      121,  236,   79,   79,   79,   79,  232,  118,  233,   79,

      122,   79,   79,  119,  106,  238,   67,   79,  107,  253,
      123,  147,   79,   79,  120,  152,  121,  124,  125,   79,
       79,   79,   79,  126,  127,   77,   77,  128,   79,   92,
       93,  238,   94,   79,   79,  253,   79,   95,   78,   96,
      144,  186,   79,  771,  124,  125,  181,   79,  793,  771,
      145,   79,  234,  719,   79,   92,   93,   79,   94,   79,
       79,  769,  171,   95,  771,   96,  108,  186,   79,   79,
      108,  180,  181,  172,  172,   79,   79,  145,   79,  234,
      182,  255,  719,  185,  172,   79,   79,  109,  171,  110,
      172,  183,   79,   79,   79,   79,  235,   79,  180,  111,

      261,   79,  237,  184,   79,  193,  182,  255,  112,  185,
       79,   79,  769,   79,  109,  200,  110,  187,  183,  198,
       79,  250,  731,  235,  199,  111,  261,   79,   79,  237,
      184,  193,   79,  202,  112,  133,   79,  134,  135,   79,
      251,  200,  507,  252,  187,  198,  136,  137,  250,  138,
      199,  201,  139,   79,  140,  201,  205,  203,  203,  202,
      206,   79,  133,  254,  134,  135,   79,  251,  203,   79,
      252,  472,  136,  137,  203,  138,  258,   79,  139,   79,
      140,  155,  259,  156,  157,  473,  719,  214,   79,  239,
      254,  239,  240,  158,  241,  159,   79,  204,  160,   79,

      161,   79,   79,  258,   79,  208,  208,  220,  155,  259,
      156,  157,   79,  214,   79,  209,  208,   79,  260,  158,
       79,  159,  208,  204,  160,  213,  161,  163,  652,  164,
      165,  210,  646,  220,   79,  644,  215,   79,  722,  166,
       79,  167,  209,   79,  168,  260,  169,   79,   79,  230,
       79,  213,   79,  217,  163,   79,  164,  165,  210,  211,
      216,   79,  215,  144,  231,  166,  262,  167,  263,  144,
      168,  218,  169,  145,  219,   79,  230,  212,   79,  145,
      217,   79,  141,   79,  242,   79,  211,  216,  150,  150,
      231,  147,   79,  262,  263,  247,   79,  218,  151,  151,

      145,  219,  248,  212,  256,  641,  145,  244,  245,  244,
      559,   79,  246,  639,  170,   79,   79,  249,  652,  257,
      547,  719,  172,  172,  473,  151,  151,   79,  264,  248,
      646,  256,   79,  172,  630,  644,  309,  272,  272,  172,
      274,  274,   79,  249,  265,  257,   79,  266,  272,  273,
       79,  274,   79,  274,  272,  264,   79,  274,   79,   79,
      285,   79,  267,  309,  276,  275,   79,   79,   79,   79,
      280,  265,  277,   79,  266,  281,   79,   79,  717,  278,
      279,  641,  639,  282,   79,  652,  285,   79,  267,  284,
      276,   79,  275,   79,   79,  312,   79,  280,  315,  277,

      283,   79,  281,   79,   79,  278,   79,  279,   79,   79,
      282,   79,  203,  203,  669,   79,  284,   79,   79,  300,
      288,  288,  312,  203,   79,  315,  283,  299,  646,  203,
       79,  288,   79,  286,  644,  297,  287,  288,   79,  657,
      305,   79,   79,  301,   79,  298,  300,   79,  303,  321,
       79,  302,   79,   79,  299,  310,   79,  311,  641,   79,
      286,  297,   79,  287,  306,   79,  305,   79,  208,  208,
      301,  298,  308,   79,  303,  304,  321,   79,  302,  208,
      313,  310,   79,  311,  307,  208,  314,  318,  316,  324,
      306,   79,  639,  293,  664,  317,  326,   79,  322,  308,

      323,  304,  294,  295,  325,  329,  313,  296,   79,  141,
      307,  242,  314,  318,  330,  316,  324,  333,  147,   79,
      293,  317,  247,  326,  322,  327,  323,  331,  294,  295,
      325,  329,  328,  296,  332,  334,  335,  657,  336,  652,
      338,  330,   79,   79,  333,  337,  340,  341,  342,  343,
      479,  490,  327,  331,   79,   79,   79,   79,  328,  650,
      332,  334,  359,  335,   79,  336,  338,  490,  339,  272,
      272,  337,  340,  341,  342,  343,  347,   79,  346,  360,
      272,   79,   79,   79,   79,  348,  272,  646,  349,  359,
       79,   79,   79,  368,  339,  344,  350,  350,  369,   79,

      370,  644,  347,  353,  346,  345,  360,  350,   79,  351,
      352,  348,  354,  350,  349,  642,   79,   79,   79,   79,
      368,   79,  344,  366,  369,   79,   79,  370,  367,  353,
       79,  345,  641,  355,  355,  351,  352,  639,  354,  371,
      356,  356,   79,   79,  355,   79,  479,  358,  358,  366,
      355,  356,   79,  479,  367,  372,   79,  356,  358,   79,
       79,   79,   79,  373,  358,   79,  371,  386,  473,   79,
      374,  376,  376,   79,  385,  375,  388,   79,  479,  357,
       79,  372,  376,   79,  378,  479,  387,   79,  376,  373,
      390,  320,  389,  386,   79,  377,  374,   79,  319,  292,

      391,  385,  375,  388,   79,  357,  288,  288,   79,  290,
      271,  378,  387,  379,  379,  396,  390,  288,   79,  389,
      392,  377,  269,  288,  379,   79,  391,  361,  320,  393,
      379,  362,  380,  380,  243,  363,  382,  382,  319,  381,
      381,  364,  396,  380,   79,  365,  392,  382,   79,  380,
      381,   79,  381,  382,  361,  393,  381,  399,  362,  397,
       79,  398,  363,  383,  384,  394,  395,  364,  400,  401,
      402,  365,  403,  404,  405,  406,  229,  407,  408,   79,
      409,  227,  410,   79,  399,  397,   79,  398,  411,  383,
      384,  394,  395,  412,  400,  401,  402,  413,  403,  404,

      405,  415,  406,  407,  408,  414,  414,  409,  410,  416,
       79,  417,  418,  419,  411,  420,  414,   79,   79,  412,
      225,   79,  414,  413,  421,  222,  207,  415,  292,  290,
      197,  422,  422,  479,  490,  427,  416,  417,  418,  419,
      437,  420,  422,   79,   79,   79,  424,  424,  422,  425,
      490,  421,   79,   79,  350,  350,   79,  424,   79,   79,
       79,  429,  427,  424,  195,  350,  437,  192,  189,  271,
      423,  350,  428,  355,  355,  425,  430,  426,   79,   79,
      356,  356,  269,  177,  355,  438,  175,  447,  429,  439,
      355,  356,  444,   79,   79,   79,  423,  356,  448,  428,

      449,  174,  243,  430,  426,  434,  434,  143,  431,  358,
      358,  438,  433,  432,  447,  439,  434,   79,  444,  451,
      358,  445,  434,  440,  441,  448,  358,  449,  442,  446,
      450,  452,   79,  443,  431,  229,  435,  227,  433,  432,
       79,  225,  547,  222,  207,  436,  451,  445,   79,  440,
      441,  197,   79,   79,  442,  446,  450,  452,  454,  443,
      453,  455,  455,  435,   79,  456,  456,   79,  376,  376,
      457,  436,  455,   79,   79,   79,  456,   79,  455,  376,
      460,  195,  456,   79,  454,  376,  453,  459,   79,  379,
      379,  192,  467,  458,  380,  380,  457,  468,  469,   79,

      379,  470,  471,  189,  474,  380,  379,  460,   79,   79,
      475,  380,   79,  476,  459,  462,  482,  463,  467,  464,
      458,  382,  382,  468,  477,  469,  480,  461,  470,  471,
      474,  481,  382,  483,  484,  493,  475,  485,  382,  476,
      486,  487,  462,  482,  463,  465,  464,  488,  491,  492,
      477,  494,  480,  461,  496,  466,  495,  481,  497,  498,
      483,  484,  493,  485,  499,  501,  486,  487,  177,  175,
      505,  174,  465,  488,  491,  492,  414,  414,  494,   82,
      496,  466,   76,  495,  497,  498,  506,  414,   74,   73,
      499,  501,  511,  414,  502,  502,  505,  274,  274,   82,

       73,  500,  504,  504,  516,  502,  503,  502,  274,   79,
      274,  502,  506,  504,  274,  504,  422,  422,  511,  504,
      422,  422,   79,  424,  424,   79,  510,  422,  500,   79,
      516,  422,   79,  422,  424,  522,  517,  422,  515,  515,
      424,  514,  518,  523,   79,  512,   82,  524,  525,  515,
       79,  513,  528,  510,  527,  515,  508,   79,  531,  529,
       79,  522,  509,  517,   79,  530,   73,   79,  514,  518,
      523,  512,  434,  434,  524,  525,  533,  513,  528,  526,
      526,  527,  508,  434,  531,   79,  529,  534,  509,  434,
      526,  535,  530,  519,  520,  536,  526,  532,  532,  537,

      538,  539,   79,  533,   79,  143,  455,  455,  532,  545,
      549,   85,  521,  534,  532,  541,   82,  455,  535,  550,
      519,  520,  536,  455,   79,  537,  538,  540,  539,  548,
      456,  456,  544,  544,  551,  545,  549,   79,  521,   79,
      552,  456,  541,  544,   79,  550,  542,  456,  553,  544,
      554,  546,  555,  540,  556,  557,  548,  558,  560,   79,
      551,  561,  562,  563,   76,  564,  565,  552,  566,  568,
      543,  567,  542,  569,  553,  570,  554,  546,  555,   79,
      556,  571,  557,  558,  560,  572,   76,  573,  561,  562,
      563,  564,  565,  574,  566,  568,  543,  575,  567,  569,

      576,  579,  570,  577,  578,  580,  581,  586,  571,  584,
      582,  587,  572,  573,  585,   79,  589,  590,   79,  574,
      592,  599,  605,  575,   75,   79,   74,  576,  579,  577,
      578,  583,  580,  581,  586,  584,   73,  582,  587,  588,
      585,  591,  589,  590,  594,  594,  592,  593,  599,  605,
       79,  595,  595,   79,  600,  594,   79,  583,  515,  515,
       79,  594,  595,   79,  596,  588,  601,  591,  595,  515,
      598,  598,  938,  593,  602,  515,  603,  604,  606,  612,
      600,  598,  938,  938,  607,  607,  617,  598,  526,  526,
      613,   79,  601,  597,  938,  607,  614,  607,   79,  526,

      602,  607,  603,  604,  606,  526,  612,  532,  532,  609,
      609,  618,  617,  608,  611,  611,  622,  613,  532,  597,
      609,  610,  609,  614,  532,  611,  609,  611,  619,  620,
       79,  611,  615,  621,  621,  938,  376,  376,  618,  633,
      608,  625,  616,  622,  621,  626,  365,  376,  938,  628,
      621,  632,  634,  376,  619,  620,  635,  636,   79,  615,
      938,  623,  624,  624,  648,   79,  633,  625,  616,  544,
      544,  626,  365,  624,   79,  628,  649,  632,  634,  624,
      544,  663,  635,  636,  662,  629,  544,  623,  637,  637,
      648,  668,  627,   79,  667,  639,  654,  641,  656,  637,

      644,  659,  671,  649,  672,  637,  646,  661,  663,   79,
      662,  629,  654,  673,  656,  652,  666,  659,  668,  627,
      667,  674,  675,  661,  670,  670,  678,   79,  938,  671,
      672,  938,  666,  677,  677,  670,  676,  670,   79,  685,
      673,  670,  938,  687,  677,  688,  677,  674,  675,  690,
      677,  938,  938,  678,  680,  680,  691,  594,  594,  692,
      679,  693,   79,  676,  694,  680,  685,  680,  594,  687,
      695,  680,  688,   79,  594,  690,  683,  683,  598,  598,
      696,  699,  691,  689,  689,  692,  679,  683,  693,  598,
      697,  694,  681,  683,  689,  598,  695,  682,  440,  441,

      689,  698,  446,  686,  938,  442,  696,  684,  699,  702,
      443,  703,  701,  938,  938,  938,  697,  706,  681,  938,
      707,  700,  700,  682,  440,  441,  708,  698,  446,  938,
      686,  442,  700,  684,  709,  702,  443,  703,  700,  701,
      621,  621,  704,  704,  706,  624,  624,  707,  712,  713,
      938,  621,  708,  704,   79,  704,  624,  621,  715,  704,
      709,  938,  624,  938,  714,  716,  710,  710,  721,  720,
      938,  938,  725,  938,  712,  713,  436,  710,   79,  710,
      711,  711,  727,  710,  705,  715,  938,  711,  711,   79,
      714,  711,  716,  711,  721,  631,  720,  711,  711,  725,

      711,  726,  436,  938,  711,  637,  637,  639,  654,  727,
      705,  641,  656,   79,  644,  659,  637,  646,  661,  719,
      724,  728,  637,  729,  654,  732,  286,  726,  656,  652,
      666,  659,  730,  730,  661,  733,  724,  735,  737,   79,
      938,  738,  938,  730,  739,  730,  666,  728,  938,  730,
      729,  938,  732,  286,  734,  736,  736,  741,  683,  683,
      744,  745,  733,  735,  737,  747,  736,   79,  738,  683,
      752,  739,  736,  938,   79,  683,  938,  740,  740,  754,
      938,  734,  938,  741,  742,  742,  744,  745,  740,  684,
      740,  747,  689,  689,  740,  742,  752,  743,  749,  746,

      746,  742,   79,  689,  750,  754,  748,  748,  751,  689,
      746,  753,  746,  758,  520,  684,  746,  748,  757,  748,
      938,  759,  760,  748,  762,  749,  700,  700,  761,  756,
      756,  750,  521,  763,  764,  751,  765,  700,  753,  758,
      756,  520,  756,  700,  766,  757,  756,  759,  767,  760,
      762,  755,  768,  768,  772,  761,  719,  724,  521,  763,
      775,  764,  765,  768,  776,  768,  771,  774,  777,  768,
      778,  766,  779,  724,  767,  780,   79,  782,  755,  938,
      938,  772,  785,  774,  786,  938,  787,  775,  938,  781,
      938,  776,  938,  795,  777,  796,  778,  938,  779,  790,

      792,  780,  797,  782,  736,  736,  784,  784,  798,  785,
      786,   79,  787,  788,  788,  736,  781,  784,  789,  789,
      795,  736,  796,  784,  788,  790,  792,  783,  797,  789,
      788,  789,  791,  791,  798,  789,  799,  800,  801,  794,
      794,  802,  803,  791,  804,  791,  808,  938,  431,  791,
      794,  806,  794,  807,  783,  809,  794,  810,  771,  774,
      805,  805,  799,  800,  801,  811,  812,  813,  802,  803,
      804,  805,  808,  805,  431,  774,  814,  805,  806,  815,
      807,  809,  817,  810,  816,  816,  818,  274,  274,  820,
      822,  811,  812,  813,  821,  816,  938,  816,  274,   79,

      274,  816,  823,  814,  274,  815,  784,  784,  817,  596,
      596,  824,  818,  788,  788,  820,  822,  784,  825,  831,
      596,  821,  596,  784,  788,  828,  596,  829,  830,  823,
      788,  819,  826,  826,   79,  834,  938,  824,  835,  704,
      704,  836,  837,  826,  825,  827,  831,  938,  431,  826,
      704,  828,  704,  829,  830,  838,  704,  839,  819,  832,
      832,  834,  833,  833,  840,  835,  841,  836,  842,  837,
      832,  843,  832,  833,  431,  833,  832,  938,  853,  833,
      869,  838,  846,  839,  938,  847,  844,  844,  938,  850,
      840,  938,  841,  845,  845,  842,  854,  844,  843,  844,

      858,  848,  848,  844,  845,  853,  845,  869,  846,  860,
      845,  847,  848,  938,  849,  850,  851,  851,  848,  852,
      852,  861,  854,  855,  855,  870,  858,  851,  938,  851,
      852,  862,  852,  851,  855,  860,  852,  863,  857,  857,
      855,  865,  868,  871,  876,  859,  859,  861,  879,  857,
      938,  857,  870,  880,  856,  857,  859,  862,  859,  872,
      872,  938,  859,  863,  873,  873,  878,  865,  868,  871,
      872,  876,  877,  877,  879,  873,  872,  874,  882,  880,
      856,  873,  881,  877,  884,  877,  885,  855,  855,  877,
      888,  938,  938,  878,  681,  889,  938,  890,  855,  938,

      938,  893,  938,  875,  855,  882,  274,  274,  881,  900,
      884,  938,  894,  885,  872,  872,  888,  274,  856,  274,
      681,  909,  889,  274,  890,  872,  891,  891,  893,  875,
      938,  872,  938,  899,  873,  873,  900,  891,  894,  895,
      895,  938,  914,  891,  856,  873,  938,  874,  909,  681,
      895,  873,  895,  901,  896,  896,  895,  897,  897,  899,
      903,  938,  904,  938,  905,  896,  892,  896,  897,  914,
      897,  896,  898,  898,  897,  681,  736,  736,  906,  901,
      891,  891,  907,  898,  938,  898,  903,  736,  904,  898,
      905,  891,  892,  736,  611,  611,  908,  891,  913,  827,

      827,  916,  910,  910,  906,  611,  938,  611,  907,  923,
      827,  611,  827,  910,  938,  911,  827,  874,  874,  910,
      892,  919,  908,  938,  913,  917,  917,  916,  874,  921,
      874,  924,  910,  910,  874,  923,  917,  922,  938,  920,
      920,  912,  917,  910,  925,  911,  892,  926,  919,  910,
      920,  927,  920,  917,  917,  921,  920,  924,  929,  938,
      938,  930,  938,  922,  917,  918,  938,  912,  928,  928,
      917,  925,  931,  934,  926,  911,  911,  933,  927,  928,
      938,  928,  936,  938,  929,  928,  911,  930,  911,  932,
      932,  918,  911,  918,  935,  935,  938,  938,  931,  934,

      932,  938,  932,  938,  933,  935,  932,  935,  938,  936,
      938,  935,  937,  937,  938,  938,  938,  938,  938,  918,
      938,  938,  938,  937,  938,  937,  938,  938,  938,  937,
       61,   61,   61,   61,   61,   61,   61,   69,   69,   69,
       69,   69,   69,   69,   81,   81,  938,   81,  132,  938,
      132,  132,  132,  132,  132,  153,  938,  938,  153,  153,
      938,  153,  162,  162,  173,  938,  173,  173,  173,  173,
      173,  176,  938,  176,  176,  176,  176,  176,  188,  938,
      188,  188,  188,  188,  188,  191,  938,  191,  191,  191,
      191,  191,  194,  938,  194,  194,  194,  194,  194,  196,

      938,  196,  196,  196,  196,  196,  221,  938,  221,  221,
      221,  221,  221,  224,  938,  224,  224,  224,  224,  224,
      226,  938,  226,  226,  226,  226,  226,  228,  938,  228,
      228,  228,  228,  228,  268,  938,  268,  268,  268,  268,
      268,  270,  938,  270,  270,  270,  270,  270,  289,  938,
      289,  289,  289,  289,  289,  291,  938,  291,  291,  291,
      291,  291,  478,  478,  478,  478,  478,  478,  478,  489,
      489,  489,  489,  489,  489,  489,  490,  490,  490,  490,
      490,  490,  490,  631,  938,  631,  638,  638,  638,  638,
      638,  638,  638,  640,  640,  640,  640,  640,  640,  640,

      643,  643,  643,  643,  643,  643,  643,  645,  645,  645,
      645,  645,  645,  645,  647,  938,  647,  647,  647,  647,
      647,  651,  651,  651,  651,  651,  651,  651,  653,  653,
      653,  653,  653,  653,  653,  655,  655,  655,  655,  655,
      655,  655,  658,  658,  658,  658,  658,  658,  658,  660,
      660,  660,  660,  660,  660,  660,  665,  665,  665,  665,
      665,  665,  665,  654,  654,  654,  654,  654,  654,  654,
      656,  656,  656,  656,  656,  656,  656,  659,  659,  659,
      659,  659,  659,  659,  661,  661,  661,  661,  661,  661,
      661,  666,  666,  666,  666,  666,  666,  666,  718,  718,

      718,  718,  718,  718,  718,  723,  723,  723,  723,  723,
      723,  723,  724,  724,  724,  724,  724,  724,  724,  770,
      770,  770,  770,  770,  770,  770,  773,  773,  773,  773,
      773,  773,  773,  774,  774,  774,  774,  774,  774,  774,
       11,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,

      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938
    } ;

static const flex_int16_t yy_chk[3117] =
    {   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,    2,   33,    2,    3,    3,
        3,    3,    4,    3,    4,    5,    5,    5,   28,   28,
        5,    4,    4,    4,    4,    6,    4,    6,    7,    7,

        8,    8,   38,    8,    6,    6,    6,   23,   23,    6,
       25,   33,   43,   25,   50,    7,   50,    8,   36,   52,
       23,   52,  953,   64,   38,   43,   54,    7,   54,    8,
       57,   59,  148,  948,   57,   59,  148,   38,   32,   32,
      908,   65,   32,   65,   36,   25,  887,   43,   32,   64,
       38,  886,   43,   36,    7,   35,    8,    9,    9,    9,
        9,    9,    9,    9,    9,    9,    9,    9,    9,    9,
       36,    9,    9,   31,    9,    9,    9,    9,    9,  867,
       32,   35,  866,   32,   35,   37,   37,   31,   58,   37,
       35,   71,   58,   71,  863,   37,   77,   77,   78,   78,

      244,   31,   58,  841,  244,    9,   32,   35,   31,   77,
       35,   78,  840,  142,   31,  142,  239,   41,  239,  839,
       56,   56,  241,   56,  241,  837,   41,   31,   42,   58,
       37,    9,   10,   10,   10,   10,   10,   10,   10,   10,
       10,   10,   10,   10,   10,   42,   10,   10,   41,   10,
       10,   10,   10,   10,   39,   56,   41,   45,   39,   44,
       46,   41,  246,   42,   39,  138,  246,   79,  774,  134,
       44,  135,   42,   45,   41,   49,   44,   39,   81,   49,
       10,   39,   41,   91,   46,   49,   80,   91,   44,   80,
       44,  138,   45,   91,   44,   46,  134,   44,  135,   39,

       45,   47,   79,   44,   39,  140,   10,   34,   39,  159,
       46,   60,   60,   81,   44,   60,   44,   47,   47,   98,
       49,   80,   93,   48,   48,   55,   55,   48,   91,   34,
       34,  140,   34,   48,   86,  159,   47,   34,   55,   34,
       55,   98,   34,  770,   47,   47,   93,   60,  750,  727,
       55,   94,  136,  724,   98,   34,   34,   93,   34,   92,
       97,  722,   86,   34,  720,   34,   40,   98,   48,   86,
       40,   92,   93,   87,   87,  103,   40,   55,   95,  136,
       94,  161,  718,   97,   87,   87,   94,   40,   86,   40,
       87,   95,   96,  107,   92,   97,  137,  106,   92,   40,

      167,  110,  139,   96,   99,  103,   94,  161,   40,   97,
      103,   40,  717,   95,   40,  107,   40,   99,   95,  106,
       87,  156,  673,  137,  106,   40,  167,   96,  107,  139,
       96,  103,  106,  110,   40,   51,  110,   51,   51,   99,
      157,  107,  421,  158,   99,  106,   51,   51,  156,   51,
      106,  109,   51,  119,   51,  109,  112,  111,  111,  110,
      112,  109,   51,  160,   51,   51,  112,  157,  111,  111,
      158,  388,   51,   51,  111,   51,  164,  421,   51,  125,
       51,   66,  165,   66,   66,  388,  667,  119,  119,  145,
      160,  145,  145,   66,  145,   66,  109,  111,   66,  118,

       66,  112,  115,  164,  111,  114,  114,  125,   66,  165,
       66,   66,  120,  119,  125,  115,  114,  114,  166,   66,
      116,   66,  114,  111,   66,  118,   66,   72,  666,   72,
       72,  116,  661,  125,  118,  659,  120,  115,  657,   72,
      122,   72,  115,  121,   72,  166,   72,  120,  123,  133,
      117,  118,  114,  122,   72,  116,   72,   72,  116,  117,
      121,  124,  120,  141,  133,   72,  168,   72,  169,  144,
       72,  123,   72,  141,  124,  122,  133,  117,  121,  144,
      122,  146,  146,  123,  146,  117,  117,  121,  147,  150,
      133,  152,  152,  168,  169,  152,  124,  123,  147,  150,

      141,  124,  155,  117,  163,  656,  144,  151,  151,  151,
      473,  170,  151,  654,  170,  171,  146,  155,  651,  163,
      547,  648,  172,  172,  473,  147,  150,  152,  171,  155,
      645,  163,  202,  172,  547,  643,  230,  180,  180,  172,
      181,  181,  183,  155,  172,  163,  170,  172,  180,  180,
      171,  181,  181,  181,  180,  171,  182,  181,  185,  184,
      202,  187,  172,  230,  183,  182,  193,  202,  198,  186,
      187,  172,  184,  199,  172,  193,  200,  183,  642,  185,
      186,  640,  638,  198,  180,  581,  202,  181,  172,  200,
      183,  182,  182,  185,  184,  233,  187,  187,  236,  184,

      199,  193,  193,  198,  186,  185,  212,  186,  199,  209,
      198,  200,  203,  203,  580,  211,  200,  210,  217,  212,
      204,  204,  233,  203,  215,  236,  199,  211,  577,  203,
      213,  204,  204,  203,  576,  209,  203,  204,  214,  575,
      217,  212,  218,  213,  209,  210,  212,  216,  215,  248,
      211,  214,  210,  217,  211,  231,  220,  232,  574,  215,
      203,  209,  219,  203,  218,  213,  217,  204,  208,  208,
      213,  210,  220,  214,  215,  216,  248,  218,  214,  208,
      234,  231,  216,  232,  219,  208,  235,  238,  237,  251,
      218,  220,  573,  208,  571,  237,  253,  219,  249,  220,

      250,  216,  208,  208,  252,  255,  234,  208,  242,  242,
      219,  242,  235,  238,  256,  237,  251,  259,  247,  247,
      208,  237,  247,  253,  249,  254,  250,  257,  208,  208,
      252,  255,  254,  208,  258,  260,  261,  566,  262,  563,
      263,  256,  264,  242,  259,  262,  265,  266,  266,  267,
      403,  403,  254,  257,  247,  273,  275,  276,  254,  562,
      258,  260,  286,  261,  277,  262,  263,  403,  264,  272,
      272,  262,  265,  266,  266,  267,  275,  264,  273,  287,
      272,  279,  280,  281,  282,  276,  272,  558,  277,  286,
      273,  275,  276,  294,  264,  272,  278,  278,  295,  277,

      296,  557,  275,  281,  273,  272,  287,  278,  278,  279,
      280,  276,  282,  278,  277,  556,  279,  280,  281,  282,
      294,  593,  272,  293,  295,  297,  298,  296,  293,  281,
      299,  272,  555,  283,  283,  279,  280,  554,  282,  297,
      284,  284,  300,  278,  283,  283,  490,  285,  285,  293,
      283,  284,  284,  478,  293,  298,  593,  284,  285,  285,
      297,  298,  301,  299,  285,  299,  297,  311,  472,  303,
      300,  302,  302,  304,  310,  301,  313,  300,  413,  284,
      283,  298,  302,  302,  304,  393,  312,  284,  302,  299,
      315,  320,  314,  311,  285,  303,  300,  301,  319,  291,

      316,  310,  301,  313,  303,  284,  288,  288,  304,  289,
      270,  304,  312,  305,  305,  322,  315,  288,  302,  314,
      317,  303,  268,  288,  305,  305,  316,  288,  245,  318,
      305,  288,  306,  306,  243,  288,  308,  308,  240,  307,
      307,  288,  322,  306,  306,  288,  317,  308,  308,  306,
      307,  307,  307,  308,  288,  318,  307,  325,  288,  323,
      305,  324,  288,  309,  309,  321,  321,  288,  326,  327,
      328,  288,  329,  330,  330,  331,  228,  332,  333,  306,
      334,  226,  335,  308,  325,  323,  307,  324,  336,  309,
      309,  321,  321,  337,  326,  327,  328,  338,  329,  330,

      330,  340,  331,  332,  333,  339,  339,  334,  335,  341,
      346,  342,  343,  344,  336,  345,  339,  339,  351,  337,
      224,  349,  339,  338,  346,  221,  207,  340,  206,  205,
      196,  347,  347,  489,  489,  351,  341,  342,  343,  344,
      359,  345,  347,  347,  353,  346,  348,  348,  347,  349,
      489,  346,  339,  351,  350,  350,  349,  348,  348,  352,
      354,  353,  351,  348,  194,  350,  359,  191,  188,  179,
      347,  350,  352,  355,  355,  349,  354,  350,  347,  353,
      356,  356,  178,  176,  355,  360,  175,  365,  353,  361,
      355,  356,  363,  348,  352,  354,  347,  356,  366,  352,

      367,  173,  149,  354,  350,  357,  357,  143,  355,  358,
      358,  360,  356,  355,  365,  361,  357,  357,  363,  369,
      358,  364,  357,  362,  362,  366,  358,  367,  362,  364,
      368,  370,  372,  362,  355,  130,  358,  129,  356,  355,
      371,  128,  460,  126,  113,  358,  369,  364,  375,  362,
      362,  105,  357,  460,  362,  364,  368,  370,  372,  362,
      371,  373,  373,  358,  378,  374,  374,  372,  376,  376,
      375,  358,  373,  373,  377,  371,  374,  374,  373,  376,
      378,  104,  374,  375,  372,  376,  371,  377,  460,  379,
      379,  102,  383,  376,  380,  380,  375,  384,  385,  378,

      379,  386,  387,  100,  389,  380,  379,  378,  373,  377,
      390,  380,  374,  391,  377,  380,  396,  380,  383,  380,
      376,  382,  382,  384,  392,  385,  394,  379,  386,  387,
      389,  395,  382,  397,  398,  406,  390,  399,  382,  391,
      400,  401,  380,  396,  380,  382,  380,  402,  404,  405,
      392,  407,  394,  379,  409,  382,  408,  395,  410,  411,
      397,  398,  406,  399,  412,  415,  400,  401,   90,   89,
      419,   88,  382,  402,  404,  405,  414,  414,  407,   82,
      409,  382,   76,  408,  410,  411,  420,  414,   74,   73,
      412,  415,  426,  414,  416,  416,  419,  417,  417,   70,

       68,  414,  418,  418,  431,  416,  416,  416,  417,  425,
      417,  416,  420,  418,  417,  418,  422,  422,  426,  418,
      423,  423,  427,  424,  424,  428,  425,  422,  414,  429,
      431,  423,  423,  422,  424,  435,  432,  423,  430,  430,
      424,  429,  433,  436,  425,  427,   63,  437,  438,  430,
      430,  428,  441,  425,  440,  430,  422,  427,  444,  442,
      428,  435,  424,  432,  429,  443,   62,  423,  429,  433,
      436,  427,  434,  434,  437,  438,  446,  428,  441,  439,
      439,  440,  422,  434,  444,  430,  442,  447,  424,  434,
      439,  448,  443,  434,  434,  449,  439,  445,  445,  450,

      451,  452,  454,  446,  453,   53,  455,  455,  445,  458,
      462,   30,  434,  447,  445,  454,   27,  455,  448,  463,
      434,  434,  449,  455,  459,  450,  451,  453,  452,  461,
      456,  456,  457,  457,  464,  458,  462,  454,  434,  453,
      465,  456,  454,  457,  457,  463,  455,  456,  466,  457,
      467,  459,  468,  453,  469,  470,  461,  471,  474,  459,
      464,  475,  476,  477,   22,  480,  481,  465,  482,  484,
      456,  483,  455,  485,  466,  486,  467,  459,  468,  457,
      469,  487,  470,  471,  474,  488,   21,  491,  475,  476,
      477,  480,  481,  492,  482,  484,  456,  493,  483,  485,

      494,  497,  486,  495,  496,  498,  499,  505,  487,  501,
      500,  506,  488,  491,  503,  507,  508,  509,  510,  492,
      511,  517,  523,  493,   20,  512,   16,  494,  497,  495,
      496,  500,  498,  499,  505,  501,   14,  500,  506,  507,
      503,  510,  508,  509,  513,  513,  511,  512,  517,  523,
      507,  514,  514,  510,  518,  513,  513,  500,  515,  515,
      512,  513,  514,  514,  514,  507,  519,  510,  514,  515,
      516,  516,   11,  512,  520,  515,  521,  522,  524,  529,
      518,  516,    0,    0,  525,  525,  533,  516,  526,  526,
      530,  513,  519,  515,    0,  525,  531,  525,  514,  526,

      520,  525,  521,  522,  524,  526,  529,  532,  532,  527,
      527,  534,  533,  526,  528,  528,  538,  530,  532,  515,
      527,  527,  527,  531,  532,  528,  527,  528,  535,  536,
      540,  528,  532,  537,  537,    0,  539,  539,  534,  549,
      526,  542,  532,  538,  537,  543,  532,  539,    0,  545,
      537,  548,  550,  539,  535,  536,  551,  552,  546,  532,
        0,  540,  541,  541,  560,  540,  549,  542,  532,  544,
      544,  543,  532,  541,  541,  545,  561,  548,  550,  541,
      544,  570,  551,  552,  569,  546,  544,  540,  553,  553,
      560,  579,  544,  546,  578,  564,  564,  565,  565,  553,

      567,  567,  583,  561,  584,  553,  568,  568,  570,  541,
      569,  546,  564,  585,  565,  572,  572,  567,  579,  544,
      578,  586,  587,  568,  582,  582,  590,  588,    0,  583,
      584,    0,  572,  589,  589,  582,  588,  582,  591,  597,
      585,  582,    0,  599,  589,  600,  589,  586,  587,  602,
      589,    0,    0,  590,  592,  592,  603,  594,  594,  604,
      591,  605,  588,  588,  606,  592,  597,  592,  594,  599,
      610,  592,  600,  591,  594,  602,  595,  595,  598,  598,
      612,  617,  603,  601,  601,  604,  591,  595,  605,  598,
      613,  606,  594,  595,  601,  598,  610,  594,  608,  608,

      601,  614,  616,  598,    0,  615,  612,  595,  617,  620,
      615,  622,  619,    0,    0,    0,  613,  625,  594,    0,
      626,  618,  618,  594,  608,  608,  627,  614,  616,    0,
      598,  615,  618,  595,  628,  620,  615,  622,  618,  619,
      621,  621,  623,  623,  625,  624,  624,  626,  632,  633,
        0,  621,  627,  623,  623,  623,  624,  621,  635,  623,
      628,    0,  624,    0,  634,  636,  629,  629,  650,  649,
        0,    0,  663,    0,  632,  633,  621,  629,  629,  629,
      630,  630,  668,  629,  624,  635,    0,  631,  631,  623,
      634,  630,  636,  630,  650,  630,  649,  630,  631,  663,

      631,  664,  621,    0,  631,  637,  637,  653,  653,  668,
      624,  655,  655,  629,  658,  658,  637,  660,  660,  662,
      662,  669,  637,  671,  653,  674,  637,  664,  655,  665,
      665,  658,  672,  672,  660,  675,  662,  678,  681,  676,
        0,  682,    0,  672,  684,  672,  665,  669,    0,  672,
      671,    0,  674,  637,  676,  679,  679,  686,  683,  683,
      688,  690,  675,  678,  681,  692,  679,  679,  682,  683,
      697,  684,  679,    0,  676,  683,    0,  685,  685,  699,
        0,  676,    0,  686,  687,  687,  688,  690,  685,  683,
      685,  692,  689,  689,  685,  687,  697,  687,  694,  691,

      691,  687,  679,  689,  695,  699,  693,  693,  696,  689,
      691,  698,  691,  703,  689,  683,  691,  693,  702,  693,
        0,  705,  706,  693,  708,  694,  700,  700,  707,  701,
      701,  695,  689,  709,  712,  696,  713,  700,  698,  703,
      701,  689,  701,  700,  714,  702,  701,  705,  715,  706,
      708,  700,  716,  716,  721,  707,  723,  723,  689,  709,
      726,  712,  713,  716,  728,  716,  725,  725,  729,  716,
      731,  714,  732,  723,  715,  733,  734,  735,  700,    0,
        0,  721,  738,  725,  739,    0,  741,  726,    0,  734,
        0,  728,    0,  752,  729,  753,  731,    0,  732,  745,

      749,  733,  754,  735,  736,  736,  737,  737,  755,  738,
      739,  734,  741,  742,  742,  736,  734,  737,  744,  744,
      752,  736,  753,  737,  742,  745,  749,  736,  754,  744,
      742,  744,  747,  747,  755,  744,  757,  758,  759,  751,
      751,  760,  761,  747,  762,  747,  766,    0,  742,  747,
      751,  764,  751,  765,  736,  767,  751,  772,  773,  773,
      763,  763,  757,  758,  759,  775,  776,  777,  760,  761,
      762,  763,  766,  763,  742,  773,  778,  763,  764,  779,
      765,  767,  782,  772,  780,  780,  783,  781,  781,  785,
      790,  775,  776,  777,  787,  780,    0,  780,  781,  781,

      781,  780,  792,  778,  781,  779,  784,  784,  782,  786,
      786,  793,  783,  788,  788,  785,  790,  784,  795,  801,
      786,  787,  786,  784,  788,  797,  786,  798,  799,  792,
      788,  784,  796,  796,  781,  804,    0,  793,  806,  800,
      800,  807,  808,  796,  795,  796,  801,    0,  788,  796,
      800,  797,  800,  798,  799,  809,  800,  810,  784,  802,
      802,  804,  803,  803,  811,  806,  812,  807,  813,  808,
      802,  814,  802,  803,  788,  803,  802,    0,  824,  803,
      843,  809,  818,  810,    0,  819,  815,  815,    0,  821,
      811,    0,  812,  817,  817,  813,  825,  815,  814,  815,

      829,  820,  820,  815,  817,  824,  817,  843,  818,  831,
      817,  819,  820,    0,  820,  821,  822,  822,  820,  823,
      823,  834,  825,  826,  826,  846,  829,  822,    0,  822,
      823,  835,  823,  822,  826,  831,  823,  836,  828,  828,
      826,  838,  842,  847,  853,  830,  830,  834,  858,  828,
        0,  828,  846,  860,  826,  828,  830,  835,  830,  848,
      848,    0,  830,  836,  850,  850,  856,  838,  842,  847,
      848,  853,  854,  854,  858,  850,  848,  850,  862,  860,
      826,  850,  861,  854,  864,  854,  865,  855,  855,  854,
      868,    0,    0,  856,  848,  870,    0,  871,  855,    0,

        0,  876,    0,  850,  855,  862,  869,  869,  861,  884,
      864,    0,  878,  865,  872,  872,  868,  869,  855,  869,
      848,  903,  870,  869,  871,  872,  873,  873,  876,  850,
        0,  872,    0,  883,  875,  875,  884,  873,  878,  879,
      879,    0,  907,  873,  855,  875,    0,  875,  903,  872,
      879,  875,  879,  885,  880,  880,  879,  881,  881,  883,
      889,    0,  890,    0,  892,  880,  873,  880,  881,  907,
      881,  880,  882,  882,  881,  872,  888,  888,  899,  885,
      891,  891,  900,  882,    0,  882,  889,  888,  890,  882,
      892,  891,  873,  888,  893,  893,  901,  891,  906,  894,

      894,  909,  904,  904,  899,  893,    0,  893,  900,  916,
      894,  893,  894,  904,    0,  904,  894,  905,  905,  904,
      891,  913,  901,    0,  906,  910,  910,  909,  905,  915,
      905,  918,  912,  912,  905,  916,  910,  915,    0,  914,
      914,  904,  910,  912,  919,  912,  891,  921,  913,  912,
      914,  922,  914,  917,  917,  915,  914,  918,  925,    0,
        0,  926,    0,  915,  917,  910,    0,  904,  923,  923,
      917,  919,  927,  931,  921,  924,  924,  930,  922,  923,
        0,  923,  934,    0,  925,  923,  924,  926,  924,  929,
      929,  910,  924,  917,  933,  933,    0,    0,  927,  931,

      929,    0,  929,    0,  930,  933,  929,  933,    0,  934,
        0,  933,  936,  936,    0,    0,    0,    0,    0,  917,
        0,    0,    0,  936,    0,  936,    0,    0,    0,  936,
      939,  939,  939,  939,  939,  939,  939,  940,  940,  940,
      940,  940,  940,  940,  941,  941,    0,  941,  942,    0,
      942,  942,  942,  942,  942,  943,    0,    0,  943,  943,
        0,  943,  944,  944,  945,    0,  945,  945,  945,  945,
      945,  946,    0,  946,  946,  946,  946,  946,  947,    0,
      947,  947,  947,  947,  947,  949,    0,  949,  949,  949,
      949,  949,  950,    0,  950,  950,  950,  950,  950,  951,

        0,  951,  951,  951,  951,  951,  952,    0,  952,  952,
      952,  952,  952,  954,    0,  954,  954,  954,  954,  954,
      955,    0,  955,  955,  955,  955,  955,  956,    0,  956,
      956,  956,  956,  956,  957,    0,  957,  957,  957,  957,
      957,  958,    0,  958,  958,  958,  958,  958,  959,    0,
      959,  959,  959,  959,  959,  960,    0,  960,  960,  960,
      960,  960,  961,  961,  961,  961,  961,  961,  961,  962,
      962,  962,  962,  962,  962,  962,  963,  963,  963,  963,
      963,  963,  963,  964,    0,  964,  965,  965,  965,  965,
      965,  965,  965,  966,  966,  966,  966,  966,  966,  966,

      967,  967,  967,  967,  967,  967,  967,  968,  968,  968,
      968,  968,  968,  968,  969,    0,  969,  969,  969,  969,
      969,  970,  970,  970,  970,  970,  970,  970,  971,  971,
      971,  971,  971,  971,  971,  972,  972,  972,  972,  972,
      972,  972,  973,  973,  973,  973,  973,  973,  973,  974,
      974,  974,  974,  974,  974,  974,  975,  975,  975,  975,
      975,  975,  975,  976,  976,  976,  976,  976,  976,  976,
      977,  977,  977,  977,  977,  977,  977,  978,  978,  978,
      978,  978,  978,  978,  979,  979,  979,  979,  979,  979,
      979,  980,  980,  980,  980,  980,  980,  980,  981,  981,

      981,  981,  981,  981,  981,  982,  982,  982,  982,  982,
      982,  982,  983,  983,  983,  983,  983,  983,  983,  984,
      984,  984,  984,  984,  984,  984,  985,  985,  985,  985,
      985,  985,  985,  986,  986,  986,  986,  986,  986,  986,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,

      938,  938,  938,  938,  938,  938,  938,  938,  938,  938,
      938,  938,  938,  938,  938,  938
    } ;

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-2020 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>

#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
#include <parser.h>

#define RETURN_TOK(expr)			\
	do {					\
		last_yylval = yylval;		\
		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;
};

/* Local variables */
static cb_tree			last_yylval;
static int			last_token;
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		last_token_is_dot = 0;
static unsigned int		integer_is_label = 0;
static unsigned int		inside_bracket = 0;
static unsigned int		literal_error;
static char			err_msg[COB_MINI_BUFF];

/* Function declarations */
static void	read_literal (const char, const char *);
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);
static void *	copy_literal (cb_tree l);

#line 1595 "scanner.c"

#line 1597 "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 179 "scanner.l"



#line 183 "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;
	}

	/* We treat integer literals immediately after '.' as labels;
	   that is, they must be level numbers or section names. */
	if (last_token_is_dot) {
		integer_is_label = 1;
		last_token_is_dot = 0;
	} else {
		integer_is_label = 0;
	}


#line 1826 "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 >= 939 )
					yy_c = yy_meta[yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
			++yy_cp;
			}
		while ( yy_current_state != 938 );
		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 207 "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 230 "scanner.l"
{
	scan_define_options (yytext);
}
	YY_BREAK
case 3:
/* rule 3 can match eol */
YY_RULE_SETUP
#line 234 "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 242 "scanner.l"
{
	add_synonym (0);
}
	YY_BREAK
case 5:
/* rule 5 can match eol */
YY_RULE_SETUP
#line 246 "scanner.l"
{
	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; you may want ADDSYN or OVERRIDE instead"),
			  word_to_change);
	} 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);
 }
	YY_BREAK
case 6:
/* rule 6 can match eol */
YY_RULE_SETUP
#line 267 "scanner.l"
{
	add_synonym (1);
}
	YY_BREAK
case 7:
/* rule 7 can match eol */
YY_RULE_SETUP
#line 271 "scanner.l"
{
	char	*word;

	copy_word_in_quotes (&word);
	remove_reserved_word_now (word);
	cobc_free (word);
}
	YY_BREAK
case 8:
/* rule 8 can match eol */
YY_RULE_SETUP
#line 279 "scanner.l"
{
	cb_ref_mod_zero_length = (yytext[13] - '0');
}
	YY_BREAK
case 9:
/* rule 9 can match eol */
YY_RULE_SETUP
#line 283 "scanner.l"
{
	cb_assign_type_default = (enum cb_assign_type)(yytext[8] - '0');
}
	YY_BREAK
case 10:
/* rule 10 can match eol */
YY_RULE_SETUP
#line 287 "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 11:
/* rule 11 can match eol */
YY_RULE_SETUP
#line 296 "scanner.l"
{
	cb_source_line++;
}
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 300 "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 13:
YY_RULE_SETUP
#line 320 "scanner.l"
{
	/* Ignore */
}
	YY_BREAK
case 14:
#line 325 "scanner.l"
case 15:
YY_RULE_SETUP
#line 325 "scanner.l"
{
	BEGIN PICTURE_STATE;
}
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 329 "scanner.l"
{
	if (cobc_in_repository || cobc_cs_check == CB_CS_EXIT) {
		yylval = NULL;
	        RETURN_TOK (FUNCTION);
	}
	BEGIN FUNCTION_STATE;
}
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 337 "scanner.l"
{
	/* String literal */
	cobc_force_literal = 0;
	read_literal (yytext[0], "");
	RETURN_TOK (LITERAL);
}
	YY_BREAK
case 18:
#line 345 "scanner.l"
case 19:
YY_RULE_SETUP
#line 345 "scanner.l"
{
	/* X string literal */
	cobc_force_literal = 0;
	RETURN_TOK (scan_x (yytext + 2, "X"));
}
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 351 "scanner.l"
{
	/* N national string literal */
	cobc_force_literal = 0;
	/* TODO: national string - needs different handling */
	read_literal (yytext [1], "N");
	RETURN_TOK (LITERAL);
}
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 359 "scanner.l"
{
	/* NC national character string literal (extension, but
	   same handling as COBOL 2002 national string literal) */
	cobc_force_literal = 0;
	/* TODO: national string - needs different handling */
	read_literal (yytext [2], "NC");
	RETURN_TOK (LITERAL);
}
	YY_BREAK
case 22:
#line 369 "scanner.l"
case 23:
YY_RULE_SETUP
#line 369 "scanner.l"
{
	/* NX string literal */
	cobc_force_literal = 0;
	RETURN_TOK (scan_x (yytext + 3, "NX"));
}
	YY_BREAK
case 24:
#line 376 "scanner.l"
case 25:
YY_RULE_SETUP
#line 376 "scanner.l"
{
	/* Z string literal */
	cobc_force_literal = 0;
	RETURN_TOK (scan_z (yytext + 2, "Z"));
}
	YY_BREAK
case 26:
#line 383 "scanner.l"
case 27:
YY_RULE_SETUP
#line 383 "scanner.l"
{
	/* L string literal */
	cobc_force_literal = 0;
	RETURN_TOK (scan_z (yytext + 2, "L"));
}
	YY_BREAK
case 28:
#line 390 "scanner.l"
case 29:
YY_RULE_SETUP
#line 390 "scanner.l"
{
	/* H hexadecimal/numeric literal */
	cobc_force_literal = 0;
	RETURN_TOK (scan_h (yytext + 2, "H"));
}
	YY_BREAK
case 30:
#line 397 "scanner.l"
case 31:
YY_RULE_SETUP
#line 397 "scanner.l"
{
	/* B boolean/numeric literal */
	cobc_force_literal = 0;
	RETURN_TOK (scan_b (yytext + 2, "B"));
}
	YY_BREAK
case 32:
#line 404 "scanner.l"
case 33:
YY_RULE_SETUP
#line 404 "scanner.l"
{
	/* BX boolean hexadecimal string literal */
	cobc_force_literal = 0;
	RETURN_TOK (scan_x (yytext + 3, "BX"));
}
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 410 "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 */
	cobc_force_literal = 0;
	RETURN_TOK (scan_b (yytext + 2, "B#"));
}
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 421 "scanner.l"
{
	/* ACUCOBOL octal numeric literal */
	cobc_force_literal = 0;
	RETURN_TOK (scan_o (yytext + 2, "O#"));
}
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 427 "scanner.l"
{
	/* HP-COBOL octal numeric literal */
	cobc_force_literal = 0;
	RETURN_TOK (scan_o (yytext + 1, "%"));
}
	YY_BREAK
case 37:
#line 434 "scanner.l"
case 38:
YY_RULE_SETUP
#line 434 "scanner.l"
{
	/* ACUCOBOL hexadecimal numeric literal */
	char type[3] = "x#";
	type[0] = yytext [0];
	cobc_force_literal = 0;
	RETURN_TOK (scan_h (yytext + 2, type));
}
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 442 "scanner.l"
{
	inside_bracket++;
	RETURN_TOK (TOK_OPEN_PAREN);
}
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 447 "scanner.l"
{
	if (inside_bracket > 0) {
		inside_bracket--;
	}
	RETURN_TOK (TOK_CLOSE_PAREN);
}
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 454 "scanner.l"
{
	int	value;

	cobc_force_literal = 0;
	if (integer_is_label) {
		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) */
				RETURN_TOK (LEVEL_NUMBER);
			}
		}

		/* Integer label */
		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 42:
YY_RULE_SETUP
#line 490 "scanner.l"
{

	cobc_force_literal = 0;
	if (integer_is_label) {
		/* Integer label */
		yylval = cb_build_reference (yytext);
		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 43:
YY_RULE_SETUP
#line 507 "scanner.l"
{
	/* Numeric literal (signed) */
	RETURN_TOK (scan_numeric (yytext));
}
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 512 "scanner.l"
{
	/* Ignore */
}
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 516 "scanner.l"
{
	if (inside_bracket) {
		RETURN_TOK (SEMI_COLON);
	}
	/* Ignore */
}
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 523 "scanner.l"
{
	/* Numeric floating point literal */
	RETURN_TOK (scan_floating_numeric (yytext));
}
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 528 "scanner.l"
{
	/* Invalid numeric floating point literal */
	RETURN_TOK (scan_floating_numeric (yytext));
}
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 533 "scanner.l"
{
	/* Numeric literal */
	RETURN_TOK (scan_numeric (yytext));
}
	YY_BREAK
case 49:
YY_RULE_SETUP
#line 538 "scanner.l"
{
	if (inside_bracket) {
		RETURN_TOK (COMMA_DELIM);
	}
	/* Ignore */
}
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 545 "scanner.l"
{
	/* Numeric floating point literal */
	RETURN_TOK (scan_floating_numeric (yytext));
}
	YY_BREAK
case 51:
YY_RULE_SETUP
#line 550 "scanner.l"
{
	/* Invalid numeric floating point literal */
	RETURN_TOK (scan_floating_numeric (yytext));
}
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 555 "scanner.l"
{
	/* Numeric literal */
	RETURN_TOK (scan_numeric (yytext));
}
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 560 "scanner.l"
{
	unput (',');
}
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 564 "scanner.l"
{
	if (inside_bracket) {
		RETURN_TOK (COMMA_DELIM);
	}
	/* Ignore */
}
	YY_BREAK
case 55:
/* rule 55 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 571 "scanner.l"
{
	cobc_force_literal = 1;
	count_lines (yytext);
	RETURN_TOK (END_PROGRAM);
}
	YY_BREAK
case 56:
/* rule 56 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 577 "scanner.l"
{
	cobc_force_literal = 1;
	count_lines (yytext);
	RETURN_TOK (END_FUNCTION);
}
	YY_BREAK
case 57:
/* rule 57 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 583 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (PICTURE_SYMBOL);
}
	YY_BREAK
case 58:
/* rule 58 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 588 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (FROM_CRT);
}
	YY_BREAK
case 59:
/* rule 59 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 593 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (SCREEN_CONTROL);
}
	YY_BREAK
case 60:
/* rule 60 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 598 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (EVENT_STATUS);
}
	YY_BREAK
case 61:
/* rule 61 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 603 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (READY_TRACE);
}
	YY_BREAK
case 62:
/* rule 62 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 608 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (RESET_TRACE);
}
	YY_BREAK
case 63:
/* rule 63 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 613 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (GREATER_OR_EQUAL);
}
	YY_BREAK
case 64:
/* rule 64 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 618 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (GREATER);
}
	YY_BREAK
case 65:
/* rule 65 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 623 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (LESS_OR_EQUAL);
}
	YY_BREAK
case 66:
/* rule 66 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 628 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (LESS);
}
	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 633 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (EQUAL);
}
	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 638 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (REPLACING);
}
	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 643 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (TOP);
}
	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 647 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (TOP);
}
	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 652 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (BOTTOM);
}
	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 656 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (BOTTOM);
}
	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 661 "scanner.l"
{
	count_lines (yytext);
	return LINE_LIMIT;
}
	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 666 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NO_ADVANCING);
}
	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 671 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NEXT_PAGE);
}
	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 676 "scanner.l"
{
	count_lines (yytext);
	return NEXT_GROUP;
}
	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 681 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_SIZE_ERROR);
}
	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 686 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (SIZE_ERROR);
}
	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 691 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_ESCAPE);
}
	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 696 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_EXCEPTION);
}
	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 701 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (ESCAPE);
}
	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 706 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (EXCEPTION);
}
	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 711 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_OVERFLOW);
}
	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 716 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_END);
}
	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 721 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (END);
}
	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 726 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (TOK_OVERFLOW);
}
	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 731 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_EOP);
}
	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 736 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (EOP);
}
	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 741 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NOT_INVALID_KEY);
}
	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 746 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (INVALID_KEY);
}
	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 751 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (NO_DATA);
}
	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 756 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (DATA);
}
	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 761 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (UPON_ENVIRONMENT_NAME);
}
	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 766 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (UPON_ENVIRONMENT_VALUE);
}
	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 771 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (UPON_ARGUMENT_NUMBER);
}
	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 776 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (UPON_COMMAND_LINE);
}
	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 781 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (EXCEPTION_CONDITION);
}
	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 786 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (EC);
}
	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_bp + 8);
(yy_c_buf_p) = yy_cp = yy_bp + 8;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 791 "scanner.l"
{
	count_lines (yytext);
	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 100:
/* rule 100 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 808 "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 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 826 "scanner.l"
{
	/* ACUCOBOL extension: switch-names with space and with letter */
	char suffix[3] = "";
	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 */
		if (yytext[yyleng-2] == ' ' && isdigit((unsigned char)yytext[yyleng-1])) {
			/* SWITCH 0  to SWITCH 9 */
			suffix[0] = yytext[yyleng-1];
		} else if (isdigit((unsigned char)yytext[yyleng-2])) {
			/* SWITCH 00 to SWITCH 99 */
			suffix[0] = yytext[yyleng-2];
			suffix[1] = yytext[yyleng-1];
		} else {
			suffix[0] = yytext[yyleng-1];
		}
		strncpy(name, yytext, 6);
		strcat(name, "_");
		strcat(name, suffix);
		yylval = cb_build_reference (name);
	}
	RETURN_TOK (WORD);
}
	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 866 "scanner.l"
{
	count_lines (yytext);
	RETURN_TOK (LENGTH_OF);
}
	YY_BREAK
case 103:
YY_RULE_SETUP
#line 871 "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;
	struct cb_program		*program;

	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 (unlikely (cobc_force_literal)) {
		/* Force PROGRAM-ID / END PROGRAM */
		cobc_force_literal = 0;
		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) {
		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;
			}
			yylval = copy_literal (CB_VALUE (p78->fld_78->values));
			SET_LOCATION (yylval);
			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);
		}
	}

	RETURN_TOK (WORD);
}
	YY_BREAK
case 104:
YY_RULE_SETUP
#line 1021 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (LESS_OR_EQUAL);
}
	YY_BREAK
case 105:
YY_RULE_SETUP
#line 1026 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (GREATER_OR_EQUAL);
}
	YY_BREAK
case 106:
YY_RULE_SETUP
#line 1031 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (NOT_EQUAL);
}
	YY_BREAK
case 107:
YY_RULE_SETUP
#line 1036 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (EXPONENTIATION);
}
	YY_BREAK
case 108:
/* rule 108 can match eol */
YY_RULE_SETUP
#line 1041 "scanner.l"
{
	if (last_token_is_dot || strlen (yytext) > 1) {
		cb_warning (COBC_WARN_FILLER, _("ignoring redundant ."));
	}

	if (!last_token_is_dot) {
		last_token_is_dot = 1;
		yylval = NULL;
		RETURN_TOK (TOK_DOT);
	}
}
	YY_BREAK
case 109:
YY_RULE_SETUP
#line 1053 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_AMPER);
}
	YY_BREAK
case 110:
YY_RULE_SETUP
#line 1058 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_COLON);
}
	YY_BREAK
case 111:
YY_RULE_SETUP
#line 1063 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_EQUAL);
}
	YY_BREAK
case 112:
YY_RULE_SETUP
#line 1068 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_DIV);
}
	YY_BREAK
case 113:
YY_RULE_SETUP
#line 1073 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_MUL);
}
	YY_BREAK
case 114:
YY_RULE_SETUP
#line 1078 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_PLUS);
}
	YY_BREAK
case 115:
YY_RULE_SETUP
#line 1083 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_MINUS);
}
	YY_BREAK
case 116:
YY_RULE_SETUP
#line 1088 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_LESS);
}
	YY_BREAK
case 117:
YY_RULE_SETUP
#line 1093 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (TOK_GREATER);
}
	YY_BREAK
case 118:
YY_RULE_SETUP
#line 1098 "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 119:
YY_RULE_SETUP
#line 1114 "scanner.l"
{
	/* Ignore */
  }
	YY_BREAK
case 120:
YY_RULE_SETUP
#line 1117 "scanner.l"
{
	BEGIN INITIAL;
	scan_picture (yytext);
	RETURN_TOK (PICTURE);
  }
	YY_BREAK


case 121:
YY_RULE_SETUP
#line 1125 "scanner.l"
{
	struct cb_intrinsic_table	*cbp;
	cb_tree				l;
	cb_tree				x;

	BEGIN INITIAL;
	yylval = cb_build_reference (yytext);
	for (l = current_program->user_spec_list; l; l = CB_CHAIN(l)) {
		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 122:
YY_RULE_SETUP
#line 1144 "scanner.l"
{
	yylval = NULL;
	RETURN_TOK (yytext[0]);
  }
	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 1150 "scanner.l"
{
	struct cb_level_78	*p78;
	struct cb_level_78	*p782;

	/* At EOF - Clear variables */
	for (p78 = lev_78_ptr; p78; ) {
		p782 = p78->next;
		cobc_free (p78);
		p78 = p782;
	}
	for (p78 = glob_lev_78_ptr; p78; ) {
		p782 = p78->next;
		cobc_free (p78);
		p78 = p782;
	}
	for (p78 = const_78_ptr; p78; ) {
		p782 = p78->next;
		cobc_free (p78);
		p78 = p782;
	}
	top_78_ptr = NULL;
	last_token_is_dot = 0;
	integer_is_label = 0;
	inside_bracket = 0;
	lev_78_ptr = NULL;
	glob_lev_78_ptr = NULL;
	cobc_force_literal = 0;
	yyterminate ();
}
	YY_BREAK
case 123:
YY_RULE_SETUP
#line 1180 "scanner.l"
YY_FATAL_ERROR( "flex scanner jammed" );
	YY_BREAK
#line 3465 "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 >= 939 )
				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 >= 939 )
			yy_c = yy_meta[yy_c];
		}
	yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
	yy_is_jam = (yy_current_state == 938);

		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 1180 "scanner.l"


static void
error_literal (const char *type, const char *literal)
{
	if (!literal_error) {
		char		lit_out[CB_ERR_LITMAX + 1];
		/* 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 {
				cb_error (_("invalid %s literal: '%s'"), type, lit_out);
			}
#if 0 /* national literal */
		}
#endif
	}
	literal_error++;
	cb_error ("%s", err_msg);
}

static void
read_literal (const char mark, const char *type)
{
	size_t		i;
	int		c;

	literal_error = 0;

	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 (c == mark && (c = input ()) != (int)mark) {
			if (c == '-') {
				/* Free format continuation ("a"- 'b'- ) */
				/* Hack it as concatenation */
				unput ('&');
			} 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 %d characters"),
				cb_lit_length);
			plex_buff[cb_lit_length] = 0; /* ensure valid C-string for error message */
			error_literal ("", plex_buff);
		}
	}
	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[plex_size - 1] = 0; /* ensure valid C-string for error message */
			error_literal ("", plex_buff);
	}

	/* 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[0] == 'N' ?
			    _("national literal has zero length; a SPACE will be assumed") :
			    _("alphanumeric literal has zero length; a SPACE will be assumed"));
		plex_buff[i++] = ' ';
	} else if (i > cb_lit_length) {
		i = cb_lit_length;
	}

	/* build literal with given size */
	plex_buff[i] = 0;
	if (type[0] != 'N') {
		yylval = cb_build_alphanumeric_literal (plex_buff, i);
	} else {
		if (type[1] != 'C') {
			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, i);
	}
}

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

	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) {
		cb_verify (cb_zero_length_lit, _("zero-length literal"));
		plex_buff[0] = '\0';
		plex_buff[1] = '\0';
		cb_warning (COBC_WARN_FILLER,
			    _("hexadecimal literal has zero length; X'00' will be assumed"));
		if (type[0] == 'B') {
			yylval = cb_build_numeric_literal (0, "0", 0);
		} else if (type[0] != 'N') {
			yylval = cb_build_alphanumeric_literal (plex_buff, 1);
		} else {
			yylval = cb_build_national_literal (plex_buff, 1);
		}
		RETURN_TOK (LITERAL);
	}

	if (unlikely (curr_len + 1 > plex_size)) {
		plex_size = curr_len + 1;
		plex_buff = cobc_realloc (plex_buff, plex_size);
	}
	memcpy (plex_buff, text, curr_len);
	if (likely(type[0] == 'X')) {
		result_len = curr_len / 2; /* characters, two half-bytes (hex) = 1 byte */
	} else if (type[0] == 'B') {
		if (!cb_verify (cb_hexadecimal_boolean, _("hexadecimal-boolean literal"))) {
			goto error; /* early exit possible as complete literal is consumed */
		}
		result_len = curr_len * 4; /* boolean characters B -> 1110 */
		/* GnuCOBOL currently only support 64 bit booleans */
		if (unlikely (result_len > 64)) {
			snprintf (err_msg, COB_MINI_MAX,
				_("literal length %d exceeds %d characters"),
				  (int) result_len, 64);
			error_literal (type, plex_buff);
			goto error;
		}
	} else {
		if (!cb_verify (cb_national_hex_literals, _("hexadecimal-national literal"))) {
			goto error; /* early exit possible as complete literal is consumed */
		}
		CB_UNFINISHED (_("national literal"));
		result_len = curr_len / (2 * COB_NATIONAL_SIZE); /* national characters */
	}
	if (unlikely (result_len > cb_lit_length)) {
		snprintf (err_msg, COB_MINI_MAX,
			_("literal length %d exceeds %d characters"),
			  (int) result_len, cb_lit_length);
		error_literal (type, plex_buff);
		goto 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 = (int) *p;
			if ('0' <= c && c <= '9') {
				val = (val << 4) + ((cob_u64_t)c - '0');
			} else if ('A' <= c && c <= 'F') {
				val = (val << 4) + ((cob_u64_t)c - 'A' + 10);
			} else if ('a' <= c && c <= 'f') {
				val = (val << 4) + ((cob_u64_t)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);
				/* By not breaking immediately, we detect any following
					invalid chars
				*/
				continue;
			}
		}
		if (unlikely (literal_error != 0)) {
			goto error;
		}
		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);
				/* By not breaking immediately, we detect any following
					invalid chars
				*/
				continue;
			}
			if (likely (literal_error == 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 */
			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;
			}
			error_literal (type, plex_buff);
		}
		if (unlikely (literal_error != 0)) {
			goto error;
		}
		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);

error:
	yylval = cb_error_node;
	RETURN_TOK (LITERAL);
}

static int
scan_z (const char *text, const char *type)
{
	size_t		currlen;

	literal_error = 0;

	/* currlen includes the terminating quote */
	currlen = strlen (text);
	if (unlikely ((currlen - 1) > cb_lit_length)) {
		currlen--;
		snprintf (err_msg, COB_MINI_MAX,
			_("literal length %d exceeds %d characters"),
			  (int) currlen, cb_lit_length);
		error_literal (type, text);
		goto error;
	} else if (unlikely (currlen == 1)) {
		currlen--;
	        snprintf (err_msg, COB_MINI_MAX,
			  _("%s literals must contain at least one character"),
			  type);
		error_literal (type, "");
		goto error;
	}
	if (unlikely (currlen > plex_size)) {
		plex_size = currlen;
		plex_buff = cobc_realloc (plex_buff, plex_size);
	}
	memcpy (plex_buff, text, currlen);
	plex_buff[currlen - 1] = 0;

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

 error:
	yylval = cb_error_node;
	RETURN_TOK (LITERAL);
}

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

	literal_error = 0;

	if (type[1] == '#' &&
		!cb_verify (cb_acu_literals, _("ACUCOBOL numeric literal"))) {
		goto error; /* early exit possible as complete literal is consumed */
	}

	/* currlen can include the terminating quote */
	currlen = strlen (text);
	memcpy (plex_buff, text, currlen + 1);
	if (type[1] != '#') {
		currlen--;
		if (currlen == 0) {
			cb_error (_("H literals must contain at least one character"));
			goto error;
		}
		plex_buff[currlen] = 0;
	}
	if (unlikely (currlen > 16)) {
		snprintf (err_msg, COB_MINI_MAX,
			_("literal length %d exceeds %d characters"),
			  (int) currlen,  16);
		error_literal ("hex", plex_buff);
		goto 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);
			/* By not breaking immediately, we detect any following
				invalid chars
			*/
			continue;
		}

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

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

	if (literal_error) {
		goto error;
	}

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

	RETURN_TOK (LITERAL);

error:
	yylval = cb_error_node;
	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,
	   check if it works to concatenate after 64 characters, similar to read_literal()
	*/

	size_t		currlen;
	char		*p;
	cob_u64_t	val = 0;
	int		c;

	literal_error = 0;

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

	if (type[1] == 0) {
		if (!cb_verify (cb_numeric_boolean, _("numeric boolean literal"))) {
			goto error; /* early exit possible as complete literal is consumed */
		}
		if (currlen == 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"));
			/* 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"))) {
			goto error; /* early exit possible as complete literal is consumed */
		}
	};
	if (unlikely (currlen >= plex_size)) {
		currlen = plex_size - 1;
	}
	memcpy (plex_buff, text, currlen + 1);
	if (type[1] == 0) {
		currlen--;
	}
	plex_buff[currlen] = 0;
	if (unlikely (currlen > 64)) {
		snprintf (err_msg, COB_MINI_MAX,
			_("literal length %d exceeds %d characters"),
			  (int) currlen, 64);
		error_literal (type, plex_buff);
		goto error;
	}

	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);
			continue;
		}

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

	if (literal_error) {
		goto error;
	}

	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);

 error:
	yylval = cb_error_node;
	RETURN_TOK (LITERAL);
}

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

	literal_error = 0;

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

	currlen = strlen (text);
	memcpy (plex_buff, text, currlen + 1);
	if (unlikely (currlen > 22)) {
		snprintf (err_msg, COB_MINI_MAX,
			  _("literal length %d exceeds %d characters"),
			  (int) currlen, 22);
		error_literal (type, plex_buff);
		goto error;
	}

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

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

	if (literal_error) {
		goto error;
	}

	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);
		cobc_force_literal = 0;
		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);

 error:
	yylval = cb_error_node;
	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;

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

	if (unlikely (strlen (p) > COB_MAX_DIGITS)) {
		/* Absolute limit */
		snprintf (err_msg, COB_MINI_MAX,
			  _("literal length %d exceeds maximum of %d digits"),
			  (int) strlen (p), COB_MAX_DIGITS);
		error_literal ("num", text);
		yylval = cb_error_node;
	} else if (unlikely (strlen (p) > cb_numlit_length)) {
		snprintf (err_msg, COB_MINI_MAX,
			  _("literal length %d exceeds %d digits"),
			  (int) strlen (p), cb_numlit_length);
		error_literal ("num", text);
		yylval = cb_error_node;
	} else {
		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' };

	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;
		strncpy (significand_dec, significand_pos + 1, COB_FLOAT_DIGITS_STR_MAX);
		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;
	}

	/* 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);
	} else {
		if (strchr (exponent_pos, current_program->decimal_point)) {
			snprintf (err_msg, COB_MINI_MAX,
				_("exponent has decimal point"));
			error_literal ("float", text);
		} 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);
			} 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);
			}
		}
	}

	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);
		}
		if (exponent != 0) {
			snprintf (err_msg, COB_MINI_MAX,
				_("exponent of 0 must be 0"));
			error_literal ("float", text);
		}
		if (exp_sign == -1) {
			snprintf (err_msg, COB_MINI_MAX,
				_("exponent of 0 must be positive"));
			error_literal ("float", text);
		}
	}

	if (literal_error) {
		yylval = cb_error_node;
		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 = (unsigned char)toupper (*p);
	}

	yylval = cb_build_picture (text);
}

static void
count_lines (const char *text)
{
	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;
	}
}


/* duplicate the given literal to assign a different source location */
static void *
copy_literal (cb_tree l)
{
	cb_tree x;

	/* LCOV_EXCL_START */
	if (!CB_LITERAL_P(l)) {
		cobc_err_msg (_("unexpected tree tag: %d"), (int)CB_TREE_TAG (l));
		COBC_ABORT ();
	}
	/* LCOV_EXCL_STOP */

	x = cobc_parse_malloc (sizeof (struct cb_literal));
	memcpy (x, l, sizeof (struct cb_literal));

	return x;
}

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.
*/
static void
copy_word_in_quotes (char ** const word)
{
	char	*text = cobc_strdup (yytext);
	char	*word_str;

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

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

	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.
*/
static void
copy_two_words_in_quotes (char ** const word1, char ** const word2)
{
	char	*text = cobc_strdup (yytext);
	char	*word1_str;
	char	*word2_str;

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

	/* Get words and remove surrounding quotes. */

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

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

	cobc_free (text);
}

static void
add_synonym (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; you may want MAKESYN instead"),
			  synonym);
	} else {
		if (synonym_replaces_original) {
			remove_reserved_word_now (word);
		}
		add_reserved_word_now (synonym, word);
	}

	cobc_free (word);
	cobc_free (synonym);
}

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

	cb_reset_78 ();
	cb_reset_global_78 ();
}

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

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

void
cb_reset_78 (void)
{
	struct cb_level_78	*p78;
	struct cb_level_78	*p782;

	/* Remove constant (78 level) items for current program */
	for (p78 = lev_78_ptr; p78; ) {
		p782 = p78->next;
		cobc_free (p78);
		p78 = p782;
	}
	lev_78_ptr = NULL;
	for (p78 = glob_lev_78_ptr; p78; p78 = p78->next) {
		p78->not_const = 0;
	}
	if (glob_lev_78_ptr) {
		top_78_ptr = glob_lev_78_ptr;
	} else {
		top_78_ptr = const_78_ptr;
	}
}

void
cb_reset_global_78 (void)
{
	struct cb_level_78	*p78;
	struct cb_level_78	*p782;

	/* Remove constant (78 level) items for top program */
	for (p78 = glob_lev_78_ptr; p78; ) {
		p782 = p78->next;
		cobc_free (p78);
		p78 = p782;
	}
	glob_lev_78_ptr = NULL;
	top_78_ptr = const_78_ptr;
}

void
cb_add_78 (struct cb_field *f)
{
	struct cb_level_78	*p78;

	/* Add a constant (78 level) item */
	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;
}

