/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /home/daffy/u0/vern/flex/flex-2.4.7/RCS/flex.skl,v 1.2 94/08/03 11:13:24 vern Exp $
 */

#define FLEX_SCANNER

#include <stdio.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 __BORLANDC__
#include <unistd.h>
#else /* __BORLANDC__ */
#include <io.h>
#endif /* __BORLANDC__ */

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

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

#else	/* ! __cplusplus */

#ifdef __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

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


#ifdef __TURBOC__
#define YY_USE_CONST
#endif


#ifndef YY_USE_CONST
#ifndef const
#define const
#endif
#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.
 */
#define YY_START ((yy_start - 1) / 2)

/* 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".  Now included
 * only for backward compatibility with previous versions of flex.
 */
#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;

#ifdef __cplusplus
extern "C" {
#endif
	extern int yywrap YY_PROTO(( void ));
#ifdef __cplusplus
	}
#endif

#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_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 )


struct yy_buffer_state
	{
	FILE *yy_input_file;

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

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

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

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

static void yyunput YY_PROTO(( int c, char *buf_ptr ));
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 ));

static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
static void yy_push_state YY_PROTO(( int new_state ));
static void yy_pop_state YY_PROTO(( void ));
static int yy_top_state YY_PROTO(( void ));

#ifndef __BORLANDC__
static void *yy_flex_alloc YY_PROTO(( unsigned int ));
static void *yy_flex_realloc YY_PROTO(( void *, unsigned int ));
#else /* __BORLANDC__ */
static void *yy_flex_alloc YY_PROTO(( size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, size_t ));
#endif /* __BORLANDC__ */
static void yy_flex_free YY_PROTO(( void * ));

#define yy_new_buffer yy_create_buffer

#define INITIAL 0
#define ITEXT 1
#define DCOMMAND 2
typedef unsigned char YY_CHAR;
typedef int yy_state_type;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
extern char *yytext;
#define yytext_ptr yytext

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

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

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(( const char msg[] ));

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

#define YY_END_OF_BUFFER 208
static const short int yy_accept[655] =
    {   0,
        0,    0,    0,    0,    0,    0,  208,  206,  205,  206,
        4,  206,  126,  122,  123,  126,    3,  126,    8,   42,
       20,   32,   25,   11,  126,   29,   66,   79,   46,   23,
       73,  126,   40,   13,    2,  125,    6,   56,  100,   49,
       19,   54,   31,   64,    9,   36,   26,   67,   57,   51,
       22,   52,   27,   59,   63,   47,   12,   60,   69,   58,
       37,  126,  116,  101,  117,   85,   86,   87,   88,   89,
       90,   91,   92,   93,   94,   95,   96,   97,   98,   99,
      104,  105,  108,  109,  110,  111,  112,  113,  114,  115,
      118,  119,  120,  121,  129,  129,    4,  128,  127,  129,

        5,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    1,    0,    0,    0,    0,    0,    0,    0,
       43,   83,   84,   82,   81,   80,   78,    0,   44,   70,
       39,    0,   33,   76,   74,    0,    0,   41,    7,   21,
       24,   55,   35,   50,   30,   10,   38,   28,    0,   65,
       72,   71,   53,   62,   48,   14,  124,  102,  103,  106,
      107,  127,    5,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,   45,   75,   18,   17,   16,   15,
       77,   34,   68,   61,    0,    0,    0,    0,    0,    0,

        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,  134,    0,    0,    0,    0,    0,
      148,    0,  136,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,  178,    0,    0,    0,  180,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,

        0,    0,  134,    0,    0,    0,  130,    0,    0,    0,
      148,    0,    0,    0,  136,    0,    0,  142,  203,    0,
        0,    0,    0,    0,    0,    0,    0,  178,    0,    0,
      174,    0,    0,  180,    0,    0,  186,  140,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
        0,    0,    0,    0,  130,    0,    0,  150,    0,  132,
        0,    0,    0,    0,    0,  142,    0,    0,    0,  184,
        0,    0,    0,    0,    0,    0,    0,    0,  174,    0,
        0,  176,    0,    0,    0,  186,    0,    0,  140,    0,
        0,    0,    0,  135,    0,    0,    0,    0,  149,    0,

      137,    0,  146,    0,    0,    0,    0,    0,    0,  150,
        0,    0,    0,  132,    0,    0,    0,    0,  138,    0,
        0,    0,    0,    0,  184,    0,    0,    0,  179,    0,
        0,    0,  181,    0,    0,    0,    0,  176,    0,    0,
      182,    0,    0,    0,    0,    0,    0,    0,    0,  135,
      131,    0,    0,    0,  149,    0,  137,  143,  146,    0,
        0,    0,  154,  204,    0,    0,    0,    0,    0,  144,
        0,    0,    0,  161,  138,    0,    0,    0,  155,    0,
        0,    0,    0,    0,    0,  179,  175,    0,    0,  181,
        0,  189,    0,    0,    0,    0,  182,    0,    0,    0,

      190,    0,    0,    0,    0,  141,    0,  131,  151,    0,
      133,    0,  143,    0,    0,  164,  154,    0,    0,  152,
        0,    0,  144,    0,    0,    0,    0,  172,  161,    0,
        0,  165,  155,    0,  158,    0,    0,    0,  185,  175,
      177,    0,  195,  189,    0,  187,    0,    0,    0,    0,
      196,  190,    0,  193,    0,  157,  141,  147,  151,    0,
      133,  139,    0,    0,  164,    0,  163,  152,    0,  162,
        0,    0,    0,  153,  172,    0,    0,  165,  169,  158,
        0,    0,  192,  185,  177,  183,  195,  194,  187,    0,
      188,    0,    0,  196,  200,  193,  168,  157,  147,  145,

      139,    0,  160,    0,  163,  173,  162,    0,    0,  166,
      153,    0,  156,  169,    0,  199,  192,  183,  194,  197,
      188,    0,  191,  200,  168,  145,  171,  160,    0,  173,
        0,  159,  166,  167,  156,    0,  199,  197,  198,  191,
      171,    0,  170,  159,  167,    0,  198,    0,  170,  201,
        0,    0,  202,    0
    } ;

static const int yy_ec[256] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    2,    1,    1,    4,    1,    5,    1,    1,    1,
        1,    1,    1,    1,    6,    7,    1,    8,    8,    8,
        8,    8,    8,    8,    8,    8,    8,    1,    1,    1,
        9,    1,    1,    1,   10,   11,   11,   12,   13,   11,
       14,   15,   16,   17,   18,   19,   20,   21,   22,   11,
       11,   23,   24,   25,   26,   11,   11,   11,   27,   11,
        1,   28,    1,   29,   30,    1,   31,   32,   33,   34,

       35,   36,   37,   38,   39,   40,   41,   42,   43,   44,
       45,   46,   47,   48,   49,   50,   51,   52,   11,   53,
       54,   55,   56,    1,   57,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,   58,    1,
        1,    1,    1,   59,    1,    1,   60,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,   61,    1,   62,   63,   64,   65,    1,
       66,   67,   68,   69,   70,   71,   72,   73,   74,   75,
       76,   77,   78,   79,   80,   81,   82,   83,   84,   85,
        1,   86,   87,   88,   89
    } ;

static const int yy_meta[90] =
    {   0,
        1,    1,    1,    1,    1,    2,    2,    2,    1,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    3,    1,    4,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    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 const short int yy_base[693] =
    {   0,
        0,    3,   31,    0,  120,    0,  894,  895,  895,  206,
      895,  226,  895,  895,  895,  242,  895,  204,  867,  854,
      895,  864,  895,  895,  869,  895,  860,  895,  859,  867,
        0,  863,  847,  895,  262,  895,  181,  846,  845,  844,
      895,  895,  843,  895,  841,  841,  173,  844,  895,  185,
      895,  839,  895,  895,  838,  837,  823,  895,  895,  895,
      895,  816,  895,  895,  895,  895,  895,  895,  895,  895,
      895,  895,  895,  895,  895,  895,  895,  895,  895,  895,
      834,  833,  832,  831,  895,  895,  895,  895,  895,  895,
      895,  895,  895,  895,  895,  278,  895,  895,    0,  298,

      866,  832,  822,  814,  825,  180,  832,  831,  813,  829,
      184,  810,  895,  823,  813,  817,  811,  823,  822,  192,
      814,  895,  895,  895,  895,  895,  895,  831,  895,  895,
      895,  197,  895,  895,  895,  214,  834,  895,  895,  895,
      895,  895,  811,  895,  895,  895,  895,  895,  810,  895,
      895,  895,  895,  809,  895,  895,  895,  895,  895,  895,
      895,    0,  844,  801,  810,  803,  798,  797,  806,  795,
      186,  799,  793,  793,  793,  799,  789,  798,  787,  796,
      781,  784,  784,  784,  895,  895,  895,  895,  895,  895,
      895,  895,  895,  895,  788,  312,  793,  789,  777,  782,

      776,  788,  787,  763,  767,  776,  763,  217,  776,  320,
      778,  772,  779,  760,  769,  756,  775,  770,  753,  764,
      758,  770,  769,  751,  767,  198,  749,  757,  747,  763,
      762,  738,  741,  759,  748,  746,  750,  737,  747,  753,
      748,  743,  737,  749,  748,  747,  738,  745,  725,  733,
      731,  735,  729,  726,  729,  724,  733,  722,  212,  726,
      720,  720,  720,  730,  260,  725,  715,  724,  726,  718,
      268,  707,  270,  703,  700,  707,  709,  706,  705,  714,
      699,  702,  702,  286,  700,  705,  694,  296,  690,  701,
      702,  707,  703,  697,  691,  703,  702,  678,  682,  691,

      678,  678,  725,  681,  689,  235,  306,  693,  681,  683,
      719,  675,  683,  679,  715,  671,  679,  329,  895,  666,
      674,  675,  677,  671,  678,  659,  668,  704,  660,  668,
      336,  664,  663,  699,  655,  663,  337,  338,  667,  649,
      657,  664,  663,  639,  642,  660,  649,  647,  651,  648,
      642,  642,  635,  645,  680,  636,  644,  344,  648,  352,
      634,  634,  626,  631,  631,  671,  627,  635,  620,  354,
      638,  629,  636,  616,  624,  622,  619,  619,  659,  615,
      623,  358,  608,  613,  613,  653,  609,  617,  650,  606,
      614,  607,  617,  645,  602,  611,  613,  605,  640,  593,

      638,  588,  362,  588,  628,  583,  590,  590,  590,  630,
      586,  594,  586,  626,  582,  590,  575,  615,  364,  573,
      613,  577,  577,  576,  616,  572,  580,  573,  612,  569,
      574,  563,  608,  559,  599,  563,  563,  603,  559,  567,
      369,  552,  592,  556,  556,  554,  554,  557,  545,  592,
      591,  561,  549,  551,  587,  549,  585,  584,  583,  539,
      547,  573,    0,  895,  533,  530,  570,  534,  534,  376,
      532,  532,  565,    0,  571,  527,  535,  561,    0,  519,
      559,  536,  522,  522,  525,  561,  560,  522,  521,  557,
      549,    0,  507,  547,  511,  511,  551,  507,  515,  541,

        0,  499,  539,  497,  537,  543,  505,  541,  540,  510,
      538,  489,  536,  493,  493,    0,    0,  485,  525,    0,
      483,  523,  529,  485,  493,  478,  508,    0,    0,  467,
      459,    0,    0,  484,    0,  436,  428,  463,  467,  461,
      458,  404,    0,    0,  439,    0,  389,  424,  386,  384,
        0,    0,  415,    0,  412,    0,  412,  411,  409,  367,
      407,  405,  356,  395,    0,  359,    0,    0,  390,    0,
      352,  352,  383,    0,    0,  339,  378,    0,    0,    0,
      345,  376,    0,  382,  380,  379,    0,    0,    0,  370,
        0,  317,  334,    0,    0,    0,    0,    0,  332,  324,

      322,  311,    0,  287,    0,    0,    0,  264,  293,    0,
        0,  286,    0,    0,  255,    0,    0,  287,    0,    0,
        0,  277,    0,    0,    0,  276,    0,    0,  225,    0,
      262,    0,    0,    0,    0,  215,    0,    0,    0,    0,
        0,  218,    0,    0,    0,  191,    0,  191,    0,  895,
      173,  169,  895,  895,  415,    0,  418,  421,  424,  427,
      430,  433,  436,  439,  442,  445,  448,  451,  454,  457,
      460,  463,  466,  469,  472,  475,  478,  481,  484,  487,
      490,  493,  496,  499,  502,  505,  508,  511,  514,  517,
      520,  523

    } ;

static const short int yy_def[693] =
    {   0,
      655,  655,  654,    3,  654,    5,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  656,  654,

      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  656,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,

      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,

      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,

      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  657,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  658,  654,  654,  654,  654,  659,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  660,  654,  654,  654,  654,  654,  654,  654,  654,

      661,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  662,  657,  654,  654,  663,
      654,  654,  654,  654,  654,  654,  654,  664,  658,  654,
      654,  665,  659,  654,  666,  654,  654,  654,  654,  654,
      654,  654,  667,  660,  654,  668,  654,  654,  654,  654,
      669,  661,  654,  670,  654,  671,  654,  654,  654,  654,
      654,  654,  654,  654,  662,  654,  672,  663,  654,  673,
      654,  654,  654,  674,  664,  654,  654,  665,  675,  666,
      654,  654,  676,  654,  654,  654,  667,  677,  668,  654,
      678,  654,  654,  669,  679,  670,  680,  671,  654,  654,

      654,  654,  681,  654,  672,  682,  673,  654,  654,  683,
      674,  654,  684,  675,  654,  685,  676,  654,  677,  686,
      678,  654,  687,  679,  680,  654,  688,  681,  654,  682,
      654,  689,  683,  690,  684,  654,  685,  686,  691,  687,
      688,  654,  692,  689,  690,  654,  691,  654,  692,  654,
      654,  654,  654,    0,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654

    } ;

static const short int yy_nxt[985] =
    {   0,
      654,  162,    9,   10,   11,    9,   10,   11,  654,  654,
      654,  654,  654,  654,  135,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,   12,  136,  654,
       12,   13,   14,   15,   16,   17,   13,   18,   13,   13,
       19,   13,   20,   21,   22,   23,   24,   25,   26,   27,
       28,   29,   30,   31,   32,   33,   34,   13,   35,   13,
       36,   37,   38,   39,   40,   41,   42,   43,   44,   45,
       46,   47,   48,   49,   50,   51,   52,   53,   54,   55,
       56,   57,   58,   59,   60,   61,   62,   13,   63,   64,
       65,   66,   67,   68,   69,   70,   71,   72,   73,   74,

       75,   76,   77,   78,   79,   80,   81,   82,   83,   84,
       85,   86,   87,   88,   89,   90,   91,   92,   93,   94,
       95,   95,    9,   96,   97,   98,   95,   95,   95,   99,
       99,   99,   99,   99,   99,   99,   99,   99,   99,   99,
       99,   99,   99,   99,   99,   99,   99,  100,   95,   95,
       99,   99,   99,   99,   99,   99,   99,   99,   99,   99,
       99,   99,   99,   99,   99,   99,   99,   99,   99,   99,
       99,   99,   99,   99,   99,   95,   95,   95,   95,   95,
       95,   95,   95,   95,   95,   95,   95,   95,   95,   95,
       95,   95,   95,   95,   95,   95,   95,   95,   95,   95,

       95,   95,   95,   95,   95,   95,   95,   95,   95,  101,
      148,  139,  187,  151,  174,  121,  168,  653,  175,  140,
      652,  149,  183,  169,  122,  651,  184,  202,  262,  189,
      113,  141,  263,  203,  123,  188,  124,  102,  152,  650,
      103,  125,  104,  105,  106,  101,  107,  126,  108,  238,
      109,  127,  190,  296,  110,  111,  112,  114,  648,  297,
      115,  303,  646,  116,  117,  239,  113,  353,  118,  311,
      643,  315,  642,  102,  119,  120,  103,  626,  104,  105,
      106,  101,  107,  354,  108,  639,  109,  328,  618,  636,
      110,  111,  112,  114,  634,  304,  115,  334,  305,  116,

      117,  632,  113,  312,  118,  316,  313,  355,  317,  102,
      119,  120,  103,  631,  104,  105,  106,  629,  107,  627,
      108,  329,  109,  601,  330,  626,  110,  111,  112,  114,
      366,  335,  115,  599,  336,  116,  117,  379,  386,  389,
      118,  356,  623,  218,  357,  410,  119,  120,  219,  220,
      221,  241,  222,  414,  223,  425,  224,  242,  243,  438,
      225,  226,  244,  459,  367,  475,  622,  368,  245,  246,
      497,  380,  387,  390,  381,  388,  391,  523,  620,  411,
      618,  585,  412,  584,  616,  615,  613,  415,  612,  426,
      416,  610,  427,  439,  609,  608,  440,  460,  606,  476,

      461,  604,  477,  603,  498,  602,  601,  499,  561,  600,
      559,  524,  599,  557,  525,    8,    8,    8,    8,  517,
      597,  517,  529,  595,  529,  533,  593,  533,  544,  592,
      544,  552,  591,  552,  565,  565,  565,  568,  590,  568,
      575,  575,  575,  578,  578,  578,  580,  588,  580,  587,
      587,  587,  589,  586,  589,  594,  594,  594,  596,  585,
      596,  598,  540,  598,  605,  605,  605,  607,  584,  607,
      611,  583,  611,  614,  614,  614,  617,  582,  617,  619,
      619,  619,  621,  581,  621,  624,  624,  624,  625,  625,
      625,  628,  579,  628,  630,  630,  630,  633,  633,  633,

      635,  577,  635,  637,  637,  637,  638,  638,  638,  640,
      576,  640,  641,  641,  641,  644,  574,  644,  645,  645,
      645,  647,  647,  647,  649,  649,  649,  573,  572,  571,
      523,  570,  569,  567,  566,  564,  563,  513,  562,  561,
      560,  559,  508,  558,  557,  556,  555,  554,  553,  551,
      550,  549,  497,  548,  547,  546,  545,  543,  490,  542,
      541,  540,  486,  539,  538,  537,  536,  535,  534,  532,
      531,  530,  475,  528,  527,  526,  522,  521,  520,  519,
      518,  516,  515,  514,  459,  513,  457,  512,  455,  511,
      510,  509,  508,  450,  507,  506,  505,  504,  503,  502,

      501,  500,  496,  495,  438,  494,  493,  492,  491,  490,
      489,  488,  487,  486,  485,  484,  483,  425,  482,  481,
      480,  479,  478,  474,  473,  472,  471,  414,  470,  469,
      468,  410,  467,  466,  465,  464,  463,  462,  458,  457,
      456,  455,  454,  453,  452,  451,  450,  449,  448,  447,
      446,  389,  445,  444,  386,  443,  442,  441,  437,  436,
      379,  435,  434,  433,  432,  431,  430,  429,  428,  424,
      423,  422,  366,  421,  420,  419,  418,  417,  413,  409,
      408,  355,  407,  406,  405,  404,  403,  402,  401,  400,
      399,  398,  397,  396,  395,  394,  393,  392,  385,  384,

      334,  383,  382,  378,  377,  328,  376,  375,  374,  373,
      372,  371,  370,  369,  365,  364,  315,  363,  362,  361,
      311,  360,  359,  358,  352,  351,  303,  350,  349,  348,
      347,  346,  345,  344,  343,  342,  341,  340,  339,  338,
      337,  333,  332,  331,  327,  326,  325,  324,  323,  322,
      321,  320,  319,  318,  314,  310,  309,  308,  307,  306,
      302,  301,  300,  299,  298,  295,  294,  293,  292,  291,
      290,  289,  288,  287,  286,  285,  284,  283,  282,  281,
      280,  279,  278,  277,  276,  275,  274,  273,  272,  271,
      270,  269,  268,  267,  266,  265,  264,  261,  260,  259,

      258,  257,  256,  255,  254,  253,  252,  251,  250,  249,
      248,  247,  240,  237,  236,  235,  234,  233,  232,  231,
      230,  229,  228,  227,  217,  216,  215,  214,  213,  212,
      211,  210,  209,  208,  207,  206,  205,  204,  201,  200,
      199,  198,  197,  196,  195,  163,  194,  193,  192,  191,
      186,  185,  182,  181,  180,  179,  178,  177,  176,  173,
      172,  171,  170,  167,  166,  165,  164,  163,  161,  160,
      159,  158,  157,  156,  155,  154,  153,  150,  147,  146,
      145,  144,  143,  142,  138,  137,  134,  133,  132,  131,
      130,  129,  128,  654,    7,  654,  654,  654,  654,  654,

      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654
    } ;

static const short int yy_chk[985] =
    {   0,
        0,  656,    1,    1,    1,    2,    2,    2,    0,    0,
        0,    0,    0,    0,   31,    0,    0,    0,    0,    0,
        0,    0,    0,    0,    0,    0,    0,    1,   31,    0,
        2,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,

        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,

        5,    5,    5,    5,    5,    5,    5,    5,    5,   10,
       47,   37,  132,   50,  111,   18,  106,  652,  111,   37,
      651,   47,  120,  106,   18,  648,  120,  171,  226,  136,
       12,   37,  226,  171,   18,  132,   18,   10,   50,  646,
       10,   18,   10,   10,   10,   16,   10,   18,   10,  208,
       10,   18,  136,  259,   10,   10,   10,   12,  642,  259,
       12,  265,  636,   12,   12,  208,   35,  306,   12,  271,
      631,  273,  629,   16,   12,   12,   16,  626,   16,   16,
       16,   96,   16,  306,   16,  622,   16,  284,  618,  615,
       16,   16,   16,   35,  612,  265,   35,  288,  265,   35,

       35,  609,  100,  271,   35,  273,  271,  307,  273,   96,
       35,   35,   96,  608,   96,   96,   96,  604,   96,  602,
       96,  284,   96,  601,  284,  600,   96,   96,   96,  100,
      318,  288,  100,  599,  288,  100,  100,  331,  337,  338,
      100,  307,  593,  196,  307,  358,  100,  100,  196,  196,
      196,  210,  196,  360,  196,  370,  196,  210,  210,  382,
      196,  196,  210,  403,  318,  419,  592,  318,  210,  210,
      441,  331,  337,  338,  331,  337,  338,  470,  590,  358,
      586,  585,  358,  584,  582,  581,  577,  360,  576,  370,
      360,  573,  370,  382,  572,  571,  382,  403,  569,  419,

      403,  566,  419,  564,  441,  563,  562,  441,  561,  560,
      559,  470,  558,  557,  470,  655,  655,  655,  655,  657,
      555,  657,  658,  553,  658,  659,  550,  659,  660,  549,
      660,  661,  548,  661,  662,  662,  662,  663,  547,  663,
      664,  664,  664,  665,  665,  665,  666,  545,  666,  667,
      667,  667,  668,  542,  668,  669,  669,  669,  670,  541,
      670,  671,  540,  671,  672,  672,  672,  673,  539,  673,
      674,  538,  674,  675,  675,  675,  676,  537,  676,  677,
      677,  677,  678,  536,  678,  679,  679,  679,  680,  680,
      680,  681,  534,  681,  682,  682,  682,  683,  683,  683,

      684,  531,  684,  685,  685,  685,  686,  686,  686,  687,
      530,  687,  688,  688,  688,  689,  527,  689,  690,  690,
      690,  691,  691,  691,  692,  692,  692,  526,  525,  524,
      523,  522,  521,  519,  518,  515,  514,  513,  512,  511,
      510,  509,  508,  507,  506,  505,  504,  503,  502,  500,
      499,  498,  497,  496,  495,  494,  493,  491,  490,  489,
      488,  487,  486,  485,  484,  483,  482,  481,  480,  478,
      477,  476,  475,  473,  472,  471,  469,  468,  467,  466,
      465,  462,  461,  460,  459,  458,  457,  456,  455,  454,
      453,  452,  451,  450,  449,  448,  447,  446,  445,  444,

      443,  442,  440,  439,  438,  437,  436,  435,  434,  433,
      432,  431,  430,  429,  428,  427,  426,  425,  424,  423,
      422,  421,  420,  418,  417,  416,  415,  414,  413,  412,
      411,  410,  409,  408,  407,  406,  405,  404,  402,  401,
      400,  399,  398,  397,  396,  395,  394,  393,  392,  391,
      390,  389,  388,  387,  386,  385,  384,  383,  381,  380,
      379,  378,  377,  376,  375,  374,  373,  372,  371,  369,
      368,  367,  366,  365,  364,  363,  362,  361,  359,  357,
      356,  355,  354,  353,  352,  351,  350,  349,  348,  347,
      346,  345,  344,  343,  342,  341,  340,  339,  336,  335,

      334,  333,  332,  330,  329,  328,  327,  326,  325,  324,
      323,  322,  321,  320,  317,  316,  315,  314,  313,  312,
      311,  310,  309,  308,  305,  304,  303,  302,  301,  300,
      299,  298,  297,  296,  295,  294,  293,  292,  291,  290,
      289,  287,  286,  285,  283,  282,  281,  280,  279,  278,
      277,  276,  275,  274,  272,  270,  269,  268,  267,  266,
      264,  263,  262,  261,  260,  258,  257,  256,  255,  254,
      253,  252,  251,  250,  249,  248,  247,  246,  245,  244,
      243,  242,  241,  240,  239,  238,  237,  236,  235,  234,
      233,  232,  231,  230,  229,  228,  227,  225,  224,  223,

      222,  221,  220,  219,  218,  217,  216,  215,  214,  213,
      212,  211,  209,  207,  206,  205,  204,  203,  202,  201,
      200,  199,  198,  197,  195,  184,  183,  182,  181,  180,
      179,  178,  177,  176,  175,  174,  173,  172,  170,  169,
      168,  167,  166,  165,  164,  163,  154,  149,  143,  137,
      128,  121,  119,  118,  117,  116,  115,  114,  112,  110,
      109,  108,  107,  105,  104,  103,  102,  101,   84,   83,
       82,   81,   62,   57,   56,   55,   52,   48,   46,   45,
       43,   40,   39,   38,   33,   32,   30,   29,   27,   25,
       22,   20,   19,    7,  654,  654,  654,  654,  654,  654,

      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654,  654,  654,  654,  654,  654,  654,
      654,  654,  654,  654
    } ;

static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;

/* 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
char *yytext;
# line 1 "ilex.l"
# line 6 "ilex.l"
/* above directives increase the various table sizes used by Lex */

/*
 *========================================================================== 
 * Copyright 1991-1994 Avinash Chopde, All Rights Reserved.
 *
 * Permission to use, copy, modify and distribute this software and its
 * documentation for any purpose is hereby granted without fee, provided that
 * the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation, and that the name of Avinash Chopde not be used in
 * advertising or publicity pertaining to distribution of the software
 * without specific, written prior permission.
 * Avinash Chopde makes no representations about the suitability of this
 * software for any purpose.
 * It is provided "as is" without express or implied warranty.
 *
 * AVINASH CHOPDE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
 * IN NO EVENT SHALL AVINASH CHOPDE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
 * OF THIS SOFTWARE.
 *
 * Author:  Avinash Chopde, 1991--1992
 *
 */

static char S_RCSID[] = "$Header: f:/itrans/src/rcs/ilex.l 1.20 95/02/21 21:44:48 avinash Exp $";

#include "itrans.h"
#include "ifm.h"

#ifdef MSDOS
#include "y_tab.h"
#else
#include "y.tab.h"
#endif

#ifdef YYSTYPE
extern YYSTYPE  yylval;
#else
extern int yylval;
#endif

extern int G_lineno;
extern int in_letter(); /* returns TRUE if the parse (iyacc.y) is in the
			 * middle of scanning some letter.
			 * Used to decide whether to tell the parser to
			 * stop looking for more characters, and
			 * terminate the letter.
			 * That is done by sending in a ENDPREV_TOK.
			 */
extern char G_endprev_str[]; /* defined in iyacc.y, used to pass string
			      * to process
			      */

static S_lex_ichar(int t);
static S_print(char* t);
static S_skipcomments();
static void S_backslash_error();

static int	S_marker_tok = ENDMARKER_TOK; /*which marker being scanned...*/
static int	S_use_csx = FALSE; /* whether accepting CS/CSX input alphabet*/

/* users may use shorter markers than #indian ... #endindian etc
 * the ShortMARKERs stand for equivalents to #indian .. #endindan
   SMARKER_START is equivalent to #indian
   SMARKER_END   is equivalent to any end marker
   But, to protect the user document, by default these equivalences
   are turned off. To turn them on, the user should type in
   #useshortmarkers
   #ignoreshortmarkers will turn them off again.
   From release 4.0, made a single "toggle" marker - ##.
 */

#define SMARKER_START	"##"
#define SMARKER_END	"##"
/* note: have to edit the lex <pattern> <action> statement, too,
 * somewhere around line 140 in this file.
 * From release 4.0, made a single "toggle" marker - ##.
 * If the old separate markers are needed, the rules for recognizing that
 * are available at the end of this file (#if 0'ed out).
 */
 
/* Release 4.04 -- remove AM_TOK. AM is not really needed, and its presence
 * complicates things when I need to pass Devanagari text through Tamil,
 * etc..
 * It is easier to define anusvara for these languages, and that works
 * much better...(both M and .n get recognized as anusvara..
 *
<ITEXT>"aM"		{S_lex_ichar(AM_TOK); return (yylval =  AM_TOK);}
 */
 
static int      S_use_shortmarkers = FALSE;

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

#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 = getc( yyin ); \
		result = c == EOF ? 0 : 1; \
		buf[0] = (char) c; \
		} \
	else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
		  && ferror( yyin ) ) \
		YY_FATAL_ERROR( "input in flex scanner failed" );
#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

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

# line 105 "ilex.l"



	if ( yy_init )
		{
#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_init_buffer( yy_current_buffer, yyin );
		else
			yy_current_buffer =
				yy_create_buffer( yyin, YY_BUF_SIZE );

		yy_load_buffer_state();

		yy_init = 0;
		}

	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 >= 655 )
					yy_c = yy_meta[(unsigned int) yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
			++yy_cp;
			}
		while ( yy_base[yy_current_state] != 895 );

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:
YY_USER_ACTION
# line 107 "ilex.l"
{   
			  /* seen \% in the input, complete current
			   * word first, and then echo out
			   * the chars in G_endprev_str.
			   */
			    if (in_letter()) {
				S_print("ichar \\ %");
				strcpy(G_endprev_str, "\\%");
				return (yylval=ENDPREV_TOK);
			    } else {
				ECHO;
			    }
			}
	YY_BREAK
case 2:
YY_USER_ACTION
# line 121 "ilex.l"
{   
			   /* seen a single backslash */
			   if (in_letter()) {
				/* need to complete current word, send
				 * a ENDPREV token to the parser.
				 */
				S_print("ichar \\");
				/* unput('\\');   ?? use yyless() here */
			        yyless(0);
			        G_endprev_str[0] = '\0';
			        return (yylval=ENDPREV_TOK);
			    } else {
				BEGIN  DCOMMAND;
			    }
			}
	YY_BREAK
case 3:
YY_USER_ACTION
# line 137 "ilex.l"
{ S_print("ichar %");
		          if (in_letter()) {
				/* need to complete current word, send
				 * a ENDPREV token to the parser.
				 */
			     /* unput('%'); handle comment next time around */
			     yyless(0);
			  }
			  return S_skipcomments();
			  /* is a comment, until end-of-line */
			}
	YY_BREAK
case 4:
YY_USER_ACTION
# line 149 "ilex.l"
{ S_skipcomments(); putchar('\n'); }
	YY_BREAK
case 5:
YY_USER_ACTION
# line 151 "ilex.l"
{ /* begin/end ITEXT if user has set it on */
			if (S_use_shortmarkers) {
			    if (S_marker_tok == ENDMARKER_TOK) {
				BEGIN ITEXT;
				return (S_marker_tok = IMARKER_TOK);
			    } else {
				BEGIN 0;
				return (S_marker_tok = ENDMARKER_TOK);
			    }
			} else ECHO;
		} 
	YY_BREAK
case 6:
YY_USER_ACTION
# line 163 "ilex.l"
{S_lex_ichar(A_TOK); return (yylval =  A_TOK);	}
	YY_BREAK
case 7:
YY_USER_ACTION
# line 164 "ilex.l"
{S_lex_ichar(AA_TOK); return (yylval =  AA_TOK);}
	YY_BREAK
case 8:
YY_USER_ACTION
# line 165 "ilex.l"
{S_lex_ichar(AA_TOK); return (yylval =  AA_TOK);}
	YY_BREAK
case 9:
YY_USER_ACTION
# line 166 "ilex.l"
{S_lex_ichar(I_TOK); return (yylval =  I_TOK);	}
	YY_BREAK
case 10:
YY_USER_ACTION
# line 167 "ilex.l"
{S_lex_ichar(II_TOK); return (yylval =  II_TOK);}
	YY_BREAK
case 11:
YY_USER_ACTION
# line 168 "ilex.l"
{S_lex_ichar(II_TOK); return (yylval =  II_TOK);}
	YY_BREAK
case 12:
YY_USER_ACTION
# line 169 "ilex.l"
{S_lex_ichar(U_TOK); return (yylval =  U_TOK);	}
	YY_BREAK
case 13:
YY_USER_ACTION
# line 170 "ilex.l"
{S_lex_ichar(UU_TOK); return (yylval =  UU_TOK);}
	YY_BREAK
case 14:
YY_USER_ACTION
# line 171 "ilex.l"
{S_lex_ichar(UU_TOK); return (yylval =  UU_TOK);}
	YY_BREAK
case 15:
YY_USER_ACTION
# line 172 "ilex.l"
{S_lex_ichar(RI_TOK); return (yylval =  RI_TOK);}
	YY_BREAK
case 16:
YY_USER_ACTION
# line 173 "ilex.l"
{S_lex_ichar(RII_TOK); return (yylval =  RII_TOK);}
	YY_BREAK
case 17:
YY_USER_ACTION
# line 174 "ilex.l"
{S_lex_ichar(LI_TOK); return (yylval =  LI_TOK);}
	YY_BREAK
case 18:
YY_USER_ACTION
# line 175 "ilex.l"
{S_lex_ichar(LII_TOK); return (yylval =  LII_TOK);}
	YY_BREAK
case 19:
YY_USER_ACTION
# line 176 "ilex.l"
{S_lex_ichar(AY_TOK); return (yylval =  AY_TOK);}
	YY_BREAK
case 20:
YY_USER_ACTION
# line 177 "ilex.l"
{S_lex_ichar(AAY_TOK); return (yylval =  AAY_TOK);}
	YY_BREAK
case 21:
YY_USER_ACTION
# line 178 "ilex.l"
{S_lex_ichar(AI_TOK); return (yylval =  AI_TOK);}
	YY_BREAK
case 22:
YY_USER_ACTION
# line 179 "ilex.l"
{S_lex_ichar(O_TOK); return (yylval =  O_TOK);	}
	YY_BREAK
case 23:
YY_USER_ACTION
# line 180 "ilex.l"
{S_lex_ichar(OO_TOK); return (yylval =  OO_TOK);}
	YY_BREAK
case 24:
YY_USER_ACTION
# line 181 "ilex.l"
{S_lex_ichar(AU_TOK); return (yylval =  AU_TOK);}
	YY_BREAK
case 25:
YY_USER_ACTION
# line 182 "ilex.l"
{S_lex_ichar(AHA_TOK); return (yylval =  AHA_TOK);}
	YY_BREAK
case 26:
YY_USER_ACTION
# line 183 "ilex.l"
{S_lex_ichar(KA_TOK); return (yylval =  KA_TOK);}
	YY_BREAK
case 27:
YY_USER_ACTION
# line 184 "ilex.l"
{S_lex_ichar(KADOT_TOK); return (yylval =  KADOT_TOK);}
	YY_BREAK
case 28:
YY_USER_ACTION
# line 185 "ilex.l"
{S_lex_ichar(KHA_TOK); return (yylval =  KHA_TOK);}
	YY_BREAK
case 29:
YY_USER_ACTION
# line 186 "ilex.l"
{S_lex_ichar(KHADOT_TOK); return (yylval = KHADOT_TOK);}
	YY_BREAK
case 30:
YY_USER_ACTION
# line 187 "ilex.l"
{S_lex_ichar(GHA_TOK); return (yylval =  GHA_TOK);}
	YY_BREAK
case 31:
YY_USER_ACTION
# line 188 "ilex.l"
{S_lex_ichar(GA_TOK); return (yylval =  GA_TOK);}
	YY_BREAK
case 32:
YY_USER_ACTION
# line 189 "ilex.l"
{S_lex_ichar(GADOT_TOK); return (yylval =  GADOT_TOK);}
	YY_BREAK
case 33:
YY_USER_ACTION
# line 190 "ilex.l"
{S_lex_ichar(NGA_TOK); return (yylval =  NGA_TOK);}
	YY_BREAK
case 34:
YY_USER_ACTION
# line 191 "ilex.l"
{if (S_use_csx) yyless(1); /* unput last h */
			 S_lex_ichar(CHHA_TOK); return (yylval =  CHHA_TOK);}
	YY_BREAK
case 35:
YY_USER_ACTION
# line 193 "ilex.l"
{if (S_use_csx) {
			    S_lex_ichar(CHHA_TOK); return (yylval =  CHHA_TOK);}
			else {
			    S_lex_ichar(CHA_TOK); return (yylval =  CHA_TOK);}}
	YY_BREAK
case 36:
YY_USER_ACTION
# line 197 "ilex.l"
{S_lex_ichar(JA_TOK); return (yylval =  JA_TOK);}
	YY_BREAK
case 37:
YY_USER_ACTION
# line 198 "ilex.l"
{S_lex_ichar(JADOT_TOK); return (yylval =  JADOT_TOK);}
	YY_BREAK
case 38:
YY_USER_ACTION
# line 199 "ilex.l"
{S_lex_ichar(JHA_TOK); return (yylval =  JHA_TOK);}
	YY_BREAK
case 39:
YY_USER_ACTION
# line 200 "ilex.l"
{S_lex_ichar(JNH_TOK); return (yylval =  JNH_TOK);}
	YY_BREAK
case 40:
YY_USER_ACTION
# line 201 "ilex.l"
{S_lex_ichar(TTA_TOK); return (yylval =  TTA_TOK);}
	YY_BREAK
case 41:
YY_USER_ACTION
# line 202 "ilex.l"
{S_lex_ichar(TTHA_TOK); return (yylval =  TTHA_TOK);}
	YY_BREAK
case 42:
YY_USER_ACTION
# line 203 "ilex.l"
{S_lex_ichar(DDA_TOK); return (yylval =  DDA_TOK);}
	YY_BREAK
case 43:
YY_USER_ACTION
# line 204 "ilex.l"
{S_lex_ichar(DDADOT_TOK);return (yylval=DDADOT_TOK);}
	YY_BREAK
case 44:
YY_USER_ACTION
# line 205 "ilex.l"
{S_lex_ichar(DDHA_TOK); return (yylval =  DDHA_TOK);}
	YY_BREAK
case 45:
YY_USER_ACTION
# line 206 "ilex.l"
{S_lex_ichar(DDHADOT_TOK);return (yylval=DDHADOT_TOK);}
	YY_BREAK
case 46:
YY_USER_ACTION
# line 207 "ilex.l"
{S_lex_ichar(NNA_TOK); return (yylval =  NNA_TOK);}
	YY_BREAK
case 47:
YY_USER_ACTION
# line 208 "ilex.l"
{S_lex_ichar(TA_TOK); return (yylval =  TA_TOK);}
	YY_BREAK
case 48:
YY_USER_ACTION
# line 209 "ilex.l"
{S_lex_ichar(THA_TOK); return (yylval =  THA_TOK);}
	YY_BREAK
case 49:
YY_USER_ACTION
# line 210 "ilex.l"
{S_lex_ichar(DA_TOK); return (yylval =  DA_TOK);}
	YY_BREAK
case 50:
YY_USER_ACTION
# line 211 "ilex.l"
{S_lex_ichar(DHA_TOK); return (yylval =  DHA_TOK);}
	YY_BREAK
case 51:
YY_USER_ACTION
# line 212 "ilex.l"
{S_lex_ichar(NA_TOK); return (yylval =  NA_TOK);}
	YY_BREAK
case 52:
YY_USER_ACTION
# line 213 "ilex.l"
{S_lex_ichar(PA_TOK); return (yylval =  PA_TOK);}
	YY_BREAK
case 53:
YY_USER_ACTION
# line 214 "ilex.l"
{S_lex_ichar(PHA_TOK); return (yylval =  PHA_TOK);}
	YY_BREAK
case 54:
YY_USER_ACTION
# line 215 "ilex.l"
{S_lex_ichar(PHADOT_TOK); return (yylval = PHADOT_TOK);}
	YY_BREAK
case 55:
YY_USER_ACTION
# line 216 "ilex.l"
{S_lex_ichar(BHA_TOK); return (yylval =  BHA_TOK);}
	YY_BREAK
case 56:
YY_USER_ACTION
# line 217 "ilex.l"
{S_lex_ichar(BA_TOK); return (yylval =  BA_TOK);}
	YY_BREAK
case 57:
YY_USER_ACTION
# line 218 "ilex.l"
{S_lex_ichar(MA_TOK); return (yylval =  MA_TOK);}
	YY_BREAK
case 58:
YY_USER_ACTION
# line 219 "ilex.l"
{S_lex_ichar(YA_TOK); return (yylval =  YA_TOK);}
	YY_BREAK
case 59:
YY_USER_ACTION
# line 220 "ilex.l"
{S_lex_ichar(RA_TOK); return (yylval =  RA_TOK);}
	YY_BREAK
case 60:
YY_USER_ACTION
# line 221 "ilex.l"
{S_lex_ichar(VA_TOK); return (yylval =  VA_TOK);}
	YY_BREAK
case 61:
YY_USER_ACTION
# line 222 "ilex.l"
{S_lex_ichar(SHHA_TOK); return (yylval =  SHHA_TOK);}
	YY_BREAK
case 62:
YY_USER_ACTION
# line 223 "ilex.l"
{S_lex_ichar(SHA_TOK); return (yylval =  SHA_TOK);}
	YY_BREAK
case 63:
YY_USER_ACTION
# line 224 "ilex.l"
{S_lex_ichar(SA_TOK); return (yylval =  SA_TOK);}
	YY_BREAK
case 64:
YY_USER_ACTION
# line 225 "ilex.l"
{S_lex_ichar(HA_TOK); return (yylval =  HA_TOK);}
	YY_BREAK
case 65:
YY_USER_ACTION
# line 226 "ilex.l"
{S_lex_ichar(LDA_TOK); return (yylval =  LDA_TOK);}
	YY_BREAK
case 66:
YY_USER_ACTION
# line 227 "ilex.l"
{S_lex_ichar(LDA_TOK); return (yylval =  LDA_TOK);}
	YY_BREAK
case 67:
YY_USER_ACTION
# line 228 "ilex.l"
{S_lex_ichar(LA_TOK); return (yylval =  LA_TOK);}
	YY_BREAK
case 68:
YY_USER_ACTION
# line 229 "ilex.l"
{S_lex_ichar(KSHA_TOK); return (yylval =  KSHA_TOK);}
	YY_BREAK
case 69:
YY_USER_ACTION
# line 230 "ilex.l"
{S_lex_ichar(KSHA_TOK); return (yylval =  KSHA_TOK);}
	YY_BREAK
case 70:
YY_USER_ACTION
# line 231 "ilex.l"
{S_lex_ichar(GYA_TOK); return (yylval =  GYA_TOK);}
	YY_BREAK
case 71:
YY_USER_ACTION
# line 233 "ilex.l"
{
			  /* return NYA for tamil only ...! */
			  /* switch(G_current_font->lang_tok) */
			  switch(hook_get_lang_tok()) {
			  case TAMIL_TOK:
			      return (yylval =  NYA_TOK);
			      break;
			  default:
			      /* unput('y'); ?? use yyless() here XXX */
			      yyless(1);
			      return (yylval =  NA_TOK);
			  }
			}
	YY_BREAK
case 72:
YY_USER_ACTION
# line 246 "ilex.l"
{S_lex_ichar(NNX_TOK); return (yylval =  NNX_TOK);}
	YY_BREAK
case 73:
YY_USER_ACTION
# line 248 "ilex.l"
{S_lex_ichar(RRA_TOK); return (yylval =  RRA_TOK);}
	YY_BREAK
case 74:
YY_USER_ACTION
# line 249 "ilex.l"
{S_lex_ichar(RHA_TOK); return (yylval =  RHA_TOK);}
	YY_BREAK
case 75:
YY_USER_ACTION
# line 251 "ilex.l"
{S_lex_ichar(AUM_TOK); return (yylval =  AUM_TOK);}
	YY_BREAK
case 76:
YY_USER_ACTION
# line 252 "ilex.l"
{S_lex_ichar(AUM_TOK); return (yylval =  AUM_TOK);}
	YY_BREAK
case 77:
YY_USER_ACTION
# line 253 "ilex.l"
{S_lex_ichar(SRI_TOK); return (yylval =  SRI_TOK);}
	YY_BREAK
case 78:
YY_USER_ACTION
# line 254 "ilex.l"
{S_lex_ichar(RA_HALF_TOK);return (yylval=RA_HALF_TOK);}
	YY_BREAK
case 79:
YY_USER_ACTION
# line 255 "ilex.l"
{S_lex_ichar(ANUSVARA_TOK);return(yylval=ANUSVARA_TOK);}
	YY_BREAK
case 80:
YY_USER_ACTION
# line 256 "ilex.l"
{S_lex_ichar(ANUSVARA_TOK);return(yylval=ANUSVARA_TOK);}
	YY_BREAK
case 81:
YY_USER_ACTION
# line 257 "ilex.l"
{S_lex_ichar(VIRAAM_TOK);return(yylval=VIRAAM_TOK);}
	YY_BREAK
case 82:
YY_USER_ACTION
# line 258 "ilex.l"
{S_lex_ichar(CHANDRA_TOK);return(yylval= CHANDRA_TOK);}
	YY_BREAK
case 83:
YY_USER_ACTION
# line 259 "ilex.l"
{S_lex_ichar(CHANDRA_BN_TOK);return(yylval=CHANDRA_BN_TOK);}
	YY_BREAK
case 84:
YY_USER_ACTION
# line 260 "ilex.l"
{S_lex_ichar(AVAGRAHA_TOK);return(yylval=AVAGRAHA_TOK);}
	YY_BREAK
case 85:
YY_USER_ACTION
# line 262 "ilex.l"
{S_lex_ichar(AA_TOK); return (yylval =  AA_TOK);}
	YY_BREAK
case 86:
YY_USER_ACTION
# line 263 "ilex.l"
{S_lex_ichar(AA_TOK); return (yylval =  AA_TOK);}
	YY_BREAK
case 87:
YY_USER_ACTION
# line 264 "ilex.l"
{S_lex_ichar(II_TOK); return (yylval =  II_TOK);}
	YY_BREAK
case 88:
YY_USER_ACTION
# line 265 "ilex.l"
{S_lex_ichar(II_TOK); return (yylval =  II_TOK);}
	YY_BREAK
case 89:
YY_USER_ACTION
# line 266 "ilex.l"
{S_lex_ichar(UU_TOK); return (yylval =  UU_TOK);}
	YY_BREAK
case 90:
YY_USER_ACTION
# line 267 "ilex.l"
{S_lex_ichar(RI_TOK); return (yylval =  RI_TOK);}
	YY_BREAK
case 91:
YY_USER_ACTION
# line 268 "ilex.l"
{S_lex_ichar(RI_TOK); return (yylval =  RI_TOK);}
	YY_BREAK
case 92:
YY_USER_ACTION
# line 269 "ilex.l"
{S_lex_ichar(RII_TOK); return (yylval =  RII_TOK);}
	YY_BREAK
case 93:
YY_USER_ACTION
# line 270 "ilex.l"
{S_lex_ichar(RII_TOK); return (yylval =  RII_TOK);}
	YY_BREAK
case 94:
YY_USER_ACTION
# line 271 "ilex.l"
{S_lex_ichar(LI_TOK); return (yylval =  LI_TOK);}
	YY_BREAK
case 95:
YY_USER_ACTION
# line 272 "ilex.l"
{S_lex_ichar(LI_TOK); return (yylval =  LI_TOK);}
	YY_BREAK
case 96:
YY_USER_ACTION
# line 273 "ilex.l"
{S_lex_ichar(LII_TOK); return (yylval =  LII_TOK);}
	YY_BREAK
case 97:
YY_USER_ACTION
# line 274 "ilex.l"
{S_lex_ichar(LII_TOK); return (yylval =  LII_TOK);}
	YY_BREAK
case 98:
YY_USER_ACTION
# line 275 "ilex.l"
{S_lex_ichar(NGA_TOK); return (yylval =  NGA_TOK);}
	YY_BREAK
case 99:
YY_USER_ACTION
# line 276 "ilex.l"
{S_lex_ichar(NGA_TOK); return (yylval =  NGA_TOK);}
	YY_BREAK
case 100:
YY_USER_ACTION
# line 277 "ilex.l"
{S_lex_ichar(CHA_TOK); return (yylval =  CHA_TOK);}
	YY_BREAK
case 101:
YY_USER_ACTION
# line 278 "ilex.l"
{S_lex_ichar(JNH_TOK); return (yylval =  JNH_TOK);}
	YY_BREAK
case 102:
YY_USER_ACTION
# line 279 "ilex.l"
{S_lex_ichar(TTHA_TOK); return (yylval =  TTHA_TOK);}
	YY_BREAK
case 103:
YY_USER_ACTION
# line 280 "ilex.l"
{S_lex_ichar(TTHA_TOK); return (yylval =  TTHA_TOK);}
	YY_BREAK
case 104:
YY_USER_ACTION
# line 281 "ilex.l"
{S_lex_ichar(TTA_TOK); return (yylval =  TTA_TOK);}
	YY_BREAK
case 105:
YY_USER_ACTION
# line 282 "ilex.l"
{S_lex_ichar(TTA_TOK); return (yylval =  TTA_TOK);}
	YY_BREAK
case 106:
YY_USER_ACTION
# line 283 "ilex.l"
{S_lex_ichar(DDHA_TOK); return (yylval =  DDHA_TOK);}
	YY_BREAK
case 107:
YY_USER_ACTION
# line 284 "ilex.l"
{S_lex_ichar(DDHA_TOK); return (yylval =  DDHA_TOK);}
	YY_BREAK
case 108:
YY_USER_ACTION
# line 285 "ilex.l"
{S_lex_ichar(DDA_TOK); return (yylval =  DDA_TOK);}
	YY_BREAK
case 109:
YY_USER_ACTION
# line 286 "ilex.l"
{S_lex_ichar(DDA_TOK); return (yylval =  DDA_TOK);}
	YY_BREAK
case 110:
YY_USER_ACTION
# line 287 "ilex.l"
{S_lex_ichar(NNA_TOK); return (yylval =  NNA_TOK);}
	YY_BREAK
case 111:
YY_USER_ACTION
# line 288 "ilex.l"
{S_lex_ichar(NNA_TOK); return (yylval =  NNA_TOK);}
	YY_BREAK
case 112:
YY_USER_ACTION
# line 289 "ilex.l"
{S_lex_ichar(SHA_TOK); return (yylval =  SHA_TOK);}
	YY_BREAK
case 113:
YY_USER_ACTION
# line 290 "ilex.l"
{S_lex_ichar(SHA_TOK); return (yylval =  SHA_TOK);}
	YY_BREAK
case 114:
YY_USER_ACTION
# line 291 "ilex.l"
{S_lex_ichar(SHHA_TOK); return (yylval =  SHHA_TOK);}
	YY_BREAK
case 115:
YY_USER_ACTION
# line 292 "ilex.l"
{S_lex_ichar(SHHA_TOK); return (yylval =  SHHA_TOK);}
	YY_BREAK
case 116:
YY_USER_ACTION
# line 294 "ilex.l"
{S_lex_ichar(RRA_TOK); return (yylval =  RRA_TOK);}
	YY_BREAK
case 117:
YY_USER_ACTION
# line 296 "ilex.l"
{S_lex_ichar(ANUSVARA_TOK);return(yylval=ANUSVARA_TOK);}
	YY_BREAK
case 118:
YY_USER_ACTION
# line 297 "ilex.l"
{S_lex_ichar(ANUSVARA_TOK);return(yylval=ANUSVARA_TOK);}
	YY_BREAK
case 119:
YY_USER_ACTION
# line 298 "ilex.l"
{S_lex_ichar(ANUSVARA_TOK);return(yylval=ANUSVARA_TOK);}
	YY_BREAK
case 120:
YY_USER_ACTION
# line 299 "ilex.l"
{S_lex_ichar(AHA_TOK); return (yylval =  AHA_TOK);}
	YY_BREAK
case 121:
YY_USER_ACTION
# line 300 "ilex.l"
{S_lex_ichar(AHA_TOK); return (yylval =  AHA_TOK);}
	YY_BREAK
case 122:
YY_USER_ACTION
# line 302 "ilex.l"
{S_print("ichar \t");return (yylval =  BLANK_TOK);}
	YY_BREAK
case 123:
YY_USER_ACTION
# line 303 "ilex.l"
{S_print("ichar \n");G_lineno++;return(yylval=NEWLINE_TOK);}
	YY_BREAK
case 124:
YY_USER_ACTION
# line 305 "ilex.l"
{	S_print("ichar {}");
		        if (in_letter()) {
			    strcpy(G_endprev_str, yytext);
			    return (yylval=NOLIG_TOK);
			} else {
			    strcpy(G_endprev_str, yytext);
			    return (yylval=ENDPREV_TOK);
		        }
		    }
	YY_BREAK
case 125:
YY_USER_ACTION
# line 315 "ilex.l"
{	S_print("ichar _");
		        if (in_letter()) {
			    /* do nothing! this char inside a akshara
			     * is used to break the lexical scan.
			     */
			} else {
			    strcpy(G_endprev_str, yytext);
			    return (yylval=ENDPREV_TOK);
		        }
		    }
	YY_BREAK
case 126:
YY_USER_ACTION
# line 326 "ilex.l"
{	S_print("ichar .");
			strcpy(G_endprev_str, yytext);
			/* return ENDPREV for any punctuation, etc char */
			return (yylval=ENDPREV_TOK);
		    }
	YY_BREAK
case 127:
YY_USER_ACTION
# line 332 "ilex.l"
{
			S_print("dcommand a-z");
			BEGIN ITEXT;
			return (COMMAND_TOK);
		}
	YY_BREAK
case 128:
YY_USER_ACTION
# line 338 "ilex.l"
{
			S_print("dcommand \\-");
			BEGIN ITEXT;
			return (COMMAND_TOK);
		}
	YY_BREAK
case 129:
YY_USER_ACTION
# line 344 "ilex.l"
{
			S_print("dcommand other");
			BEGIN ITEXT;
			sprintf(G_endprev_str, "\\%c", yytext[0]);
				/* just one char matched*/
			return (yylval=ENDPREV_TOK);
		}
	YY_BREAK
case 130:
YY_USER_ACTION
# line 352 "ilex.l"
{BEGIN ITEXT; return (S_marker_tok = IMARKER_TOK);}
	YY_BREAK
case 131:
YY_USER_ACTION
# line 353 "ilex.l"
{BEGIN 0;     return (S_marker_tok = ENDMARKER_TOK);}
	YY_BREAK
case 132:
YY_USER_ACTION
# line 354 "ilex.l"
{BEGIN ITEXT; return (S_marker_tok = MARATHI_TOK);}
	YY_BREAK
case 133:
YY_USER_ACTION
# line 355 "ilex.l"
{BEGIN 0;     return (S_marker_tok = ENDMARKER_TOK);}
	YY_BREAK
case 134:
YY_USER_ACTION
# line 356 "ilex.l"
{BEGIN ITEXT; return (S_marker_tok = HINDI_TOK);}
	YY_BREAK
case 135:
YY_USER_ACTION
# line 357 "ilex.l"
{BEGIN 0;     return (S_marker_tok = ENDMARKER_TOK);}
	YY_BREAK
case 136:
YY_USER_ACTION
# line 358 "ilex.l"
{BEGIN ITEXT; return (S_marker_tok = TAMIL_TOK);}
	YY_BREAK
case 137:
YY_USER_ACTION
# line 359 "ilex.l"
{BEGIN 0;     return (S_marker_tok = ENDMARKER_TOK);}
	YY_BREAK
case 138:
YY_USER_ACTION
# line 360 "ilex.l"
{BEGIN ITEXT; return (S_marker_tok = SANSKRIT_TOK);}
	YY_BREAK
case 139:
YY_USER_ACTION
# line 361 "ilex.l"
{BEGIN 0;     return (S_marker_tok = ENDMARKER_TOK);}
	YY_BREAK
case 140:
YY_USER_ACTION
# line 362 "ilex.l"
{BEGIN ITEXT; return (S_marker_tok = BENGALI_TOK);}
	YY_BREAK
case 141:
YY_USER_ACTION
# line 363 "ilex.l"
{BEGIN 0;     return (S_marker_tok = ENDMARKER_TOK);}
	YY_BREAK
case 142:
YY_USER_ACTION
# line 364 "ilex.l"
{BEGIN ITEXT; return (S_marker_tok = TELUGU_TOK);}
	YY_BREAK
case 143:
YY_USER_ACTION
# line 365 "ilex.l"
{BEGIN 0;     return (S_marker_tok = ENDMARKER_TOK);}
	YY_BREAK
case 144:
YY_USER_ACTION
# line 366 "ilex.l"
{BEGIN ITEXT; return (S_marker_tok = MALAYALAM_TOK);}
	YY_BREAK
case 145:
YY_USER_ACTION
# line 367 "ilex.l"
{BEGIN 0;     return (S_marker_tok = ENDMARKER_TOK);}
	YY_BREAK
case 146:
YY_USER_ACTION
# line 368 "ilex.l"
{BEGIN ITEXT; return (S_marker_tok = GUJARATI_TOK);}
	YY_BREAK
case 147:
YY_USER_ACTION
# line 369 "ilex.l"
{BEGIN 0;     return (S_marker_tok = ENDMARKER_TOK);}
	YY_BREAK
case 148:
YY_USER_ACTION
# line 370 "ilex.l"
{BEGIN ITEXT; return (S_marker_tok = ORIYA_TOK);}
	YY_BREAK
case 149:
YY_USER_ACTION
# line 371 "ilex.l"
{BEGIN 0;     return (S_marker_tok = ENDMARKER_TOK);}
	YY_BREAK
case 150:
YY_USER_ACTION
# line 372 "ilex.l"
{BEGIN ITEXT; return (S_marker_tok = KANNADA_TOK);}
	YY_BREAK
case 151:
YY_USER_ACTION
# line 373 "ilex.l"
{BEGIN 0;     return (S_marker_tok = ENDMARKER_TOK);}
	YY_BREAK
case 152:
YY_USER_ACTION
# line 375 "ilex.l"
{yylval = IMARKER_TOK; return SETIFM_TOK;}
	YY_BREAK
case 153:
YY_USER_ACTION
# line 376 "ilex.l"
{yylval = MARATHI_TOK; return SETIFM_TOK;}
	YY_BREAK
case 154:
YY_USER_ACTION
# line 377 "ilex.l"
{yylval = HINDI_TOK; return SETIFM_TOK;}
	YY_BREAK
case 155:
YY_USER_ACTION
# line 378 "ilex.l"
{yylval = TAMIL_TOK; return SETIFM_TOK;}
	YY_BREAK
case 156:
YY_USER_ACTION
# line 379 "ilex.l"
{yylval = SANSKRIT_TOK; return SETIFM_TOK;}
	YY_BREAK
case 157:
YY_USER_ACTION
# line 380 "ilex.l"
{yylval = BENGALI_TOK; return SETIFM_TOK;}
	YY_BREAK
case 158:
YY_USER_ACTION
# line 381 "ilex.l"
{yylval = TELUGU_TOK; return SETIFM_TOK;}
	YY_BREAK
case 159:
YY_USER_ACTION
# line 382 "ilex.l"
{yylval = MALAYALAM_TOK; return SETIFM_TOK;}
	YY_BREAK
case 160:
YY_USER_ACTION
# line 383 "ilex.l"
{yylval = GUJARATI_TOK; return SETIFM_TOK;}
	YY_BREAK
case 161:
YY_USER_ACTION
# line 384 "ilex.l"
{yylval = ORIYA_TOK; return SETIFM_TOK;}
	YY_BREAK
case 162:
YY_USER_ACTION
# line 385 "ilex.l"
{yylval = KANNADA_TOK; return SETIFM_TOK;}
	YY_BREAK
case 163:
YY_USER_ACTION
# line 387 "ilex.l"
{yylval = IMARKER_TOK; return SETFONT_TOK;}
	YY_BREAK
case 164:
YY_USER_ACTION
# line 388 "ilex.l"
{yylval = HINDI_TOK; return SETFONT_TOK;}
	YY_BREAK
case 165:
YY_USER_ACTION
# line 389 "ilex.l"
{yylval = TAMIL_TOK; return SETFONT_TOK;}
	YY_BREAK
case 166:
YY_USER_ACTION
# line 390 "ilex.l"
{yylval = MARATHI_TOK; return SETFONT_TOK;}
	YY_BREAK
case 167:
YY_USER_ACTION
# line 391 "ilex.l"
{yylval = SANSKRIT_TOK; return SETFONT_TOK;}
	YY_BREAK
case 168:
YY_USER_ACTION
# line 392 "ilex.l"
{yylval = BENGALI_TOK; return SETFONT_TOK;}
	YY_BREAK
case 169:
YY_USER_ACTION
# line 393 "ilex.l"
{yylval = TELUGU_TOK; return SETFONT_TOK;}
	YY_BREAK
case 170:
YY_USER_ACTION
# line 394 "ilex.l"
{yylval = MALAYALAM_TOK;return SETFONT_TOK;}
	YY_BREAK
case 171:
YY_USER_ACTION
# line 395 "ilex.l"
{yylval = GUJARATI_TOK; return SETFONT_TOK;}
	YY_BREAK
case 172:
YY_USER_ACTION
# line 396 "ilex.l"
{yylval = ORIYA_TOK; return SETFONT_TOK;}
	YY_BREAK
case 173:
YY_USER_ACTION
# line 397 "ilex.l"
{yylval = KANNADA_TOK; return SETFONT_TOK;}
	YY_BREAK
case 174:
YY_USER_ACTION
# line 399 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 175:
YY_USER_ACTION
# line 400 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 176:
YY_USER_ACTION
# line 401 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 177:
YY_USER_ACTION
# line 402 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 178:
YY_USER_ACTION
# line 403 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 179:
YY_USER_ACTION
# line 404 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 180:
YY_USER_ACTION
# line 405 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 181:
YY_USER_ACTION
# line 406 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 182:
YY_USER_ACTION
# line 407 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 183:
YY_USER_ACTION
# line 408 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 184:
YY_USER_ACTION
# line 409 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 185:
YY_USER_ACTION
# line 410 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 186:
YY_USER_ACTION
# line 411 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 187:
YY_USER_ACTION
# line 412 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 188:
YY_USER_ACTION
# line 413 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 189:
YY_USER_ACTION
# line 414 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 190:
YY_USER_ACTION
# line 415 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 191:
YY_USER_ACTION
# line 416 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 192:
YY_USER_ACTION
# line 417 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 193:
YY_USER_ACTION
# line 418 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 194:
YY_USER_ACTION
# line 419 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 195:
YY_USER_ACTION
# line 420 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 196:
YY_USER_ACTION
# line 421 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 197:
YY_USER_ACTION
# line 422 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 198:
YY_USER_ACTION
# line 423 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 199:
YY_USER_ACTION
# line 424 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 200:
YY_USER_ACTION
# line 425 "ilex.l"
{S_backslash_error();}
	YY_BREAK
case 201:
YY_USER_ACTION
# line 427 "ilex.l"
{
				S_use_shortmarkers = TRUE;
				if (in_letter()) {
				    G_endprev_str[0] = '\0'; /* NULL string */
				    return (yylval=ENDPREV_TOK);
				}
			}
	YY_BREAK
case 202:
YY_USER_ACTION
# line 435 "ilex.l"
{
				S_use_shortmarkers = FALSE;
				if (in_letter()) {
				    G_endprev_str[0] = '\0'; /* NULL string */
				    return (yylval=ENDPREV_TOK);
				}
			}
	YY_BREAK
case 203:
YY_USER_ACTION
# line 443 "ilex.l"
{
				S_use_csx = TRUE;
				if (in_letter()) {
				    G_endprev_str[0] = '\0'; /* NULL string */
				    return (yylval=ENDPREV_TOK);
				}
			}
	YY_BREAK
case 204:
YY_USER_ACTION
# line 451 "ilex.l"
{
				S_use_csx = FALSE;
				if (in_letter()) {
				    G_endprev_str[0] = '\0'; /* NULL string */
				    return (yylval=ENDPREV_TOK);
				}
			}
	YY_BREAK
case 205:
YY_USER_ACTION
# line 459 "ilex.l"
{S_print("got newline\n");G_lineno++; ECHO;		}
	YY_BREAK
case 206:
YY_USER_ACTION
# line 460 "ilex.l"
{S_print("everything else! got .");ECHO;		}
	YY_BREAK
case 207:
YY_USER_ACTION
# line 462 "ilex.l"
ECHO;
	YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(ITEXT):
case YY_STATE_EOF(DCOMMAND):
	yyterminate();

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

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

		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 - 1; /* copy prev. char, too */
	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 singled characater, 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 = yy_c_buf_p - yytext_ptr;

	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_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 = yy_c_buf_p - b->yy_ch_buf;

			b->yy_buf_size *= 2;
			b->yy_ch_buf = (char *)
				yy_flex_realloc( (void *) b->yy_ch_buf,
						 b->yy_buf_size );

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

	if ( yy_n_chars == 0 )
		{
		if ( number_to_move - YY_MORE_ADJ == 1 )
			{
			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 begins at the second character in yy_ch_buf; the first
	 * character is the one which preceded it before reading in the latest
	 * buffer; it needs to be kept around in case it's a newline, so
	 * yy_get_previous_state() will have with '^' rules active.
	 */

	yytext_ptr = &yy_current_buffer->yy_ch_buf[1];

	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;

	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 >= 655 )
				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 );
 */

#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 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 >= 655 )
			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 == 654);

	return yy_is_jam ? 0 : yy_current_state;
	}


#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 += dest - source;
		yy_bp += dest - source;
		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" );
		}

	if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
		yy_cp[-2] = '\n';

	*--yy_cp = (char) c;


	/* Note: the formal parameter *must* be called "yy_bp" for this
	 * macro to now work correctly.
	 */
	YY_DO_BEFORE_ACTION; /* set up yytext again */
	}


#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 */
			yytext_ptr = yy_c_buf_p;
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
				{
				case EOB_ACT_END_OF_FILE:
					{
					if ( yywrap() )
						{
						yy_c_buf_p =
						yytext_ptr + YY_MORE_ADJ;
						return EOF;
						}

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

				case EOB_ACT_CONTINUE_SCAN:
					yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
					break;

				case EOB_ACT_LAST_MATCH:
#ifdef __cplusplus
					YY_FATAL_ERROR(
					"unexpected last match in yyinput()" );
#else
					YY_FATAL_ERROR(
					"unexpected last match in input()" );
#endif
				}
			}
		}

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

	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 == yy_current_buffer )
		yy_current_buffer = (YY_BUFFER_STATE) 0;

	yy_flex_free( (void *) b->yy_ch_buf );
	yy_flex_free( (void *) b );
	}


#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
	{
	b->yy_input_file = file;

	/* We put in the '\n' and start reading from [1] so that an
	 * initial match-at-newline will be true.
	 */

	b->yy_ch_buf[0] = '\n';
	b->yy_n_chars = 1;

	/* 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[1] = YY_END_OF_BUFFER_CHAR;
	b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;

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

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

	b->yy_fill_buffer = 1;

	b->yy_buffer_status = YY_BUFFER_NEW;
	}


#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 )
		{
		int 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);
	}


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


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


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



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


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

#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, unsigned int size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
unsigned int size;
#endif
	{
	return (void *) realloc( 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 );
	}
# line 462 "ilex.l"


static S_lex_ichar(int t)
{
#ifdef DEBUG
    if (t > 255) fprintf(stderr, "LEXER: have seen <%s> tok %d (I %d)\n",
				yytext, t, _I_(t));
    else fprintf(stderr, "LEXER: seen char %c (dec %d)\n", t, t);
#endif /*DEBUG*/
    return TRUE;
}
static S_print(char* t)
{
#ifdef DEBUG
    fprintf(stderr, "LEXERprint: have seen <%s> rule is %s\n",
				yytext, t);
#endif /*DEBUG*/
    return TRUE;
}

static S_skipcomments()
{
     int c;
     if (in_letter()) {
	 G_endprev_str[0] = '\0';
	 return (yylval=ENDPREV_TOK);
     } else {
	 /* this the next time around, eat up the comment */
	 putchar('%');
	 while ( (c = input()) != EOF && c != '\n')
		putchar(c);

	 G_lineno++;
	 return (yylval=NEWLINE_TOK);
     }
}

static void S_backslash_error()
{
    fprintf(stderr, "Error: file has ITRANS commands in pre 4.0 format.\n");
    fprintf(stderr, "Line: %d, %s\n", G_lineno, yytext);
    fprintf(stderr, "       All ITRANS commands now begin with a # instead of a \\.\n");
    fprintf(stderr, "       See `idoc.itx' or the `changes' file for more details.\n");
    exit(1);
}

/* include yywrap here so do not need -lfl when using flex */
#ifndef yywrap /* just in case it was ifdef'ed - I believe unix lex may do this */
int yywrap() { return 1; }
#endif

#if 0
rules for separate markers: (from 4.0, changed to a single marker ##,
so these rules are not used. here just in case I need them back!

   SMARKER_START is equivalent to #indian
   SMARKER_END   is equivalent to any end marker
   
"#{"[ \t]*	{ /* begin ITEXT if user has set it on */
			if (S_use_shortmarkers) {
			    BEGIN ITEXT;
			    return (S_marker_tok = IMARKER_TOK);
			} else if (S_marker_tok != ENDMARKER_TOK) {
			    /* in indian language text */
			    strcpy(G_endprev_str, yytext);
			    return (yylval=ENDPREV_TOK);
			} else ECHO;
		}
"#}"[ \t]*	{ /* end ITEXT if user has set it on */
			if (S_use_shortmarkers) {
			    BEGIN 0;
			    return (S_marker_tok = ENDMARKER_TOK);
			} else if (S_marker_tok != ENDMARKER_TOK) {
			    /* in indian language text */
			    strcpy(G_endprev_str, yytext);
			    return (yylval=ENDPREV_TOK);
			} else ECHO;
		}
#endif
