/media/sda-magnetic/david/Dok-15-2023-11-27/fernuni-hagen/cs-i-ii/old-cs-2-01/hiero/inst/HieroTeX/Seshnesu/seshl.c


/* A lexical scanner generated by flex */

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

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#include <stdio.h>
#include <errno.h>

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


#ifdef __cplusplus

#include <stdlib.h>
#ifndef _WIN32
#include <unistd.h>
#else
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
#endif

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

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

#else	/* ! __cplusplus */

#if __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

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

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

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


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

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

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

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

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

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

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

#define YY_END_OF_BUFFER_CHAR 0

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

typedef struct yy_buffer_state *YY_BUFFER_STATE;

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

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

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

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

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

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

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


struct yy_buffer_state
	{
	FILE *yy_input_file;

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

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

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

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

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

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

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

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

static YY_BUFFER_STATE yy_current_buffer = 0;

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


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

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


int yyleng;

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

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

void yyrestart YY_PROTO(( FILE *input_file ));

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

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

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

#define yy_new_buffer yy_create_buffer

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

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

#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)


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

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

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

#define YY_NUM_RULES 120
#define YY_END_OF_BUFFER 121
static yyconst short int yy_acclist[356] =
    {   0,
      121,    1,  120,    2,  120,    1,  120,    1,  120,  120,
        5,  120,  120,    6,  120,  115,  120,   32,  115,  120,
       32,   34,  120,   32,  114,  115,  120,   36,  115,  120,
      115,  120,   97,  115,  120,   99,  115,  120,   51,  115,
      120,   20,   51,  115,  120,  108,  115,  120,  109,  115,
      120,   39,  115,  120,  115,  120,  115,  120,   31,   32,
      115,  120,   20,   48,   51,  115,  120,   55,  115,  120,
       20,   51,  115,  120,   20,   51,  115,  120,   20,   51,
      115,  120,   40,  115,  120,   74,  115,  120,   30,   32,
      115,  120,   78,  115,  120,   62,  115,  120,   20,   51,

      115,  120,   20,   51,  115,  120,   13,   20,   51,  115,
      120,   12,   20,   51,  115,  120,   20,   51,  115,  120,
      115,  120,  102,  115,  120,  115,  120,   61,  115,  120,
       20,   51,  115,  120,   20,   51,  115,  120,   11,   20,
       51,  115,  120,   20,   51,  115,  120,  115,  120,  115,
      120,  117,  120,  117,  120,  118,  120,  118,  120,   28,
      120,   27,   28,  120,   27,  120,   28,  120,   25,   28,
      120,   24,   25,   28,  120,    5,    6,    6,   32,   36,
       99,  109,   39,   32,   33,   40,   78,   36,   38,   36,
       69,   98,   91,   60,   56,   94,   95,   96,   99,  100,

      101,   51,   73,   20,   51,   71,  108,  109,   39,  113,
       41,   22,   31,   32,   92,   20,   49,   51,   52,   20,
       50,   51,   17,   20,   51,   40,   74,   80,   81,   79,
       75,   77,   76,   30,   32,   63,   20,   21,   51,   20,
       51,   51,   20,   21,   51,   68,   72,   70,   66,   64,
       47,  104,   67,   20,   51,   53,   54,   46,   65,  116,
      119,   25,   24,   25,   95,   32,   38,   38,   36,   91,
       57,   94,   95,   96,   58,   59,  100,  101,  111,   42,
       43,   44,  112,   45,  110,   92,   91,   92,   93,   16,
       20,   51,   80,   85,   87,   86,   81,   88,   90,   89,

       79,   82,   84,   83,   75,   77,   76,   20,   21,   51,
        9,   51,   10,   14,   68,   72,   70,   66,   64,  105,
      107,  103,  106,  119,   95,   38,   35,   45,   91,   92,
       93,   85,   87,   86,   88,   90,   89,   82,   84,   83,
       15,   37,   35,   19,   18,   37,   29,   26,   23,    3,
        3,    7,    8,    4,    4
    } ;

static yyconst short int yy_accept[328] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    2,    4,    6,    8,   10,
       11,   13,   14,   16,   18,   21,   24,   28,   31,   33,
       36,   39,   42,   46,   49,   52,   55,   57,   59,   63,
       68,   71,   75,   79,   83,   86,   89,   93,   96,   99,
      103,  107,  112,  117,  121,  123,  126,  128,  131,  135,
      139,  144,  148,  150,  152,  154,  156,  158,  160,  162,
      165,  167,  169,  172,  176,  176,  176,  176,  177,  177,
      178,  179,  180,  181,  181,  181,  182,  182,  182,  183,
      184,  184,  186,  187,  188,  188,  188,  188,  189,  190,

      191,  192,  193,  194,  195,  196,  198,  198,  199,  199,
      199,  200,  201,  202,  203,  204,  206,  207,  208,  209,
      210,  211,  211,  211,  211,  212,  212,  212,  213,  215,
      216,  216,  219,  220,  223,  226,  227,  228,  229,  230,
      231,  232,  233,  234,  236,  237,  240,  242,  243,  243,
      246,  247,  248,  249,  250,  251,  252,  252,  253,  253,
      253,  253,  253,  253,  254,  256,  257,  258,  259,  260,
      261,  262,  262,  263,  265,  265,  265,  265,  266,  266,
      267,  268,  269,  270,  270,  271,  272,  274,  274,  275,
      276,  277,  278,  279,  280,  281,  282,  283,  284,  285,

      286,  287,  290,  293,  294,  295,  296,  297,  298,  299,
      300,  301,  302,  303,  304,  305,  306,  307,  308,  311,
      313,  314,  314,  315,  315,  316,  317,  318,  319,  320,
      320,  321,  321,  321,  322,  323,  323,  324,  324,  325,
      325,  325,  325,  325,  326,  327,  327,  328,  328,  329,
      332,  333,  334,  335,  336,  337,  338,  339,  340,  341,
      342,  342,  342,  342,  342,  342,  342,  342,  343,  344,
      344,  345,  345,  345,  346,  346,  346,  346,  346,  347,
      348,  348,  348,  348,  348,  348,  348,  348,  348,  348,
      348,  348,  348,  348,  348,  349,  350,  350,  350,  350,

      350,  350,  350,  350,  350,  350,  351,  351,  351,  351,
      352,  352,  352,  352,  352,  352,  352,  353,  353,  353,
      353,  353,  354,  354,  355,  356,  356
    } ;

static yyconst int 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,   10,   11,   12,   13,
       14,   15,   16,   17,   18,   19,   20,   21,   22,   23,
       24,   25,   25,   25,   25,   25,   25,   26,    1,   27,
       28,   29,   30,   31,   32,   33,   33,   34,   33,   35,
       33,   36,   33,   33,   33,   33,   33,   33,   37,   33,
       33,   38,   39,   33,   33,   33,   33,   33,   40,   33,
       41,   42,   43,   44,   45,   46,   47,   48,   49,   50,

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

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

static yyconst int yy_meta[69] =
    {   0,
        1,    2,    2,    2,    2,    1,    1,    1,    1,    1,
        3,    4,    1,    1,    1,    1,    1,    5,    4,    1,
        4,    4,    4,    4,    4,    1,    1,    2,    1,    1,
        6,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        1,    1,    7,    1,    8,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    1,    1,    1
    } ;

static yyconst short int yy_base[339] =
    {   0,
        0,    1,    8,   12,  650,  642,   57,    0,  632,  625,
      624,  623,  125,    0,  629, 1665, 1665,  566,    0, 1665,
      192,  619,  196, 1665,  240,    0,    0,  205,  583,  301,
      212,  581,    7,  259,  272,  286,  249,    0,  364,    8,
      603,    9,   12,   13,  290,  431,  334, 1665,  587,  363,
      569,  192,  567,    0,  336,  483,  569, 1665,  193,  260,
      191,  287,    0,  568, 1665,  548, 1665,  529, 1665, 1665,
     1665,  535,    0,  335,  530,  533,  528,  392,  571,  396,
      410,    0,  424,  535,  187,  469,  534,  527,  458,  488,
      197,  507,  520, 1665,  513,  519,  518,  535,  553,  597,

     1665, 1665,  564,  540,  422,  585,  508,  629,  534,  531,
      633,  641,  661,  507, 1665,  216, 1665,  668,  679,  688,
     1665,  531,  494,  493,  481,  211,  523,    0,  528,  697,
      476,  270, 1665,  273,  285,  706,  718,  725,  736,  757,
      792,  813,  820,    0, 1665,  174,  484,  169,  279,  376,
      824,  831,  842,  870,  875, 1665,  551,  572,  631,  471,
      832,  583,  883, 1665,  290, 1665, 1665,    0, 1665, 1665,
      881,  470,    0,  744,  474,  473,  469,  909,  458,  510,
      914,  958,  497,  767,  920, 1665,  966,  461,  970, 1665,
     1665,  988, 1016, 1665, 1665, 1665, 1665, 1665, 1020, 1665,

     1024, 1052,  301, 1070, 1074, 1081, 1102, 1109, 1120, 1131,
     1138, 1159, 1166, 1170, 1177, 1188, 1216, 1221,  379,  459,
     1665,  453, 1665,  438, 1225, 1253, 1260, 1271, 1282,  922,
      928,  448, 1178, 1269, 1665, 1290, 1296,  435, 1304,  445,
      436,  430,  423, 1326,  465, 1313, 1337, 1348, 1355, 1359,
     1387, 1392, 1420, 1424, 1431, 1442, 1453, 1475, 1481, 1665,
      457,  261,  458,  428,  427,  417,  409, 1486, 1514, 1508,
     1665,  410,  410, 1665,  407,  406,  390,  401, 1519, 1541,
      402,  396,  401,  399,  386,  383,  370,  374,  365,  349,
      349,  338,  332,  328, 1665, 1665,  332,  321,  311,  304,

      300,  300,  297,  297,  287,   23,  280,  285,  281,   27,
      260,  221,  223,  224,  212,  205, 1665,  178,  171,  160,
      172, 1665,  154,   36,  414, 1665, 1586, 1594, 1602, 1610,
     1618, 1626, 1632, 1637,    1, 1644, 1649, 1656
    } ;

static yyconst short int yy_def[339] =
    {   0,
      327,  327,  328,  328,  329,  329,  326,    7,  330,  330,
      331,  331,  326,   13,  326,  326,  326,  326,  326,  326,
      326,  332,  326,  326,  326,   25,   25,  326,  326,  326,
      326,  333,  334,  326,  326,  326,  326,  335,  326,  334,
      326,  334,  334,  334,  326,  326,   25,  326,  326,  334,
       50,   50,   50,   50,  326,  326,  326,  326,  334,  334,
      334,  334,  336,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  337,  337,  326,  326,  326,  326,  332,  326,
      326,   25,  326,  326,  326,  326,  326,  326,  326,  326,
      326,   39,  326,  326,  326,  326,  326,  326,  326,  326,

      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  333,  326,  334,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  335,   39,  326,
      326,  334,  326,  334,  334,  326,  326,  326,  326,  326,
      326,  326,  326,   47,  326,   50,   50,  333,  326,   50,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  334,  326,  326,  336,  326,  326,
      326,  326,  337,  337,  326,  326,  326,  326,  326,   92,
      326,  326,  100,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,

      326,  326,  334,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  334,  333,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  182,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  338,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  338,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,

      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,    0,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326
    } ;

static yyconst short int yy_nxt[1734] =
    {   0,
      326,  326,   17,   17,  128,  326,  326,   18,   18,   21,
       21,   21,   21,   21,   21,   21,   21,  114,  114,  114,
      326,  150,  114,  114,  310,  310,  132,  310,  310,  310,
      134,  310,  326,  135,  326,   21,  326,  325,  325,   21,
      325,   19,   19,  326,  326,  326,  116,   76,  326,  117,
      326,  326,   21,   77,  326,  326,   21,   24,   25,   26,
       27,   25,   28,   29,   30,   31,   24,   32,   33,   34,
       35,   36,   37,   38,   39,   40,   41,   42,   43,   44,
       43,   43,   45,   46,   47,   48,   49,   24,   50,   51,
       52,   51,   51,   53,   51,   51,   54,   55,   56,   57,

       58,   25,   43,   59,   43,   43,   43,   43,   43,   43,
       60,   43,   43,   43,   43,   61,   43,   43,   43,   43,
       62,   43,   24,   63,   64,   69,   70,   71,   70,   70,
       69,   69,   72,   69,   69,   69,   73,   69,   69,   69,
       69,   69,   69,   73,   69,   74,   74,   74,   74,   74,
       69,   69,   69,   69,   69,   73,   73,   73,   73,   73,
       73,   73,   73,   73,   73,   69,   69,   69,   69,   73,
       73,   73,   73,   73,   73,   73,   73,   73,   73,   73,
       73,   73,   73,   73,   73,   73,   73,   73,   73,   73,
       69,   69,   69,   78,   78,   78,   78,   81,   81,   81,

       81,  114,  148,  114,  103,  219,   98,   98,   98,   98,
       99,  326,  121,  111,  111,  111,  111,  149,  220,   78,
      116,  324,   98,   81,  165,  323,  114,  322,  198,  111,
      321,  320,  100,  326,  178,  326,   78,  108,  116,  111,
       81,   82,   82,   82,   82,   83,   84,   85,   86,   98,
       87,   88,  179,   89,   90,   91,  111,   92,  326,  112,
      118,  118,  118,  118,  121,   93,  199,   82,   94,  319,
      114,  318,  113,  119,  119,  119,  119,  317,  316,  166,
      114,   95,   96,  114,   82,  315,  118,  120,  120,  120,
      120,  136,  136,  136,  136,  114,  122,  114,  123,  119,

      114,  124,  326,  118,  125,  203,  167,   97,  102,  126,
      127,  114,  326,  120,  272,  326,  119,  136,  103,  314,
      104,  105,  105,  105,  105,  105,  273,  326,  221,  326,
      120,  238,  326,  313,  136,  144,  144,  144,  144,  222,
      312,  223,  151,  326,  311,  309,  152,  153,  106,  308,
      107,  108,  307,  306,  109,  174,  174,  174,  174,  174,
      305,  144,  304,  303,  110,  129,  129,  129,  129,   83,
       84,  130,   86,  114,   87,   88,  154,   89,  144,  131,
      302,   92,  301,  146,  146,  146,  146,  146,  300,  114,
      299,  129,   94,   78,   78,   78,   78,   81,   81,   81,

       81,  155,  298,  297,  296,  326,   96,  219,  129,  147,
      219,   81,   81,   81,   81,  325,  325,  224,  325,   78,
      295,  326,  116,   81,  294,   98,   98,   98,   98,   99,
      293,   97,  137,  137,  137,  137,   78,   81,  292,  291,
       81,   98,  105,  105,  105,  105,  105,  290,  137,  289,
      288,  100,  287,  286,   81,  285,  284,  283,  137,  119,
      119,  119,  119,  282,  281,  138,  139,  278,   98,  140,
      111,  111,  111,  111,  277,  137,  276,  275,  141,  274,
      271,  142,  181,  267,  266,  119,  111,  143,  156,  120,
      120,  120,  120,  265,  264,  263,  111,  262,  261,  260,

      157,  326,  119,  158,  158,  158,  158,  158,  180,  180,
      180,  180,  248,  111,   98,  120,  112,   85,  197,  243,
      159,  136,  136,  136,  136,  242,  241,  240,  232,  113,
      116,  179,  120,  160,  180,   85,   98,   98,   98,   98,
      200,  197,  196,  161,  162,  163,  195,  136,  194,  326,
      191,  180,   98,  190,  181,  181,  181,  181,  188,  186,
      169,  164,   98,  160,  136,  185,  185,  185,  185,  117,
      181,  158,  158,  158,  158,  158,  115,  101,   80,   98,
      182,  185,  177,  176,  175,  172,  187,  187,  187,  187,
      171,  185,  158,  158,  158,  158,  158,  181,   98,   98,

       98,   98,  187,  235,  235,  235,  235,  235,  185,  170,
      169,  164,  187,  116,  183,  116,  145,  184,  184,  184,
      184,  184,  133,  115,   98,  101,   80,   75,  326,  187,
      189,  189,  189,  189,  111,  111,  111,  111,   68,   68,
       66,   98,  192,  192,  192,  192,  189,   66,  230,   23,
      111,  231,  231,  231,  231,  231,  189,   23,  192,  326,
      111,  326,  193,  193,  193,  193,  326,  326,  192,  118,
      118,  118,  118,  189,  326,  326,  326,  111,  193,  326,
      119,  119,  119,  119,  326,  192,  326,  326,  193,  120,
      120,  120,  120,  326,  326,  118,  326,  326,  201,  201,

      201,  201,  326,  326,  326,  193,  119,  136,  136,  136,
      136,  326,  118,  326,  202,  120,  326,  326,  326,  137,
      137,  137,  137,  119,  201,  326,  204,  204,  204,  204,
      326,  326,  120,  136,  326,  137,  326,  208,  208,  208,
      208,  201,  204,  326,  178,  137,  326,  108,  326,  326,
      136,  326,  204,  208,  326,  326,  326,  326,  212,  212,
      212,  212,  137,  208,  174,  174,  174,  174,  174,  204,
      326,  326,  205,  326,  212,  206,  247,  326,  326,  326,
      208,  207,  326,  209,  212,  326,  210,  184,  184,  184,
      184,  184,  211,  216,  216,  216,  216,  326,  326,  326,

      326,  212,  326,  326,  213,  326,  326,  214,  326,  216,
      326,  326,  326,  215,  217,  217,  217,  217,  326,  216,
      326,  218,  218,  218,  218,  225,  225,  225,  225,  326,
      217,  326,  226,  226,  226,  226,  216,  218,  326,  326,
      217,  225,  326,  227,  227,  227,  227,  218,  226,  233,
      326,  225,  234,  234,  234,  234,  234,  217,  226,  227,
      326,  326,  326,  326,  218,  326,  326,  326,  225,  227,
      326,  228,  228,  228,  228,  226,  229,  229,  229,  229,
      326,  326,  239,  239,  239,  239,  227,  228,  326,  326,
      326,  326,  229,  326,  326,  326,  326,  228,  239,  326,

      236,  326,  229,  237,  237,  237,  237,  237,  239,  326,
      244,  244,  244,  244,  228,  181,  181,  181,  181,  229,
      326,  185,  185,  185,  185,  239,  244,  326,  326,  326,
      326,  181,  326,  326,  326,  326,  244,  185,  326,  326,
      326,  181,  231,  231,  231,  231,  231,  185,  231,  231,
      231,  231,  231,  244,  326,  326,  326,  326,  181,  181,
      181,  181,  181,  326,  185,  326,  326,  187,  187,  187,
      187,  189,  189,  189,  189,  245,  326,  326,  246,  246,
      246,  246,  246,  187,  326,  181,  326,  189,  326,  192,
      192,  192,  192,  187,  326,  326,  326,  189,  326,  326,

      326,  326,  181,  326,  326,  192,  326,  326,  326,  326,
      187,  326,  326,  326,  189,  192,  326,  193,  193,  193,
      193,  249,  249,  249,  249,  201,  201,  201,  201,  326,
      326,  326,  192,  193,  326,  326,  326,  249,  326,  326,
      326,  201,  326,  193,  326,  326,  326,  249,  326,  326,
      326,  201,  326,  250,  250,  250,  250,  326,  326,  326,
      193,  326,  326,  326,  249,  326,  326,  326,  201,  250,
      326,  204,  204,  204,  204,  251,  251,  251,  251,  250,
      326,  326,  252,  252,  252,  252,  326,  204,  326,  326,
      326,  251,  326,  326,  326,  326,  250,  204,  252,  326,

      326,  251,  326,  253,  253,  253,  253,  326,  252,  326,
      208,  208,  208,  208,  204,  326,  326,  326,  251,  253,
      326,  254,  254,  254,  254,  252,  208,  326,  326,  253,
      326,  326,  255,  255,  255,  255,  208,  254,  326,  256,
      256,  256,  256,  326,  326,  326,  253,  254,  255,  326,
      326,  326,  326,  208,  326,  256,  326,  326,  255,  326,
      212,  212,  212,  212,  254,  256,  326,  257,  257,  257,
      257,  258,  258,  258,  258,  255,  212,  326,  259,  259,
      259,  259,  256,  257,  326,  326,  212,  258,  326,  216,
      216,  216,  216,  257,  259,  326,  326,  258,  234,  234,

      234,  234,  234,  212,  259,  216,  326,  326,  326,  326,
      257,  326,  326,  326,  258,  216,  326,  217,  217,  217,
      217,  259,  218,  218,  218,  218,  225,  225,  225,  225,
      326,  326,  216,  217,  326,  326,  326,  326,  218,  326,
      326,  326,  225,  217,  326,  326,  326,  326,  218,  326,
      326,  326,  225,  326,  226,  226,  226,  226,  326,  326,
      217,  227,  227,  227,  227,  218,  326,  326,  326,  225,
      226,  326,  228,  228,  228,  228,  326,  227,  326,  326,
      226,  326,  326,  229,  229,  229,  229,  227,  228,  234,
      234,  234,  234,  234,  326,  326,  326,  226,  228,  229,

      326,  326,  326,  326,  227,  239,  239,  239,  239,  229,
      237,  237,  237,  237,  237,  228,  237,  237,  237,  237,
      237,  239,  268,  326,  326,  326,  229,  244,  244,  244,
      244,  239,  326,  246,  246,  246,  246,  246,  269,  269,
      269,  269,  326,  244,  326,  326,  326,  326,  239,  270,
      270,  270,  270,  244,  269,  326,  249,  249,  249,  249,
      250,  250,  250,  250,  269,  326,  326,  326,  326,  326,
      244,  326,  249,  326,  326,  270,  250,  326,  326,  326,
      326,  269,  249,  326,  326,  326,  250,  326,  251,  251,
      251,  251,  270,  252,  252,  252,  252,  326,  326,  249,

      326,  326,  326,  250,  251,  326,  326,  326,  326,  252,
      326,  326,  326,  326,  251,  326,  326,  326,  326,  252,
      326,  253,  253,  253,  253,  254,  254,  254,  254,  326,
      326,  251,  255,  255,  255,  255,  252,  253,  326,  326,
      326,  254,  326,  256,  256,  256,  256,  253,  255,  326,
      326,  254,  326,  326,  257,  257,  257,  257,  255,  256,
      326,  326,  326,  326,  253,  326,  326,  326,  254,  256,
      257,  326,  326,  326,  326,  255,  258,  258,  258,  258,
      257,  326,  259,  259,  259,  259,  256,  279,  279,  279,
      279,  326,  258,  326,  326,  326,  326,  257,  259,  326,

      326,  326,  258,  279,  326,  326,  326,  326,  259,  270,
      270,  270,  270,  279,  326,  269,  269,  269,  269,  258,
      279,  279,  279,  279,  326,  259,  326,  326,  326,  326,
      279,  269,  326,  326,  326,  270,  279,  326,  326,  326,
      326,  269,  326,  326,  326,  326,  279,  326,  326,  326,
      326,  326,  270,  326,  326,  326,  326,  326,  269,  326,
      326,  326,  326,  279,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,   16,   16,   16,   16,
       16,   16,   16,   16,   20,   20,   20,   20,   20,   20,

       20,   20,   22,   22,   22,   22,   22,   22,   22,   22,
       65,   65,   65,   65,   65,   65,   65,   65,   67,   67,
       67,   67,   67,   67,   67,   67,   79,   79,   79,   79,
       79,   79,   79,   79,  114,  114,  326,  326,  114,  116,
      116,  326,  326,  116,  168,  168,  168,  168,  326,  168,
      168,  168,  173,  326,  173,  326,  173,  280,  280,  280,
      326,  326,  326,  280,   15,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,

      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326
    } ;

static yyconst short int yy_chk[1734] =
    {   0,
        0,    0,    1,    2,  335,    0,    0,    1,    2,    3,
        3,    3,    3,    4,    4,    4,    4,   33,   40,   42,
        0,   54,   43,   44,  306,  306,   40,  306,  310,  310,
       42,  310,    0,   44,    0,    3,    0,  324,  324,    4,
      324,    1,    2,    0,    0,    0,   54,   19,    0,   33,
       40,   42,    3,   19,   43,   44,    4,    7,    7,    7,
        7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
        7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
        7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
        7,    7,    7,    7,    7,    7,    7,    7,    7,    7,

        7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
        7,    7,    7,    7,    7,    7,    7,    7,    7,    7,
        7,    7,    7,    7,    7,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,   13,   13,   13,
       13,   13,   13,   21,   21,   21,   21,   23,   23,   23,

       23,   61,   52,   59,   85,  146,   28,   28,   28,   28,
       28,  148,   91,   31,   31,   31,   31,   52,  148,   21,
      146,  323,   28,   23,   59,  321,  116,  320,  126,   31,
      319,  318,   28,   61,   85,   59,   21,   85,   52,   31,
       23,   25,   25,   25,   25,   25,   25,   25,   25,   28,
       25,   25,   91,   25,   25,   25,   31,   25,  116,   31,
       34,   34,   34,   34,   37,   25,  126,   25,   25,  316,
       60,  315,   31,   35,   35,   35,   35,  314,  313,   60,
      132,   25,   25,  134,   25,  312,   34,   36,   36,   36,
       36,   45,   45,   45,   45,  135,   37,   62,   37,   35,

      165,   37,   60,   34,   37,  135,   62,   25,   30,   37,
       37,  203,  132,   36,  262,  134,   35,   45,   30,  311,
       30,   30,   30,   30,   30,   30,  262,  135,  149,   62,
       36,  165,  165,  309,   45,   47,   47,   47,   47,  149,
      308,  149,   55,  203,  307,  305,   55,   55,   30,  304,
       30,   30,  303,  302,   30,   74,   74,   74,   74,   74,
      301,   47,  300,  299,   30,   39,   39,   39,   39,   39,
       39,   39,   39,   50,   39,   39,   55,   39,   47,   39,
      298,   39,  297,   50,   50,   50,   50,   50,  294,  219,
      293,   39,   39,   78,   78,   78,   78,   80,   80,   80,

       80,   55,  292,  291,  290,   50,   39,  150,   39,   50,
      219,   81,   81,   81,   81,  325,  325,  150,  325,   78,
      289,  219,  150,   80,  288,   83,   83,   83,   83,   83,
      287,   39,   46,   46,   46,   46,   78,   81,  286,  285,
       80,   83,  105,  105,  105,  105,  105,  284,   46,  283,
      282,   83,  281,  278,   81,  277,  276,  275,   46,   89,
       89,   89,   89,  273,  272,   46,   46,  267,   83,   46,
       86,   86,   86,   86,  266,   46,  265,  264,   46,  263,
      261,   46,  245,  243,  242,   89,   86,   46,   56,   90,
       90,   90,   90,  241,  240,  238,   86,  232,  224,  222,

       56,  220,   89,   56,   56,   56,   56,   56,   92,   92,
       92,   92,  188,   86,  183,   90,   86,  180,  179,  177,
       56,   93,   93,   93,   93,  176,  175,  172,  160,   86,
      147,  131,   90,   56,   92,  129,   98,   98,   98,   98,
      127,  125,  124,   56,   56,   56,  123,   93,  122,  114,
      110,   92,   98,  109,   99,   99,   99,   99,  107,  104,
       97,   96,   98,   95,   93,  103,  103,  103,  103,   88,
       99,  157,  157,  157,  157,  157,   87,   84,   79,   98,
       99,  103,   77,   76,   75,   72,  106,  106,  106,  106,
       68,  103,  158,  158,  158,  158,  158,   99,  100,  100,

      100,  100,  106,  162,  162,  162,  162,  162,  103,   66,
       64,   57,  106,   53,  100,   51,   49,  100,  100,  100,
      100,  100,   41,   32,  100,   29,   22,   18,   15,  106,
      108,  108,  108,  108,  111,  111,  111,  111,   12,   11,
       10,  100,  112,  112,  112,  112,  108,    9,  159,    6,
      111,  159,  159,  159,  159,  159,  108,    5,  112,    0,
      111,    0,  113,  113,  113,  113,    0,    0,  112,  118,
      118,  118,  118,  108,    0,    0,    0,  111,  113,    0,
      119,  119,  119,  119,    0,  112,    0,    0,  113,  120,
      120,  120,  120,    0,    0,  118,    0,    0,  130,  130,

      130,  130,    0,    0,    0,  113,  119,  136,  136,  136,
      136,    0,  118,    0,  130,  120,    0,    0,    0,  137,
      137,  137,  137,  119,  130,    0,  138,  138,  138,  138,
        0,    0,  120,  136,    0,  137,    0,  139,  139,  139,
      139,  130,  138,    0,  130,  137,    0,  130,    0,    0,
      136,    0,  138,  139,    0,    0,    0,    0,  140,  140,
      140,  140,  137,  139,  174,  174,  174,  174,  174,  138,
        0,    0,  138,    0,  140,  138,  184,    0,    0,    0,
      139,  138,    0,  139,  140,    0,  139,  184,  184,  184,
      184,  184,  139,  141,  141,  141,  141,    0,    0,    0,

        0,  140,    0,    0,  140,    0,    0,  140,    0,  141,
        0,    0,    0,  140,  142,  142,  142,  142,    0,  141,
        0,  143,  143,  143,  143,  151,  151,  151,  151,    0,
      142,    0,  152,  152,  152,  152,  141,  143,    0,    0,
      142,  151,    0,  153,  153,  153,  153,  143,  152,  161,
        0,  151,  161,  161,  161,  161,  161,  142,  152,  153,
        0,    0,    0,    0,  143,    0,    0,    0,  151,  153,
        0,  154,  154,  154,  154,  152,  155,  155,  155,  155,
        0,    0,  171,  171,  171,  171,  153,  154,    0,    0,
        0,    0,  155,    0,    0,    0,    0,  154,  171,    0,

      163,    0,  155,  163,  163,  163,  163,  163,  171,    0,
      178,  178,  178,  178,  154,  181,  181,  181,  181,  155,
        0,  185,  185,  185,  185,  171,  178,    0,    0,    0,
        0,  181,    0,    0,    0,    0,  178,  185,    0,    0,
        0,  181,  230,  230,  230,  230,  230,  185,  231,  231,
      231,  231,  231,  178,    0,    0,    0,    0,  181,  182,
      182,  182,  182,    0,  185,    0,    0,  187,  187,  187,
      187,  189,  189,  189,  189,  182,    0,    0,  182,  182,
      182,  182,  182,  187,    0,  182,    0,  189,    0,  192,
      192,  192,  192,  187,    0,    0,    0,  189,    0,    0,

        0,    0,  182,    0,    0,  192,    0,    0,    0,    0,
      187,    0,    0,    0,  189,  192,    0,  193,  193,  193,
      193,  199,  199,  199,  199,  201,  201,  201,  201,    0,
        0,    0,  192,  193,    0,    0,    0,  199,    0,    0,
        0,  201,    0,  193,    0,    0,    0,  199,    0,    0,
        0,  201,    0,  202,  202,  202,  202,    0,    0,    0,
      193,    0,    0,    0,  199,    0,    0,    0,  201,  202,
        0,  204,  204,  204,  204,  205,  205,  205,  205,  202,
        0,    0,  206,  206,  206,  206,    0,  204,    0,    0,
        0,  205,    0,    0,    0,    0,  202,  204,  206,    0,

        0,  205,    0,  207,  207,  207,  207,    0,  206,    0,
      208,  208,  208,  208,  204,    0,    0,    0,  205,  207,
        0,  209,  209,  209,  209,  206,  208,    0,    0,  207,
        0,    0,  210,  210,  210,  210,  208,  209,    0,  211,
      211,  211,  211,    0,    0,    0,  207,  209,  210,    0,
        0,    0,    0,  208,    0,  211,    0,    0,  210,    0,
      212,  212,  212,  212,  209,  211,    0,  213,  213,  213,
      213,  214,  214,  214,  214,  210,  212,    0,  215,  215,
      215,  215,  211,  213,    0,    0,  212,  214,    0,  216,
      216,  216,  216,  213,  215,    0,    0,  214,  233,  233,

      233,  233,  233,  212,  215,  216,    0,    0,    0,    0,
      213,    0,    0,    0,  214,  216,    0,  217,  217,  217,
      217,  215,  218,  218,  218,  218,  225,  225,  225,  225,
        0,    0,  216,  217,    0,    0,    0,    0,  218,    0,
        0,    0,  225,  217,    0,    0,    0,    0,  218,    0,
        0,    0,  225,    0,  226,  226,  226,  226,    0,    0,
      217,  227,  227,  227,  227,  218,    0,    0,    0,  225,
      226,    0,  228,  228,  228,  228,    0,  227,    0,    0,
      226,    0,    0,  229,  229,  229,  229,  227,  228,  234,
      234,  234,  234,  234,    0,    0,    0,  226,  228,  229,

        0,    0,    0,    0,  227,  239,  239,  239,  239,  229,
      236,  236,  236,  236,  236,  228,  237,  237,  237,  237,
      237,  239,  246,    0,    0,    0,  229,  244,  244,  244,
      244,  239,    0,  246,  246,  246,  246,  246,  247,  247,
      247,  247,    0,  244,    0,    0,    0,    0,  239,  248,
      248,  248,  248,  244,  247,    0,  249,  249,  249,  249,
      250,  250,  250,  250,  247,    0,    0,    0,    0,    0,
      244,    0,  249,    0,    0,  248,  250,    0,    0,    0,
        0,  247,  249,    0,    0,    0,  250,    0,  251,  251,
      251,  251,  248,  252,  252,  252,  252,    0,    0,  249,

        0,    0,    0,  250,  251,    0,    0,    0,    0,  252,
        0,    0,    0,    0,  251,    0,    0,    0,    0,  252,
        0,  253,  253,  253,  253,  254,  254,  254,  254,    0,
        0,  251,  255,  255,  255,  255,  252,  253,    0,    0,
        0,  254,    0,  256,  256,  256,  256,  253,  255,    0,
        0,  254,    0,    0,  257,  257,  257,  257,  255,  256,
        0,    0,    0,    0,  253,    0,    0,    0,  254,  256,
      257,    0,    0,    0,    0,  255,  258,  258,  258,  258,
      257,    0,  259,  259,  259,  259,  256,  268,  268,  268,
      268,    0,  258,    0,    0,    0,    0,  257,  259,    0,

        0,    0,  258,  268,    0,    0,    0,    0,  259,  270,
      270,  270,  270,  268,    0,  269,  269,  269,  269,  258,
      279,  279,  279,  279,    0,  259,    0,    0,    0,    0,
      268,  269,    0,    0,    0,  270,  279,    0,    0,    0,
        0,  269,  280,  280,  280,  280,  279,    0,    0,    0,
        0,    0,  270,    0,    0,    0,    0,    0,  269,    0,
        0,    0,    0,  279,    0,    0,    0,    0,  280,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,  280,  327,  327,  327,  327,
      327,  327,  327,  327,  328,  328,  328,  328,  328,  328,

      328,  328,  329,  329,  329,  329,  329,  329,  329,  329,
      330,  330,  330,  330,  330,  330,  330,  330,  331,  331,
      331,  331,  331,  331,  331,  331,  332,  332,  332,  332,
      332,  332,  332,  332,  333,  333,    0,    0,  333,  334,
      334,    0,    0,  334,  336,  336,  336,  336,    0,  336,
      336,  336,  337,    0,  337,    0,  337,  338,  338,  338,
        0,    0,    0,  338,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,

      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326,  326,  326,  326,  326,  326,  326,  326,
      326,  326,  326
    } ;

static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
static char *yy_full_match;
static int yy_lp;
#define REJECT \
{ \
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
yy_cp = yy_full_match; /* restore poss. backed-over text */ \
++yy_lp; \
goto find_rule; \
}
static int yy_more_flag = 0;
static int yy_more_len = 0;
#define yymore() (yy_more_flag = 1)
#define YY_MORE_ADJ yy_more_len
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "seshl.l"
#define INITIAL 0
#line 2 "seshl.l"
/* 	$Id: seshl.l,v 2.5 1995/06/07 11:27:47 rosmord Exp $	 */

#include "quadra.h"
#include "sesh.h"
#include "hache.h"
#include "fonctions.h"

#undef YYLMAX
#define YYLMAX 10240
#include <string.h>
#include <strings.h>
#include <stdio.h>

#define G(x) {yylval=find_sign(x); return HIEROGLYPHE;}
#define Commence(x) BEGIN(x); etat=x;

PRIVATE void computeShading(Shading *h);

extern union _Donnees find_sign(char *x, int sens); /* OK, c'est mal */
extern int signe_trouve;

extern TABLE definitions;

void traite();

char * nomdefine;

int dieze=0;
int couleur=0;
int signe_lu= FALSE;
int signe_deja_lu= FALSE;
int etat= INITIAL;
extern int numligne;
void TLIGNE();

/* Les ligatures */

char * les_ligatures[]= {
  "\\ligAROBDd ",
  "\\ligAROBD",
  "\\ligAROBDt",
  "\\ligAROBDra",
  "\\hierCC",
  "\\hierXX"
};

#define DEFINE0 1
#define DEFINE1 2
#define HieroText 3
#define TEXTEIMBR 4
#define COMMENTAIRE 5
#define InSignDecl 6


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#define YY_RULE_SETUP \
	YY_USER_ACTION

YY_DECL
	{
	register yy_state_type yy_current_state;
	register char *yy_cp, *yy_bp;
	register int yy_act;

#line 64 "seshl.l"

 	switch(etat)
	{ case INITIAL: BEGIN(INITIAL);break;
	  case HieroText: BEGIN(HieroText);break;
	  case InSignDecl: fprintf(stderr, "aaa\n"); BEGIN(InSignDecl); ; break;
	}
                                        /* infamous trick. # should have ONE meaning */
                                        if ( signe_lu )
                                        { 
                                           if (signe_deja_lu) 
                                              { signe_deja_lu = FALSE; signe_lu= FALSE; }
                                           else
                                              { signe_deja_lu= TRUE;}
                                        }


	if ( yy_init )
		{
		yy_init = 0;

#ifdef YY_USER_INIT
		YY_USER_INIT;
#endif

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

		if ( ! yyin )
			yyin = stdin;

		if ( ! yyout )
			yyout = stdout;

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

		yy_load_buffer_state();
		}

	while ( 1 )		/* loops until end-of-file is reached */
		{
		yy_more_len = 0;
		if ( yy_more_flag )
			{
			yy_more_len = yy_c_buf_p - yytext_ptr;
			yy_more_flag = 0;
			}
		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_state_ptr = yy_state_buf;
		*yy_state_ptr++ = yy_current_state;
yy_match:
		do
			{
			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*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 >= 327 )
					yy_c = yy_meta[(unsigned int) yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
			*yy_state_ptr++ = yy_current_state;
			++yy_cp;
			}
		while ( yy_base[yy_current_state] != 1665 );

yy_find_action:
		yy_current_state = *--yy_state_ptr;
		yy_lp = yy_accept[yy_current_state];
find_rule: /* we branch to this label when backing up */
		for ( ; ; ) /* until we find what rule we matched */
			{
			if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
				{
				yy_act = yy_acclist[yy_lp];
					{
					yy_full_match = yy_cp;
					break;
					}
				}
			--yy_cp;
			yy_current_state = *--yy_state_ptr;
			yy_lp = 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 1:
YY_RULE_SETUP
#line 79 "seshl.l"
{ECHO; return TEXTE;}
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 80 "seshl.l"
{ECHO; numligne++; return TEXTE;}
	YY_BREAK
case 3:
#line 82 "seshl.l"
case 4:
YY_RULE_SETUP
#line 82 "seshl.l"
{ TLIGNE();
	  Commence(HieroText); 
                                          signe_lu= FALSE;
                                          return DEBUTHIEROGS;}
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 87 "seshl.l"
BEGIN(DEFINE1);
	YY_BREAK
case 6:
YY_RULE_SETUP
#line 88 "seshl.l"
{ char *pt;
	char *s= strdup(yytext);
	TLIGNE();
	pt= s + yyleng;
	while (*(--pt) != '#');
	*pt= 0;
	stocke(nomdefine, s);
	Commence(HieroText);}
	YY_BREAK
case 7:
#line 98 "seshl.l"
case 8:
YY_RULE_SETUP
#line 98 "seshl.l"
{ TLIGNE(); Commence(INITIAL); return FINHIEROGS;}
	YY_BREAK
case 9:
#line 101 "seshl.l"
case 10:
YY_RULE_SETUP
#line 101 "seshl.l"
{yylval.une_donnee.texte= les_ligatures[0];
 /*  mieux vaudrait des noms symboliques */
	  signe_lu= TRUE;
	  return LIGATURE;
	}
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 107 "seshl.l"
return POINTROUGE;
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 108 "seshl.l"
return POINTNOIR;
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 110 "seshl.l"
{yylval.une_donnee.texte= les_ligatures[1];
	 signe_lu= TRUE;
	 return LIGATURE;}
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 114 "seshl.l"
{yylval.une_donnee.texte= les_ligatures[2];
                                          signe_lu= TRUE;
	 return LIGATURE;}
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 117 "seshl.l"
{yylval.une_donnee.texte= les_ligatures[3];
                                          signe_lu= TRUE;
	 return LIGATURE;}
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 120 "seshl.l"
{yylval.une_donnee.texte= les_ligatures[4];
                                         signe_lu= TRUE;
	 return LIGATURE;} 
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 123 "seshl.l"
{yylval.une_donnee.texte= les_ligatures[5];
              	 signe_lu= TRUE;
	 return LIGATURE;}
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 127 "seshl.l"
{ yylval.une_donnee =find_sign("aAv",0); 
	  if (!signe_trouve) {REJECT } 
	  else { signe_lu= TRUE; return HIEROGLYPHE;}
	}
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 132 "seshl.l"
{ yylval.une_donnee =find_sign("Y1v",0); 
	  if (!signe_trouve) {REJECT } 
	  else { signe_lu= TRUE; return HIEROGLYPHE;}
	}
	YY_BREAK
case 20:
#line 138 "seshl.l"
case 21:
YY_RULE_SETUP
#line 138 "seshl.l"
{ yylval.une_donnee =find_sign(yytext,0); 
	  if (!signe_trouve) {REJECT } 
	  else { signe_lu= TRUE; return HIEROGLYPHE;}
	}
	YY_BREAK
case 22:
YY_RULE_SETUP
#line 143 "seshl.l"
{traite(yytext+1);}
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 144 "seshl.l"
{Commence(InSignDecl); return SIGNDECL;}
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 145 "seshl.l"
{yylval.un_entier= atoi(yytext); fprintf(stderr, "\nHERE\n");return INTEGER;}
	YY_BREAK
case 25:
YY_RULE_SETUP
#line 146 "seshl.l"
{yylval.chaine = strdup(yytext); fprintf(stderr, "\nHERE1\n");return STRING;}
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 147 "seshl.l"
{Commence(INITIAL); return ENDDECL;}
	YY_BREAK
case 27:
YY_RULE_SETUP
#line 148 "seshl.l"
{fprintf(stderr, "espace\n");} 
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 149 "seshl.l"
{fprintf(stderr, "char\n");}
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 150 "seshl.l"
{ int i;
	  for (i=4; yytext[i] && (yytext[i] == ' ' || yytext[i]== '\t');
	       i++);
	  if  (yytext[i])
	  {
	    nomdefine=strdup(yytext+i);
	    BEGIN (DEFINE0);
	  }
	  else
	    yyerror("Mauvaise definition");
	}
	YY_BREAK
case 30:
#line 162 "seshl.l"
case 31:
YY_RULE_SETUP
#line 162 "seshl.l"
{ 
                                          yylval.un_separateur= S_intersignes; 
                                          return SEPARATEUR;
                                        }
	YY_BREAK
case 32:
#line 167 "seshl.l"
case 33:
YY_RULE_SETUP
#line 167 "seshl.l"
{
                                          TLIGNE(); 
                                          yylval.un_separateur= S_espace; 
                                          return SEPARATEUR;
                                        }
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 172 "seshl.l"
{
                                         numligne++;
                                         yylval.un_separateur= S_espace; 
                                         return SEPARATEUR;
                                        }
	YY_BREAK
case 35:
#line 179 "seshl.l"
case 36:
YY_RULE_SETUP
#line 179 "seshl.l"
{
                                          TLIGNE(); 
                                          yylval.un_separateur= S_finligne;
                                          return SEPARATEUR;
                                        }
	YY_BREAK
case 37:
#line 186 "seshl.l"
case 38:
YY_RULE_SETUP
#line 186 "seshl.l"
{ 
                                          TLIGNE();
                                          yylval.un_separateur= S_finpage;
                                          return SEPARATEUR;
                                        }
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 191 "seshl.l"
{TLIGNE(); return '*';}
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 192 "seshl.l"
{TLIGNE(); {return ':'; }}
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 193 "seshl.l"
BEGIN(TEXTEIMBR);
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 194 "seshl.l"
return DROITEGAUCHE;
	YY_BREAK
case 43:
YY_RULE_SETUP
#line 195 "seshl.l"
return GAUCHEDROITE;
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 196 "seshl.l"
return LEFTRIGHT;
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 197 "seshl.l"
{TLIGNE(); return RIGHTLEFT;}
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 199 "seshl.l"
{ yylval.une_donnee.texte= strdup(yytext+1);
	  return TEXTESUPER;
	}
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 202 "seshl.l"
return KERNING;
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 203 "seshl.l"
return POINT;
	YY_BREAK
case 49:
YY_RULE_SETUP
#line 204 "seshl.l"
return POINTPOINT;
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 205 "seshl.l"
return SMALLSPACE;
	YY_BREAK
case 51:
YY_RULE_SETUP
#line 206 "seshl.l"
{traite(yytext); /* les macros-definitions !!! */}
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 207 "seshl.l"
return HACHUREG;
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 208 "seshl.l"
return HACHUREH;
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 209 "seshl.l"
return HACHUREV;
	YY_BREAK
case 55:
YY_RULE_SETUP
#line 210 "seshl.l"
return HACHURET;
	YY_BREAK
case 56:
YY_RULE_SETUP
#line 211 "seshl.l"
{
  	  computeShading(&(yylval.shading));
	  return SHADING;
	}
	YY_BREAK
case 57:
YY_RULE_SETUP
#line 215 "seshl.l"
return HACHUREGA;
	YY_BREAK
case 58:
YY_RULE_SETUP
#line 216 "seshl.l"
return HACHUREHA ;
	YY_BREAK
case 59:
YY_RULE_SETUP
#line 217 "seshl.l"
return HACHUREVA;
	YY_BREAK
case 60:
YY_RULE_SETUP
#line 218 "seshl.l"
return HACHURETA;
	YY_BREAK
case 61:
YY_RULE_SETUP
#line 219 "seshl.l"
return HAPLOGRAPHIE;
	YY_BREAK
case 62:
YY_RULE_SETUP
#line 220 "seshl.l"
return LACUNE;
	YY_BREAK
case 63:
YY_RULE_SETUP
#line 221 "seshl.l"
return  LIGNELACUNE;
	YY_BREAK
case 64:
YY_RULE_SETUP
#line 222 "seshl.l"
{TLIGNE(); return DSTSUPERFETATOIRE;}
	YY_BREAK
case 65:
YY_RULE_SETUP
#line 223 "seshl.l"
{TLIGNE(); return FSTSUPERFETATOIRE;}
	YY_BREAK
case 66:
YY_RULE_SETUP
#line 224 "seshl.l"
{TLIGNE(); return DSTEFFACE;}
	YY_BREAK
case 67:
YY_RULE_SETUP
#line 225 "seshl.l"
{TLIGNE(); return FSTEFFACE;}
	YY_BREAK
case 68:
YY_RULE_SETUP
#line 226 "seshl.l"
{TLIGNE(); return  DSTDISPARU ;}
	YY_BREAK
case 69:
YY_RULE_SETUP
#line 227 "seshl.l"
{TLIGNE(); return  FSTDISPARU ;}
	YY_BREAK
case 70:
YY_RULE_SETUP
#line 228 "seshl.l"
{TLIGNE(); return  DSTRAJOUTSCRIBE;}
	YY_BREAK
case 71:
YY_RULE_SETUP
#line 229 "seshl.l"
{TLIGNE(); return  FSTRAJOUTSCRIBE;}
	YY_BREAK
case 72:
YY_RULE_SETUP
#line 230 "seshl.l"
{TLIGNE(); return  DSTRAJOUTAUTEUR;}
	YY_BREAK
case 73:
YY_RULE_SETUP
#line 231 "seshl.l"
{TLIGNE(); return  FSTRAJOUTAUTEUR;}
	YY_BREAK
case 74:
YY_RULE_SETUP
#line 232 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_carto; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 75:
YY_RULE_SETUP
#line 233 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_debcarto; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 76:
YY_RULE_SETUP
#line 234 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_milcarto; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 77:
YY_RULE_SETUP
#line 235 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_fincarto; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 78:
YY_RULE_SETUP
#line 236 "seshl.l"
{TLIGNE(); return CARTF;}
	YY_BREAK
case 79:
YY_RULE_SETUP
#line 237 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_serekh; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 80:
YY_RULE_SETUP
#line 238 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_enceinte; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 81:
YY_RULE_SETUP
#line 239 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_chateau; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 82:
YY_RULE_SETUP
#line 240 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_debserekh; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 83:
YY_RULE_SETUP
#line 241 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_milserekh; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 84:
YY_RULE_SETUP
#line 242 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_finserekh; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 85:
YY_RULE_SETUP
#line 243 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_debenceinte; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 86:
YY_RULE_SETUP
#line 244 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_milenceinte; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 87:
YY_RULE_SETUP
#line 245 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_finenceinte; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 88:
YY_RULE_SETUP
#line 246 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_debchateau; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 89:
YY_RULE_SETUP
#line 247 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_milchateau; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 90:
YY_RULE_SETUP
#line 248 "seshl.l"
{TLIGNE(); yylval.un_typegroupe= S_finchateau; return DEBUTCONSTRUCTION;}
	YY_BREAK
case 91:
#line 250 "seshl.l"
case 92:
#line 251 "seshl.l"
case 93:
YY_RULE_SETUP
#line 251 "seshl.l"
{TLIGNE(); dieze=1-dieze; /* ne compliquons pas la grammaire */
	  if (dieze==1) return DIEZE0;
	  else return DIEZE1;}
	YY_BREAK
case 94:
YY_RULE_SETUP
#line 254 "seshl.l"
{TLIGNE(); if (signe_lu) REJECT; dieze=1-dieze; return DIEZE0;}
	YY_BREAK
case 95:
YY_RULE_SETUP
#line 255 "seshl.l"
{TLIGNE(); dieze=1-dieze; return DIEZE0;}
	YY_BREAK
case 96:
YY_RULE_SETUP
#line 256 "seshl.l"
{TLIGNE(); dieze=1-dieze; return DIEZE1;}
	YY_BREAK
case 97:
YY_RULE_SETUP
#line 257 "seshl.l"
{if (signe_lu) return OVERWRITE; else REJECT;}
	YY_BREAK
case 98:
YY_RULE_SETUP
#line 258 "seshl.l"
{if (signe_lu) return OVERWRITE; else REJECT;}
	YY_BREAK
case 99:
YY_RULE_SETUP
#line 260 "seshl.l"
{TLIGNE(); couleur=1-couleur; /* ne compliquons pas la grammaire */
	  if (couleur==1) return COULEUR0;
	  else return COULEUR1;}
	YY_BREAK
case 100:
YY_RULE_SETUP
#line 263 "seshl.l"
{TLIGNE(); couleur=1; return COULEUR1;}
	YY_BREAK
case 101:
YY_RULE_SETUP
#line 264 "seshl.l"
{TLIGNE(); couleur=0; return COULEUR0;}
	YY_BREAK
case 102:
YY_RULE_SETUP
#line 266 "seshl.l"
{return REVERT;}
	YY_BREAK
case 103:
YY_RULE_SETUP
#line 267 "seshl.l"
{
                                          yylval.un_entier= atoi(yytext+2); 
                                          return SIZE;  
                                        }
	YY_BREAK
case 104:
YY_RULE_SETUP
#line 271 "seshl.l"

	YY_BREAK
case 105:
YY_RULE_SETUP
#line 272 "seshl.l"
{
                                          yylval.un_entier= atoi(yytext+2); 
                                          return ROTATION;  
                                        }
	YY_BREAK
case 106:
YY_RULE_SETUP
#line 276 "seshl.l"

	YY_BREAK
case 107:
YY_RULE_SETUP
#line 277 "seshl.l"
{
	  yylval.un_entier= 360-atoi(yytext+2)* 90; 
                                          return ROTATION;  
	}
	YY_BREAK
case 108:
YY_RULE_SETUP
#line 281 "seshl.l"
{TLIGNE(); return '(';}
	YY_BREAK
case 109:
YY_RULE_SETUP
#line 282 "seshl.l"
{TLIGNE(); return ')';}
	YY_BREAK
case 110:
YY_RULE_SETUP
#line 284 "seshl.l"

	YY_BREAK
case 111:
YY_RULE_SETUP
#line 285 "seshl.l"

	YY_BREAK
case 112:
YY_RULE_SETUP
#line 286 "seshl.l"

	YY_BREAK
case 113:
YY_RULE_SETUP
#line 287 "seshl.l"
{TLIGNE(); BEGIN(COMMENTAIRE);}
	YY_BREAK
case 114:
YY_RULE_SETUP
#line 288 "seshl.l"
;
	YY_BREAK
case 115:
YY_RULE_SETUP
#line 289 "seshl.l"
return yytext[0];
	YY_BREAK
case 116:
YY_RULE_SETUP
#line 291 "seshl.l"
{ yylval.une_donnee.texte= strdup(yytext);
	  yylval.une_donnee.texte[strlen(yylval.une_donnee.texte)-2]=0;
	  return ROMAIN;
	}
	YY_BREAK
case 117:
YY_RULE_SETUP
#line 295 "seshl.l"
{TLIGNE(); yymore(); }
	YY_BREAK
case 118:
YY_RULE_SETUP
#line 297 "seshl.l"
{TLIGNE();}
	YY_BREAK
case 119:
YY_RULE_SETUP
#line 298 "seshl.l"
{TLIGNE(); BEGIN(HieroText);}
	YY_BREAK
case 120:
YY_RULE_SETUP
#line 300 "seshl.l"
ECHO;
	YY_BREAK
			case YY_STATE_EOF(INITIAL):
			case YY_STATE_EOF(DEFINE0):
			case YY_STATE_EOF(DEFINE1):
			case YY_STATE_EOF(HieroText):
			case YY_STATE_EOF(TEXTEIMBR):
			case YY_STATE_EOF(COMMENTAIRE):
			case YY_STATE_EOF(InSignDecl):
				yyterminate();

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

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

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

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

			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state();

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

			yy_next_state = yy_try_NUL_trans( yy_current_state );

			yy_bp = yytext_ptr + YY_MORE_ADJ;

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

			else
				{
				yy_cp = yy_c_buf_p;
				goto yy_find_action;
				}
			}

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

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

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

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

			case EOB_ACT_CONTINUE_SCAN:
				yy_c_buf_p =
					yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state();

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

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

				yy_current_state = yy_get_previous_state();

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

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


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

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

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

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

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

	/* Try to read more data. */

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

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

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

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

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

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

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

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

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

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

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

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

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

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

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

		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

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

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

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

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

	yytext_ptr = &yy_current_buffer->yy_ch_buf[0];

	return ret_val;
	}


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

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

	yy_current_state = yy_start;
	yy_state_ptr = yy_state_buf;
	*yy_state_ptr++ = yy_current_state;

	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);
		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 >= 327 )
				yy_c = yy_meta[(unsigned int) yy_c];
			}
		yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
		*yy_state_ptr++ = yy_current_state;
		}

	return yy_current_state;
	}


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

#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
	{
	register int yy_is_jam;

	register YY_CHAR yy_c = 1;
	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 >= 327 )
			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 == 326);
	if ( ! yy_is_jam )
		*yy_state_ptr++ = yy_current_state;

	return yy_is_jam ? 0 : yy_current_state;
	}


#ifndef YY_NO_UNPUT
#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
	{
	register char *yy_cp = yy_c_buf_p;

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

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

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

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

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

	*--yy_cp = (char) c;


	yytext_ptr = yy_bp;
	yy_hold_char = *yy_cp;
	yy_c_buf_p = yy_cp;
	}
#endif	/* ifndef YY_NO_UNPUT */


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

	*yy_c_buf_p = yy_hold_char;

	if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
		{
		/* yy_c_buf_p now points to the character we want to return.
		 * If this occurs *before* the EOB characters, then it's a
		 * valid NUL; if not, then we've hit the end of the buffer.
		 */
		if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			/* This was really a NUL. */
			*yy_c_buf_p = '\0';

		else
			{ /* need more input */
			int offset = yy_c_buf_p - yytext_ptr;
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
				{
				case EOB_ACT_LAST_MATCH:
					/* This happens because yy_g_n_b()
					 * sees that we've accumulated a
					 * token and flags that we need to
					 * try matching the token before
					 * proceeding.  But for input(),
					 * there's no matching to consider.
					 * So convert the EOB_ACT_LAST_MATCH
					 * to EOB_ACT_END_OF_FILE.
					 */

					/* Reset buffer status. */
					yyrestart( yyin );

					/* fall through */

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

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

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

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


	return c;
	}


#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
	{
	if ( ! yy_current_buffer )
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );

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


#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
	{
	if ( yy_current_buffer == new_buffer )
		return;

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

	yy_current_buffer = new_buffer;
	yy_load_buffer_state();

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


#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
	{
	yy_n_chars = yy_current_buffer->yy_n_chars;
	yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
	yyin = yy_current_buffer->yy_input_file;
	yy_hold_char = *yy_c_buf_p;
	}


#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
	{
	YY_BUFFER_STATE b;

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

	b->yy_buf_size = size;

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

	b->yy_is_our_buffer = 1;

	yy_init_buffer( b, file );

	return b;
	}


#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
	{
	if ( ! b )
		return;

	if ( b == yy_current_buffer )
		yy_current_buffer = (YY_BUFFER_STATE) 0;

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

	yy_flex_free( (void *) b );
	}


#ifndef _WIN32
#include <unistd.h>
#else
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
#endif

#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif


	{
	yy_flush_buffer( b );

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

#if YY_ALWAYS_INTERACTIVE
	b->yy_is_interactive = 1;
#else
#if YY_NEVER_INTERACTIVE
	b->yy_is_interactive = 0;
#else
	b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
#endif
	}


#ifdef YY_USE_PROTOS
void yy_flush_buffer( YY_BUFFER_STATE b )
#else
void yy_flush_buffer( b )
YY_BUFFER_STATE b;
#endif

	{
	if ( ! b )
		return;

	b->yy_n_chars = 0;

	/* We always need two end-of-buffer characters.  The first causes
	 * a transition to the end-of-buffer state.  The second causes
	 * a jam in that state.
	 */
	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;

	b->yy_buf_pos = &b->yy_ch_buf[0];

	b->yy_at_bol = 1;
	b->yy_buffer_status = YY_BUFFER_NEW;

	if ( b == yy_current_buffer )
		yy_load_buffer_state();
	}


#ifndef YY_NO_SCAN_BUFFER
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
#else
YY_BUFFER_STATE yy_scan_buffer( base, size )
char *base;
yy_size_t size;
#endif
	{
	YY_BUFFER_STATE b;

	if ( size < 2 ||
	     base[size-2] != YY_END_OF_BUFFER_CHAR ||
	     base[size-1] != YY_END_OF_BUFFER_CHAR )
		/* They forgot to leave room for the EOB's. */
		return 0;

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

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

	yy_switch_to_buffer( b );

	return b;
	}
#endif


#ifndef YY_NO_SCAN_STRING
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
#else
YY_BUFFER_STATE yy_scan_string( yy_str )
yyconst char *yy_str;
#endif
	{
	int len;
	for ( len = 0; yy_str[len]; ++len )
		;

	return yy_scan_bytes( yy_str, len );
	}
#endif


#ifndef YY_NO_SCAN_BYTES
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
#else
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
yyconst char *bytes;
int len;
#endif
	{
	YY_BUFFER_STATE b;
	char *buf;
	yy_size_t n;
	int i;

	/* Get memory for full buffer, including space for trailing EOB's. */
	n = len + 2;
	buf = (char *) yy_flex_alloc( n );
	if ( ! buf )
		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );

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

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

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

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

	return b;
	}
#endif


#ifndef YY_NO_PUSH_STATE
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
	{
	if ( yy_start_stack_ptr >= yy_start_stack_depth )
		{
		yy_size_t new_size;

		yy_start_stack_depth += YY_START_STACK_INCR;
		new_size = yy_start_stack_depth * sizeof( int );

		if ( ! yy_start_stack )
			yy_start_stack = (int *) yy_flex_alloc( new_size );

		else
			yy_start_stack = (int *) yy_flex_realloc(
					(void *) yy_start_stack, new_size );

		if ( ! yy_start_stack )
			YY_FATAL_ERROR(
			"out of memory expanding start-condition stack" );
		}

	yy_start_stack[yy_start_stack_ptr++] = YY_START;

	BEGIN(new_state);
	}
#endif


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

	BEGIN(yy_start_stack[yy_start_stack_ptr]);
	}
#endif


#ifndef YY_NO_TOP_STATE
static int yy_top_state()
	{
	return yy_start_stack[yy_start_stack_ptr - 1];
	}
#endif

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

#ifdef YY_USE_PROTOS
static void yy_fatal_error( yyconst char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
	{
	(void) fprintf( stderr, "%s\n", msg );
	exit( YY_EXIT_FAILURE );
	}



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

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


/* Internal utility routines. */

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

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

	return n;
	}
#endif


#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
	{
	return (void *) malloc( size );
	}

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

#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
	{
	free( ptr );
	}

#if YY_MAIN
int main()
	{
	yylex();
	return 0;
	}
#endif
#line 300 "seshl.l"


void traite(texte)
     char * texte;
{
  int i;
  char *result;
  if ((result= trouve(texte, definitions)))
    {
      for (i=strlen(result) -1; i> -1; i--)
        unput(result[i]);		
    }
  else
  {
    char toto[300];
    sprintf(toto, "texte non reconnu: %s", texte);
    yyerror(toto);
  }
}

void TLIGNE()
{
  char *s;
  s= yytext;
  while ((s= strchr(s, '\n')))
  {
    numligne++;
    s++;
  }
}

PRIVATE void
computeShading(Shading *h)
{
  int i;
  *h= NOSHADING;
  for (i=1; i< yyleng; i++)
    switch(yytext[i])
      {
      case '1':
        *h |= SHADING1;
        break;
      case '2':
        *h |= SHADING2;
        break;
      case '3':
        *h |= SHADING3;
        break;
      case '4':
        *h |= SHADING4;
        break;
      }
}

/* 
 * Local Variables:
 * mode: c
 * tab-width: 40
 * End:
 */