Logo Search packages:      
Sourcecode: man-db version File versions

lexgrog.c

#line 3 "<stdout>"

#define  YY_INT_ALIGNED short int

/* A lexical scanner generated by flex */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 31
#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
#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;
#endif /* ! C99 */

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

#endif /* ! FLEXINT_H */

#ifdef __cplusplus

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

#else /* ! __cplusplus */

#if __STDC__

#define YY_USE_CONST

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

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

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

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

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

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

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

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

#define YY_END_OF_BUFFER_CHAR 0

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

#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#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)
    
/* 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)  )

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

#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef unsigned int yy_size_t;
#endif

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

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

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

      /* Number of characters read into yy_ch_buf, not including EOB
       * characters.
       */
      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 = 0; /**< Stack as an array. */

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

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

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

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

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

void yyrestart (FILE *input_file  );
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer  );
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size  );
void yy_delete_buffer (YY_BUFFER_STATE b  );
void yy_flush_buffer (YY_BUFFER_STATE b  );
void yypush_buffer_state (YY_BUFFER_STATE new_buffer  );
void yypop_buffer_state (void );

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

#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )

YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size  );
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str  );
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,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 */

#define yywrap(n) 1
#define YY_SKIP_YYWRAP

typedef unsigned char YY_CHAR;

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

typedef int yy_state_type;

extern int yylineno;

int yylineno = 1;

extern char *yytext;
#define yytext_ptr yytext

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

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

#define YY_NUM_RULES 73
#define YY_END_OF_BUFFER 74
/* This struct is not used in this scanner,
   but its presence is necessary. */
struct yy_trans_info
      {
      flex_int32_t yy_verify;
      flex_int32_t yy_nxt;
      };
static yyconst flex_int16_t yy_accept[686] =
    {   0,
        0,    0,   45,   45,   62,   62,    7,    7,    0,    0,
        0,    0,    0,    0,    0,    0,   74,   73,   72,   45,
       45,   72,   72,   72,   70,   72,   68,   60,   62,   62,
       72,   69,   72,   72,   72,    6,    9,    6,    6,    9,
        9,    9,    4,   17,   17,   17,   18,   18,   45,    0,
       70,    0,    0,   71,   45,   45,   71,   71,   71,   71,
       71,   60,   45,    0,    0,   70,    0,   68,   48,   45,
       53,    0,   41,    0,    0,   43,   44,    0,   40,   42,
       40,    0,    0,    0,    0,    0,    0,   62,   69,    0,
        0,   62,   62,   71,   71,   71,   71,   62,   69,   34,

        0,   62,   26,    6,    0,    8,    0,    9,    6,    9,
        0,    3,    4,    3,    4,    3,   17,    0,    0,    0,
       17,   18,   36,    0,   45,    0,    0,   23,   23,   23,
       23,   23,   23,   23,   23,    0,   30,    0,    0,    0,
        0,    0,    0,   66,    0,    0,    0,    0,    0,    0,
        0,    0,   36,   29,    0,   37,    0,   53,   50,    0,
        0,    0,    0,    0,    0,    0,    0,    0,   51,    0,
        0,   47,    0,   54,   55,    0,   56,    0,    0,   58,
        0,    0,   38,    0,   62,   25,   25,   62,   25,   25,
       25,   25,   24,   34,    6,    0,    0,    0,    8,    0,

        0,    0,    0,    0,    6,    5,    3,    3,    3,    3,
        4,    4,    4,    3,    0,    0,    0,    0,    0,   15,
        0,   36,    0,    0,    0,   23,   23,   23,   23,   23,
       23,   23,   23,   23,   23,   23,   23,   23,   23,   23,
       23,   23,   23,   23,   23,   23,   23,   23,   23,   23,
       23,   23,   23,   23,   23,   23,   23,   23,   23,   23,
       23,   23,   23,   23,   23,   23,   23,   23,   23,   31,
       67,   27,   67,   67,   67,   64,   39,   66,   65,   19,
       67,   63,   33,   22,   32,   21,   29,   61,   52,   41,
       35,   42,   46,    0,    0,    0,    0,    0,    0,   25,

       25,   25,   25,   24,   25,   25,    6,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    6,    5,    5,
        5,    3,    3,    3,    0,    4,    4,    4,    0,    3,
        3,    3,    3,   11,   13,   12,   14,   10,   16,   35,
       23,   23,   23,   23,   23,   23,   23,   23,   23,   23,
       23,   23,   23,   19,   23,   23,   23,   22,   23,   21,
       23,   23,   23,   23,   23,   23,   23,   23,   23,   23,
       23,   23,   23,   23,   23,   23,   23,   23,   23,   23,
       23,   23,   23,   23,   23,   23,   67,   27,   28,   64,
       39,   65,   19,   20,   63,   33,   33,   22,   32,   32,

       21,   61,   35,   49,   57,   59,   25,   25,    6,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    6,    0,
        3,    3,    3,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    0,    0,    0,    0,    0,    0,    3,    3,
        3,    0,   23,   23,   23,   23,   23,   23,   23,   23,
       23,   23,   23,   19,   20,   23,   23,   23,   22,   23,
       23,   21,   23,   23,   23,   23,   23,   23,   23,   23,
       23,   23,   23,   28,   28,   59,    6,    0,    0,    0,
        0,    0,    0,    0,    0,    6,    3,    3,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,

        4,    4,    4,    4,    4,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    3,    3,   23,   23,   23,   23,
       23,   23,   23,   23,    6,    0,    2,    0,    6,    3,
        3,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    1,    4,    1,    4,    4,    4,    4,
        4,    0,    0,    0,    0,    0,    1,    0,    1,    0,
        0,    0,    0,    0,    3,    3,   23,    6,    0,    6,
        3,    3,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,

        4,    4,    4,    4,    1,    4,    1,    4,    4,    4,
        4,    4,    4,    4,    4,    1,    1,    1,    1,    4,
        4,    1,    4,    4,    4,    0,    0,    0,    1,    1,
        0,    0,    1,    0,    0,    0,    3,    3,    6,    0,
        6,    3,    3,    3,    4,    4,    1,    0,    0,    0,
        0,    0,    0,    3,    3,    3,    0,    7,    0,    0,
        1,    0,    1,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    1,
        0,    1,    0,    0,    0
    } ;

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

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

       80,    1,    1,   81,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,   80,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1
    } ;

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

static yyconst flex_int16_t yy_base[791] =
    {   0,
        0,    0,    0,   81,   16,   20,   23,   34,   40,   41,
        0,    0,   26,   30, 2846, 2835, 2830, 3521, 3521,   57,
       97,  107, 2771, 2759,   38, 2773,    0,  160,  101,  134,
     2762,   50,   38, 2738, 2679,    0,  116, 2723, 2720, 3521,
     2716, 2671,  136,    0,  128, 2711, 3521, 2710,  190,  236,
       64, 2696,  237, 3521,  241,  256,  260, 2653, 2648, 2678,
      312, 2676,  275, 2684, 2615,   69,  120,    0, 3521,  150,
        0,  114, 3521,  240, 2657,  144, 3521,  194, 2589, 3521,
     3521, 2635,    0, 2538, 2541,  305,  279,  337,  182,  266,
     2542,  335,  369, 2543,  284, 2540, 2488,  383,  296,  328,

     2526,  356, 3521,    0,  387,  392, 2525,  396, 2522, 3521,
     2519,  215, 2518,  247,  376,  361,    0,  185, 2513,  400,
      402, 3521,  145,  254,  407,  448,  453, 2507,  458,  463,
      246,  271,  353,  510,  589,  375, 3521, 2506,    0,  443,
      608, 2460, 2436,  436,  325,  634,  686, 2416, 2417, 2401,
     2392,  704,  196,    0, 2418,  427,  598,    0, 3521,    0,
     2379, 2355, 2364, 2340, 2353, 2329, 2297,    0, 3521,  473,
        0, 3521,    0, 3521, 3521,    0, 3521,    0,  466, 3521,
      486,    0,  499,  504,  621,    0,  687,  734, 2354,  575,
     2351, 2305, 3521,  630,    0,  750, 2336,  755,  761, 2330,

      125,  272,  764, 2241, 2267,  138,  486,  473,  605,  611,
     2251, 2244,  677,  618, 2212, 2217, 2194, 2179, 2151, 3521,
     2140,  442, 2095, 2073, 2021, 2064,  799,  803,  478,  807,
      821,  359,  172,  625,  668, 1975,  897,  978,  733,  828,
      811,  833,  850,  891, 1058,  934,  738,  925, 1006, 1102,
     1967,  694,    0,  666, 1964, 1175, 1256,  742, 1960,  856,
      112, 1957, 1951, 1335, 1380, 1461,  421,  864,  869, 3521,
      688,  693,  700,  744,  787,  795,  815,  851,  886,  890,
      919,  920,  921,  929,  935,  936,    0,  945, 3521, 3521,
      947, 3521, 3521,    0, 1941,    0,    0, 1937, 1883,    0,

      954, 1000, 1886,    0,  963,    0,    0, 1042, 1881, 1046,
       79,  795, 1083,  372,  314,  585, 1800, 1790,  494,  672,
      747, 1010, 1015, 1025, 1789, 1770, 1754, 1402, 1417, 1027,
      873, 1033, 1035, 3521, 3521, 3521, 3521, 3521, 3521,  955,
     1059,    0,   53,  964, 1018, 1065, 1106, 1115, 1132, 1139,
     1145, 1149, 1153, 1158, 1163, 1168, 1004, 1276, 1069, 1280,
     1428,    0, 1754, 1542, 1623,  225, 1680,  183,  150,  390,
      627, 1704, 1694, 1284,  317, 1691, 1783, 1687, 1671, 1828,
     1644,  697, 1277, 1613, 1304,  489, 1117, 1124, 1286, 1288,
     1306, 1308, 1310, 1314, 1315,    0, 1316, 1320,    0, 1321,

     1322, 1337, 1338, 3521, 3521,    0, 1345, 1408,    0,  382,
      762,  767, 1099,  664, 1412,  903, 1736, 1532, 1594, 1590,
     1074, 1296, 1325,    0,    0, 1483, 1488,  815,  819, 1546,
      326, 1498, 1564, 1084,  828, 1627,  997, 1467, 1341, 1348,
     1399, 1524,  621,  939,  776,    0, 1434, 1439, 1449, 1351,
     1489, 1497, 1512, 1517, 1521, 1526,    0, 1443, 1568,    0,
     1572, 1576, 1500, 1490, 1580, 1431, 1338, 1909,  601, 1969,
     2014,  840, 1063,    0, 1590,    0,    0, 1085, 1072, 1462,
     1603, 1596, 1289, 1112, 1663, 1279, 1529, 1562,    0, 1850,
     1713, 1471, 1376, 2016, 1057, 1181, 1256, 1709, 1726, 1464,

     1391, 1552, 2086, 1668, 1095, 1541, 1711, 2014, 1605, 1616,
     1618, 1161, 1713, 1085, 1599, 1609, 1649, 1655,    0, 1657,
     1690, 1038, 1030, 1742,    0, 1631, 1674, 1702,  948, 1660,
     1751,    0, 1865, 1936, 1716, 1734, 2110, 1363,  855, 1704,
     1805, 2111, 1723, 1735, 1736, 2180, 1842,  821, 1747, 1736,
     1740, 1838, 1732, 1930, 1746, 2224, 2257, 2018, 1920, 2054,
      817, 1824, 1818, 1834, 1910, 1823, 2051, 1913, 2301,    0,
     2115, 1929, 2154,  809, 1883, 1886, 1897,    0, 1917,  822,
     1958, 1972,  780, 2307, 2226, 2127, 2040, 2309, 2096,  767,
     2030, 2306, 2319, 2037, 2133, 2135,  944, 2223, 1488, 2140,

     2311, 2310, 2342, 2308, 2318, 2042, 2380,  761, 2369, 2151,
     2371, 1875, 2130, 2327, 2340, 2250, 2258, 2262, 2405, 2179,
     2329, 2418, 1961, 1376,  305, 1924, 2005, 2018, 2433, 2439,
     1434, 2015, 2451, 2130,  666,  639, 2079, 2172, 3521, 2010,
      662, 2151, 2179, 2189, 3521, 2416, 2457, 2033,  471, 2450,
     2126, 2458,  423, 2273, 2325, 2342, 2205,  413, 2343,    0,
     2483, 2473, 2497, 2487, 2347,    0, 2450, 2205, 2207, 2413,
      335,  289, 2492, 2370, 2379, 2499,  325, 2382, 2503, 2530,
        0, 2536, 2440, 2531, 3521, 2551, 2562, 2573, 2584, 2595,
     2606, 2617, 2628, 2632, 2643, 2654, 2665, 2676, 2686, 2697,

     2699, 2705, 2711, 2712, 2718, 2729, 2740, 2751, 2762, 2773,
     2775, 2786, 2788, 2790, 2801,  285, 2803, 2814, 2825, 2836,
     2847, 2858, 2869, 2880, 2891, 2902, 2913, 2924, 2935, 2946,
     2957, 2968, 2979, 2981, 2992,  206, 2994, 3005, 3016, 3027,
     3038, 3049, 3060, 3071, 3082, 3093, 3104, 3115, 3126, 3137,
     3148, 3159, 3170, 3181, 3192, 3203, 3214, 3225, 3236, 3247,
     3258, 3269, 3280, 3291, 3302, 3313, 3324, 3335, 3346, 3357,
     3368, 3379, 3390, 3396, 3406, 3417, 3428, 3439, 3450,  180,
     3461, 3472, 3483, 3494, 3500, 3505,  116,   95, 3510,   60
    } ;

static yyconst flex_int16_t yy_def[791] =
    {   0,
      686,  686,  687,  687,  688,  688,  689,  689,  690,  690,
      686,  686,  691,  691,  692,  692,  685,  685,  685,  685,
      693,  685,  685,  685,  685,  685,  694,  685,  685,  693,
      685,  685,  685,  685,  685,  695,  685,  695,  695,  685,
      685,  685,  696,  697,  685,  697,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  698,  685,  685,  685,  685,
      699,   28,  693,  685,  685,  685,  685,  694,  685,  685,
      700,  685,  685,  701,  702,  685,  685,  685,  685,  685,
      685,  703,  704,  705,  685,  685,  685,  685,  685,  685,
      685,  685,  706,  685,  685,  685,  685,  693,  685,  685,

      685,  685,  685,  707,  685,  685,  685,  685,  707,  685,
      685,  708,  709,  708,  709,  708,  697,  685,  685,  685,
      685,  685,  685,  685,  685,  710,  685,  710,  710,  710,
      710,  710,  710,  685,  710,  685,  685,  685,  711,  711,
      711,  711,  711,  711,  711,  711,  711,  711,  711,  711,
      711,  711,  685,  712,  685,  685,  685,  700,  685,  713,
      713,  713,  713,  713,  713,  713,  713,  714,  685,  685,
      715,  685,  716,  685,  685,  717,  685,  718,  685,  685,
      685,  719,  685,  685,  685,  720,  720,  706,  720,  720,
      720,  720,  685,  685,  721,  685,  685,  685,  685,  685,

      685,  685,  685,  685,  721,  722,  723,  685,  723,  723,
      724,  724,  724,  725,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  710,  710,  710,  710,  710,
      710,  710,  710,  710,  710,  710,  726,  726,  238,  238,
      238,  238,  238,  238,  238,  238,  238,  238,  238,  238,
      710,  710,  727,  710,  710,  685,  728,  710,  710,  710,
      710,  710,  710,  710,  729,  730,  710,  710,  710,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  731,  685,  732,  685,  733,  685,  685,  685,
      685,  685,  685,  734,  735,  736,  737,  738,  739,  740,

      740,  740,  740,  740,  740,  740,  741,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  741,  742,  685,
      742,  743,  743,  743,  685,  744,  744,  744,  685,  745,
      685,  745,  745,  685,  685,  685,  685,  685,  685,  685,
      710,  746,  710,  710,  710,  710,  710,  710,  710,  710,
      710,  710,  710,  710,  710,  710,  747,  710,  748,  710,
      710,  749,  710,  750,  750,  365,  365,  365,  365,  365,
      365,  751,  710,  710,  752,  710,  710,  710,  710,  753,
      710,  754,  710,  710,  710,  755,  685,  685,  756,  685,
      685,  685,  685,  685,  685,  757,  757,  685,  758,  758,

      685,  685,  685,  685,  685,  759,  740,  740,  760,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  760,  685,
      761,  761,  743,  762,  744,  762,  744,  762,  762,  762,
      762,  762,  685,  685,  685,  685,  685,  685,  763,  763,
      764,  685,  710,  710,  710,  765,  710,  710,  710,  766,
      710,  710,  710,  710,  710,  710,  767,  767,  710,  768,
      768,  710,  710,  710,  710,  710,  710,  769,  752,  377,
      770,  754,  755,  756,  756,  759,  771,  685,  685,  685,
      685,  685,  685,  685,  685,  771,  772,  772,  773,  773,
      773,  773,  773,  773,  773,  773,  773,  773,  773,  773,

      773,  773,  773,  773,  773,  685,  685,  685,  685,  685,
      685,  774,  685,  685,  775,  775,  710,  710,  766,  766,
      710,  710,  710,  776,  777,  685,  685,  685,  777,  778,
      778,  779,  779,  779,  779,  779,  779,  779,  779,  779,
      779,  779,  779,  779,  779,  779,  779,  779,  779,  779,
      779,  779,  779,  779,  779,  779,  779,  779,  779,  779,
      779,  685,  685,  685,  685,  685,  685,  685,  685,  780,
      685,  685,  685,  685,  781,  781,  776,  782,  685,  782,
      783,  783,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  774,  685,  685,  685,

      685,  685,  685,  685,  685,  685,  685,  780,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  774,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  774,  685,  685,  784,  784,  685,  685,
      685,  783,  783,  783,  685,  685,  685,  685,  785,  685,
      685,  685,  786,  784,  784,  784,  685,  685,  685,  787,
      685,  685,  685,  685,  685,  788,  685,  685,  685,  785,
      685,  685,  786,  685,  685,  685,  789,  685,  685,  685,
      790,  685,  685,  789,    0,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,

      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685
    } ;

static yyconst flex_int16_t yy_nxt[3603] =
    {   0,
       19,   20,   21,   22,   20,   19,   19,   19,   19,   23,
       24,   19,   19,   19,   25,   26,   23,   29,   30,   31,
       29,   29,   30,   31,   29,   37,   38,   39,   45,   46,
       32,   33,   45,   46,   32,   33,   37,   38,   39,   66,
      100,  101,   66,   41,   41,   19,   28,   19,   19,   42,
       42,   99,   99,   99,   99,  685,   43,   43,   49,   50,
       50,   49,   34,   35,  447,   66,   34,   35,   66,  684,
       66,   51,   52,   66,   19,   19,   19,   19,   19,   19,
       19,   19,   20,   21,   22,   20,   19,   19,   19,   19,
       23,   24,   19,   19,   19,   25,   26,   23,   55,   56,

       57,   55,   88,   53,  673,   88,   58,   59,   50,   63,
       50,   50,   60,   61,  685,   89,   90,  105,  106,  107,
      105,  156,   52,  410,  156,  670,   19,   28,   19,   19,
      118,  119,  159,  159,  159,   92,   93,   94,   92,  113,
      320,  321,  114,   62,  120,  156,  222,   91,  156,  222,
      311,   70,  410,   52,   70,   19,   19,   19,   19,   19,
       19,   19,   69,   69,   70,   69,   71,   71,   72,   73,
       74,   95,   75,  115,  685,   76,   77,   70,  311,  376,
       96,   97,  116,   99,   99,   99,   99,  118,  119,  634,
       78,   49,   50,   50,   49,  170,  157,  222,  170,  463,

      222,  120,  115,  171,   51,   52,   79,  465,   80,   69,
       78,   69,   69,   81,   82,  174,   78,  208,  209,   83,
       78,  210,   84,   85,   69,   69,   86,   70,   69,   78,
       87,   78,  463,   69,   69,   70,   53,   50,   50,   50,
       50,   70,  125,  126,  127,  125,  343,  124,  685,  208,
      209,   52,  123,  210,   70,  465,   52,  129,   56,  130,
      129,   50,   56,   50,   50,  131,  132,  183,  183,  183,
      183,  133,  134,  685,  463,   52,   55,   56,   57,   55,
      181,  184,   52,  181,   58,   59,  465,   53,  182,  161,
       60,   61,  232,  162,  296,  163,  164,   99,   99,   99,

       99,  165,  135,  312,   70,  166,   52,  223,  167,  193,
      224,  645,   70,  136,  137,  225,  136,  233,  179,  295,
      179,   62,  180,  180,  180,  180,  226,  193,  138,  194,
      194,  194,  194,  312,  140,  681,  185,  193,   88,  185,
      141,   88,  142,  677,  143,  416,  144,  273,  145,  146,
       90,   89,   90,  273,  147,  685,  193,  102,   64,  653,
      102,  685,  148,  208,  209,  342,  149,  214,  234,  150,
      187,  188,  189,  187,  151,  416,  136,  137,  152,  136,
      503,   91,  212,   91,   92,   93,   94,   92,  105,  196,
      197,  105,  504,  198,  199,  200,  198,  105,  106,  107,

      105,  676,   91,  213,  118,  119,  190,  478,  125,  126,
      127,  125,  415,  213,  201,  191,  192,  658,  120,  213,
       95,  202,   52,  685,  203,  215,  216,  382,  156,   96,
       97,  156,  213,  666,  217,  478,  218,  278,  219,  463,
      278,  415,  213,  222,  272,  220,  222,  272,  213,  227,
      126,  228,  227,   53,   50,  126,   50,   50,  467,  230,
       50,  227,  230,  229,  227,   56,  227,  227,   52,  221,
      279,  273,  204,  229,  170,  208,  325,  170,  229,  273,
      685,  660,  171,  180,  180,  180,  180,  181,  208,  323,
      181,  299,  324,  234,  229,  182,  320,  321,  226,   52,

      183,  183,  183,  183,  231,  183,  183,  183,  183,  229,
      226,  235,  137,  226,  235,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  236,  226,  226,  226,
      226,  237,  238,  237,  237,  237,  237,  237,  239,  237,
      240,  237,  241,  237,  242,  237,  243,  244,  237,  237,
      237,  237,  245,  237,  237,  226,  232,  226,  226,  237,
      246,  237,  237,  237,  247,  237,  237,  248,  237,  237,
      237,  237,  249,  237,  237,  237,  250,  237,  237,  237,
      237,  237,  237,  237,  226,  226,  226,  226,  226,  226,
      226,   69,  251,  252,  251,  253,  253,  254,  255,  256,

      304,  257,   70,  295,  258,  259,  252,  208,  323,  272,
      522,  324,  272,  208,  323,   70,  417,  324,  304,  260,
      331,  332,  185,  685,  333,  185,  344,  685,  304,  344,
      274,  194,  194,  194,  194,  261,   90,  262,  251,  260,
      251,  251,  263,  264,  274,  260,  417,  304,  265,  260,
      275,  266,  267,  251,  251,  268,  252,  251,  260,  269,
      260,  280,  251,  251,  252,   70,  658,   91,  685,  235,
      137,  280,  235,   70,  320,  420,  463,  280,  328,  329,
      328,  328,  517,  327,  363,  363,  363,  467,  301,  387,
      280,  301,  387,  653,  272,  252,  685,  272,  252,  298,

      280,  388,  302,  226,  388,  480,  280,  281,  281,  281,
      281,  281,  281,  281,  281,  281,  281,  281,  281,  281,
      281,  281,  281,  281,  281,  281,  281,  281,  281,  281,
      281,  280,  652,  303,  480,  187,  188,  189,  187,  226,
      361,  280,  226,  344,  685,  388,  344,  280,  388,  320,
      321,  198,  308,  309,  198,  348,  198,  308,  309,  198,
      280,  345,  310,  199,  200,  310,  345,  645,  286,  348,
      280,  190,  201,  645,  345,  349,  280,  201,  685,  202,
      191,  192,  203,  201,  202,  313,  645,  203,  389,  314,
      202,  389,  315,  203,  479,  357,  390,  316,  415,  390,

      227,   50,  227,  227,  227,  126,  227,  227,  230,   50,
      227,  230,  226,  313,  229,  226,  391,  314,  229,  391,
      411,  315,  229,  685,  479,  252,  641,  316,  415,  226,
      204,  341,  226,  517,  352,  204,  234,  352,  252,  345,
      497,  204,  298,  314,  514,  229,  523,  345,  411,  229,
      498,  226,  278,  231,  226,  278,  345,  374,  685,  507,
      374,  345,  350,  351,  345,  375,  685,  353,  497,  345,
      385,  685,  347,  385,  411,  331,  442,  383,  386,  383,
      498,  384,  384,  384,  384,  567,  345,  392,  252,  507,
      392,  393,  226,  605,  393,  226,  252,  226,  226,  612,

      226,  226,  226,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  226,  226,  354,  345,
      394,  395,  397,  394,  395,  397,  226,  345,  354,  226,
      398,  415,  599,  398,  354,  226,  400,  401,  226,  400,
      401,  685,  226,  226,  226,  226,  402,  354,  403,  402,
      645,  403,  580,  345,  570,  301,  403,  354,  301,  403,
      415,  345,  345,  354,  305,  344,  685,  305,  344,  302,
      345,  226,  226,  226,  226,  226,  226,  226,  226,  346,
      358,  226,  346,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  226,  226,  226,  356,

      303,  407,  183,  407,  407,  458,  347,  226,  458,  303,
      226,  517,  208,  422,  347,  408,  423,  208,  422,  448,
      685,  423,  448,  226,  226,  226,  226,  208,  422,  331,
      440,  423,  685,  441,  345,  331,  440,  331,  440,  441,
      685,  441,  345,  310,  308,  309,  310,  310,  308,  309,
      310,  512,  226,  226,  226,  226,  226,  226,  226,  226,
      359,  685,  226,  513,  201,  299,  346,  685,  201,  346,
      461,  202,  524,  461,  203,  202,  208,  488,  203,  355,
      355,  355,  355,  355,  355,  355,  355,  355,  355,  355,
      355,  355,  355,  355,  355,  355,  355,  355,  355,  355,

      355,  355,  355,  226,  412,  415,  226,  449,  685,  506,
      449,  546,  443,  526,  413,  444,  449,  685,  387,  449,
      445,  387,  204,  547,  415,  388,  204,  414,  388,  354,
      345,  415,  412,  450,  685,  415,  450,  506,  345,  354,
      451,  685,  526,  451,  413,  354,  452,  685,  528,  452,
      352,  685,  415,  352,  453,  685,  414,  453,  354,  454,
      685,  415,  454,  574,  455,  685,  360,  455,  354,  456,
      685,  570,  456,  561,  354,  226,  226,  528,  226,  226,
      226,  226,  226,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  364,  364,  364,  364,

      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,
      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,
      226,  226,  226,  226,  365,  364,  364,  364,  366,  364,
      367,  368,  364,  364,  364,  364,  369,  364,  364,  364,
      370,  364,  364,  371,  364,  364,  364,  364,  364,  226,
      226,  226,  226,  226,  226,  226,  226,  226,  548,  226,
      226,  226,  226,  226,  226,  226,  372,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  226,  459,  685,  685,
      459,  462,  685,  529,  462,  374,  685,  475,  374,  390,
      475,  482,  390,  375,  384,  384,  384,  384,  208,  488,

      549,  226,  226,  226,  226,  385,  685,  391,  385,  392,
      391,  393,  392,  386,  393,  394,  395,  397,  394,  395,
      397,  398,  400,  401,  398,  400,  401,  208,  422,  549,
      226,  226,  226,  226,  226,  226,  226,  685,  402,  403,
      685,  402,  403,  331,  516,  377,  407,  183,  407,  407,
      331,  516,  520,  378,  378,  520,  378,  378,  378,  378,
      378,  378,  378,  378,  378,  378,  378,  378,  378,  378,
      378,  378,  378,  378,  378,  378,  378,  378,  378,  378,
      226,  226,  645,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  226,  226,  226,  226,

      226,  331,  440,  426,  329,  426,  426,  541,  427,  407,
      183,  407,  407,  481,  482,  483,  481,  597,  329,  329,
      329,  329,  555,  433,  428,  226,  226,  226,  226,  598,
      685,  429,  252,  685,  430,  518,  685,  541,  518,  434,
      448,  685,  652,  448,  458,  252,  435,  458,  431,  436,
      449,  685,  555,  449,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  437,  226,  226,  226,  226,  226,  226,
      226,  380,  226,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  432,  415,  490,  329,  490,  490,  649,  491,
      451,  685,  685,  451,  645,  252,  540,  438,  452,  685,

      650,  452,  685,  252,  554,  492,  226,  226,  226,  226,
      428,  415,  493,  453,  685,  494,  453,  429,  454,  685,
      430,  454,  455,  685,  540,  455,  331,  456,  685,  495,
      456,  208,  531,  554,  431,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  514,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  496,  208,  531,  574,  499,  432,  459,
      685,  500,  459,  461,  501,  505,  461,  462,  685,  502,
      462,  521,  685,  556,  521,  562,  434,  226,  226,  226,
      226,  475,  320,  435,  475,  499,  436,  527,  486,  500,

      527,  331,  576,  501,  481,  482,  483,  481,  415,  502,
      437,  331,  576,  556,  562,  685,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  500,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  438,  567,  685,  568,  508,  569,
      521,  685,  509,  521,  579,  510,  518,  685,  520,  518,
      511,  520,  208,  582,  481,  482,  483,  481,  226,  226,
      226,  226,  464,  685,  567,  527,  508,  568,  527,  569,
      509,  559,  579,  559,  510,  560,  560,  560,  560,  685,
      511,  521,  685,  685,  521,  415,  685,  226,  226,  226,

      226,  226,  226,  226,  226,  226,  509,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  415,  572,  415,  572,  466,
      573,  573,  573,  573,  550,  535,  563,  481,  482,  483,
      481,  591,  536,  226,  476,  537,  226,  551,  600,  226,
      226,  226,  226,  208,  582,  415,  685,  552,  484,  538,
      425,  485,  550,  605,  563,  592,  606,  607,  614,  591,
      553,  605,  613,  615,  605,  551,  425,  600,  226,  226,
      226,  226,  226,  226,  226,  685,  484,  552,  550,  485,
      563,  208,  605,  539,  419,  592,  606,  607,  614,  553,

      613,  605,  615,  605,  470,  470,  470,  470,  470,  470,
      470,  470,  470,  470,  470,  470,  470,  470,  470,  470,
      470,  470,  470,  470,  470,  470,  470,  470,  226,  226,
      601,  226,  226,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  226,  226,  226,  626,
      627,  533,  329,  533,  533,  610,  534,  610,  601,  611,
      611,  611,  611,  605,  628,  567,  584,  329,  584,  584,
      605,  585,  535,  226,  226,  226,  226,  626,  418,  536,
      627,  645,  537,  308,  601,  331,  638,  586,  331,  638,
      305,  605,  406,  628,  587,  567,  538,  588,  226,  476,

      605,  226,  226,  226,  226,  226,  226,  226,  226,  226,
      226,  589,  226,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  226,  226,  226,  226,
      539,  616,  617,  618,  616,  567,  619,  611,  611,  611,
      611,  567,  567,  405,  640,  590,  573,  573,  573,  573,
      404,  567,  648,  685,  226,  226,  226,  226,  586,  685,
      208,  643,  685,  567,  644,  587,  685,  645,  588,  685,
      567,  685,  567,  640,  208,  643,  620,  270,  644,  685,
      685,  648,  589,  226,  226,  226,  226,  226,  226,  226,
      378,  378,  378,  378,  378,  378,  378,  378,  378,  378,

      378,  378,  378,  378,  378,  378,  378,  378,  378,  378,
      378,  378,  378,  378,  226,  226,  590,  226,  226,  226,
      226,  226,  226,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  226,  564,  645,  542,  567,  567,
      586,  543,  657,  645,  544,  565,  645,  587,  645,  545,
      588,  651,  629,  617,  617,  629,  659,  630,  566,  226,
      226,  226,  226,  564,  624,  542,  685,  567,  567,  543,
      567,  507,  657,  544,  562,  565,  586,  567,  340,  545,
      651,  331,  655,  587,  659,  656,  588,  566,  226,  226,
      226,  226,  226,  226,  226,  543,  557,  631,  590,  567,

      625,  507,  645,  562,  558,  558,  567,  558,  558,  558,
      558,  558,  558,  558,  558,  558,  558,  558,  558,  558,
      558,  558,  558,  558,  558,  558,  558,  558,  558,  558,
      558,  593,  602,  645,  590,  594,  645,  434,  595,  645,
      685,  645,  603,  596,  435,  340,  645,  436,  685,  685,
      512,  567,  506,  208,  643,  604,  340,  645,  648,  593,
      602,  635,  513,  594,  568,  626,  569,  595,  573,  573,
      573,  573,  603,  596,  331,  655,  434,  339,  656,  567,
      506,  208,  643,  435,  604,  645,  436,  648,  338,  594,
      608,  208,  643,  626,  568,  438,  569,  337,  609,  609,

      636,  609,  609,  609,  609,  609,  609,  609,  609,  609,
      609,  609,  609,  609,  609,  609,  609,  609,  609,  609,
      609,  609,  609,  609,  609,  616,  617,  618,  616,  645,
      619,  336,  645,  649,  438,  335,  572,  674,  572,  675,
      573,  573,  573,  573,  668,  650,  621,  334,  434,  622,
      327,  629,  617,  617,  629,  435,  647,  327,  436,  617,
      617,  617,  617,  617,  617,  617,  617,  674,  645,  675,
      620,  318,  437,  668,  621,  331,  655,  622,  623,  623,
      623,  623,  623,  623,  623,  623,  623,  623,  623,  623,
      623,  623,  623,  623,  623,  623,  623,  623,  623,  623,

      623,  623,  629,  617,  617,  629,  438,  630,  329,  329,
      329,  329,  645,  646,  645,  645,  645,  645,  317,  629,
      617,  617,  629,  632,  647,  645,  633,  331,  655,  434,
      508,  563,  199,  645,  509,  645,  435,  510,  196,  436,
      564,  567,  511,  627,  331,  655,  645,  631,  645,  628,
      565,  632,  306,  437,  633,  305,  188,  293,  508,  563,
      567,  567,  509,  566,  631,  651,  510,  567,  564,  434,
      669,  567,  511,  627,  567,  645,  435,  645,  628,  436,
      565,  629,  617,  617,  629,  563,  647,  438,  509,  567,
      567,  434,  566,  434,  651,  567,  415,  293,  435,  669,

      435,  436,  632,  436,  567,  633,  617,  617,  617,  617,
      291,  645,  291,  292,  683,  635,  291,  636,  678,  629,
      617,  617,  629,  685,  647,  415,  631,  438,  290,  288,
      632,  685,  685,  633,  629,  617,  617,  629,  434,  630,
      617,  617,  617,  617,  683,  435,  285,  678,  436,  438,
      567,  438,  629,  617,  617,  629,  284,  630,  617,  617,
      617,  617,  437,  662,  631,  662,  567,  663,  663,  663,
      663,  664,  434,  664,  283,  665,  665,  665,  665,  435,
      567,  282,  436,  567,  629,  617,  617,  629,  277,  630,
      663,  663,  663,  663,  276,  567,  438,  631,  629,  617,

      617,  629,  685,  630,  665,  665,  665,  665,  270,  685,
      685,  685,  679,  567,  679,  118,  680,  680,  680,  680,
      680,  680,  680,  680,  212,  206,  205,  106,  100,  671,
      438,  629,  617,  617,  629,  103,  630,  629,  617,  617,
      629,  685,  630,  672,  102,   93,  102,  178,  176,  685,
      685,   18,   18,   18,   18,   18,   18,   18,   18,   18,
       18,   18,   27,   27,   27,   27,   27,   27,   27,   27,
       27,   27,   27,   19,   19,   19,   19,   19,   19,   19,
       19,   19,   19,   19,   36,   36,   36,   36,   36,   36,
       36,   36,   36,   36,   36,   40,   40,   40,   40,   40,

       40,   40,   40,   40,   40,   40,   44,   44,   44,   44,
       44,   44,   44,   44,   44,   44,   44,   47,   47,   47,
       47,   47,   47,   47,   47,   47,   47,   47,   54,   54,
       54,   54,   54,   54,   54,   54,   54,   54,   54,   68,
       68,   68,   68,  104,  104,  173,  104,  104,  104,  104,
      104,  104,  104,  104,  112,  112,  172,  112,  112,  112,
      112,  112,  112,  112,  112,  117,  117,  168,  117,  117,
      117,  117,  117,  117,  117,  117,  128,  128,  128,  128,
      128,  128,  128,  128,  128,  128,  128,  139,  139,  155,
      154,  153,  139,  123,   65,  139,  139,  158,  158,   64,

      158,  158,  158,  158,  158,  158,  158,  158,  160,  160,
      169,  123,  122,  121,  169,  169,  174,  111,  110,  174,
      174,  175,  175,  177,  109,  108,  103,  177,  177,  186,
      186,  186,  186,  186,  186,  186,  186,  186,  186,  186,
      195,  195,  102,  195,  195,  195,  195,  195,  195,  195,
      195,  207,  207,  207,  207,  207,  207,  207,  207,  207,
      207,  207,  211,  211,   98,  211,  211,  211,  211,  211,
      211,  211,  211,  226,  226,  226,  226,  226,  226,  226,
      226,  226,  226,  226,  271,  271,  287,  287,   67,  287,
      287,  287,  287,  287,  287,  287,  287,  289,  289,  294,

      294,  295,  295,  295,  295,   65,  295,  295,  295,  295,
      295,  295,  297,  297,  298,  298,  298,   64,  298,  298,
      298,  298,  298,  298,  298,  299,  299,  299,  299,  685,
      299,  299,  299,  299,  299,  299,  300,  300,   48,  300,
      300,  300,  300,  300,  300,  300,  300,  307,  307,   48,
      307,  307,  307,  307,  307,  307,  307,  307,  319,  319,
      319,  319,  319,  319,  319,  319,  319,  319,  319,  322,
      322,  322,  322,  322,  322,  322,  322,  322,  322,  322,
      326,  326,  685,  326,  326,  326,  326,  326,  326,  326,
      326,  330,  330,  330,  330,  330,  330,  330,  330,  330,

      330,  330,  345,  345,  685,  345,  345,  345,  345,  345,
      345,  345,  345,  362,  362,  685,  362,  362,  362,  362,
      362,  362,  362,  362,  373,  373,  685,  373,  373,  373,
      373,  373,  373,  373,  373,  379,  379,  685,  379,  379,
      379,  379,  379,  379,  379,  379,  381,  381,  685,  381,
      381,  381,  381,  381,  381,  381,  381,  396,  396,  685,
      396,  396,  396,  396,  396,  396,  396,  396,  399,  399,
      685,  399,  399,  399,  399,  399,  399,  399,  399,  287,
      287,  685,  287,  287,  287,  287,  287,  287,  287,  287,
      169,  169,  295,  295,  295,  295,  295,  295,  295,  295,

      295,  295,  295,  177,  177,  298,  298,  298,  298,  298,
      298,  298,  298,  298,  298,  298,  299,  299,  299,  299,
      299,  299,  299,  299,  299,  299,  299,  300,  300,  685,
      300,  300,  300,  300,  300,  300,  300,  300,  409,  409,
      685,  409,  409,  409,  409,  409,  409,  409,  409,  319,
      319,  319,  319,  319,  319,  319,  319,  319,  319,  319,
      421,  421,  421,  421,  421,  421,  421,  421,  421,  421,
      421,  424,  424,  685,  424,  424,  424,  424,  424,  424,
      424,  424,  439,  439,  439,  439,  439,  439,  439,  439,
      439,  439,  439,  446,  446,  685,  446,  446,  446,  446,

      446,  446,  446,  446,  457,  457,  685,  457,  457,  457,
      457,  457,  457,  457,  457,  460,  460,  685,  460,  460,
      460,  460,  460,  460,  460,  460,  362,  362,  685,  362,
      362,  362,  362,  362,  362,  362,  362,  463,  463,  685,
      463,  463,  463,  463,  463,  463,  463,  463,  468,  468,
      685,  468,  468,  468,  468,  468,  468,  468,  468,  469,
      469,  469,  469,  469,  469,  469,  469,  469,  469,  469,
      471,  471,  685,  471,  471,  471,  471,  471,  471,  471,
      471,  472,  472,  472,  472,  472,  472,  472,  472,  472,
      472,  472,  473,  473,  473,  473,  473,  473,  473,  473,

      473,  473,  473,  474,  474,  685,  474,  474,  474,  474,
      474,  474,  474,  474,  396,  396,  685,  396,  396,  396,
      396,  396,  396,  396,  396,  399,  399,  685,  399,  399,
      399,  399,  399,  399,  399,  399,  476,  685,  476,  476,
      476,  476,  476,  476,  476,  476,  476,  477,  477,  685,
      477,  477,  477,  477,  477,  477,  477,  477,  487,  487,
      487,  487,  487,  487,  487,  487,  487,  487,  487,  489,
      489,  685,  489,  489,  489,  489,  489,  489,  489,  489,
      515,  515,  515,  515,  515,  515,  515,  515,  515,  515,
      515,  439,  439,  439,  439,  439,  439,  439,  439,  439,

      439,  439,  446,  446,  685,  446,  446,  446,  446,  446,
      446,  446,  446,  519,  519,  685,  519,  519,  519,  519,
      519,  519,  519,  519,  457,  457,  685,  457,  457,  457,
      457,  457,  457,  457,  457,  460,  460,  685,  460,  460,
      460,  460,  460,  460,  460,  460,  373,  373,  685,  373,
      373,  373,  373,  373,  373,  373,  373,  381,  381,  685,
      381,  381,  381,  381,  381,  381,  381,  381,  525,  525,
      685,  525,  525,  525,  525,  525,  525,  525,  525,  530,
      530,  530,  530,  530,  530,  530,  530,  530,  530,  530,
      532,  532,  685,  532,  532,  532,  532,  532,  532,  532,

      532,  571,  685,  685,  571,  571,  575,  575,  575,  575,
      575,  575,  575,  575,  575,  575,  575,  577,  577,  577,
      577,  577,  577,  577,  577,  577,  577,  577,  578,  578,
      685,  578,  578,  578,  578,  578,  578,  578,  578,  581,
      581,  581,  581,  581,  581,  581,  581,  581,  581,  581,
      583,  583,  685,  583,  583,  583,  583,  583,  583,  583,
      583,  637,  637,  637,  637,  637,  637,  637,  637,  637,
      637,  637,  639,  639,  685,  639,  639,  639,  639,  639,
      639,  639,  639,  642,  642,  642,  642,  642,  642,  642,
      642,  642,  642,  642,  654,  654,  654,  654,  654,  654,

      654,  654,  654,  654,  654,  661,  685,  685,  661,  661,
      667,  685,  685,  667,  667,  682,  685,  685,  682,  682,
       17,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,

      685,  685
    } ;

static yyconst flex_int16_t yy_chk[3603] =
    {   0,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    5,    5,    5,
        5,    6,    6,    6,    6,    7,    7,    7,   13,   13,
        5,    5,   14,   14,    6,    6,    8,    8,    8,   25,
       33,   33,   25,    9,   10,    3,    3,    3,    3,    9,
       10,   32,   32,   32,   32,  343,    9,   10,   20,   20,
       20,   20,    5,    5,  343,   51,    6,    6,   51,  790,
       66,   20,   20,   66,    3,    3,    3,    3,    3,    3,
        3,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,   21,   21,

       21,   21,   29,   20,  788,   29,   21,   21,   22,   22,
       22,   22,   21,   21,  261,   29,   29,   37,   37,   37,
       37,   67,   22,  311,   67,  787,    4,    4,    4,    4,
       45,   45,   72,   72,   72,   30,   30,   30,   30,   43,
      206,  206,   43,   21,   45,   76,  123,   29,   76,  123,
      201,   70,  311,   22,   70,    4,    4,    4,    4,    4,
        4,    4,   28,   28,   28,   28,   28,   28,   28,   28,
       28,   30,   28,   43,  233,   28,   28,   28,  201,  261,
       30,   30,   43,   89,   89,   89,   89,  118,  118,  780,
       28,   49,   49,   49,   49,   78,   70,  153,   78,  369,

      153,  118,   43,   78,   49,   49,   28,  369,   28,   28,
       28,   28,   28,   28,   28,  736,   28,  112,  112,   28,
       28,  112,   28,   28,   28,   28,   28,   28,   28,   28,
       28,   28,  368,   28,   28,   28,   49,   50,   50,   50,
       50,   53,   55,   55,   55,   55,  233,   53,  131,  114,
      114,   50,   53,  114,   53,  368,   55,   56,   56,   56,
       56,   57,   57,   57,   57,   56,   56,   90,   90,   90,
       90,   56,   56,  132,  366,   57,   63,   63,   63,   63,
       87,   90,   50,   87,   63,   63,  366,   55,   87,   74,
       63,   63,  131,   74,  716,   74,   74,   99,   99,   99,

       99,   74,   56,  202,   53,   74,   57,  124,   74,   95,
      124,  625,   53,   61,   61,  124,   61,  132,   86,  375,
       86,   63,   86,   86,   86,   86,  375,   95,   61,  100,
      100,  100,  100,  202,   61,  677,   92,   95,   88,   92,
       61,   88,   61,  672,   61,  315,   61,  145,   61,   61,
       92,   88,   88,  145,   61,  133,   95,  102,   61,  625,
      102,  232,   61,  116,  116,  232,   61,  116,  133,   61,
       93,   93,   93,   93,   61,  315,  136,  136,   61,  136,
      431,   92,  115,   88,   98,   98,   98,   98,  105,  105,
      105,  105,  431,  106,  106,  106,  106,  108,  108,  108,

      108,  671,  102,  115,  121,  121,   93,  410,  125,  125,
      125,  125,  314,  115,  106,   93,   93,  658,  121,  115,
       98,  106,  125,  267,  106,  120,  120,  267,  156,   98,
       98,  156,  115,  653,  120,  410,  120,  144,  120,  370,
      144,  314,  115,  222,  140,  120,  222,  140,  115,  126,
      126,  126,  126,  125,  127,  127,  127,  127,  370,  129,
      129,  129,  129,  126,  130,  130,  130,  130,  127,  120,
      144,  140,  106,  129,  170,  208,  208,  170,  130,  140,
      229,  649,  170,  179,  179,  179,  179,  181,  207,  207,
      181,  386,  207,  229,  126,  181,  319,  319,  386,  127,

      183,  183,  183,  183,  129,  184,  184,  184,  184,  130,
      134,  134,  134,  134,  134,  134,  134,  134,  134,  134,
      134,  134,  134,  134,  134,  134,  134,  134,  134,  134,
      134,  134,  134,  134,  134,  134,  134,  134,  134,  134,
      134,  134,  134,  134,  134,  134,  134,  134,  134,  134,
      134,  134,  134,  134,  134,  134,  134,  134,  134,  134,
      134,  134,  134,  134,  134,  134,  134,  134,  134,  134,
      134,  134,  134,  134,  134,  134,  134,  134,  134,  134,
      134,  134,  134,  134,  134,  134,  134,  134,  134,  134,
      134,  135,  135,  135,  135,  135,  135,  135,  135,  135,

      190,  135,  157,  469,  135,  135,  135,  209,  209,  141,
      469,  209,  141,  210,  210,  157,  316,  210,  190,  135,
      214,  214,  185,  443,  214,  185,  234,  234,  190,  234,
      141,  194,  194,  194,  194,  135,  185,  135,  135,  135,
      135,  135,  135,  135,  141,  135,  316,  190,  135,  135,
      141,  135,  135,  135,  135,  135,  135,  135,  135,  135,
      135,  146,  135,  135,  135,  157,  641,  185,  254,  235,
      235,  146,  235,  157,  320,  320,  371,  146,  213,  213,
      213,  213,  443,  213,  254,  254,  254,  371,  187,  271,
      146,  187,  271,  636,  272,  252,  252,  272,  252,  382,

      146,  273,  187,  382,  273,  414,  146,  147,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  147,  147,  147,  147,  147,  147,  147,  147,  147,
      147,  152,  635,  187,  414,  188,  188,  188,  188,  247,
      252,  152,  247,  258,  258,  274,  258,  152,  274,  321,
      321,  196,  196,  196,  196,  239,  198,  198,  198,  198,
      152,  239,  199,  199,  199,  199,  247,  608,  152,  239,
      152,  188,  196,  590,  247,  239,  152,  198,  445,  196,
      188,  188,  196,  199,  198,  203,  583,  198,  275,  203,
      199,  275,  203,  199,  411,  247,  276,  203,  412,  276,

      227,  227,  227,  227,  228,  228,  228,  228,  230,  230,
      230,  230,  241,  203,  227,  241,  277,  203,  228,  277,
      312,  203,  230,  231,  411,  231,  580,  203,  412,  240,
      196,  231,  240,  445,  242,  198,  231,  242,  231,  241,
      428,  199,  472,  203,  590,  227,  472,  241,  312,  228,
      429,  243,  278,  230,  243,  278,  240,  260,  260,  435,
      260,  242,  240,  241,  240,  260,  268,  242,  428,  242,
      269,  269,  243,  269,  312,  331,  331,  268,  269,  268,
      429,  268,  268,  268,  268,  574,  243,  279,  231,  435,
      279,  280,  244,  561,  280,  244,  231,  237,  237,  548,

      237,  237,  237,  237,  237,  237,  237,  237,  237,  237,
      237,  237,  237,  237,  237,  237,  237,  237,  244,  244,
      281,  282,  283,  281,  282,  283,  248,  244,  244,  248,
      284,  416,  539,  284,  244,  246,  285,  286,  246,  285,
      286,  444,  237,  237,  237,  237,  288,  244,  291,  288,
      597,  291,  529,  248,  597,  301,  340,  244,  301,  340,
      416,  248,  246,  244,  305,  344,  344,  305,  344,  301,
      246,  237,  237,  237,  237,  237,  237,  237,  238,  238,
      248,  238,  238,  238,  238,  238,  238,  238,  238,  238,
      238,  238,  238,  238,  238,  238,  238,  238,  238,  246,

      301,  302,  302,  302,  302,  357,  238,  249,  357,  305,
      249,  444,  322,  322,  238,  302,  322,  323,  323,  345,
      345,  323,  345,  238,  238,  238,  238,  324,  324,  330,
      330,  324,  523,  330,  249,  332,  332,  333,  333,  332,
      522,  333,  249,  308,  308,  308,  308,  310,  310,  310,
      310,  437,  238,  238,  238,  238,  238,  238,  238,  245,
      249,  341,  245,  437,  308,  473,  346,  346,  310,  346,
      359,  308,  473,  359,  308,  310,  421,  421,  310,  245,
      245,  245,  245,  245,  245,  245,  245,  245,  245,  245,
      245,  245,  245,  245,  245,  245,  245,  245,  245,  245,

      245,  245,  245,  250,  313,  479,  250,  347,  347,  434,
      347,  495,  341,  478,  313,  341,  348,  348,  387,  348,
      341,  387,  308,  495,  413,  388,  310,  313,  388,  250,
      250,  413,  313,  349,  349,  479,  349,  434,  250,  250,
      350,  350,  478,  350,  313,  250,  351,  351,  484,  351,
      352,  352,  413,  352,  353,  353,  313,  353,  250,  354,
      354,  413,  354,  514,  355,  355,  250,  355,  250,  356,
      356,  512,  356,  505,  250,  256,  256,  484,  256,  256,
      256,  256,  256,  256,  256,  256,  256,  256,  256,  256,
      256,  256,  256,  256,  256,  256,  256,  256,  256,  256,

      256,  256,  256,  256,  256,  256,  256,  256,  256,  256,
      256,  256,  256,  256,  256,  256,  256,  256,  256,  256,
      256,  256,  256,  256,  256,  256,  256,  256,  256,  256,
      256,  256,  256,  256,  256,  256,  256,  256,  256,  256,
      256,  256,  256,  256,  256,  256,  256,  256,  256,  256,
      256,  256,  256,  256,  256,  256,  257,  257,  496,  257,
      257,  257,  257,  257,  257,  257,  257,  257,  257,  257,
      257,  257,  257,  257,  257,  257,  257,  358,  358,  383,
      358,  360,  360,  486,  360,  374,  374,  389,  374,  390,
      389,  483,  390,  374,  383,  383,  383,  383,  422,  422,

      497,  257,  257,  257,  257,  385,  385,  391,  385,  392,
      391,  393,  392,  385,  393,  394,  395,  397,  394,  395,
      397,  398,  400,  401,  398,  400,  401,  423,  423,  497,
      257,  257,  257,  257,  257,  257,  257,  264,  402,  403,
      467,  402,  403,  439,  439,  264,  407,  407,  407,  407,
      440,  440,  450,  264,  264,  450,  264,  264,  264,  264,
      264,  264,  264,  264,  264,  264,  264,  264,  264,  264,
      264,  264,  264,  264,  264,  264,  264,  264,  264,  264,
      265,  265,  624,  265,  265,  265,  265,  265,  265,  265,
      265,  265,  265,  265,  265,  265,  265,  265,  265,  265,

      265,  441,  441,  328,  328,  328,  328,  493,  328,  408,
      408,  408,  408,  415,  415,  415,  415,  538,  329,  329,
      329,  329,  501,  329,  328,  265,  265,  265,  265,  538,
      361,  328,  361,  466,  328,  447,  447,  493,  447,  329,
      448,  448,  624,  448,  458,  361,  329,  458,  328,  329,
      449,  449,  501,  449,  265,  265,  265,  265,  265,  265,
      265,  266,  266,  329,  266,  266,  266,  266,  266,  266,
      266,  266,  266,  266,  266,  266,  266,  266,  266,  266,
      266,  266,  328,  480,  426,  426,  426,  426,  631,  426,
      451,  451,  464,  451,  599,  361,  492,  329,  452,  452,

      631,  452,  463,  361,  500,  426,  266,  266,  266,  266,
      427,  480,  426,  453,  453,  426,  453,  427,  454,  454,
      427,  454,  455,  455,  492,  455,  442,  456,  456,  426,
      456,  487,  487,  500,  427,  266,  266,  266,  266,  266,
      266,  266,  364,  364,  438,  364,  364,  364,  364,  364,
      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,
      364,  364,  364,  426,  488,  488,  599,  430,  427,  459,
      459,  430,  459,  461,  430,  432,  461,  462,  462,  430,
      462,  465,  465,  502,  465,  506,  433,  364,  364,  364,
      364,  475,  420,  433,  475,  430,  433,  482,  419,  430,

      482,  515,  515,  430,  481,  481,  481,  481,  418,  430,
      433,  516,  516,  502,  506,  384,  364,  364,  364,  364,
      364,  364,  364,  365,  365,  430,  365,  365,  365,  365,
      365,  365,  365,  365,  365,  365,  365,  365,  365,  365,
      365,  365,  365,  365,  433,  509,  381,  510,  436,  511,
      517,  517,  436,  517,  526,  436,  518,  518,  520,  518,
      436,  520,  530,  530,  485,  485,  485,  485,  365,  365,
      365,  365,  365,  379,  509,  527,  436,  510,  527,  511,
      436,  504,  526,  504,  436,  504,  504,  504,  504,  378,
      436,  521,  521,  376,  521,  485,  373,  365,  365,  365,

      365,  365,  365,  365,  372,  372,  436,  372,  372,  372,
      372,  372,  372,  372,  372,  372,  372,  372,  372,  372,
      372,  372,  372,  372,  372,  485,  513,  528,  513,  367,
      513,  513,  513,  513,  498,  491,  507,  417,  417,  417,
      417,  535,  491,  524,  524,  491,  524,  499,  540,  372,
      372,  372,  372,  531,  531,  528,  363,  499,  417,  491,
      327,  417,  498,  543,  507,  536,  544,  545,  550,  535,
      499,  551,  549,  553,  555,  499,  326,  540,  372,  372,
      372,  372,  372,  372,  372,  377,  417,  499,  498,  417,
      507,  325,  543,  491,  318,  536,  544,  545,  550,  499,

      549,  551,  553,  555,  377,  377,  377,  377,  377,  377,
      377,  377,  377,  377,  377,  377,  377,  377,  377,  377,
      377,  377,  377,  377,  377,  377,  377,  377,  380,  380,
      541,  380,  380,  380,  380,  380,  380,  380,  380,  380,
      380,  380,  380,  380,  380,  380,  380,  380,  380,  562,
      563,  490,  490,  490,  490,  547,  490,  547,  541,  547,
      547,  547,  547,  552,  566,  564,  533,  533,  533,  533,
      552,  533,  490,  380,  380,  380,  380,  562,  317,  490,
      563,  612,  490,  309,  541,  575,  575,  533,  576,  576,
      303,  552,  299,  566,  533,  564,  490,  533,  577,  577,

      552,  577,  380,  380,  380,  380,  380,  380,  380,  468,
      468,  533,  468,  468,  468,  468,  468,  468,  468,  468,
      468,  468,  468,  468,  468,  468,  468,  468,  468,  468,
      490,  554,  554,  554,  554,  565,  554,  559,  559,  559,
      559,  568,  565,  298,  579,  533,  572,  572,  572,  572,
      295,  612,  626,  263,  468,  468,  468,  468,  534,  262,
      581,  581,  259,  565,  581,  534,  255,  623,  534,  251,
      568,  623,  565,  579,  582,  582,  554,  236,  582,  623,
      623,  626,  534,  468,  468,  468,  468,  468,  468,  468,
      470,  470,  470,  470,  470,  470,  470,  470,  470,  470,

      470,  470,  470,  470,  470,  470,  470,  470,  470,  470,
      470,  470,  470,  470,  471,  471,  534,  471,  471,  471,
      471,  471,  471,  471,  471,  471,  471,  471,  471,  471,
      471,  471,  471,  471,  471,  508,  591,  494,  627,  628,
      558,  494,  640,  594,  494,  508,  587,  558,  606,  494,
      558,  632,  567,  567,  567,  567,  648,  567,  508,  471,
      471,  471,  471,  508,  558,  494,  226,  628,  627,  494,
      606,  587,  640,  494,  591,  508,  560,  594,  225,  494,
      632,  637,  637,  560,  648,  637,  560,  508,  471,  471,
      471,  471,  471,  471,  471,  494,  503,  567,  558,  606,

      560,  587,  589,  591,  503,  503,  594,  503,  503,  503,
      503,  503,  503,  503,  503,  503,  503,  503,  503,  503,
      503,  503,  503,  503,  503,  503,  503,  503,  503,  503,
      503,  537,  542,  586,  560,  537,  613,  571,  537,  595,
      634,  596,  542,  537,  571,  224,  600,  571,  634,  634,
      589,  651,  586,  642,  642,  542,  223,  610,  613,  537,
      542,  571,  589,  537,  595,  600,  596,  537,  610,  610,
      610,  610,  542,  537,  638,  638,  573,  221,  638,  651,
      586,  643,  643,  573,  542,  620,  573,  613,  219,  537,
      546,  644,  644,  600,  595,  571,  596,  218,  546,  546,

      573,  546,  546,  546,  546,  546,  546,  546,  546,  546,
      546,  546,  546,  546,  546,  546,  546,  546,  546,  546,
      546,  546,  546,  546,  546,  556,  556,  556,  556,  598,
      556,  217,  585,  620,  573,  216,  598,  668,  598,  669,
      598,  598,  598,  598,  657,  620,  556,  215,  585,  556,
      212,  616,  616,  616,  616,  585,  616,  211,  585,  617,
      617,  617,  617,  618,  618,  618,  618,  668,  618,  669,
      556,  205,  585,  657,  556,  654,  654,  556,  557,  557,
      557,  557,  557,  557,  557,  557,  557,  557,  557,  557,
      557,  557,  557,  557,  557,  557,  557,  557,  557,  557,

      557,  557,  569,  569,  569,  569,  585,  569,  584,  584,
      584,  584,  592,  584,  604,  588,  602,  601,  204,  605,
      605,  605,  605,  569,  605,  593,  569,  655,  655,  584,
      588,  592,  200,  614,  588,  621,  584,  588,  197,  584,
      593,  602,  588,  601,  656,  656,  615,  569,  603,  604,
      593,  569,  192,  584,  569,  191,  189,  167,  588,  592,
      614,  615,  588,  593,  605,  621,  588,  603,  593,  665,
      659,  602,  588,  601,  603,  609,  665,  611,  604,  665,
      593,  607,  607,  607,  607,  592,  607,  584,  588,  615,
      614,  609,  593,  611,  621,  603,  674,  166,  609,  659,

      611,  609,  607,  611,  603,  607,  619,  619,  619,  619,
      165,  619,  164,  163,  678,  609,  162,  611,  675,  622,
      622,  622,  622,  670,  622,  674,  607,  665,  161,  155,
      607,  670,  670,  607,  629,  629,  629,  629,  646,  629,
      630,  630,  630,  630,  678,  646,  151,  675,  646,  609,
      622,  611,  633,  633,  633,  633,  150,  633,  647,  647,
      647,  647,  646,  650,  622,  650,  683,  650,  650,  650,
      650,  652,  667,  652,  149,  652,  652,  652,  652,  667,
      622,  148,  667,  633,  661,  661,  661,  661,  143,  661,
      662,  662,  662,  662,  142,  683,  646,  633,  663,  663,

      663,  663,  673,  663,  664,  664,  664,  664,  138,  128,
      673,  673,  676,  633,  676,  119,  676,  676,  676,  676,
      679,  679,  679,  679,  113,  111,  109,  107,  101,  661,
      667,  680,  680,  680,  680,   97,  680,  682,  682,  682,
      682,  684,  682,  663,   96,   94,   91,   85,   84,  684,
      684,  686,  686,  686,  686,  686,  686,  686,  686,  686,
      686,  686,  687,  687,  687,  687,  687,  687,  687,  687,
      687,  687,  687,  688,  688,  688,  688,  688,  688,  688,
      688,  688,  688,  688,  689,  689,  689,  689,  689,  689,
      689,  689,  689,  689,  689,  690,  690,  690,  690,  690,

      690,  690,  690,  690,  690,  690,  691,  691,  691,  691,
      691,  691,  691,  691,  691,  691,  691,  692,  692,  692,
      692,  692,  692,  692,  692,  692,  692,  692,  693,  693,
      693,  693,  693,  693,  693,  693,  693,  693,  693,  694,
      694,  694,  694,  695,  695,   82,  695,  695,  695,  695,
      695,  695,  695,  695,  696,  696,   79,  696,  696,  696,
      696,  696,  696,  696,  696,  697,  697,   75,  697,  697,
      697,  697,  697,  697,  697,  697,  698,  698,  698,  698,
      698,  698,  698,  698,  698,  698,  698,  699,  699,   65,
       64,   62,  699,   60,   59,  699,  699,  700,  700,   58,

      700,  700,  700,  700,  700,  700,  700,  700,  701,  701,
      702,   52,   48,   46,  702,  702,  703,   42,   41,  703,
      703,  704,  704,  705,   39,   38,   35,  705,  705,  706,
      706,  706,  706,  706,  706,  706,  706,  706,  706,  706,
      707,  707,   34,  707,  707,  707,  707,  707,  707,  707,
      707,  708,  708,  708,  708,  708,  708,  708,  708,  708,
      708,  708,  709,  709,   31,  709,  709,  709,  709,  709,
      709,  709,  709,  710,  710,  710,  710,  710,  710,  710,
      710,  710,  710,  710,  711,  711,  712,  712,   26,  712,
      712,  712,  712,  712,  712,  712,  712,  713,  713,  714,

      714,  715,  715,  715,  715,   24,  715,  715,  715,  715,
      715,  715,  717,  717,  718,  718,  718,   23,  718,  718,
      718,  718,  718,  718,  718,  719,  719,  719,  719,   17,
      719,  719,  719,  719,  719,  719,  720,  720,   16,  720,
      720,  720,  720,  720,  720,  720,  720,  721,  721,   15,
      721,  721,  721,  721,  721,  721,  721,  721,  722,  722,
      722,  722,  722,  722,  722,  722,  722,  722,  722,  723,
      723,  723,  723,  723,  723,  723,  723,  723,  723,  723,
      724,  724,    0,  724,  724,  724,  724,  724,  724,  724,
      724,  725,  725,  725,  725,  725,  725,  725,  725,  725,

      725,  725,  726,  726,    0,  726,  726,  726,  726,  726,
      726,  726,  726,  727,  727,    0,  727,  727,  727,  727,
      727,  727,  727,  727,  728,  728,    0,  728,  728,  728,
      728,  728,  728,  728,  728,  729,  729,    0,  729,  729,
      729,  729,  729,  729,  729,  729,  730,  730,    0,  730,
      730,  730,  730,  730,  730,  730,  730,  731,  731,    0,
      731,  731,  731,  731,  731,  731,  731,  731,  732,  732,
        0,  732,  732,  732,  732,  732,  732,  732,  732,  733,
      733,    0,  733,  733,  733,  733,  733,  733,  733,  733,
      734,  734,  735,  735,  735,  735,  735,  735,  735,  735,

      735,  735,  735,  737,  737,  738,  738,  738,  738,  738,
      738,  738,  738,  738,  738,  738,  739,  739,  739,  739,
      739,  739,  739,  739,  739,  739,  739,  740,  740,    0,
      740,  740,  740,  740,  740,  740,  740,  740,  741,  741,
        0,  741,  741,  741,  741,  741,  741,  741,  741,  742,
      742,  742,  742,  742,  742,  742,  742,  742,  742,  742,
      743,  743,  743,  743,  743,  743,  743,  743,  743,  743,
      743,  744,  744,    0,  744,  744,  744,  744,  744,  744,
      744,  744,  745,  745,  745,  745,  745,  745,  745,  745,
      745,  745,  745,  746,  746,    0,  746,  746,  746,  746,

      746,  746,  746,  746,  747,  747,    0,  747,  747,  747,
      747,  747,  747,  747,  747,  748,  748,    0,  748,  748,
      748,  748,  748,  748,  748,  748,  749,  749,    0,  749,
      749,  749,  749,  749,  749,  749,  749,  750,  750,    0,
      750,  750,  750,  750,  750,  750,  750,  750,  751,  751,
        0,  751,  751,  751,  751,  751,  751,  751,  751,  752,
      752,  752,  752,  752,  752,  752,  752,  752,  752,  752,
      753,  753,    0,  753,  753,  753,  753,  753,  753,  753,
      753,  754,  754,  754,  754,  754,  754,  754,  754,  754,
      754,  754,  755,  755,  755,  755,  755,  755,  755,  755,

      755,  755,  755,  756,  756,    0,  756,  756,  756,  756,
      756,  756,  756,  756,  757,  757,    0,  757,  757,  757,
      757,  757,  757,  757,  757,  758,  758,    0,  758,  758,
      758,  758,  758,  758,  758,  758,  759,    0,  759,  759,
      759,  759,  759,  759,  759,  759,  759,  760,  760,    0,
      760,  760,  760,  760,  760,  760,  760,  760,  761,  761,
      761,  761,  761,  761,  761,  761,  761,  761,  761,  762,
      762,    0,  762,  762,  762,  762,  762,  762,  762,  762,
      763,  763,  763,  763,  763,  763,  763,  763,  763,  763,
      763,  764,  764,  764,  764,  764,  764,  764,  764,  764,

      764,  764,  765,  765,    0,  765,  765,  765,  765,  765,
      765,  765,  765,  766,  766,    0,  766,  766,  766,  766,
      766,  766,  766,  766,  767,  767,    0,  767,  767,  767,
      767,  767,  767,  767,  767,  768,  768,    0,  768,  768,
      768,  768,  768,  768,  768,  768,  769,  769,    0,  769,
      769,  769,  769,  769,  769,  769,  769,  770,  770,    0,
      770,  770,  770,  770,  770,  770,  770,  770,  771,  771,
        0,  771,  771,  771,  771,  771,  771,  771,  771,  772,
      772,  772,  772,  772,  772,  772,  772,  772,  772,  772,
      773,  773,    0,  773,  773,  773,  773,  773,  773,  773,

      773,  774,    0,    0,  774,  774,  775,  775,  775,  775,
      775,  775,  775,  775,  775,  775,  775,  776,  776,  776,
      776,  776,  776,  776,  776,  776,  776,  776,  777,  777,
        0,  777,  777,  777,  777,  777,  777,  777,  777,  778,
      778,  778,  778,  778,  778,  778,  778,  778,  778,  778,
      779,  779,    0,  779,  779,  779,  779,  779,  779,  779,
      779,  781,  781,  781,  781,  781,  781,  781,  781,  781,
      781,  781,  782,  782,    0,  782,  782,  782,  782,  782,
      782,  782,  782,  783,  783,  783,  783,  783,  783,  783,
      783,  783,  783,  783,  784,  784,  784,  784,  784,  784,

      784,  784,  784,  784,  784,  785,    0,    0,  785,  785,
      786,    0,    0,  786,  786,  789,    0,    0,  789,  789,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,
      685,  685,  685,  685,  685,  685,  685,  685,  685,  685,

      685,  685
    } ;

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 "lexgrog.l"
#line 2 "lexgrog.l"

/*
 * lexgrog.l: extract 'whatis' info from nroff man / formatted cat pages.
 *  
 * Copyright (C) 1994, 1995 Graeme W. Wilford. (Wilf.)
 * Copyright (C) 2001, 2002 Colin Watson.
 *
 * This file is part of man-db.
 *
 * man-db is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * man-db 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 man-db; if not, write to the Free Software Foundation,
 * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Wed Oct 12 18:46:11 BST 1994  Wilf. (G.Wilford@ee.surrey.ac.uk) 
 * 
 * CJW: Detect grap and vgrind. Understand fill requests. Other improvements
 * in the syntax accepted.
 */

#undef PROFILE

#ifdef HAVE_CONFIG_H
#  include "config.h"
#endif /* HAVE_CONFIG_H */

#include <sys/stat.h>
#include <errno.h>

#ifndef STDC_HEADERS
extern int errno;
#endif

#ifdef HAVE_UNISTD_H
#  include <unistd.h>
#endif /* HAVE_UNISTD_H */

#ifdef HAVE_STRING_H
#  include <string.h>
#elif defined (HAVE_STRINGS_H)
#  include <strings.h>
#endif /* HAVE_STRING_H */

#ifdef HAVE_LIBGEN_H
#  include <libgen.h>
#endif /* HAVE_LIBGEN_H */

#include <libintl.h>
#define _(String) gettext (String)

#include "manconfig.h"
#include "lib/error.h"
#include "security.h"
#include "ult_src.h"

#define YY_READ_BUF_SIZE      1024
#define MAX_NAME        2048

#ifdef PROFILE
static int ctr[YY_NUM_RULES];
#  define YY_USER_ACTION ++ctr[yy_act];
#endif

static void add_str_to_whatis (const char *string, size_t length);
static void add_char_to_whatis (unsigned char c);
static void add_separator_to_whatis (void);
static void newline_found (void);

static char newname[MAX_NAME];
static char *p_name;
static const char *fname;
static char filters[MAX_FILTERS];

static int fill_mode;

#ifdef TEST

#include <stdio.h>
#ifdef HAVE_GETOPT_H
#  include <getopt.h>
#else /* !HAVE_GETOPT_H */
#  include "lib/getopt.h"
#endif /* HAVE_GETOPT_H */

char *program_name;
int debug = 0;

static const struct option long_options[] =
{
      {"man",           no_argument,      0,    'm'},
      {"cat",           no_argument,      0,    'c'},
      {"whatis",  no_argument,      0,    'w'},
      {"filters", no_argument,      0,    'f'},
      {"help",    no_argument,      0,    'h'},
      {"version", no_argument,      0,    'V'},
      {0, 0, 0, 0}
};

static const char args[] = "mcwfhV";

#endif /* TEST */







/* Please add to this list if you know how. */
/* NOME also works for gl, pt */
/* eptgrv : eqn, pic, tbl, grap, refer, vgrind */
#line 1609 "<stdout>"

#define INITIAL 0
#define MAN_NAME 1
#define CAT_NAME 2
#define CAT_FILE 3
#define MAN_FILE 4
#define CAT_REST 5
#define MAN_REST 6
#define FORCE_EXIT 7

#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

/* 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 yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif

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

#ifndef YY_NO_INPUT

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

#endif

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

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

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

#endif

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

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

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

/* end tables serialization structures and prototypes */

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

extern int yylex (void);

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

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

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

#define YY_RULE_SETUP \
      YY_USER_ACTION

/** The main scanner function which does all the work.
 */
YY_DECL
{
      register yy_state_type yy_current_state;
      register char *yy_cp, *yy_bp;
      register int yy_act;
    
#line 173 "lexgrog.l"


 /* begin NAME section processing */
#line 1769 "<stdout>"

      if ( (yy_init) )
            {
            (yy_init) = 0;

#ifdef YY_USER_INIT
            YY_USER_INIT;
#endif

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

            if ( ! yyin )
                  yyin = stdin;

            if ( ! yyout )
                  yyout = stdout;

            if ( ! YY_CURRENT_BUFFER ) {
                  yyensure_buffer_stack ();
                  YY_CURRENT_BUFFER_LVALUE =
                        yy_create_buffer(yyin,YY_BUF_SIZE );
            }

            yy_load_buffer_state( );
            }

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

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

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

            yy_current_state = (yy_start);
yy_match:
            do
                  {
                  register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
                  if ( yy_accept[yy_current_state] )
                        {
                        (yy_last_accepting_state) = yy_current_state;
                        (yy_last_accepting_cpos) = yy_cp;
                        }
                  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
                        {
                        yy_current_state = (int) yy_def[yy_current_state];
                        if ( yy_current_state >= 686 )
                              yy_c = yy_meta[(unsigned int) yy_c];
                        }
                  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
                  ++yy_cp;
                  }
            while ( yy_current_state != 685 );
            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 176 "lexgrog.l"
BEGIN (MAN_NAME);
      YY_BREAK
case 2:
/* rule 2 can match eol */
YY_RULE_SETUP
#line 177 "lexgrog.l"
BEGIN (CAT_NAME);
      YY_BREAK
/* general text matching */
case 3:
/* rule 3 can match eol */
#line 181 "lexgrog.l"
case 4:
/* rule 4 can match eol */
#line 182 "lexgrog.l"
case 5:
/* rule 5 can match eol */
#line 183 "lexgrog.l"
case 6:
/* rule 6 can match eol */
#line 184 "lexgrog.l"
case 7:
/* rule 7 can match eol */
#line 185 "lexgrog.l"
case 8:
/* rule 8 can match eol */
#line 186 "lexgrog.l"
case 9:
/* rule 9 can match eol */
YY_RULE_SETUP
#line 186 "lexgrog.l"

      YY_BREAK

case 10:
/* rule 10 can match eol */
YY_RULE_SETUP
#line 189 "lexgrog.l"
filters[TBL_FILTER] = 't';
      YY_BREAK
case 11:
/* rule 11 can match eol */
YY_RULE_SETUP
#line 190 "lexgrog.l"
filters[EQN_FILTER] = 'e';
      YY_BREAK
case 12:
/* rule 12 can match eol */
YY_RULE_SETUP
#line 191 "lexgrog.l"
filters[PIC_FILTER] = 'p';
      YY_BREAK
case 13:
/* rule 13 can match eol */
YY_RULE_SETUP
#line 192 "lexgrog.l"
filters[GRAP_FILTER] = 'g';
      YY_BREAK
case 14:
/* rule 14 can match eol */
#line 194 "lexgrog.l"
case 15:
/* rule 15 can match eol */
YY_RULE_SETUP
#line 194 "lexgrog.l"
filters[REF_FILTER] = 'r';
      YY_BREAK
case 16:
/* rule 16 can match eol */
YY_RULE_SETUP
#line 195 "lexgrog.l"
filters[VGRIND_FILTER] = 'v';
      YY_BREAK

case YY_STATE_EOF(MAN_REST):
#line 197 "lexgrog.l"
{     /* exit */
                              *p_name = '\0'; /* terminate the string */
                              yyterminate ();
                        }
      YY_BREAK
case 17:
/* rule 17 can match eol */
YY_RULE_SETUP
#line 201 "lexgrog.l"

      YY_BREAK
/* rules to end NAME section processing */
case 18:
/* rule 18 can match eol */
YY_RULE_SETUP
#line 204 "lexgrog.l"
{     /* forced exit */
                              *p_name = '\0'; /* terminate the string */
                              yyterminate ();
                        }
      YY_BREAK
case 19:
/* rule 19 can match eol */
#line 210 "lexgrog.l"
case 20:
/* rule 20 can match eol */
#line 211 "lexgrog.l"
case 21:
/* rule 21 can match eol */
#line 212 "lexgrog.l"
case 22:
/* rule 22 can match eol */
#line 213 "lexgrog.l"
case 23:
/* rule 23 can match eol */
#line 214 "lexgrog.l"
case YY_STATE_EOF(MAN_NAME):
#line 214 "lexgrog.l"
{     /* terminate the string */
                              *p_name = '\0';
                              BEGIN (MAN_REST);
                        }
      YY_BREAK
case 24:
/* rule 24 can match eol */
#line 220 "lexgrog.l"
case 25:
/* rule 25 can match eol */
#line 221 "lexgrog.l"
case 26:
/* rule 26 can match eol */
YY_RULE_SETUP
#line 221 "lexgrog.l"
{     /* terminate the string */
                              *p_name = '\0';
                              BEGIN (CAT_REST);
                              yyterminate ();
                        }
      YY_BREAK
/* ROFF request removal */

case 27:
/* rule 27 can match eol */
#line 230 "lexgrog.l"
case 28:
/* rule 28 can match eol */
#line 231 "lexgrog.l"
case 29:
/* rule 29 can match eol */
YY_RULE_SETUP
#line 231 "lexgrog.l"
{     /* per line comments */
                                    newline_found ();
                              }
      YY_BREAK

/* No-op requests */
case 30:
/* rule 30 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 237 "lexgrog.l"
newline_found ();
      YY_BREAK
case 31:
/* rule 31 can match eol */
*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up yytext again */
YY_RULE_SETUP
#line 238 "lexgrog.l"
newline_found ();
      YY_BREAK
/* Toggle fill mode */
case 32:
/* rule 32 can match eol */
YY_RULE_SETUP
#line 241 "lexgrog.l"
fill_mode = 0;
      YY_BREAK
case 33:
/* rule 33 can match eol */
YY_RULE_SETUP
#line 242 "lexgrog.l"
fill_mode = 1;
      YY_BREAK
case 34:
/* rule 34 can match eol */
YY_RULE_SETUP
#line 244 "lexgrog.l"
/* strip continuations */
      YY_BREAK
/* convert to DASH */
case 35:
/* rule 35 can match eol */
#line 248 "lexgrog.l"
case 36:
/* rule 36 can match eol */
#line 249 "lexgrog.l"
case 37:
/* rule 37 can match eol */
#line 250 "lexgrog.l"
case 38:
/* rule 38 can match eol */
#line 251 "lexgrog.l"
case 39:
/* rule 39 can match eol */
YY_RULE_SETUP
#line 251 "lexgrog.l"
add_separator_to_whatis ();
      YY_BREAK
/* escape sequences and special characters */

case 40:
/* rule 40 can match eol */
YY_RULE_SETUP
#line 255 "lexgrog.l"
add_char_to_whatis ('\\');
      YY_BREAK
case 41:
/* rule 41 can match eol */
YY_RULE_SETUP
#line 256 "lexgrog.l"
add_char_to_whatis ('\'');
      YY_BREAK
case 42:
/* rule 42 can match eol */
YY_RULE_SETUP
#line 257 "lexgrog.l"
add_char_to_whatis ('`');
      YY_BREAK
case 43:
/* rule 43 can match eol */
YY_RULE_SETUP
#line 258 "lexgrog.l"
add_char_to_whatis ('-');
      YY_BREAK
case 44:
/* rule 44 can match eol */
YY_RULE_SETUP
#line 259 "lexgrog.l"
add_char_to_whatis ('.');
      YY_BREAK
case 45:
/* rule 45 can match eol */
YY_RULE_SETUP
#line 260 "lexgrog.l"
add_char_to_whatis (' ');
      YY_BREAK
case 46:
/* rule 46 can match eol */
YY_RULE_SETUP
#line 261 "lexgrog.l"
add_char_to_whatis ('_');
      YY_BREAK
case 47:
/* rule 47 can match eol */
YY_RULE_SETUP
#line 262 "lexgrog.l"
add_char_to_whatis ('\t');
      YY_BREAK
case 48:
/* rule 48 can match eol */
YY_RULE_SETUP
#line 264 "lexgrog.l"
/* various useless control chars */
      YY_BREAK
case 49:
/* rule 49 can match eol */
YY_RULE_SETUP
#line 265 "lexgrog.l"
/* various inline functions */
      YY_BREAK
case 50:
/* rule 50 can match eol */
YY_RULE_SETUP
#line 267 "lexgrog.l"
/* interpolate arg */
      YY_BREAK
case 51:
/* rule 51 can match eol */
YY_RULE_SETUP
#line 269 "lexgrog.l"
/* interpolate string */
      YY_BREAK
case 52:
/* rule 52 can match eol */
YY_RULE_SETUP
#line 270 "lexgrog.l"
/* special (non printable) character */
      YY_BREAK
case 53:
/* rule 53 can match eol */
YY_RULE_SETUP
#line 271 "lexgrog.l"
/* comment */
      YY_BREAK
case 54:
/* rule 54 can match eol */
YY_RULE_SETUP
#line 273 "lexgrog.l"
/* font changes */
      YY_BREAK
case 55:
/* rule 55 can match eol */
YY_RULE_SETUP
#line 274 "lexgrog.l"
/* mark input place in register */
      YY_BREAK
case 56:
/* rule 56 can match eol */
YY_RULE_SETUP
#line 276 "lexgrog.l"
/* interpolate number register */
      YY_BREAK
case 57:
/* rule 57 can match eol */
YY_RULE_SETUP
#line 277 "lexgrog.l"
/* overstrike chars */
      YY_BREAK
case 58:
/* rule 58 can match eol */
YY_RULE_SETUP
#line 279 "lexgrog.l"
/* size changes */
      YY_BREAK
case 59:
/* rule 59 can match eol */
YY_RULE_SETUP
#line 280 "lexgrog.l"
/* width of string */
      YY_BREAK
case 60:
/* rule 60 can match eol */
YY_RULE_SETUP
#line 282 "lexgrog.l"
/* catch all */
      YY_BREAK
case 61:
/* rule 61 can match eol */
YY_RULE_SETUP
#line 284 "lexgrog.l"
/* function() in hpux */
      YY_BREAK

/* collapse spaces, escaped spaces, tabs, newlines to a single space */
case 62:
/* rule 62 can match eol */
YY_RULE_SETUP
#line 288 "lexgrog.l"
add_char_to_whatis (' ');
      YY_BREAK
/* a ROFF break request (.br) or a paragraph request (.LP, .PP, .P)
    usually means we have multiple whatis definitions, provide a separator
    for later processing */

case 63:
/* rule 63 can match eol */
#line 295 "lexgrog.l"
case 64:
/* rule 64 can match eol */
#line 296 "lexgrog.l"
case 65:
/* rule 65 can match eol */
#line 297 "lexgrog.l"
case 66:
/* rule 66 can match eol */
YY_RULE_SETUP
#line 297 "lexgrog.l"
add_char_to_whatis ((char) 0x11);
      YY_BREAK

case 67:
/* rule 67 can match eol */
YY_RULE_SETUP
#line 300 "lexgrog.l"
{ /* very general roff requests */
                                    newline_found ();
                              }
      YY_BREAK
/* pass words as a chunk. speed optimization */
case 68:
YY_RULE_SETUP
#line 305 "lexgrog.l"
add_str_to_whatis (yytext, yyleng);
      YY_BREAK
/* normalise the period (,) separators */
case 69:
/* rule 69 can match eol */
#line 309 "lexgrog.l"
case 70:
/* rule 70 can match eol */
YY_RULE_SETUP
#line 309 "lexgrog.l"
add_str_to_whatis (", ", 2);
      YY_BREAK
case 71:
/* rule 71 can match eol */
YY_RULE_SETUP
#line 311 "lexgrog.l"
{
                              newline_found ();
                              add_char_to_whatis (yytext[yyleng - 1]);
                        }
      YY_BREAK
case 72:
YY_RULE_SETUP
#line 316 "lexgrog.l"
add_char_to_whatis (*yytext);
      YY_BREAK
/* default EOF rule */
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(CAT_NAME):
case YY_STATE_EOF(CAT_FILE):
case YY_STATE_EOF(MAN_FILE):
case YY_STATE_EOF(CAT_REST):
case YY_STATE_EOF(FORCE_EXIT):
#line 319 "lexgrog.l"
return 1;
      YY_BREAK
case 73:
YY_RULE_SETUP
#line 321 "lexgrog.l"
ECHO;
      YY_BREAK
#line 2276 "<stdout>"

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

/* yy_get_next_buffer - try to read in a new buffer
 *
 * Returns a code representing an action:
 *    EOB_ACT_LAST_MATCH -
 *    EOB_ACT_CONTINUE_SCAN - continue scanning from current position
 *    EOB_ACT_END_OF_FILE - end of file
 */
static int yy_get_next_buffer (void)
{
      register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
      register char *source = (yytext_ptr);
      register int number_to_move, i;
      int ret_val;

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

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

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

      /* Try to read more data. */

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

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

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

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

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

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

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

                  if ( b->yy_is_our_buffer )
                        {
                        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,b->yy_buf_size + 2  );
                        }
                  else
                        /* Can't grow it, we don't own it. */
                        b->yy_ch_buf = 0;

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

                  (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];

                  num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
                                    number_to_move - 1;

                  }

            if ( num_to_read > YY_READ_BUF_SIZE )
                  num_to_read = YY_READ_BUF_SIZE;

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

            YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
            }

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

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

      else
            ret_val = EOB_ACT_CONTINUE_SCAN;

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

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

      return ret_val;
}

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

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

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

      return yy_current_state;
}

/* yy_try_NUL_trans - try to make a transition on the NUL character
 *
 * synopsis
 *    next_state = yy_try_NUL_trans( current_state );
 */
    static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state )
{
      register int yy_is_jam;
      register char *yy_cp = (yy_c_buf_p);

      register YY_CHAR yy_c = 1;
      if ( yy_accept[yy_current_state] )
            {
            (yy_last_accepting_state) = yy_current_state;
            (yy_last_accepting_cpos) = yy_cp;
            }
      while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
            {
            yy_current_state = (int) yy_def[yy_current_state];
            if ( yy_current_state >= 686 )
                  yy_c = yy_meta[(unsigned int) yy_c];
            }
      yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
      yy_is_jam = (yy_current_state == 685);

      return yy_is_jam ? 0 : yy_current_state;
}

#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 = (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 EOF;

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

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

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

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

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

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

/** Switch to a different input buffer.
 * @param new_buffer The new input buffer.
 * 
 */
    void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer )
{
    
      /* TODO. We should be able to replace this entire function body
       * with
       *          yypop_buffer_state();
       *          yypush_buffer_state(new_buffer);
     */
      yyensure_buffer_stack ();
      if ( YY_CURRENT_BUFFER == new_buffer )
            return;

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

      YY_CURRENT_BUFFER_LVALUE = new_buffer;
      yy_load_buffer_state( );

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

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

/** Allocate and initialize an input buffer state.
 * @param file A readable stream.
 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
 * 
 * @return the allocated buffer state.
 */
    YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size )
{
      YY_BUFFER_STATE b;
    
      b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state )  );
      if ( ! b )
            YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

      b->yy_buf_size = size;

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

      b->yy_is_our_buffer = 1;

      yy_init_buffer(b,file );

      return b;
}

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

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

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

      yyfree((void *) b  );
}

/* 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)
{
      int num_to_alloc;
    
      if (!(yy_buffer_stack)) {

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

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

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

            num_to_alloc = (yy_buffer_stack_max) + grow_size;
            (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
                                                ((yy_buffer_stack),
                                                num_to_alloc * sizeof(struct yy_buffer_state*)
                                                );

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

/** Setup the input buffer state to scan directly from a user-specified character buffer.
 * @param base the character buffer
 * @param size the size in bytes of the character buffer
 * 
 * @return the newly allocated buffer state object. 
 */
YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size )
{
      YY_BUFFER_STATE b;
    
      if ( size < 2 ||
           base[size-2] != YY_END_OF_BUFFER_CHAR ||
           base[size-1] != YY_END_OF_BUFFER_CHAR )
            /* They forgot to leave room for the EOB's. */
            return 0;

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

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

      yy_switch_to_buffer(b  );

      return b;
}

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

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

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

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

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

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

      return b;
}

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

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

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

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

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

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

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

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

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

/** Get the current token.
 * 
 */

char *yyget_text  (void)
{
        return yytext;
}

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

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

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

int yyget_debug  (void)
{
        return yy_flex_debug;
}

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

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

    return 0;
}

/*
 * Internal utility routines.
 */

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

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

      return n;
}
#endif

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

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

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

#define YYTABLES_NAME "yytables"

#undef YY_NEW_FILE
#undef YY_FLUSH_BUFFER
#undef yy_set_bol
#undef yy_new_buffer
#undef yy_set_interactive
#undef yytext_ptr
#undef YY_DO_BEFORE_ACTION

#ifdef YY_DECL_IS_OURS
#undef YY_DECL_IS_OURS
#undef YY_DECL
#endif
#line 321 "lexgrog.l"



/* print warning and force scanner to terminate */
static void too_big (void)
{
      error (0, 0,
             _("warning: whatis for %s exceeds %d bytes, truncating."),
             fname, MAX_NAME);

      BEGIN (FORCE_EXIT);
}

/* append a string to newname if enough room */
static void add_str_to_whatis (const char *string, size_t length)
{
      if (p_name - newname + length >= MAX_NAME)
            too_big ();
      else {
            (void) strncpy (p_name, string, length);
            p_name += length;
      }
} 

/* append a char to newname if enough room */
static void add_char_to_whatis (unsigned char c)
{
      if (p_name - newname + 1 >= MAX_NAME)
            too_big ();
      else
            *p_name++ = c;
}

/* append the " - " separator to newname, trimming the first space if one's
 * already there
 */
static void add_separator_to_whatis (void)
{
      if (p_name != newname && *(p_name - 1) != ' ')
            add_char_to_whatis (' ');
      add_str_to_whatis ("- ", 2);
}

static void newline_found (void)
{
      /* If we are mid p_name and the last added char was not a space,
       * best add one.
       */
      if (p_name != newname && *(p_name - 1) != ' ') {
            if (fill_mode)
                  add_char_to_whatis (' ');
            else
                  add_char_to_whatis ((char) 0x11);
      }
}

int find_name (const char *file, const char *filename, lexgrog *p_lg)
{
      int ret;

      if (strcmp (file, "-") == 0) {
            yyin = fdopen (dup (0), "r");
      } else {
#ifdef COMP_SRC
            struct compression *comp;
#endif /* COMP_SRC */
            struct stat st;

            if (stat (file, &st)) {
                  error (0, errno, "%s", file);
                  return 0;
            }

            if (S_ISDIR (st.st_mode)) {
                  error (0, EISDIR, "%s", file);
                  return 0;
            }

#ifdef COMP_SRC
            /* See if we need to decompress the file(s) first. */
            comp = comp_info (file);
            if (comp) {
                  file = decompress (file, comp);
                  if (!file)
                        return 0;
            }
#endif /* COMP_SRC */
            drop_effective_privs ();
            yyin = fopen (file, "r");
            regain_effective_privs ();
            if (!yyin) {
                  error (0, errno, _("can't open %s"), file);
#ifdef COMP_SRC
                  remove_ztemp ();
#endif /* COMP_SRC */
                  return 0;
            }
      }

      fname = filename;
      *(p_name = newname) = '\0';
      memset (filters, '_', sizeof (filters));

      fill_mode = 1;

      if (p_lg->type)
            BEGIN (CAT_FILE);
      else
            BEGIN (MAN_FILE);

      drop_effective_privs ();

      yyrestart (yyin);
      ret = yylex ();
      fclose (yyin);

#ifdef COMP_SRC
      remove_ztemp ();
#endif

      regain_effective_privs ();

      if (ret)
            return 0;
      else {
            char f_tmp[MAX_FILTERS];
            int j, k;

            /* wipe out any leading or trailing spaces */
            if (*newname) {
                  for (p_name = strchr (newname, '\0');
                       *(p_name - 1) == ' ';
                       p_name--);
                  if (*p_name == ' ')
                        *p_name = '\0';
            }
            for (p_name = newname; *p_name == ' '; p_name++);
            p_lg->whatis = xstrdup (p_name);
            memset (f_tmp, '\0', MAX_FILTERS);
            f_tmp[0] = '-';
            for (j = k = 0; j < MAX_FILTERS; j++)
                  if (filters[j] != '_')
                        f_tmp[k++] = filters[j];
            p_lg->filters = xstrdup (f_tmp);
            return p_name[0];
      }
}

#ifdef TEST

static void usage (int status)
{
      printf (_("usage: %s [-mcwfhV] file ...\n"), program_name);
      printf (_(
            "-m, --man                   parse as man page.\n"
            "-c, --cat                   parse as cat page.\n"
            "-w, --whatis                show whatis information.\n"
            "-f, --filters               show guessed series of "
                                  "preprocessing filters.\n"
            "-V, --version               show version.\n"
            "-h, --help                  show this usage message.\n"
            "\n"
            "The defaults are --man and --whatis.\n"));
      exit (status);
}

int main (int argc, char **argv)
{
      int c, option_index;
      int type = 0;
      int parse_man = 0, parse_cat = 0, show_whatis = 0, show_filters = 0;
      int some_failed = 0;

      program_name = xstrdup (basename (argv[0]));

      while ((c = getopt_long (argc, argv, args,
                         long_options, &option_index)) != -1) {
            switch (c) {
                  case 'm':
                        parse_man = 1;
                        break;
                  case 'c':
                        parse_cat = 1;
                        break;
                  case 'w':
                        show_whatis = 1;
                        break;
                  case 'f':
                        show_filters = 1;
                        break;
                  case 'V':
                        ver ();
                        break;
                  case 'h':
                        usage (OK);
                        break;
                  default:
                        usage (FAIL);
                        break;
            }
      }
      if (parse_man) {
            if (parse_cat) {
                  error (0, 0, _("-m -c: incompatible options"));
                  usage (FAIL);
            } else
                  type = 0;
      } else {
            if (parse_cat)
                  type = 1;
            else
                  type = 0;   /* default = man */
      }
      if (!show_whatis && !show_filters)
            show_whatis = 1;

      while (optind != argc) {
            lexgrog lg;
            const char *file;

            lg.type = type;

            if (STREQ (argv[optind], "-"))
                  file = argv[optind];
            else {
                  char *path, *pathend;
                  struct stat statbuf;

                  path = xstrdup (argv[optind]);
                  pathend = strrchr (path, '/');
                  if (pathend) {
                        *pathend = '\0';
                        pathend = strrchr (path, '/');
                        if (pathend && STRNEQ (pathend + 1, "man", 3))
                              *pathend = '\0';
                        else {
                              free (path);
                              path = NULL;
                        }
                  } else {
                        free (path);
                        path = NULL;
                  }

                  file = ult_src (argv[optind], path ? path : ".",
                              &statbuf, SO_LINK);
                  if (path)
                        free (path);
#ifdef COMP_SRC
                  if (file) {
                        char *ztemp = get_ztemp ();
                        if (ztemp)
                              file = ztemp;
                  }
#endif
            }

            if (file && find_name (file, "-", &lg)) {
                  printf ("%s", argv[optind]);
                  if (show_filters)
                        printf (" (%s)", lg.filters);
                  if (show_whatis)
                        printf (": \"%s\"", lg.whatis);
                  printf ("\n");
            } else {
                  printf ("%s: parse failed\n", argv[optind]);
                  some_failed = 1;
            }
            ++optind;
      }

      if (some_failed)
            return FATAL;
      else
            return OK;
}

#endif /* TEST */

#ifdef PROFILE
void rule_profile (void)
{
      int i, tot = 0;

      printf ("found NAME in %d man, %d cat pages\n", ctr[1], ctr[2]);
      for (i = 3; i <= YY_NUM_RULES; i++) 
            if (ctr[i]) {
                  printf ("rule[%d]: %d\n", i, ctr[i]);
                  tot += ctr[i];
            }
      printf ("Total rules executed: %d\n", tot);
}
#else
void rule_profile (void) {}
#endif


Generated by  Doxygen 1.6.0   Back to index